function UploadManager(t){var e=this;e.dropContainer=t.dropContainer,e.inputField=t.inputField,e.cancelContainer=t.cancelContainer,e.uploadsQueue=[],e._xhrs=[],e.activeUploads=0,e.data=t.data,e.key=t.key,e.maxSimultaneousUploads=t.maxSimultaneousUploads||-1,e.onFileAdded=t.onFileAdded||noop,e.uploadUrl=t.uploadUrl,e.onFileAddedProxy=function(t){console.log("Event: onFileAdded, file: "+t.fileName),e.onFileAdded(t)},e.initialize()}function FileUpload(e){var i=this;i.file=e,i.fileName=e.name,i.fileSize=e.size,i.uploadSize=e.size,i.uploadedBytes=0,i.eventHandlers={},i.events={onProgress:function(t,e){var n=e/t*100;console.log("Event: upload onProgress, progress = "+n+", fileSize = "+t+", uploadedBytes = "+e),(i.eventHandlers.onProgress||noop)(n,t,e)},onStart:function(){console.log("Event: upload onStart"),(i.eventHandlers.onStart||noop)()},onAborted:function(){console.log("Event: upload onAborted"),(i.eventHandlers.onAborted||noop)()},onCompleted:function(t){console.log("Event: upload onCompleted, data = "+t),e=null,(i.eventHandlers.onCompleted||noop)(t)},onError:function(t){console.log("Event: upload error, message: "+t),(i.eventHandlers.onError||noop)(t)}}}function __(t){return t}function escapeRegExp(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function difference(n,i){var s={};return _.uniq(Object.keys(n).concat(Object.keys(i))).forEach(function(t){if(t in n&&t in i)if(_.isObject(n[t])&&!_.isArray(n[t])&&_.isObject(i[t])&&!_.isArray(i[t])){var e=difference(n[t],i[t]);_.isEmpty(e)||(s[t]=e)}else _.isEqual(n[t],i[t])||(s[t]=i[t]);else s[t]=i[t]}),s}function byteLength(t){for(var e=t.length,n=t.length-1;0<=n;n--){var i=t.charCodeAt(n);127T.cacheLength&&delete n[i.shift()],n[t+" "]=e}var i=[];return n}function l(t){return t[B]=!0,t}function s(t){var e=M.createElement("fieldset");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function e(t,e){for(var n=t.split("|"),i=n.length;i--;)T.attrHandle[n[i]]=e}function c(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function i(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function r(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function o(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Ct(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function a(o){return l(function(r){return r=+r,l(function(t,e){for(var n,i=o([],t.length,r),s=i.length;s--;)t[n=i[s]]&&(t[n]=!(e[n]=t[n]))})})}function f(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function p(){}function m(t){for(var e=0,n=t.length,i="";e+~]|"+it+")"+it+"*"),ut=new RegExp(it+"|>"),ht=new RegExp(ot),dt=new RegExp("^"+st+"$"),ft={ID:new RegExp("^#("+st+")"),CLASS:new RegExp("^\\.("+st+")"),TAG:new RegExp("^("+st+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+nt+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},mt=/HTML$/i,gt=/^(?:input|select|textarea|button)$/i,vt=/^h\d$/i,bt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_t=/[+~]/,wt=new RegExp("\\\\[\\da-fA-F]{1,6}"+it+"?|\\\\([^\\r\\n\\f])","g"),kt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Tt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,At=function(t,e){return e?"\0"===t?"\ufffd":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},St=function(){E()},Ct=u(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Q.apply(Y=tt.call(U.childNodes),U.childNodes),Y[U.childNodes.length].nodeType}catch(xt){Q={apply:Y.length?function(t,e){X.apply(t,tt.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}for(v in k=_.support={},S=_.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!mt.test(e||n&&n.nodeName||"HTML")},E=_.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:U;return i!=M&&9===i.nodeType&&i.documentElement&&(O=(M=i).documentElement,N=!S(M),U!=M&&(n=M.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",St,!1):n.attachEvent&&n.attachEvent("onunload",St)),k.scope=s(function(t){return O.appendChild(t).appendChild(M.createElement("div")),"undefined"!=typeof t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),k.attributes=s(function(t){return t.className="i",!t.getAttribute("className")}),k.getElementsByTagName=s(function(t){return t.appendChild(M.createComment("")),!t.getElementsByTagName("*").length}),k.getElementsByClassName=bt.test(M.getElementsByClassName),k.getById=s(function(t){return O.appendChild(t).id=B,!M.getElementsByName||!M.getElementsByName(B).length}),k.getById?(T.filter.ID=function(t){var e=t.replace(wt,kt);return function(t){return t.getAttribute("id")===e}},T.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&N){var n=e.getElementById(t);return n?[n]:[]}}):(T.filter.ID=function(t){var n=t.replace(wt,kt);return function(t){var e="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}},T.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&N){var n,i,s,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(s=e.getElementsByName(t),i=0;r=s[i++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),T.find.TAG=k.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):k.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],s=0,r=e.getElementsByTagName(t);if("*"!==t)return r;for(;n=r[s++];)1===n.nodeType&&i.push(n);return i},T.find.CLASS=k.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&N)return e.getElementsByClassName(t)},z=[],R=[],(k.qsa=bt.test(M.querySelectorAll))&&(s(function(t){var e;O.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||R.push("\\["+it+"*(?:value|"+nt+")"),t.querySelectorAll("[id~="+B+"-]").length||R.push("~="),(e=M.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||R.push("\\["+it+"*name"+it+"*="+it+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||R.push(":checked"),t.querySelectorAll("a#"+B+"+*").length||R.push(".#.+[+~]"),t.querySelectorAll("\\\f"),R.push("[\\r\\n\\f]")}),s(function(t){t.innerHTML="";var e=M.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&R.push("name"+it+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&R.push(":enabled",":disabled"),O.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&R.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),R.push(",.*:")})),(k.matchesSelector=bt.test(L=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&s(function(t){k.disconnectedMatch=L.call(t,"*"),L.call(t,"[s!='']:x"),z.push("!=",ot)}),R=R.length&&new RegExp(R.join("|")),z=z.length&&new RegExp(z.join("|")),e=bt.test(O.compareDocumentPosition),$=e||bt.test(O.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},K=e?function(t,e){if(t===e)return D=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!k.sortDetached&&e.compareDocumentPosition(t)===n?t==M||t.ownerDocument==U&&$(U,t)?-1:e==M||e.ownerDocument==U&&$(U,e)?1:P?et(P,t)-et(P,e):0:4&n?-1:1)}:function(t,e){if(t===e)return D=!0,0;var n,i=0,s=t.parentNode,r=e.parentNode,o=[t],a=[e];if(!s||!r)return t==M?-1:e==M?1:s?-1:r?1:P?et(P,t)-et(P,e):0;if(s===r)return c(t,e);for(n=t;n=n.parentNode;)o.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;o[i]===a[i];)i++;return i?c(o[i],a[i]):o[i]==U?-1:a[i]==U?1:0}),M},_.matches=function(t,e){return _(t,null,null,e)},_.matchesSelector=function(t,e){if(E(t),k.matchesSelector&&N&&!H[e+" "]&&(!z||!z.test(e))&&(!R||!R.test(e)))try{var n=L.call(t,e);if(n||k.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(xt){H(e,!0)}return 0<_(e,M,null,[t]).length},_.contains=function(t,e){return(t.ownerDocument||t)!=M&&E(t),$(t,e)},_.attr=function(t,e){(t.ownerDocument||t)!=M&&E(t);var n=T.attrHandle[e.toLowerCase()],i=n&&V.call(T.attrHandle,e.toLowerCase())?n(t,e,!N):undefined;return i!==undefined?i:k.attributes||!N?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},_.escape=function(t){return(t+"").replace(Tt,At)},_.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},_.uniqueSort=function(t){var e,n=[],i=0,s=0;if(D=!k.detectDuplicates,P=!k.sortStable&&t.slice(0),t.sort(K),D){for(;e=t[s++];)e===t[s]&&(i=n.push(s));for(;i--;)t.splice(n[i],1)}return P=null,t},A=_.getText=function(t){var e,n="",i=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=A(t)}else if(3===s||4===s)return t.nodeValue}else for( ;e=t[i++];)n+=A(e);return n},(T=_.selectors={cacheLength:50,createPseudo:l,match:ft,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(wt,kt),t[3]=(t[3]||t[4]||t[5]||"").replace(wt,kt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||_.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&_.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ht.test(n)&&(e=C(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,kt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=G[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&G(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(n,i,s){return function(t){var e=_.attr(t,n);return null==e?"!="===i:!i||(e+="","="===i?e===s:"!="===i?e!==s:"^="===i?s&&0===e.indexOf(s):"*="===i?s&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;At.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?At.find.matchesSelector(i,t)?[i]:[]:At.find.matches(t,At.grep(e,function(t){return 1===t.nodeType}))},At.fn.extend({find:function(t){var e,n,i=this.length,s=this;if("string"!=typeof t)return this.pushStack(At(t).filter(function(){for(e=0;e)[^>]*|#([\w-]+))$/;(At.fn.init=function(t,e,n){var i,s;if(!t)return this;if(n=n||Pt,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):yt(t)?n.ready!==undefined?n.ready(t):t(At):At.makeArray(t,this);if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:Dt.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof At?e[0]:e,At.merge(this,At.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:wt,!0)),It.test(i[1])&&At.isPlainObject(e))for(i in e)yt(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(s=wt.getElementById(i[2]))&&(this[0]=s,this.length=1),this}).prototype=At.fn,Pt=At(wt);var Et=/^(?:parents|prev(?:Until|All))/,Mt={children:!0,contents:!0,next:!0,prev:!0};At.fn.extend({has:function(t){var e=At(t,this),n=e.length;return this.filter(function(){for(var t=0;t\x20\t\r\n\f]*)/i,ie=/^$|^module$|\/(?:java|ecma)script/i;Qt=wt.createDocumentFragment().appendChild(wt.createElement("div")),(te=wt.createElement("input")).setAttribute("type","radio"),te.setAttribute("checked","checked"),te.setAttribute("name","t"),Qt.appendChild(te),bt.checkClone=Qt.cloneNode(!0).cloneNode(!0).lastChild.checked,Qt.innerHTML="",bt.noCloneChecked=!!Qt.cloneNode(!0).lastChild.defaultValue,Qt.innerHTML="",bt.option=!!Qt.lastChild;var se={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};se.tbody=se.tfoot=se.colgroup=se.caption=se.thead,se.th=se.td,bt.option||(se.optgroup=se.option=[1,""]);var re=/<|&#?\w+;/,oe=/^([^.]*)(?:\.(.+)|)/;At.event={global:{},add:function(e,t,n,i,s){var r,o,a,l,c,p,u,h,d,f,m,g=Ut.get(e);if(Bt(e))for(n.handler&&(n=(r=n).handler,s=r.selector),s&&At.find.matchesSelector(Kt,s),n.guid||(n.guid=At.guid++),(l=g.events)||(l=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return void 0!==At&&At.event.triggered!==t.type?At.event.dispatch.apply(e,arguments):undefined}),c=(t=(t||"").match(Ot)||[""]).length;c--;)d=m=(a=oe.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),d&&(u=At.event.special[d]||{},d=(s?u.delegateType:u.bindType)||d,u=At.event.special[d]||{},p=At.extend({type:d,origType:m,data:i,handler:n,guid:n.guid,selector:s,needsContext:s&&At.expr.match.needsContext.test(s),namespace:f.join(".")},r),(h=l[d])||((h=l[d]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,i,f,o)||e.addEventListener&&e.addEventListener(d,o)),u.add&&(u.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),s?h.splice(h.delegateCount++,0,p):h.push(p),At.event.global[d]=!0)},remove:function(t,e,n,i,s){var r,o,a,l,c,p,u,h,d,f,m,g=Ut.hasData(t)&&Ut.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(Ot)||[""]).length;c--;)if(d=m=(a=oe.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),d){for(u=At.event.special[d]||{},h=l[d=(i?u.delegateType:u.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=h.length;r--;)p=h[r],!s&&m!==p.origType||n&&n.guid!==p.guid||a&&!a.test(p.namespace)||i&&i!==p.selector&&("**"!==i||!p.selector)||(h.splice(r,1),p.selector&&h.delegateCount--,u.remove&&u.remove.call(t,p));o&&!h.length&&(u.teardown&&!1!==u.teardown.call(t,f,g.handle)||At.removeEvent(t,d,g.handle),delete l[d])}else for(d in l)At.event.remove(t,d+e[c],n,i,!0);At.isEmptyObject(l)&&Ut.remove(t,"handle events")}},dispatch:function(t){var e,n,i,s,r,o,a=new Array(arguments.length),l=At.event.fix(t),c=(Ut.get(this,"events")||Object.create(null))[l.type]||[],p=At.event.special[l.type]||{};for(a[0]=l,e=1;e\s*$/g;At.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,s,r,o,a=t.cloneNode(!0),l=Vt(t);if(!(bt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||At.isXMLDoc(t)))for(o=_(a),i=0,s=(r=_(t)).length;i").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",s=function(t){i.remove(),s=null,t&&e("error"===t.type?404:200,t.type)}),wt.head.appendChild(i[0])},abort:function(){s&&s()}}});var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;At.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||At.expando+"_"+Ne.guid++;return this[t]=!0,t}}),At.ajaxPrefilter("json jsonp",function(t,e,n){var i,s,r,o=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(o||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=yt(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(nn,"$1"+i):!1!==t.jsonp&&(t.url+=(Re.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return r||At.error(i+" was not called"),r[0]},t.dataTypes[0]="json",s=A[i],A[i]=function(){r=arguments},n.always(function(){s===undefined?At(A).removeProp(i):A[i]=s,t[i]&&(t.jsonpCallback=e.jsonpCallback,en.push(i)),r&&yt(s)&&s(r[0]),r=s=undefined}),"script"}),bt.createHTMLDocument=((tn=wt.implementation.createHTMLDocument("").body).innerHTML="
",2===tn.childNodes.length),At.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(bt.createHTMLDocument?((i=(e=wt.implementation.createHTMLDocument("")).createElement("base")).href=wt.location.href,e.head.appendChild(i)):e=wt),r=!n&&[],(s=It.exec(t))?[e.createElement(s[1])]:(s=k([t],e,r),r&&r.length&&At(r).remove(),At.merge([],s.childNodes)));var i,s,r},At.fn.load=function(t,e,n){var i,s,r,o=this,a=t.indexOf(" ");return-1").append(At.parseHTML(t)).find(i):t)}).always(n&&function(t,e){o.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},At.expr.pseudos.animated=function(e){return At.grep(At.timers,function(t){return e===t.elem}).length},At.offset={setOffset:function(t,e,n){var i,s,r,o,a,l,c=At.css(t,"position"),p=At(t),u={};"static"===c&&(t.style.position="relative"),a=p.offset(),r=At.css(t,"top"),l=At.css(t,"left"),("absolute"===c||"fixed"===c)&&-1<(r+l).indexOf("auto")?(o=(i=p.position()).top,s=i.left):(o=parseFloat(r)||0,s=parseFloat(l)||0),yt(e)&&(e=e.call(t,n,At.extend({},a))),null!=e.top&&(u.top=e.top-a.top+o),null!=e.left&&(u.left=e.left-a.left+s),"using"in e?e.using.call(t,u):p.css(u)}},At.fn.extend({offset:function(e){if(arguments.length)return e===undefined?this:this.each(function(t){At.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],s={top:0,left:0};if("fixed"===At.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===At.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((s=At(t).offset()).top+=At.css(t,"borderTopWidth",!0),s.left+=At.css(t,"borderLeftWidth",!0))}return{top:e.top-s.top-At.css(i,"marginTop",!0),left:e.left-s.left-At.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===At.css(t,"position");)t=t.offsetParent;return t||Kt})}}),At.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,s){var r="pageYOffset"===s;At.fn[e]=function(t){return zt(this,function(t,e,n){var i;if(_t(t)?i=t:9===t.nodeType&&(i=t.defaultView),n===undefined)return i?i[s]:t[e];i?i.scrollTo(r?i.pageXOffset:n,r?n:i.pageYOffset):t[e]=n},e,t,arguments.length)}}),At.each(["top","left"],function(t,n){At.cssHooks[n]=L(bt.pixelPosition,function(t,e){if(e)return e=z(t,n),pe.test(e)?At(t).position()[n]+"px":e})}),At.each({Height:"height",Width:"width"},function(o,a){At.each({padding:"inner"+o,content:a,"":"outer"+o},function(i,r){At.fn[r]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),s=i||(!0===t||!0===e?"margin":"border");return zt(this,function(t,e,n){var i;return _t(t)?0===r.indexOf("outer")?t["inner"+o]:t.document.documentElement["client"+o]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+o],i["scroll"+o],t.body["offset"+o],i["offset"+o],i["client"+o])):n===undefined?At.css(t,e,s):At.style(t,e,n,s)},a,n?t:undefined,n)}})}),At.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){At.fn[e]=function(t){return this.on(e,t)}}),At.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),At.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,n){At.fn[n]=function(t,e){return 0").outerWidth(1).jquery||j.each(["Width","Height"],function(t,n){function i(t,e,n,i){return j.each(s,function(){e-=parseFloat(j.css(t,"padding"+this))||0,n&&(e-=parseFloat(j.css(t,"border"+this+"Width"))||0),i&&(e-=parseFloat(j.css(t,"margin"+this))||0)}),e}var s="Width"===n?["Left","Right"]:["Top","Bottom"],r=n.toLowerCase(),o={innerWidth:j.fn.innerWidth,innerHeight:j.fn.innerHeight,outerWidth:j.fn.outerWidth,outerHeight:j.fn.outerHeight};j.fn["inner"+n]=function(t){return t===undefined?o["inner"+n].call(this):this.each(function(){j(this).css(r,i(this,t)+"px")})},j.fn["outer"+n]=function(t,e){return"number"!=typeof t?o["outer"+n].call(this,t):this.each(function(){j(this).css(r,i(this,t,!0,e)+"px")})}}),j.fn.addBack||(j.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),j("").data("a-b","a").removeData("a-b").data("a-b")&&(j.fn.removeData=(e=j.fn.removeData,function(t){return arguments.length?e.call(this,j.camelCase(t)):e.call(this)})),j.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),j.fn.extend({focus:(s=j.fn.focus,function(e,n){return"number"==typeof e?this.each(function(){var t=this;setTimeout(function(){j(t).trigger("focus"),n&&n.call(t)},e)}):s.apply(this,arguments)}),disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")},zIndex:function(t){if(t!==undefined)return this.css("zIndex",t);if(this.length)for(var e,n,i=j(this[0]);i.length&&i[0]!==document;){if(("absolute"===(e=i.css("position"))||"relative"===e||"fixed"===e)&&(n=parseInt(i.css("zIndex"),10),!isNaN(n)&&0!==n))return n;i=i.parent()}return 0}}),j.ui.plugin={add:function(t,e,n){var i,s=j.ui[t].prototype;for(i in n)s.plugins[i]=s.plugins[i]||[],s.plugins[i].push([e,n[i]])},call:function(t,e,n,i){var s,r=t.plugins[e];if(r&&(i||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(s=0;s",options:{disabled:!1,create:null},_createWidget:function(t,e){e=j(e||this.defaultElement||this)[0],this.element=j(e),this.uuid=a++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=j(),this.hoverable=j(),this.focusable=j(),e!==this&&(j.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=j(e.style?e.ownerDocument:e.document||e),this.window=j(this.document[0].defaultView||this.document[0].parentWindow)),this.options=j.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:j.noop,_getCreateEventData:j.noop,_create:j.noop,_init:j.noop,destroy:function(){this._destroy(),this.element.off(this.eventNamespace).removeData(this.widgetFullName).removeData(j.camelCase(this.widgetFullName)),this.widget().off(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.off(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:j.noop,widget:function(){return this.element},option:function(t,e){var n,i,s,r=t;if(0===arguments.length)return j.widget.extend({},this.options);if("string"==typeof t)if(r={},t=(n=t.split(".")).shift(),n.length){for(i=r[t]=j.widget.extend({},this.options[t]),s=0;s=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});!function(){function k(t,e,n){return[parseFloat(t[0])*(l.test(t[0])?e/100:1),parseFloat(t[1])*(l.test(t[1])?n/100:1)]}function T(t,e){return parseInt(j.css(t,e),10)||0}function e(t){var e=t[0];return 9===e.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:j.isWindow(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}j.ui=j.ui||{};var s,A,S=Math.max,C=Math.abs,x=Math.round,i=/left|center|right/,r=/top|center|bottom/,o=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,n=j.fn.position;j.position={scrollbarWidth:function(){if(s!==undefined)return s;var t,e,n=j("
"),i=n.children()[0];return j("body").append(n),t=i.offsetWidth,n.css("overflow","scroll"),t===(e=i.offsetWidth)&&(e=n[0].clientWidth),n.remove(),s=t-e},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),n=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),i="scroll"===e||"auto"===e&&t.widthS(C(i),C(s))?r.important="horizontal":r.important="vertical",u.using.call(this,t,r)}),o.offset(j.extend(c,{using:t}))})},j.ui.position={fit:{left:function(t,e){var n,i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,r=i.width,o=t.left-e.collisionPosition.marginLeft,a=s-o,l=o+e.collisionWidth-r-s;e.collisionWidth>r?0r?0").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=this.document[0];if(this.handleElement.is(t.target))try{e.activeElement&&"body"!==e.activeElement.nodeName.toLowerCase()&&j(e.activeElement).trigger("blur")}catch(n){}},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),j.ui.ddmanager&&(j.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0n[2]&&(l=n[2]+this.offset.click.left),t.pageY-this.offset.click.top>n[3]&&(c=n[3]+this.offset.click.top)),o.grid&&(s=o.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,c=n?s-this.offset.click.top>=n[1]||s-this.offset.click.top>n[3]?s:s-this.offset.click.top>=n[1]?s-o.grid[1]:s+o.grid[1]:s,r=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=n?r-this.offset.click.left>=n[0]||r-this.offset.click.left>n[2]?r:r-this.offset.click.left>=n[0]?r-o.grid[0]:r+o.grid[0]:r),"y"===o.axis&&(l=this.originalPageX),"x"===o.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_normalizeRightBottom:function(){"y"!==this.options.axis&&"auto"!==this.helper.css("right")&&(this.helper.width(this.helper.width()),this.helper.css("right","auto")),"x"!==this.options.axis&&"auto"!==this.helper.css("bottom")&&(this.helper.height(this.helper.height()),this.helper.css("bottom","auto"))},_trigger:function(t,e,n){return n=n||this._uiHash(),j.ui.plugin.call(this,t,[e,n,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),j.Widget.prototype._trigger.call(this,t,e,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),j.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,n){var i=j.extend({},t,{item:n.element});n.sortables=[],j(n.options.connectToSortable).each(function(){var t=j(this).sortable("instance");t&&!t.options.disabled&&(n.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,i))})},stop:function(e,t,n){var i=j.extend({},t,{item:n.element});n.cancelHelperRemoval=!1,j.each(n.sortables,function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,i))})},drag:function(n,i,s){j.each(s.sortables,function(){var t=!1,e=this;e.positionAbs=s.positionAbs,e.helperProportions=s.helperProportions,e.offset.click=s.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,j.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==e&&this._intersectsWith(this.containerCache)&&j.contains(e.element[0],this.element[0])&&(t=!1),t})),t?(e.isOver||(e.isOver=1,s._parent=i.helper.parent(),e.currentItem=i.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return i.helper[0]},n.target=e.currentItem[0],e._mouseCapture(n,!0),e._mouseStart(n,!0,!0),e.offset.click.top=s.offset.click.top,e.offset.click.left=s.offset.click.left,e.offset.parent.left-=s.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=s.offset.parent.top-e.offset.parent.top,s._trigger("toSortable",n),s.dropped=e.element,j.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,e.fromOutside=s),e.currentItem&&(e._mouseDrag(n),i.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",n,e._uiHash(e)),e._mouseStop(n,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),i.helper.appendTo(s._parent),s._refreshOffsets(n),i.position=s._generatePosition(n,!0),s._trigger("fromSortable",n),s.dropped=!1,j.each(s.sortables,function(){this.refreshPositions()}))})}}),j.ui.plugin.add("draggable","cursor",{start:function(t,e,n){var i=j("body"),s=n.options;i.css("cursor")&&(s._cursor=i.css("cursor")),i.css("cursor",s.cursor)},stop:function(t,e,n){var i=n.options;i._cursor&&j("body").css("cursor",i._cursor)}}),j.ui.plugin.add("draggable","opacity",{start:function(t,e,n){var i=j(e.helper),s=n.options;i.css("opacity")&&(s._opacity=i.css("opacity")),i.css("opacity",s.opacity)},stop:function(t,e,n){var i=n.options;i._opacity&&j(e.helper).css("opacity",i._opacity)}}),j.ui.plugin.add("draggable","scroll",{start:function(t,e,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,e,n){var i=n.options,s=!1,r=n.scrollParentNotHidden[0],o=n.document[0];r!==o&&"HTML"!==r.tagName?(i.axis&&"x"===i.axis||(n.overflowOffset.top+r.offsetHeight-t.pageY *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,n){return e<=t&&t*{ cursor: "+r.cursor+" !important; }").appendTo(s)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(i=this.containers.length-1;0<=i;i--)this.containers[i]._trigger("activate",t,this._uiHash(this));return j.ui.ddmanager&&(j.ui.ddmanager.current=this),j.ui.ddmanager&&!r.dropBehaviour&&j.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,n,i,s,r=this.options,o=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageYt[this.floating?"width":"height"]?d:r",n.document[0]).addClass(i||n.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===t?n._createTrPlaceholder(n.currentItem.find("tr").eq(0),j("",n.document[0]).appendTo(e)):"tr"===t?n._createTrPlaceholder(n.currentItem,e):"img"===t&&e.attr("src",n.currentItem.attr("src")),i||e.css("visibility","hidden"),e},update:function(t,e){i&&!s.forcePlaceholderSize||(e.height()||e.height(n.currentItem.innerHeight()-parseInt(n.currentItem.css("paddingTop")||0,10)-parseInt(n.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(n.currentItem.innerWidth()-parseInt(n.currentItem.css("paddingLeft")||0,10)-parseInt(n.currentItem.css("paddingRight")||0,10)))}}),n.placeholder=j(s.placeholder.element.call(n.element,n.currentItem)),n.currentItem.after(n.placeholder),s.placeholder.update(n,n.placeholder)},_createTrPlaceholder:function(t,e){var n=this;t.children().each(function(){j(" ",n.document[0]).attr("colspan",j(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){var e,n,i,s,r,o,a,l,c,p,u=null,h=null;for(e=this.containers.length-1;0<=e;e--)if(!j.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(u&&j.contains(this.containers[e].element[0],u.element[0]))continue;u=this.containers[e],h=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",t,this._uiHash(this)),this.containers[e].containerCache.over=0);if(u)if(1===this.containers.length)this.containers[h].containerCache.over||(this.containers[h]._trigger("over",t,this._uiHash(this)),this.containers[h].containerCache.over=1);else{for(i=1e4,s=null,r=(c=u.floating||this._isFloating(this.currentItem))?"left":"top",o=c?"width":"height",p=c?"clientX":"clientY",n=this.items.length-1;0<=n;n--)j.contains(this.containers[h].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(a=this.items[n].item.offset()[r],l=!1,t[p]-a>this.items[n][o]/2&&(l=!0),Math.abs(t[p]-a)this.containment[2]&&(s=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),i.grid&&(e=this.originalPageY+Math.round((r-this.originalPageY)/i.grid[1])*i.grid[1],r=this.containment?e-this.offset.click.top>=this.containment[1]&&e-this.offset.click.top<=this.containment[3]?e:e-this.offset.click.top>=this.containment[1]?e-i.grid[1]:e+i.grid[1]:e,n=this.originalPageX+Math.round((s-this.originalPageX)/i.grid[0])*i.grid[0],s=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-i.grid[0]:n+i.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:o.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:o.scrollLeft())}},_rearrange:function(t,e,n,i){n?n[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!i)})},_clear:function(t,e){function n(e,n,i){return function(t){i._trigger(e,t,n._uiHash(n))}}this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;0<=i;i--)e||s.push(n("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(n("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=j(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():j()}},_createIcons:function(){var t=this.options.icons;t&&(j("").addClass("ui-accordion-header-icon ui-icon "+t.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),"disabled"===t&&(this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this.headers.add( this.headers.next()).toggleClass("ui-state-disabled",!!e))):this._activate(e)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=j.ui.keyCode,n=this.headers.length,i=this.headers.index(t.target),s=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:s=this.headers[(i+1)%n];break;case e.LEFT:case e.UP:s=this.headers[(i-1+n)%n];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:s=this.headers[0];break;case e.END:s=this.headers[n-1]}s&&(j(t.target).attr("tabIndex",-1),j(s).attr("tabIndex",0),s.focus(),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===j.ui.keyCode.UP&&t.ctrlKey&&j(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=j()):!1===t.active?this._activate(0):this.active.length&&!j.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=j()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide(),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var n,t=this.options,e=t.heightStyle,i=this.element.parent();this.active=this._findActive(t.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(){var t=j(this),e=t.uniqueId().attr("id"),n=t.next(),i=n.uniqueId().attr("id");t.attr("aria-controls",i),n.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(n=i.height(),this.element.siblings(":visible").each(function(){var t=j(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(n-=t.outerHeight(!0))}),this.headers.each(function(){n-=j(this).outerHeight(!0)}),this.headers.next().each(function(){j(this).height(Math.max(0,n-j(this).innerHeight()+j(this).height()))}).css("overflow","auto")):"auto"===e&&(n=0,this.headers.next().each(function(){n=Math.max(n,j(this).css("height","").height())}).height(n))},_activate:function(t){var e=this._findActive(t)[0];e!==this.active[0]&&(e=e||this.active[0],this._eventHandler({target:e,currentTarget:e,preventDefault:j.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):j()},_setupEvents:function(t){var n={keydown:"_keydown"};t&&j.each(t.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,n=this.active,i=j(t.currentTarget),s=i[0]===n[0],r=s&&e.collapsible,o=r?j():i.next(),a=n.next(),l={oldHeader:n,oldPanel:a,newHeader:r?j():i,newPanel:o};t.preventDefault(),s&&!e.collapsible||!1===this._trigger("beforeActivate",t,l)||(e.active=!r&&this.headers.index(i),this.active=s?j():i,this._toggle(l),n.removeClass("ui-accordion-header-active ui-state-active"),e.icons&&n.children(".ui-accordion-header-icon").removeClass(e.icons.activeHeader).addClass(e.icons.header),s||(i.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),e.icons&&i.children(".ui-accordion-header-icon").removeClass(e.icons.header).addClass(e.icons.activeHeader),i.next().addClass("ui-accordion-content-active")))},_toggle:function(t){var e=t.newPanel,n=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=n,this.options.animate?this._animate(e,n,t):(n.hide(),e.show(),this._toggleComplete(t)),n.attr({"aria-hidden":"true"}),n.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(j(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,n,e){var i,s,r,o=this,a=0,l=t.css("box-sizing"),c=t.length&&(!n.length||t.index()",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(t){var e=j(t.target);!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&j(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){if(!this.previousFilter){var e=j(t.currentTarget);e.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(t,e)}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,n)},blur:function(t){this._delay(function(){j.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=j(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){var e,n,i,s,r=!0;switch(t.keyCode){case j.ui.keyCode.PAGE_UP:this.previousPage(t);break;case j.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case j.ui.keyCode.HOME:this._move("first","first",t);break;case j.ui.keyCode.END:this._move("last","last",t);break;case j.ui.keyCode.UP:this.previous(t);break;case j.ui.keyCode.DOWN:this.next(t);break;case j.ui.keyCode.LEFT:this.collapse(t);break;case j.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case j.ui.keyCode.ENTER:case j.ui.keyCode.SPACE:this._activate(t);break;case j.ui.keyCode.ESCAPE:this.collapse(t);break;default:r=!1,n=this.previousFilter||"",i=String.fromCharCode(t.keyCode),s=!1,clearTimeout(this.filterTimer),i===n?s=!0:i=n+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}r&&t.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(t):this.select(t))},refresh:function(){var t,e=this,i=this.options.icons.submenu,n=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),n.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=j(this),e=t.parent(),n=j("").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);e.attr("aria-haspopup","true").prepend(n),t.attr("aria-labelledby",e.attr("id"))}),(t=n.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=j(this);e._isDivider(t)&&t.addClass("ui-widget-content ui-menu-divider")}),t.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!j.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},focus:function(t,e){var n,i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(n=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,n,i,s,r,o;this._hasScroll()&&(e=parseFloat(j.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(j.css(this.activeMenu[0],"paddingTop"))||0,i=t.offset().top-this.activeMenu.offset().top-e-n,s=this.activeMenu.scrollTop(),r=this.activeMenu.height(),o=t.outerHeight(),i<0?this.activeMenu.scrollTop(s+i):r",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var n,i,s,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,r="input"===t;this.isMultiLine=!!e||!r&&this.element.prop("isContentEditable"),this.valueMethod=this.element[e||r?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))i=s=n=!0;else{i=s=n=!1;var e=j.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:n=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:n=!0,this._move("nextPage",t);break;case e.UP:n=!0,this._keyEvent("previous",t);break;case e.DOWN:n=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(n=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:i=!0,this._searchTimeout(t)}}},keypress:function(t){if(n)return n=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!i){var e=j.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(s)return s=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=j("
    ").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var n=this.menu.element[0];j(t.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(t){t.target===e.element[0]||t.target===n||j.contains(n,t.target)||e.close()})})},menufocus:function(t,e){var n,i;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){j(t.target).trigger(t.originalEvent)});i=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:i})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(i.value),(n=e.item.attr("aria-label")||i.value)&&n.trim().length&&(this.liveRegion.children().hide(),j("
    ").text(n).appendTo(this.liveRegion))},menuselect:function(t,e){var n=e.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i,this.selectedItem=n})),!1!==this._trigger("select",t,{item:n})&&this._value(n.value),this.term=this._value(),this.close(t),this.selectedItem=n}}),this.liveRegion=j("",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?j(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front")),t.length||(t=this.document[0].body),t},_initSource:function(){var n,i,s=this;Array.isArray(this.options.source)?(n=this.options.source,this.source=function(t,e){e(j.ui.autocomplete.filter(n,t.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,e){s.xhr&&s.xhr.abort(),s.xhr=j.ajax({url:i,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(i){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),n=i.altKey||i.ctrlKey||i.metaKey||i.shiftKey;t&&(!t||e||n)||(this.selectedItem=null,this.search(null,i))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length").text(e.label).appendTo(t)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())}}),j.extend(j.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var n=new RegExp(j.ui.autocomplete.escapeRegex(e),"i");return j.grep(t,function(t){return n.test(t.label||t.value||t)})}}),j.widget("ui.autocomplete",j.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1").text(e).appendTo(this.liveRegion))}});j.ui.autocomplete}),function(){function t(a){function l(t,e,n,i,s,r){for(;0<=s&&s":">",'"':""","'":"'","`":"`"},O=b.invert(M),N=function(e){var n=function(t){return e[t]},t="(?:"+b.keys(e).join("|")+")",i=RegExp(t),s=RegExp(t,"g");return function(t){return t=null==t?"":""+t,i.test(t)?t.replace(s,n):t}};b.escape=N(M),b.unescape=N(O),b.result=function(t,e,n){var i=null==t?void 0:t[e];return void 0===i&&(i=n),b.isFunction(i)?i.call(t):i};var R=0;b.uniqueId=function(t){var e=++R+"";return t?t+e:e},b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var z=/(.)^/,L={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},$=/\\|'|\r|\n|\u2028|\u2029/g,B=function(t){return"\\"+L[t]};b.template=function(r,t,e){!t&&e&&(t=e),t=b.defaults({},t,b.templateSettings);var n=RegExp([(t.escape||z).source,(t.interpolate||z).source,(t.evaluate||z).source].join("|")+"|$","g"),o=0,a="__p+='";r.replace(n,function(t,e,n,i,s){return a+=r.slice(o,s).replace($,B),o=s+t.length,e?a+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":n?a+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{var i=new Function(t.variable||"obj","_",a)}catch(c){throw c.source=a,c}var s=function(t){return i.call(this,t,b)},l=t.variable||"obj";return s.source="function("+l+"){\n"+a+"}",s},b.chain=function(t){var e=b(t);return e._chain=!0,e};var U=function(t,e){return t._chain?b(e).chain():e};b.mixin=function(n){b.each(b.functions(n),function(t){var e=b[t]=n[t];b.prototype[t]=function(){var t=[this._wrapped];return c.apply(t,arguments),U(this,e.apply(b,t))}})},b.mixin(b),b.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=o[e];b.prototype[e]=function(){var t=this._wrapped;return n.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],U(this,t)}}),b.each(["concat","join","slice"],function(t){var e=o[t];b.prototype[t]=function(){return U(this,e.apply(this._wrapped,arguments))}}),b.prototype.value=function(){return this._wrapped},b.prototype.valueOf=b.prototype.toJSON=b.prototype.value,b.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return b})}.call(this),function(e){function o(t){var e=t.length,n=u.type(t);return"function"!==n&&!u.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&0g&&++r",e.getElementsByTagName("span").length)return e=null,t}return L}(),d=(r=0,R.webkitRequestAnimationFrame||R.mozRequestAnimationFrame||function(t){var e,n=(new Date).getTime();return e=Math.max(0,16-(n-r)),r=n+e,setTimeout(function(){t(n+e)},e)}),q={isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isNodeList:function(t){return"object"==typeof t&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&t.length!==L&&(0===t.length||"object"==typeof t[0]&&0c&&Math.abs(r.v)>c;);return i?function(t){return a[t*(a.length-1)|0]}:l}}();J.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},F.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(t,e){J.Easings[e[0]]=s.apply(null,e[1])});var W=J.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var t=0;tparseFloat(i[1]))}if(t.Velocity&&t.Velocity.Utilities){var _=t.Velocity,w=_.Utilities;if(i({major:1,minor:1,patch:0},_.version)){var s="Velocity UI Pack: You need to update Velocity (jquery.velocity.js) to a newer version. Visit http://github.com/julianshapiro/velocity.";throw alert(s),new Error(s)}for(var r in _.RegisterEffect=_.RegisterUI=function(g,v){function b(t,e,i,s){var r,o=0;w.each(t.nodeType?[t]:t,function(t,n){s&&(i+=t*s),r=n.parentNode,w.each(["height","paddingTop","paddingBottom","marginTop","marginBottom"],function(t,e){o+=parseFloat(_.CSS.getPropertyValue(n,e))})}),_.animate(r,{height:("In"===e?"+":"-")+"="+o},{queue:!1,easing:"ease-in-out",duration:i*("In"===e?.6:1)})}return _.Redirects[g]=function(i,e,t,n,s,r){function o(){e.display!==y&&"none"!==e.display||!/Out$/.test(g)||w.each(s.nodeType?[s]:s,function(t,e){_.CSS.setPropertyValue(e,"display","none")}),e.complete&&e.complete.call(s,s),r&&r.resolver(s||i)}var a=t===n-1;"function"==typeof v.defaultDuration?v.defaultDuration=v.defaultDuration.call(s,s):v.defaultDuration=parseFloat(v.defaultDuration);for(var l=0;l"},e.prototype.fromForm=function(t){var e,n,i,s,r,o,a,l,c,p,u,h,d,f;for(f={},n=0,o=(u=m(t).find("[type=checkbox]:not([value])")).length;n=rt.colors.length&&(t=0,++o)}var c,p=0;for(t=0;tt.datamax&&n!=d&&(t.datamax=n)}var e,n,i,s,r,o,a,l,c,p,u=Number.POSITIVE_INFINITY,h=Number.NEGATIVE_INFINITY,d=Number.MAX_VALUE;for(kt.each(T(),function(t,e){e.datamin=u,e.datamax=h,e.used=!1}),e=0;e
    '+t.join("")+"
    ").appendTo(d)}var e,i,s,r=n.options,o=n.ticks||[],a=[],l=r.labelWidth,c=r.labelHeight;if("x"==n.direction){if(null==l&&(l=Math.floor(ft/(0'+i+"");0'),c=(s=t(a,"width:10000px;")).height(),s.remove())}}else if(null==l||null==c){for(e=0;e'+i+"");0=h);++d);n=p[d][0],"year"==(s=p[d][1])&&(a=Math.pow(10,Math.floor(Math.log(c/u.year)/Math.LN10)),n=(l=c/u.year/a)<1.5?1:l<3?2:l<7.5?5:10,n*=a),t.tickSize=o.tickSize||[n,s],i=function(t){var e=[],n=t.tickSize[0],i=t.tickSize[1],s=new Date(t.min),r=n*u[i];"second"==i&&s.setUTCSeconds(Tt(s.getUTCSeconds(),n)),"minute"==i&&s.setUTCMinutes(Tt(s.getUTCMinutes(),n)),"hour"==i&&s.setUTCHours(Tt(s.getUTCHours(),n)),"month"==i&&s.setUTCMonth(Tt(s.getUTCMonth(),n)),"year"==i&&s.setUTCFullYear(Tt(s.getUTCFullYear(),n)),s.setUTCMilliseconds(0),r>=u.minute&&s.setUTCSeconds(0),r>=u.hour&&s.setUTCMinutes(0),r>=u.day&&s.setUTCHours(0),r>=4*u.day&&s.setUTCDate(1),r>=u.year&&s.setUTCMonth(0);var o,a=0,l=Number.NaN;do{if(o=l,l=s.getTime(),e.push(l),"month"==i)if(n<1){s.setUTCDate(1);var c=s.getTime();s.setUTCMonth(s.getUTCMonth()+1);var p=s.getTime();s.setTime(l+a*u.hour+(p-c)*n),a=s.getUTCHours(),s.setUTCHours(0)}else s.setUTCMonth(s.getUTCMonth()+n);else"year"==i?s.setUTCFullYear(s.getUTCFullYear()+n):s.setTime(l+r)}while(li.axis.max||s.tos.axis.max||(i.from=Math.max(i.from,i.axis.min),i.to=Math.min(i.to,i.axis.max),s.from=Math.max(s.from,s.axis.min),s.to=Math.min(s.to,s.axis.max),i.from==i.to&&s.from==s.to||(i.from=i.axis.p2c(i.from),i.to=i.axis.p2c(i.to),s.from=s.axis.p2c(s.from),s.to=s.axis.p2c(s.to),i.from==i.to||s.from==s.to?(ct.beginPath(),ct.strokeStyle=n.color||rt.grid.markingsColor, ct.lineWidth=n.lineWidth||rt.grid.markingsLineWidth,ct.moveTo(i.from,s.from),ct.lineTo(i.to,s.to),ct.stroke()):(ct.fillStyle=n.color||rt.grid.markingsColor,ct.fillRect(i.from,s.to,i.to-i.from,s.from-s.to))))}}for(var r=T(),o=rt.grid.borderWidth,a=0;ah.max||"full"==f&&0'],e=T(),n=0;n');for(var r=0;ri.max)){var a,l={};"x"==i.direction?(a="center",l.left=Math.round(dt.left+i.p2c(o.v)-i.labelWidth/2),"bottom"==i.position?l.top=s.top+s.padding:l.bottom=mt-(s.top+s.height-s.padding)):(l.top=Math.round(dt.top+i.p2c(o.v)-i.labelHeight/2),"left"==i.position?(l.right=ft-(s.left+s.width-s.padding),a="right"):(l.left=s.left+s.padding,a="left")),l.width=i.labelWidth;var c=["position:absolute","white-space:nowrap","text-align:"+a];for(var p in l)c.push(p+":"+l[p]+"px");t.push('
    '+o.label+"
    ")}}t.push("")}}t.push(""),d.append(t.join(""))}function L(t){t.lines.show&&$(t),t.bars.show&&F(t),t.points.show&&B(t)}function $(t){function e(t,e,n,i,s){var r=t.points,o=t.pointsize,a=null,l=null;ct.beginPath();for(var c=o;cs.max){if(d>s.max)continue;p=(s.max-u)/(d-u)*(h-p)+p,u=s.max}else if(u<=d&&d>s.max){if(u>s.max)continue;h=(s.max-u)/(d-u)*(h-p)+p,d=s.max}if(p<=h&&pi.max){if(h>i.max)continue;u=(i.max-p)/(h-p)*(d-u)+u,p=i.max}else if(p<=h&&h>i.max){if(p>i.max)continue;d=(i.max-p)/(h-p)*(d-u)+u,h=i.max}p==a&&u==l||ct.moveTo(i.p2c(p)+e,s.p2c(u)+n),a=h,l=d,ct.lineTo(i.p2c(h)+e,s.p2c(d)+n)}}ct.stroke()}function n(t,e,n){for(var i=t.points,s=t.pointsize,r=Math.min(Math.max(0,n.min),n.max),o=0,a=!1,l=1,c=0,p=0;!(0i.length+s);){var u=i[(o+=s)-s],h=i[o-s+l],d=i[o],f=i[o+l];if(a){if(0e.max){if(d>e.max)continue;h=(e.max-u)/(d-u)*(f-h)+h,u=e.max}else if(u<=d&&d>e.max){if(u>e.max)continue;f=(e.max-u)/(d-u)*(f-h)+h,d=e.max}if(a||(ct.beginPath(),ct.moveTo(e.p2c(u),n.p2c(r)),a=!0),h>=n.max&&f>=n.max)ct.lineTo(e.p2c(u),n.p2c(n.max)),ct.lineTo(e.p2c(d),n.p2c(n.max));else if(h<=n.min&&f<=n.min)ct.lineTo(e.p2c(u),n.p2c(n.min)),ct.lineTo(e.p2c(d),n.p2c(n.min));else{var m=u,g=d;h<=f&&h=n.min?(u=(n.min-h)/(f-h)*(d-u)+u,h=n.min):f<=h&&f=n.min&&(d=(n.min-h)/(f-h)*(d-u)+u,f=n.min),f<=h&&h>n.max&&f<=n.max?(u=(n.max-h)/(f-h)*(d-u)+u,h=n.max):h<=f&&f>n.max&&h<=n.max&&(d=(n.max-h)/(f-h)*(d-u)+u,f=n.max),u!=m&&ct.lineTo(e.p2c(m),n.p2c(h)),ct.lineTo(e.p2c(u),n.p2c(h)),ct.lineTo(e.p2c(d),n.p2c(f)),d!=g&&(ct.lineTo(e.p2c(d),n.p2c(f)),ct.lineTo(e.p2c(g),n.p2c(f)))}}}}ct.save(),ct.translate(dt.left,dt.top),ct.lineJoin="round";var i=t.lines.lineWidth,s=t.shadowSize;if(0r.max||ho.max||(ct.beginPath(),u=r.p2c(u),h=o.p2c(h)+i,"circle"==a?ct.arc(u,h,e,0,s?Math.PI:2*Math.PI,!1):a(ct,u,h,e,s),ct.closePath(),n&&(ct.fillStyle=n,ct.fill()),ct.stroke())}}ct.save(),ct.translate(dt.left,dt.top);var n=t.points.lineWidth,i=t.shadowSize,s=t.points.radius,r=t.points.symbol;if(0a.max||ml.max||(ha.max&&(d=a.max,v=!1),fl.max&&(m=l.max,b=!1),h=a.p2c(h),f=l.p2c(f),d=a.p2c(d),m=l.p2c(m),o&&(c.beginPath(),c.moveTo(h,f),c.lineTo(h,m),c.lineTo(d,m),c.lineTo(d,f),c.fillStyle=o(f,m),c.fill()),0"),n.push(""),i=!0),s&&(e=s(e,t)),n.push('
    '+e+""));if(i&&n.push(""),0!=n.length){var o=''+n.join("")+"
    ";if(null!=rt.legend.container)kt(rt.legend.container).html(o);else{var a="",l=rt.legend.position,c=rt.legend.margin;null==c[0]&&(c=[c,c]),"n"==l.charAt(0)?a+="top:"+(c[1]+dt.top)+"px;":"s"==l.charAt(0)&&(a+="bottom:"+(c[1]+dt.bottom)+"px;"),"e"==l.charAt(1)?a+="right:"+(c[0]+dt.right)+"px;":"w"==l.charAt(1)&&(a+="left:"+(c[0]+dt.left)+"px;");var p=kt('
    '+o.replace('style="','style="position:absolute;'+a+";")+"
    ").appendTo(d);if(0!=rt.legend.backgroundOpacity){var u=rt.legend.backgroundColor;null==u&&((u=(u=rt.grid.backgroundColor)&&"string"==typeof u?kt.color.parse(u):kt.color.extract(p,"background-color")).a=1,u=u.toString());var h=p.children();kt('
    ').prependTo(p).css("opacity",rt.legend.backgroundOpacity)}}}}}function J(t,e,n){var i,s,r=rt.grid.mouseActiveRadius,o=r*r+1,a=null;for(i=st.length-1;0<=i;--i)if(n(st[i])){var l=st[i],c=l.xaxis,p=l.yaxis,u=l.datapoints.points,h=l.datapoints.pointsize,d=c.c2p(t),f=p.c2p(e),m=r/c.scale,g=r/p.scale;if(c.options.inverseTransform&&(m=Number.MAX_VALUE),p.options.inverseTransform&&(g=Number.MAX_VALUE),l.lines.show||l.points.show)for(s=0;s=Math.min(A,v)&&b+k<=f&&f<=b+T:v+k<=d&&d<=v+T&&f>=Math.min(A,b)&&f<=Math.max(A,b))&&(a=[i,s/h]))}}}return a?(i=a[0],s=a[1],h=st[i].datapoints.pointsize,{datapoint:st[i].datapoints.points.slice(s*h,(s+1)*h),dataIndex:s,series:st[i],seriesIndex:i}):null}function W(t){rt.grid.hoverable&&V("plothover",t,function(t){return 0!=t.hoverable})}function H(t){rt.grid.hoverable&&V("plothover",t,function(){return!1})}function K(t){V("plotclick",t,function(t){return 0!=t.clickable})}function V(t,e,n){var i=lt.offset(),s=e.pageX-i.left-dt.left,r=e.pageY-i.top-dt.top,o=p({left:s,top:r});o.pageX=e.pageX,o.pageY=e.pageY;var a=J(s,r,n);if(a&&(a.pageX=parseInt(a.series.xaxis.p2c(a.datapoint[0])+i.left+dt.left),a.pageY=parseInt(a.series.yaxis.p2c(a.datapoint[1])+i.top+dt.top)),rt.grid.autoHighlight){for(var l=0;l<_t.length;++l){var c=_t[l];c.auto!=t||a&&c.series==a.series&&c.point[0]==a.datapoint[0]&&c.point[1]==a.datapoint[1]||Q(c.series,c.point)}a&&X(a.series,a.datapoint,t)}d.trigger(t,[o,a])}function Y(){wt||(wt=setTimeout(Z,30))}function Z(){var t,e;for(wt=null,pt.save(),pt.clearRect(0,0,ft,mt),pt.translate(dt.left,dt.top),t=0;t<_t.length;++t)(e=_t[t]).series.bars.show?nt(e.series,e.point):et(e.series,e.point);pt.restore(),k(bt.drawOverlay,[pt])}function X(t,e,n){if("number"==typeof t&&(t=st[t]),"number"==typeof e){var i=t.datapoints.pointsize;e=t.datapoints.points.slice(i*e,i*(e+1))}var s=tt(t,e);-1==s?(_t.push({series:t,point:e,auto:n}),Y()):n||(_t[s].auto=!1)}function Q(t,e){null==t&&null==e&&(_t=[],Y()),"number"==typeof t&&(t=st[t]),"number"==typeof e&&(e=t.data[e]);var n=tt(t,e);-1!=n&&(_t.splice(n,1),Y())}function tt(t,e){for(var n=0;n<_t.length;++n){var i=_t[n];if(i.series==t&&i.point[0]==e[0]&&i.point[1]==e[1])return n}return-1}function et(t,e){var n=e[0],i=e[1],s=t.xaxis,r=t.yaxis;if(!(ns.max||ir.max)){var o=t.points.radius+t.points.lineWidth/2;pt.lineWidth=o,pt.strokeStyle=kt.color.parse(t.color).scale("a",.5).toString();var a=1.5*o;n=s.p2c(n),i=r.p2c(i);pt.beginPath(),"circle"==t.points.symbol?pt.arc(n,i,a,0,2*Math.PI,!1):t.points.symbol(pt,n,i,a,!1),pt.closePath(),pt.stroke()}}function nt(t,e){pt.lineWidth=t.bars.lineWidth,pt.strokeStyle=kt.color.parse(t.color).scale("a",.5).toString();var n=kt.color.parse(t.color).scale("a",.5).toString(),i="left"==t.bars.align?0:-t.bars.barWidth/2;U(e[0],e[1],e[2]||0,i,i+t.bars.barWidth,0,function(){return n},t.xaxis,t.yaxis,pt,t.bars.horizontal,t.bars.lineWidth)}function it(t,e,n,i){if("string"==typeof t)return t;for(var s=ct.createLinearGradient(0,n,0,e),r=0,o=t.colors.length;r=t&&Math.abs(d.second.y-d.first.y)>=t}var d={first:{x:-1,y:-1},second:{x:-1,y:-1},show:!1,active:!1},f={},m=null;c.clearSelection=p,c.setSelection=t,c.getSelection=s,c.hooks.bindEvents.push(function(t,e){null!=t.getOptions().selection.mode&&(e.on("mousemove",n),e.on("mousedown",i))}),c.hooks.drawOverlay.push(function(t,e){if(d.show&&h()){var n=t.getPlotOffset(),i=t.getOptions();e.save(),e.translate(n.left,n.top);var s=g.color.parse(i.selection.color);e.strokeStyle=s.scale("a",.8).toString(),e.lineWidth=1,e.lineJoin="round",e.fillStyle=s.scale("a",.4).toString();var r=Math.min(d.first.x,d.second.x),o=Math.min(d.first.y,d.second.y),a=Math.abs(d.second.x-d.first.x),l=Math.abs(d.second.y-d.first.y);e.fillRect(r,o,a,l),e.strokeRect(r,o,a,l),e.restore()}}),c.hooks.shutdown.push(function(t,e){e.off("mousemove",n),e.off("mousedown",i),m&&g(document).off("mouseup",m)})}g.plot.plugins.push({init:t,options:{selection:{mode:null,color:"#e8cfac"}},name:"selection",version:"1.1"})}(jQuery),function(a){"use strict";function l(t){var e=t.attr("data-target");e||(e=(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""));var n="#"!==e?a(document).find(e):null;return n&&n.length?n:t.parent()}function r(i){i&&3===i.which||(a(e).remove(),a(c).each(function(){var t=a(this),e=l(t),n={relatedTarget:this};e.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&a.contains(e[0],i.target)||(e.trigger(i=a.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",n)))))}))}function t(n){return this.each(function(){var t=a(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new i(this)),"string"==typeof n&&e[n].call(t)})}var e=".dropdown-backdrop",c='[data-toggle="dropdown"]',i=function(t){a(t).on("click.bs.dropdown",this.toggle)};i.VERSION="3.4.1",i.prototype.toggle=function(t){var e=a(this);if(!e.is(".disabled, :disabled")){var n=l(e),i=n.hasClass("open");if(r(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",r);var s={relatedTarget:this};if(n.trigger(t=a.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(a.Event("shown.bs.dropdown",s))}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=a(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=l(e),i=n.hasClass("open");if(!i&&27!=t.which||i&&27==t.which)return 27==t.which&&n.find(c).trigger("focus"),e.trigger("click");var s=" li:not(.disabled):visible a",r=n.find(".dropdown-menu"+s);if(r.length){var o=r.index(t.target);38==t.which&&0
    ',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:e},g.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=m(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&m(document).find(m.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),s=i.length;s--;){var r=i[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=r){var o="hover"==r?"mouseenter":"focusin",a="hover"==r?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},g.prototype.getDefaults=function(){return g.DEFAULTS},g.prototype.getOptions=function(t){var e=this.$element.data();for(var n in e)e.hasOwnProperty(n)&&-1!==m.inArray(n,s)&&delete e[n];return(t=m.extend({},this.getDefaults(),e,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=i(t.template,t.whiteList,t.sanitizeFn)),t},g.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&m.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)}),n},g.prototype.enter=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},g.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},g.prototype.leave=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},g.prototype.show=function(){var t=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=m.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var n=this,i=this.tip(),s=this.getUID(this.type);this.setContent(),i.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&i.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,o=/\s?auto?\s?/i,a=o.test(r);a&&(r=r.replace(o,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?i.appendTo(m(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),c=i[0].offsetWidth,p=i[0].offsetHeight;if(a){var u=r,h=this.getPosition(this.$viewport);r="bottom"==r&&l.bottom+p>h.bottom?"top":"top"==r&&l.top-ph.width?"left":"left"==r&&l.left-co.top+o.height&&(s.top=o.top+o.height-l)}else{var c=e.left-r,p=e.left+r+n;co.right&&(s.left=o.left+o.width-p)}return s},g.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},g.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},g.prototype.tip=function(){if(!this.$tip&&(this.$tip=m(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},g.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},g.prototype.enable=function(){this.enabled=!0},g.prototype.disable=function(){this.enabled=!1},g.prototype.toggleEnabled=function(){this.enabled=!this.enabled},g.prototype.toggle=function(t){var e=this;t&&((e=m(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},g.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},g.prototype.sanitizeHtml=function(t){return i(t,this.options.whiteList,this.options.sanitizeFn)};var n=m.fn.tooltip;m.fn.tooltip=t,m.fn.tooltip.Constructor=g,m.fn.tooltip.noConflict=function(){return m.fn.tooltip=n,this}}(jQuery),function(s){"use strict";function t(i){return this.each(function(){var t=s(this),e=t.data("bs.popover"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.popover",e=new r(this,n)),"string"==typeof i&&e[i]())})}var r=function(t,e){this.init("popover",t,e)};if(!s.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.4.1",r.DEFAULTS=s.extend({},s.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),r.prototype=s.extend({},s.fn.tooltip.Constructor.prototype),(r.prototype.constructor=r).prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();if(this.options.html){var i=typeof n;this.options.sanitize&&(e=this.sanitizeHtml(e), "string"===i&&(n=this.sanitizeHtml(n))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===i?"html":"append"](n)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(n);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var e=s.fn.popover;s.fn.popover=t,s.fn.popover.Constructor=r,s.fn.popover.noConflict=function(){return s.fn.popover=e,this}}(jQuery);var originalLeave=$.fn.popover.Constructor.prototype.leave;$.fn.popover.Constructor.prototype.leave=function(t){var e,n,i=t instanceof this.constructor?t:$(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);originalLeave.call(this,t),t.currentTarget&&(e=$("body .popover"),n=i.timeout,e.one("mouseenter",function(){clearTimeout(n),e.one("mouseleave",function(){$.fn.popover.Constructor.prototype.leave.call(i,i)})}))},$.fn.popover.Constructor.DEFAULTS.viewport.padding=10,$.fn.popover.Constructor.DEFAULTS.template='';var originalShow=$.fn.popover.Constructor.prototype.show;$.fn.popover.Constructor.prototype.show=function(){if(originalShow.call(this),this.$tip){var t=$(this.options.viewport.selector).height()-2*this.options.viewport.padding;this.$tip.find(".popover-body").css("maxHeight",t)}},function(o){"use strict";function a(i,s){return this.each(function(){var t=o(this),e=t.data("bs.modal"),n=o.extend({},r.DEFAULTS,t.data(),"object"==typeof i&&i);e||t.data("bs.modal",e=new r(this,n)),"string"==typeof i?e[i](s):n.show&&e.show(s)})}var r=function(t,e){this.options=e,this.$body=o(e.container||document.body),this.$element=o(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,o.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};r.VERSION="3.4.1",r.TRANSITION_DURATION=300,r.BACKDROP_TRANSITION_DURATION=150,r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},r.prototype.show=function(n){var i=this,t=o.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',o.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){o(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=o.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),t&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var e=o.Event("shown.bs.modal",{relatedTarget:n});t?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(r.TRANSITION_DURATION):i.$element.trigger("focus").trigger(e)}))},r.prototype.hide=function(t){t&&t.preventDefault(),t=o.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),o(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),o.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",o.proxy(this.hideModal,this)).emulateTransitionEnd(r.TRANSITION_DURATION):this.hideModal())},r.prototype.enforceFocus=function(){o(document).off("focusin.bs.modal").on("focusin.bs.modal",o.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?o(window).on("keydown.dismiss.bs.modal",o.proxy(function(t){27==t.which&&this.hide(),27==t.which&&(t=o.Event("dismiss.bs.modal"),this.$element.trigger(t))},this)):this.isShown||o(window).off("keydown.dismiss.bs.modal")},r.prototype.resize=function(){this.isShown?o(window).on("resize.bs.modal",o.proxy(this.handleUpdate,this)):o(window).off("resize.bs.modal")},r.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},r.prototype.remove=function(){this.$element.remove()},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(t){var e=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=o.support.transition&&n;if(this.$backdrop=o(document.createElement("div")).addClass("modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",o.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){e.removeBackdrop(),t&&t()};o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):s()}else t&&t()},r.prototype.handleUpdate=function(){this.adjustDialog()},r.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight,e={left:this.$body.offset().left,top:Math.max(0,this.$body.offset().top),width:this.$body.width(),paddingLeft:!this.bodyIsOverflowing&&t&&0 .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}var s=e.find("> .active"),r=n&&a.support.transition&&(s.length&&s.hasClass("fade")||!!e.find("> .fade").length);s.length&&r?s.one("bsTransitionEnd",i).emulateTransitionEnd(o.TRANSITION_DURATION):i(),s.removeClass("in")};var t=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=o,a.fn.tab.noConflict=function(){return a.fn.tab=t,this};var n=function(t){t.preventDefault(),e.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(i){"use strict";function t(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(t.style[n]!==undefined)return{end:e[n]};return!1}i.fn.emulateTransitionEnd=function(t){var e=!1,n=this;return i(this).one("bsTransitionEnd",function(){e=!0}),setTimeout(function(){e||i(n).trigger(i.support.transition.end)},t),this},i(function(){i.support.transition=t(),i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(t){if(i(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(r){"use strict";function n(i){return this.each(function(){var t=r(this),e=t.data("bs.button"),n="object"==typeof i&&i;e||t.data("bs.button",e=new s(this,n)),"toggle"==i?e.toggle():i&&e.setState(i)})}var s=function(t,e){this.$element=r(t),this.options=r.extend({},s.DEFAULTS,e),this.isLoading=!1};s.VERSION="3.4.1",s.DEFAULTS={loadingText:"loading..."},s.prototype.setState=function(t){var e="disabled",n=this.$element,i=n.is("input")?"val":"html",s=n.data();t+="Text",null==s.resetText&&n.data("resetText",n[i]()),setTimeout(r.proxy(function(){n[i](null==s[t]?this.options[t]:s[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},s.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active");t&&this.$element.toggleClass("active")};var t=r.fn.button;r.fn.button=n,r.fn.button.Constructor=s,r.fn.button.noConflict=function(){return r.fn.button=t,this},r(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=r(t.target).closest(".btn");n.call(e,"toggle"),r(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),e.is("input,button")?e.trigger("focus"):e.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){r(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(o){"use strict";function s(t){var e,n=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return o(document).find(n)}function a(i){return this.each(function(){var t=o(this),e=t.data("bs.collapse"),n=o.extend({},l.DEFAULTS,t.data(),"object"==typeof i&&i);!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||t.data("bs.collapse",e=new l(this,n)),"string"==typeof i&&e[i]()})}var l=function(t,e){this.$element=o(t),this.options=o.extend({},l.DEFAULTS,e),this.$trigger=o('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};l.VERSION="3.4.1",l.TRANSITION_DURATION=350,l.DEFAULTS={toggle:!0},l.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},l.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(t=e.data("bs.collapse"))&&t.transitioning)){var n=o.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){e&&e.length&&(a.call(e,"hide"),t||e.data("bs.collapse",null));var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!o.support.transition)return s.call(this);var r=o.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",o.proxy(s,this)).emulateTransitionEnd(l.TRANSITION_DURATION)[i](this.$element[0][r])}}}},l.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=o.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!o.support.transition)return n.call(this);this.$element[e](0).one("bsTransitionEnd",o.proxy(n,this)).emulateTransitionEnd(l.TRANSITION_DURATION)}}},l.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},l.prototype.getParent=function(){return o(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(o.proxy(function(t,e){var n=o(e);this.addAriaAndCollapsedClass(s(n),n)},this)).end()},l.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var t=o.fn.collapse;o.fn.collapse=a,o.fn.collapse.Constructor=l,o.fn.collapse.noConflict=function(){return o.fn.collapse=t,this},o(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=o(this);e.attr("data-target")||t.preventDefault();var n=s(e),i=n.data("bs.collapse")?"toggle":e.data();a.call(n,i)})}(jQuery),function(m,g,i,e){"use strict";var r=function(t,e){this.widget="",this.$element=m(t),this.defaultTime=e.defaultTime,this.disableFocus=e.disableFocus,this.disableMousewheel=e.disableMousewheel,this.isOpen=e.isOpen,this.minuteStep=e.minuteStep,this.modalBackdrop=e.modalBackdrop,this.orientation=e.orientation,this.secondStep=e.secondStep,this.snapToStep=e.snapToStep,this.showInputs=e.showInputs,this.showMeridian=e.showMeridian,this.showSeconds=e.showSeconds,this.maxHours=e.maxHours,this.template=e.template,this.appendWidgetTo=e.appendWidgetTo,this.showWidgetOnAddonClick=e.showWidgetOnAddonClick,this._init()};r.prototype={constructor:r,_init:function(){var t=this;this.$element.hasClass("time--12")?this.showMeridian=!0:this.showMeridian&&this.$element.addClass("time--12"),this.showWidgetOnAddonClick&&(this.$element.parent().hasClass("input-append")||this.$element.parent().hasClass("input-prepend"))?(this.$element.parent(".input-append, .input-prepend").find(".add-on").on({"click.timepicker":m.proxy(this.showWidget,this)}),this.$element.on({"focus.timepicker":m.proxy(this.highlightUnit,this),"click.timepicker":m.proxy(this.highlightUnit,this),"keydown.timepicker":m.proxy(this.elementKeydown,this),"keyup.timepicker":m.proxy(this.elementKeyup,this),"blur.timepicker":m.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":m.proxy(this.mousewheel,this)})):this.template?this.$element.on({"focus.timepicker":m.proxy(this.showWidget,this),"click.timepicker":m.proxy(this.showWidget,this),"blur.timepicker":m.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":m.proxy(this.mousewheel,this)}):this.$element.on({"focus.timepicker":m.proxy(this.highlightUnit,this),"click.timepicker":m.proxy(this.highlightUnit,this),"keydown.timepicker":m.proxy(this.elementKeydown,this),"keyup.timepicker":m.proxy(this.elementKeyup,this),"blur.timepicker":m.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":m.proxy(this.mousewheel,this)}),!1!==this.template?this.$widget=m(this.getTemplate()).on("click",m.proxy(this.widgetClick,this)):this.$widget=!1,this.showInputs&&!1!==this.$widget&&this.$widget.find("input").each(function(){m(this).on({"click.timepicker":function(){m(this).select()},"keydown.timepicker":m.proxy(t.widgetKeydown,t),"keyup.timepicker":m.proxy(t.widgetKeyup,t)})}),23 
    ">':"")+(this.showMeridian?' ">':"")+""+e+' :'+n+" "+(this.showSeconds?':'+i+"":"")+(this.showMeridian?' '+s+"":"")+'">">'+(this.showSeconds?' ">':"")+(this.showMeridian?' ">':"")+"",this.template){case"modal":t='';break;case"dropdown":t='"}return t},getTime:function(){return""===this.hour?"":(1===this.hour.toString().length?"0"+this.hour:this.hour)+":"+(1===this.minute.toString().length?"0"+this.minute:this.minute)+(this.showSeconds?":"+(1===this.second.toString().length?"0"+this.second:this.second):"")+(this.showMeridian?" "+this.meridian:"")},hideWidget:function(){!1!==this.isOpen&&(this.$element.trigger({type:"hide.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}}),"modal"===this.template&&this.$widget.modal?this.$widget.modal("hide"):this.$widget.removeClass("open"),m(i).off("mousedown.timepicker, touchend.timepicker"),this.isOpen=!1,this.$widget.detach())},highlightUnit:function(){setTimeout(m.proxy(this.highlightUnitDelayed,this),0)},highlightUnitDelayed:function(){this.position=this.getCursorPosition(),0<=this.position&&this.position<=2?this.highlightHour():3<=this.position&&this.position<=5?this.highlightMinute():6<=this.position&&this.position<=8?this.showSeconds?this.highlightSecond():this.highlightMeridian():9<=this.position&&this.position<=11&&this.highlightMeridian()},highlightNextUnit:function(){switch(this.highlightedUnit){case"hour":this.highlightMinute();break;case"minute":this.showSeconds?this.highlightSecond():this.showMeridian?this.highlightMeridian():this.highlightHour();break;case"second":this.showMeridian?this.highlightMeridian():this.highlightHour();break;case"meridian":this.highlightHour()}},highlightPrevUnit:function(){switch(this.highlightedUnit){case"hour":this.showMeridian?this.highlightMeridian():this.showSeconds?this.highlightSecond():this.highlightMinute();break;case"minute":this.highlightHour();break;case"second":this.highlightMinute();break;case"meridian":this.showSeconds?this.highlightSecond():this.highlightMinute()}},setSelectionRange:function(t,e){var n=this.$element.get(0);n.setSelectionRange&&setTimeout(function(){n.setSelectionRange(t,e)},0)},highlightHour:function(){var t=this.$element.val().replace(/[^0-9\:]/g,"").split(":"),e=(t[0]?t[0].toString():t.toString()).toString().length;this.highlightedUnit="hour",this.setSelectionRange(0,e)},highlightMinute:function(){var t=this.$element.val().replace(/[^0-9\:]/g,"").split(":"),e=(t[0]?t[0].toString():t.toString()).toString().length;this.highlightedUnit="minute",this.setSelectionRange(e+1,e+3)},highlightSecond:function(){this.highlightedUnit="second",this.setSelectionRange(6,8)},highlightMeridian:function(){this.highlightedUnit="meridian",this.showSeconds?this.setSelectionRange(9,11):this.setSelectionRange(6,8)},incrementHour:function(){if(this.showMeridian){if(11===this.hour)return this.hour++,this.toggleMeridian();12===this.hour&&(this.hour=0)}this.hour!==this.maxHours?this.hour++:this.hour=0},incrementMinute:function(t){var e;59<(e=t?this.minute+t:this.minute+this.minuteStep-this.minute%this.minuteStep)?(this.incrementHour(),this.minute=e-60):this.minute=e},incrementSecond:function(){var t=this.second+this.secondStep-this.second%this.secondStep;59i&&(p=i-t-n));var h,d,f=this.orientation.y;"auto"===f&&(h=-r+a.top-e,d=r+s-(a.top+l+e),f=Math.max(h,d)===d?"top":"bottom"),this.$widget.addClass("timepicker-orient-"+f),"top"===f?u+=l:u-=e+parseInt(this.$widget.css("padding-top"),10),this.$widget.css({top:u,left:p,zIndex:o})}},remove:function(){m("document").off(".timepicker"),this.$widget&&this.$widget.remove(),delete this.$element.data().timepicker},setDefaultTime:function(t){if(this.$element.val())this.updateFromElementVal();else if("current"===t){var e=new Date,n=e.getHours(),i=e.getMinutes(),s=e.getSeconds(),r="AM";0!==s&&60===(s=Math.ceil(e.getSeconds()/this.secondStep)*this.secondStep)&&(i+=1,s=0),0!==i&&60===(i=Math.ceil(e.getMinutes()/this.minuteStep)*this.minuteStep)&&(n+=1,i=0),this.showMeridian&&(0===n?n=12:12<=n?(12c&&r.length%2!=0)return void this.clear();o=s[1]?s[1].toString():"",a=s[2]?s[2].toString():"",4c&&(o=r.slice(-c),r=r.slice(0,-c)),2this.maxHours&&(r=this.maxHours),this.showMeridian?(12this.maxHours?r=this.maxHours-1:(r<0||12===r&&1===i)&&(r=0)}this.hour=r,this.snapToStep?(this.minute=this.changeToNearestStep(o,this.minuteStep),this.second=this.changeToNearestStep(a,this.secondStep)):(this.minute=o,this.second=a),this.meridian=l,n||this.update(e)}else this.clear()},showWidget:function(){if(!this.isOpen&&!this.$element.is(":disabled")){this.$widget.appendTo(this.appendWidgetTo);var e=this;m(i).on("mousedown.timepicker, touchend.timepicker",function(t){e.$element.parent().find(t.target).length||e.$widget.is(t.target)||e.$widget.find(t.target).length||e.hideWidget()}),this.$element.trigger({type:"show.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}}),this.place(),this.disableFocus&&this.$element.blur(),""===this.hour&&(this.defaultTime?this.setDefaultTime(this.defaultTime):this.setTime("0:0:0")),"modal"===this.template&&this.$widget.modal?this.$widget.modal("show").on("hidden",m.proxy(this.hideWidget,this)):!1===this.isOpen&&this.$widget.addClass("open"),this.isOpen=!0}},toggleMeridian:function(){this.meridian="AM"===this.meridian?"PM":"AM"},update:function(t){this.updateElement(),t||this.updateWidget();var e=this.hour;this.showMeridian&&("PM"==this.meridian&&e<12&&(e+=12),"AM"==this.meridian&&12==e&&(e=0)),this.$element.trigger({type:"changeTime.timepicker",time:{value:this.getTime(),hoursAndMinutes:this.pad(e)+":"+this.pad(this.minute),hours:e,minutes:this.minute,seconds:this.second,meridian:this.meridian}})},pad:function(t){return 1===t.toString().length?"0"+t:t},updateElement:function(){this.$element.val(this.getTime()).trigger("change")},updateFromElementVal:function(t){this.setTime(this.$element.val(),e,t)},updateWidget:function(){if(!1!==this.$widget){var t=this.hour,e=1===this.minute.toString().length?"0"+this.minute:this.minute,n=1===this.second.toString().length?"0"+this.second:this.second;this.showInputs?(this.$widget.find("input.timepicker-hour").val(t),this.$widget.find("input.timepicker-minute").val(e),this.showSeconds&&this.$widget.find("input.timepicker-second").val(n),this.showMeridian&&this.$widget.find("input.timepicker-meridian").val(this.meridian)):(this.$widget.find("span.timepicker-hour").text(t),this.$widget.find( "span.timepicker-minute").text(e),this.showSeconds&&this.$widget.find("span.timepicker-second").text(n),this.showMeridian&&this.$widget.find("span.timepicker-meridian").text(this.meridian))}},updateFromWidgetInputs:function(){if(!1!==this.$widget){var t=this.$widget.find("input.timepicker-hour").val()+":"+this.$widget.find("input.timepicker-minute").val()+(this.showSeconds?":"+this.$widget.find("input.timepicker-second").val():"")+(this.showMeridian?this.$widget.find("input.timepicker-meridian").val():"");this.setTime(t,!0)}},widgetClick:function(t){t.stopPropagation(),t.preventDefault();var e=m(t.target),n=e.closest("a").data("action");n&&this[n](),this.update(),e.is("input")&&e.get(0).setSelectionRange(0,2)},widgetKeydown:function(t){var e=m(t.target),n=e.attr("class").replace("timepicker-","");switch(t.keyCode){case 9:if(this.showMeridian&&"meridian"===n||this.showSeconds&&"second"===n||!this.showMeridian&&!this.showSeconds&&"minute"===n)return this.hideWidget();break;case 27:this.hideWidget();break;case 38:switch(t.preventDefault(),n){case"hour":this.incrementHour();break;case"minute":this.incrementMinute();break;case"second":this.incrementSecond();break;case"meridian":this.toggleMeridian()}this.setTime(this.getTime()),e.get(0).setSelectionRange(0,2);break;case 40:switch(t.preventDefault(),n){case"hour":this.decrementHour();break;case"minute":this.decrementMinute();break;case"second":this.decrementSecond();break;case"meridian":this.toggleMeridian()}this.setTime(this.getTime()),e.get(0).setSelectionRange(0,2)}},widgetKeyup:function(t){(65===t.keyCode||77===t.keyCode||80===t.keyCode||46===t.keyCode||8===t.keyCode||46<=t.keyCode&&t.keyCode<=57||96<=t.keyCode&&t.keyCode<=105)&&this.updateFromWidgetInputs()}},m.fn.timepicker=function(i){var s=Array.apply(null,arguments);return s.shift(),this.each(function(){var t=m(this),e=t.data("timepicker"),n="object"==typeof i&&i;e||t.data("timepicker",e=new r(this,m.extend({},m.fn.timepicker.defaults,n,m(this).data()))),"string"==typeof i&&e[i].apply(e,s)})},m.fn.timepicker.defaults={defaultTime:!1,disableFocus:!1,disableMousewheel:!0,isOpen:!1,minuteStep:15,modalBackdrop:!1,orientation:{x:"auto",y:"auto"},secondStep:15,showSeconds:!1,showInputs:!1,showMeridian:!1,template:!1,appendWidgetTo:"body",showWidgetOnAddonClick:!0,maxHours:23,snapToStep:!1},m.fn.timepicker.Constructor=r}(jQuery,window,document),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(jQuery)}(function(j,I){function P(){return new Date(Date.UTC.apply(Date,arguments))}function p(){var t=new Date;return P(t.getFullYear(),t.getMonth(),t.getDate())}function r(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function t(t){return function(){return this[t].apply(this,arguments)}}function c(t){return t&&!isNaN(t.getTime())}function u(t,e){function n(t,e){return e.toLowerCase()}var i=j(t).data(),s={},r=new RegExp("^"+e.toLowerCase()+"([A-Z])");for(var o in e=new RegExp("^"+e.toLowerCase()),i)e.test(o)&&(s[o.replace(r,n)]=i[o]);return s}function h(t){var n={};if(D[t]||(t=t.split("-")[0],D[t])){var i=D[t];return j.each(o,function(t,e){e in i&&(n[e]=i[e])}),n}}var e,n=(e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),n=0,i=this.length;nthis.o.endDate||!t},this),!0),this.dates.replace(n),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate,e?this.setValue():n.length&&String(t)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&t.length&&this._trigger("clearDate"),this.fill(),this.element.trigger("change"),this},fillDow:function(){var t=this.o.weekStart,e="";for(this.o.calendarWeeks&&(this.picker.find(".datepicker-days .datepicker-switch").attr("colspan",function(t,e){return parseInt(e)+1}),e+=' ');t'+D[this.o.language].daysMin[t++%7]+"";e+="",this.picker.find(".datepicker-days thead").append(e)},fillMonths:function(){for(var t="",e=0;e<12;)t+=''+D[this.o.language].monthsShort[e++]+"";this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=j.map(t,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var t=[],n=this.viewDate.getUTCFullYear(),i=this.viewDate.getUTCMonth(),s=new Date;return e.getUTCFullYear()n||e.getUTCFullYear()===n&&e.getUTCMonth()>i)&&t.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&t.push("focused"),this.o.todayHighlight&&e.getUTCFullYear()===s.getFullYear()&&e.getUTCMonth()===s.getMonth()&&e.getUTCDate()===s.getDate()&&t.push("today"),-1!==this.dates.contains(e)&&t.push("active"),(e.valueOf()this.o.endDate||-1!==j.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled))&&t.push("disabled"),-1!==j.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&t.push("highlighted"),0this.range[0]&&e"),this.o.calendarWeeks)){var g=new Date(+u+(this.o.weekStart-u.getUTCDay()-7)%7*864e5),v=new Date(Number(g)+(11-g.getUTCDay())%7*864e5),b=new Date(Number(b=P(v.getUTCFullYear(),0,1))+(11-b.getUTCDay())%7*864e5),y=(v-b)/864e5/7+1;m.push(''+y+"")}if((f=this.getClassNames(u)).push("day"),this.o.beforeShowDay!==j.noop){var _=this.o.beforeShowDay(this._utc_to_local(u));_===I?_={}:"boolean"==typeof _?_={enabled:_}:"string"==typeof _&&(_={classes:_}),!1===_.enabled&&f.push("disabled"),_.classes&&(f=f.concat(_.classes.split(/\s+/))),_.tooltip&&(t=_.tooltip)}f=j.uniqueSort(f),m.push('"+u.getUTCDate()+""),t=null,u.getUTCDay()===this.o.weekEnd&&m.push(""),u.setUTCDate(u.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(m.join(""));var w=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?"Months":i).end().find("span").removeClass("active");if(j.each(this.dates,function(t,e){e.getUTCFullYear()===i&&w.eq(e.getUTCMonth()).addClass("active")}),(i"+i+"",i+=1}T.html(m)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),e=t.getUTCFullYear(),n=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-Infinity&&e<=this.o.startDate.getUTCFullYear()&&n<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==Infinity&&e>=this.o.endDate.getUTCFullYear()&&n>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-Infinity&&e<=this.o.startDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==Infinity&&e>=this.o.endDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(t){t.preventDefault(),t.stopPropagation();var e,n,i,s=j(t.target).closest("span, td, th");if(1===s.length)switch(s[0].nodeName.toLowerCase()){case"th":switch(s[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var r=E.modes[this.viewMode].navStep*("prev"===s[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,r),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,r),1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":var o=new Date;o=P(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0),this.showMode(-2);var a="linked"===this.o.todayBtn?null:"view";this._setDate(o,a);break;case"clear":this.clearDates()}break;case"span":s.hasClass("disabled")||(this.viewDate.setUTCDate(1),s.hasClass("month")?(i=1,n=s.parent().find("span").index(s),e=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(n),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode?(this._setDate(P(e,n,i)),this.showMode()):this.showMode(-1)):(i=1,n=0,e=parseInt(s.text(),10)||0,this.viewDate.setUTCFullYear(e),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(P(e,n,i)),this.showMode(-1)),this.fill());break;case"td":s.hasClass("day")&&!s.hasClass("disabled")&&(i=parseInt(s.text(),10)||1,e=this.viewDate.getUTCFullYear(),n=this.viewDate.getUTCMonth(),s.hasClass("old")?0===n?(n=11,e-=1):n-=1:s.hasClass("new")&&(11===n?(n=0,e+=1):n+=1),this._setDate(P(e,n,i)))}this.picker.is(":visible")&&this._focused_from&&j(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||1this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){var n;e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),e&&"view"!==e||(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.isInput?n=this.element:this.component&&(n=this.element.find("input")),n&&n.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveMonth:function(t,e){if(!c(t))return this.o.defaultViewDate;if(!e)return t;var n,i,s=new Date(t.valueOf()),r=s.getUTCDate(),o=s.getUTCMonth(),a=Math.abs(e);if(e=0=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,n,i,s,r=!1,o=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 39:if(!this.o.keyboardNavigation)break;e=37===t.keyCode?-1:1,t.ctrlKey?(n=this.moveYear(this.dates.get(-1)||p(),e),i=this.moveYear(o,e),this._trigger("changeYear",this.viewDate)):t.shiftKey?(n=this.moveMonth(this.dates.get(-1)||p(),e),i=this.moveMonth(o,e),this._trigger("changeMonth",this.viewDate)):((n=new Date(this.dates.get(-1)||p())).setUTCDate(n.getUTCDate()+e),(i=new Date(o)).setUTCDate(o.getUTCDate()+e)),this.dateWithinRange(i)&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),t.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;e=38===t.keyCode?-1:1,t.ctrlKey?(n=this.moveYear(this.dates.get(-1)||p(),e),i=this.moveYear(o,e),this._trigger("changeYear",this.viewDate)):t.shiftKey?(n=this.moveMonth(this.dates.get(-1)||p(),e),i=this.moveMonth(o,e),this._trigger("changeMonth",this.viewDate)):((n=new Date(this.dates.get(-1)||p())).setUTCDate(n.getUTCDate()+7*e),(i=new Date(o)).setUTCDate(o.getUTCDate()+7*e)),this.dateWithinRange(i)&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),t.preventDefault());break;case 32:break;case 13:if(!this.o.forceParse)break;o=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(o),r=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),"function"==typeof t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}if(r)this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.isInput?s=this.element:this.component&&(s=this.element.find("input")),s&&s.trigger("change")}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},showMode:function(t){t&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,this.viewMode+t))),this.picker.children("div").hide().filter(".datepicker-"+E.modes[this.viewMode].clsName).show(),this.updateNavArrows()}};var d=function(t,e){this.element=j(t),this.inputs=j.map(e.inputs,function(t){return t.jquery?t[0]:t}),delete e.inputs,s.call(j(this.inputs),e).on("changeDate",j.proxy(this.dateUpdated,this)),this.pickers=j.map(this.inputs,function(t){return j(t).data("datepicker")}),this.updateDates()};d.prototype={updateDates:function(){this.dates=j.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var n=j.map(this.dates,function(t){return t.valueOf()});j.each(this.pickers,function(t,e){e.setRange(n)})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var e=j(t.target).data("datepicker");if(void 0!==e){var n=e.getUTCDate(),i=j.inArray(t.target,this.inputs),s=i-1,r=i+1,o=this.inputs.length;if(-1!==i){if(j.each(this.pickers,function(t,e){e.getUTCDate()||e.setUTCDate(n)}),nthis.dates[r])for(;rthis.dates[r];)this.pickers[r++].setUTCDate(n);this.updateDates(),delete this.updating}}}},remove:function(){j.map(this.pickers,function(t){t.remove()}),delete this.element.data().datepicker}};var i=j.fn.datepicker,s=function(a){var l,c=Array.apply(null,arguments);if(c.shift(),this.each(function(){var t=j(this),e=t.data("datepicker"),n="object"==typeof a&&a;if(!e){var i=u(this,"date"),s=h(j.extend({},f,i,n).language),r=j.extend({},f,s,i,n);if(t.hasClass("input-daterange")||r.inputs){var o={inputs:r.inputs||t.find("input").toArray()};t.data("datepicker",e=new d(this,j.extend(r,o)))}else t.data("datepicker",e=new b(this,r))}"string"==typeof a&&"function"==typeof e[a]&&(l=e[a].apply(e,c))}),l===I||l instanceof b||l instanceof d)return this;if(1«»',contTemplate:'',footTemplate:''};E.template='
    '+E.headTemplate+""+E.footTemplate+'
    '+E.headTemplate+E.contTemplate+E.footTemplate+'
    '+E.headTemplate+E.contTemplate+E.footTemplate+"
    ",j.fn.datepicker.DPGlobal=E,j.fn.datepicker.noConflict=function(){return j.fn.datepicker=i,this},j.fn.datepicker.version="1.4.1-dev",j(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var e=j(this);e.data("datepicker")||(t.preventDefault(),s.call(e,"show"))}),j(function(){s.call(j('[data-provide="datepicker-inline"]'))})}),function(t,e){"function"==typeof define&&define.amd?define(t):void 0!==module&&"object"==typeof exports?module.exports=t():e.rangy=t()}(function(){function l(t,e){var n=typeof t[e];return n==_||!(n!=y||!t[e])||"unknown"==n}function e(t,e){return!(typeof t[e]!=y||!t[e])}function t(t,e){return typeof t[e]!=w}function i(i){return function(t,e){for(var n=e.length;n--;)if(!i(t,e[n]))return!1;return!0}}function c(t){return t&&C(t,S)&&j(t,A)}function p(t){return e(t,"body")?t.body:t.getElementsByTagName("body")[0]}function u(t){typeof console!=w&&l(console,"log")&&console.log(t)}function n(t,e){D&&e?alert(t):u(t)}function h(t){M.initialized=!0,M.supported=!1,n("Rangy is not supported in this environment. Reason: "+t,M.config.alertOnFail)}function s(t){n("Rangy warning: "+t,M.config.alertOnWarn)}function d(t){return t.message||t.description||String(t)}function r(){if(D&&!M.initialized){var t,e=!1,n=!1;l(document,"createRange")&&(t=document.createRange(),C(t,T)&&j(t,k)&&(e=!0));var i,s=p(document);if(!s||"body"!=s.nodeName.toLowerCase())return void h("No body element found");if(s&&l(s,"createTextRange")&&(c(t=s.createTextRange())&&(n=!0)),!e&&!n)return void h("Neither Range nor TextRange are available");for(var r in M.initialized=!0,M.features={implementsDomRange:e,implementsTextRange:n},P)(i=P[r])instanceof f&&i.init(i,M);for(var o=0,a=O.length;oe?(s.node=i,s.offset-=e):s.node==t.parentNode&&s.offset>p(t)&&++s.offset;return i}function f(t){if(9==t.nodeType)return t;if(typeof t.ownerDocument!=I)return t.ownerDocument;if(typeof t.document!=I)return t.document;if(t.parentNode)return f(t.parentNode);throw c.createError("getDocument: no document found for node")}function m(t){var e=f(t);if(typeof e.defaultView!=I)return e.defaultView;if(typeof e.parentWindow!=I)return e.parentWindow;throw c.createError("Cannot get a window object for node")}function g(t){if(typeof t.contentDocument!=I)return t.contentDocument;if(typeof t.contentWindow!=I)return t.contentWindow.document;throw c.createError("getIframeDocument: No Document object found for iframe element")}function v(t){if(typeof t.contentWindow!=I)return t.contentWindow;if(typeof t.contentDocument!=I)return t.contentDocument.defaultView;throw c.createError("getIframeWindow: No Window object found for iframe element")}function b(t){return t&&P.isHostMethod(t,"setTimeout")&&P.isHostObject(t,"document")}function y(t,e,n){var i;if(t?P.isHostProperty(t,"nodeType")?i=1==t.nodeType&&"iframe"==t.tagName.toLowerCase()?g(t):f(t):b(t)&&(i=t.document):i=document,!i)throw e.createError(n+"(): Parameter must be a Window object or DOM node");return i}function _(t){for(var e;e=t.parentNode;)t=e;return t}function w(t,e,n,i){var s,r,o,a,l;if(t==n)return e===i?0:e[index:"+p(t)+",length:"+t.childNodes.length+"]["+(t.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}function A(t){for(var e,n=f(t).createDocumentFragment();e=t.firstChild;)n.appendChild(e);return n}function S(t){this.root=t,this._next=t}function C(t){return new S(t)}function x(t,e){this.node=t,this.offset=e}function j(t){this.code=this[t],this.codeName=t,this.message="DOMException: "+this.codeName}var I="undefined",P=n.util;P.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||c.fail("document missing a Node creation method"),P.isHostMethod(document,"getElementsByTagName")||c.fail("document missing getElementsByTagName method");var D=document.createElement("div");P.areHostMethods(D,["insertBefore","appendChild","cloneNode"])||c.fail("Incomplete Element implementation"),P.isHostProperty(D,"innerHTML")||c.fail("Element is missing innerHTML property");var E=document.createTextNode("test");P.areHostMethods(E,["splitText","deleteData","insertData","appendData","cloneNode"])||c.fail("Incomplete Text Node implementation");var M,O=function(t,e){for(var n=t.length;n--;)if(t[n]===e)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var e=t.firstChild;t.innerHTML="
    ",N=k(e),n.features.crashyTextNodes=N}(),typeof window.getComputedStyle!=I?M=function(t,e){return m(t).getComputedStyle(t,null)[e]}:typeof document.documentElement.currentStyle!=I?M=function(t,e){return t.currentStyle[e]}:c.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var t,e,n=this._current=this._next;if(this._current)if(t=n.firstChild)this._next=t;else{for(e=null;n!==this.root&&!(e=n.nextSibling);)n=n.parentNode;this._next=e}return this._current},detach:function(){this._current=this._next=this.root=null}},x.prototype={equals:function(t){return!!t&&this.node===t.node&&this.offset==t.offset},inspect:function(){return"[DomPosition("+T(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},j.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},j.prototype.toString=function(){return this.message},n.dom={arrayContains:O,isHtmlNamespace:e,parentElement:t,getNodeIndex:p,getNodeLength:i,getCommonAncestor:u,isAncestorOf:s,isOrIsAncestorOf:r,getClosestAncestorIn:h,isCharacterDataNode:o,isTextOrCommentNode:a,insertAfter:l,splitDataNode:d,getDocument:f,getWindow:m,getIframeWindow:v,getIframeDocument:g,getBody:P.getBody,isWindow:b,getContentDocument:y,getRootContainer:_,comparePoints:w,isBrokenNode:k,inspectNode:T,getComputedStyleProperty:M,fragmentFromNodeChildren:A,createIterator:C,DomPosition:x},n.DOMException=j}),M.createCoreModule("DomRange",["DomUtil"],function(o){function i(t,e){return 3!=t.nodeType&&(B(t,e.startContainer)||B(t,e.endContainer))}function a(t){return t.document||U(t.startContainer)}function l(t){return new R(t.parentNode,$(t))}function p(t){return new R(t.parentNode,$(t)+1)}function n(t,e,n){var i=11==t.nodeType?t.firstChild:t;return L(e)?n==e.length?O.insertAfter(t,e):e.parentNode.insertBefore(t,0==n?e:q(e,n)):n>=e.childNodes.length?e.appendChild(t):e.insertBefore(t,e.childNodes[n]),i}function e(t,e,n){if(A(t),A(e),a(e)!=a(t))throw new z("WRONG_DOCUMENT_ERR");var i=F(t.startContainer,t.startOffset,e.endContainer,e.endOffset),s=F(t.endContainer,t.endOffset,e.startContainer,e.startOffset);return n?i<=0&&0<=s:i<0&&0(L(t)?t.length:t.childNodes.length))throw new z("INDEX_SIZE_ERR")}function b(t,e){if(tt(t,!0)!==tt(e,!0))throw new z("WRONG_DOCUMENT_ERR")}function y(t){if(et(t,!0))throw new z("NO_MODIFICATION_ALLOWED_ERR")}function _(t,e){if(!t)throw new z(e)}function w(t){return K&&O.isBrokenNode(t)||!W(Y,t.nodeType)&&!tt(t,!0)}function k(t,e){return e<=(L(t)?t.length:t.childNodes.length)}function T(t){return!!t.startContainer&&!!t.endContainer&&!w(t.startContainer)&&!w(t.endContainer)&&k(t.startContainer,t.startOffset)&&k(t.endContainer,t.endOffset)}function A(t){if(!T(t))throw new Error("Range error: Range is no longer valid after DOM mutation ("+t.inspect()+")")}function S(t,e){A(t);var n=t.startContainer,i=t.startOffset,s=t.endContainer,r=t.endOffset,o=n===s;L(s)&&0=$(n)&&r++,i=0),t.setStartAndEnd(n,i,s,r)}function C(t){A(t);var e=t.commonAncestorContainer.parentNode.cloneNode(!1);return e.appendChild(t.cloneContents()),e.innerHTML}function x(t){t.START_TO_START=at,t.START_TO_END=lt,t.END_TO_END=ct,t.END_TO_START=pt,t.NODE_BEFORE=ut,t.NODE_AFTER=ht,t.NODE_BEFORE_AND_AFTER=dt,t.NODE_INSIDE=ft}function j(t){x(t),x(t.prototype)}function I(o,a){return function(){A(this);var t,e=this.startContainer,n=this.startOffset,i=this.commonAncestorContainer,s=new d(this,!0);e!==i&&(e=(t=p(G(e,i,!0))).node,n=t.offset),c(s,y),s.reset();var r=o(s);return s.detach(),a(this,e,n,e,n),r}}function P(t,c){function e(n,i){return function(t){g(t,V),g(H(t),Y);var e=(n?l:p)(t);(i?s:r)(this,e.node,e.offset)}}function s(t,e,n){var i=t.endContainer,s=t.endOffset;(e!==t.startContainer||n!==t.startOffset)&&((H(e)!=H(i)||1==F(e,n,i,s))&&(i=e,s=n),c(t,e,n,i,s))}function r(t,e,n){var i=t.startContainer,s=t.startOffset;(e!==t.endContainer||n!==t.endOffset)&&((H(e)!=H(i)||-1==F(e,n,i,s))&&(i=e,s=n),c(t,i,s,e,n))}var n=function(){};n.prototype=o.rangePrototype,t.prototype=new n,N.extend(t.prototype,{setStart:function(t,e){m(t,!0),v(t,e),s(this,t,e)},setEnd:function(t,e){m(t,!0),v(t,e),r(this,t,e)},setStartAndEnd:function(){var t=arguments,e=t[0],n=t[1],i=e,s=n;switch(t.length){case 3:s=t[2];break;case 4:i=t[2],s=t[3]}c(this,e,n,i,s)},setBoundary:function(t,e,n){this["set"+(n?"Start":"End")](t,e)},setStartBefore:e(!0,!0),setStartAfter:e(!1,!0),setEndBefore:e(!0,!1),setEndAfter:e(!1,!1),collapse:function(t){A(this),t?c(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):c(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(t){m(t,!0),c(this,t,0,t,J(t))},selectNode:function(t){m(t,!1),g(t,V);var e=l(t),n=p(t);c(this,e.node,e.offset,n.node,n.offset)},extractContents:I(h,c),deleteContents:I(u,c),canSurroundContents:function(){A(this),y(this.startContainer),y(this.endContainer);var t=new d(this,!0),e=t._first&&i(t._first,this)||t._last&&i(t._last,this);return t.detach(),!e},splitBoundaries:function(){S(this)},splitBoundariesPreservingPositions:function(t){S(this,t)},normalizeBoundaries:function(){A(this);var s=this.startContainer,r=this.startOffset,o=this.endContainer,a=this.endOffset,t=function(t){var e=t.nextSibling;e&&e.nodeType==t.nodeType&&(a=(o=t).length,t.appendData(e.data),e.parentNode.removeChild(e))},e=function(t){var e=t.previousSibling;if(e&&e.nodeType==t.nodeType){var n=(s=t).length;if(r=e.length,t.insertData(0,e.data),e.parentNode.removeChild(e),s==o)a+=r,o=s;else if(o==t.parentNode){var i=$(t);a==i?(o=t,a=n):ix",st=3==it.firstChild.nodeType}catch(mt){}var rt=(o.features.htmlParsingConforms=st)?function(t){var e=this.startContainer,n=U(e);if(!e)throw new z("INVALID_STATE_ERR");var i=null;return 1==e.nodeType?i=e:L(e)&&(i=O.parentElement(e)),(i=null===i||"HTML"==i.nodeName&&O.isHtmlNamespace(U(i).documentElement)&&O.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1)).innerHTML=t,O.fragmentFromNodeChildren(i)}:function(t){var e=a(this).createElement("body");return e.innerHTML=t,O.fragmentFromNodeChildren(e)},ot=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],at=0,lt=1,ct=2,pt=3,ut=0,ht=1,dt=2,ft=3;N.extend(o.rangePrototype,{compareBoundaryPoints:function(t,e){A(this),b(this.startContainer,e.startContainer);var n,i,s,r,o=t==pt||t==at?"start":"end",a=t==lt||t==at?"start":"end";return n=this[o+"Container"],i=this[o+"Offset"],s=e[a+"Container"],r=e[a+"Offset"],F(n,i,s,r)},insertNode:function(t){if(A(this),g(t,X),y(this.startContainer),B(t,this.startContainer))throw new z("HIERARCHY_REQUEST_ERR");var e=n(t,this.startContainer,this.startOffset);this.setStartBefore(e)},cloneContents:function(){var t,e;if(A(this),this.collapsed)return a(this).createDocumentFragment();if(this.startContainer===this.endContainer&&L(this.startContainer))return(t=this.startContainer.cloneNode(!0)).data=t.data.slice(this.startOffset,this.endOffset),(e=a(this).createDocumentFragment()).appendChild(t),e;var n=new d(this,!0);return t=r(n),n.detach(),t},canSurroundContents:function(){A(this),y(this.startContainer),y(this.endContainer);var t=new d(this,!0),e=t._first&&i(t._first,this)||t._last&&i(t._last,this);return t.detach(),!e},surroundContents:function(t){if(g(t,Q),!this.canSurroundContents())throw new z("INVALID_STATE_ERR");var e=this.extractContents();if(t.hasChildNodes())for(;t.lastChild;)t.removeChild(t.lastChild);n(t,this.startContainer,this.startOffset),t.appendChild(e),this.selectNode(t)},cloneRange:function(){A(this);for(var t,e=new M(a(this)),n=ot.length;n--;)e[t=ot[n]]=this[t];return e},toString:function(){A(this);var t=this.startContainer;if(t===this.endContainer&&L(t))return 3==t.nodeType||4==t.nodeType?t.data.slice(this.startOffset,this.endOffset):"";var e=[],n=new d(this,!0);return c(n,function(t){(3==t.nodeType||4==t.nodeType)&&e.push(t.data)}),n.detach(),e.join("")},compareNode:function(t){A(this);var e=t.parentNode,n=$(t);if(!e)throw new z("NOT_FOUND_ERR");var i=this.comparePoint(e,n),s=this.comparePoint(e,n+1);return i<0?0=n&&t.start<=s&&(this.setStart(i,t.start-n),l=!0),l&&t.end>=n&&t.end<=s&&(this.setEnd(i,t.end-n),c=!0),n=s;else for(r=(o=i.childNodes).length;r--;)a.push(o[r])},getName:function(){return"DomRange"},equals:function(t){return M.rangesEqual(this,t)},isValid:function(){return T(this)},inspect:function(){return t(this)},detach:function(){}}),P(M,E),N.extend(M,{rangeProperties:ot,RangeIterator:d,copyComparisonConstants:j,createPrototypeRange:P,inspect:t,toHtml:C,getRangeDocument:a,rangesEqual:function(t,e){return t.startContainer===e.startContainer&&t.startOffset===e.startOffset&&t.endContainer===e.endContainer&&t.endOffset===e.endOffset}}),o.DomRange=M}),M.createCoreModule("WrappedRange",["DomRange"],function(u,h){var d,t,k=u.dom,f=u.util,T=k.DomPosition,m=u.DomRange,g=k.getBody,v=k.getContentDocument,A=k.isCharacterDataNode;if(u.features.implementsDomRange&&function(){function i(t){for(var e,n=s.length;n--;)t[e=s[n]]=t.nativeRange[e];t.collapsed=t.startContainer===t.endContainer&&t.startOffset===t.endOffset}function t(t,e,n,i,s){var r=t.startContainer!==e||t.startOffset!=n,o=t.endContainer!==i||t.endOffset!=s,a=!t.equals(t.nativeRange);(r||o||a)&&(t.setEnd(i,s),t.setStart(e,n))}var e,n,s=m.rangeProperties;d=function(t){if(!t)throw h.createError("WrappedRange: Range must be specified");this.nativeRange=t,i(this)},m.createPrototypeRange(d,t),(e=d.prototype).selectNode=function(t){this.nativeRange.selectNode(t),i(this)},e.cloneContents=function(){return this.nativeRange.cloneContents()},e.surroundContents=function(t){this.nativeRange.surroundContents(t),i(this)},e.collapse=function(t){this.nativeRange.collapse(t),i(this)},e.cloneRange=function(){return new d(this.nativeRange.cloneRange())},e.refresh=function(){i(this)},e.toString=function(){return this.nativeRange.toString()};var r=document.createTextNode("test");g(document).appendChild(r);var o=document.createRange();o.setStart(r,0),o.setEnd(r,0);try{o.setStart(r,1),e.setStart=function(t,e){this.nativeRange.setStart(t,e),i(this)},e.setEnd=function(t,e){this.nativeRange.setEnd(t,e),i(this)},n=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(b){e.setStart=function(t,e){try{this.nativeRange.setStart(t,e)}catch(d){this.nativeRange.setEnd(t,e),this.nativeRange.setStart(t,e)}i(this)},e.setEnd=function(t,e){try{this.nativeRange.setEnd(t,e)}catch(d){this.nativeRange.setStart(t,e),this.nativeRange.setEnd(t,e)}i(this)},n=function(e,n){return function(t){try{this.nativeRange[e](t)}catch(k){this.nativeRange[n](t),this.nativeRange[e](t)}i(this)}}}e.setStartBefore=n("setStartBefore","setEndBefore"),e.setStartAfter=n("setStartAfter","setEndAfter"),e.setEndBefore=n("setEndBefore","setStartBefore"),e.setEndAfter=n("setEndAfter","setStartAfter"),e.selectNodeContents=function(t){this.setStartAndEnd(t,0,k.getNodeLength(t))},o.selectNodeContents(r),o.setEnd(r,3);var a=document.createRange();a.selectNodeContents(r),a.setEnd(r,4),a.setStart(r,2),e.compareBoundaryPoints=-1==o.compareBoundaryPoints(o.START_TO_END,a)&&1==o.compareBoundaryPoints(o.END_TO_START,a)?function(t,e){return t==(e=e.nativeRange||e).START_TO_END?t=e.END_TO_START:t==e.END_TO_START&&(t=e.START_TO_END),this.nativeRange.compareBoundaryPoints(t,e)}:function(t,e){return this.nativeRange.compareBoundaryPoints(t,e.nativeRange||e)};var l=document.createElement("div");l.innerHTML="123";var c=l.firstChild,p=g(document);p.appendChild(l),o.setStart(c,1),o.setEnd(c,2),o.deleteContents(),"13"==c.data&&(e.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},e.extractContents=function(){var t=this.nativeRange.extractContents();return i(this),t}),p.removeChild(l),p=null,f.isHostMethod(o,"createContextualFragment")&&(e.createContextualFragment=function(t){return this.nativeRange.createContextualFragment(t)}),g(document).removeChild(r),e.getName=function(){return"WrappedRange"},u.WrappedRange=d,u.createNativeRange=function(t){return(t=v(t,h,"createNativeRange")).createRange()}}(),u.features.implementsTextRange){var s=function(t){var e=t.parentElement(),n=t.duplicate();n.collapse(!0);var i=n.parentElement();(n=t.duplicate()).collapse(!1);var s=n.parentElement(),r=i==s?i:k.getCommonAncestor(i,s);return r==e?r:k.getCommonAncestor(e,r)},r=function(t){return 0==t.compareEndPoints("StartToEnd",t)},o=function(t,e,n,i,s){var r=t.duplicate();r.collapse(n);var o=r.parentElement();if(k.isOrIsAncestorOf(e,o)||(o=e),!o.canHaveHTML){var a=new T(o.parentNode,k.getNodeIndex(o));return{boundaryPosition:a,nodeInfo:{nodeIndex:a.offset,containerElement:a.node}}}var l=k.getDocument(o).createElement("span");l.parentNode&&l.parentNode.removeChild(l);for(var c,p,u,h,d,f=n?"StartToStart":"StartToEnd",m=s&&s.containerElement==o?s.nodeIndex:0,g=o.childNodes.length,v=g,b=v;b==g?o.appendChild(l):o.insertBefore(l,o.childNodes[b]),r.moveToElementText(l),0!=(c=r.compareEndPoints(f,t))&&m!=v;){if(-1==c){if(v==m+1)break;m=b}else v=v==m+1?m:b;b=Math.floor((m+v)/2),o.removeChild(l)}if(d=l.nextSibling,-1==c&&d&&A(d)){var y;if(r.setEndPoint(n?"EndToStart":"EndToEnd",t),/[\r\n]/.test(d.data)){var _=r.duplicate(),w=_.text.replace(/\r\n/g,"\r").length;for(y=_.moveStart("character",w);-1==(c=_.compareEndPoints("StartToEnd",_));)y++,_.moveStart("character",1)}else y=r.text.length;h=new T(d,y)}else p=(i||!n)&&l.previousSibling,h=(u=(i||n)&&l.nextSibling)&&A(u)?new T(u,0):p&&A(p)?new T(p,p.data.length):new T(o,k.getNodeIndex(l));return l.parentNode.removeChild(l),{boundaryPosition:h,nodeInfo:{nodeIndex:b,containerElement:o}}},a=function(t,e){var n,i,s,r,o=t.offset,a=k.getDocument(t.node),l=g(a).createTextRange(),c=A(t.node);return c?i=(n=t.node).parentNode:(n=o<(r=t.node.childNodes).length?r[o]:null,i=t.node),(s=a.createElement("span")).innerHTML="&#feff;",n?i.insertBefore(s,n):i.appendChild(s),l.moveToElementText(s),l.collapse(!e),i.removeChild(s),c&&l[e?"moveStart":"moveEnd"]("character",o),l};(t=function(t){this.textRange=t,this.refresh()}).prototype=new m(document),t.prototype.refresh=function(){var t,e,n,i=s(this.textRange);r( this.textRange)?e=t=o(this.textRange,i,!0,!0).boundaryPosition:(t=(n=o(this.textRange,i,!0,!1)).boundaryPosition,e=o(this.textRange,i,!1,!1,n.nodeInfo).boundaryPosition),this.setStart(t.node,t.offset),this.setEnd(e.node,e.offset)},t.prototype.getName=function(){return"WrappedTextRange"},m.copyComparisonConstants(t);var b=function(t){if(t.collapsed)return a(new T(t.startContainer,t.startOffset),!0);var e=a(new T(t.startContainer,t.startOffset),!0),n=a(new T(t.endContainer,t.endOffset),!1),i=g(m.getRangeDocument(t)).createTextRange();return i.setEndPoint("StartToStart",e),i.setEndPoint("EndToEnd",n),i};if(t.rangeToTextRange=b,t.prototype.toTextRange=function(){return b(this)},u.WrappedTextRange=t,!u.features.implementsDomRange||u.config.preferTextRange){var e=Function("return this;")();"undefined"==typeof e.Range&&(e.Range=t),u.createNativeRange=function(t){return t=v(t,h,"createNativeRange"),g(t).createTextRange()},u.WrappedRange=t}}u.createRange=function(t){return t=v(t,h,"createRange"),new u.WrappedRange(u.createNativeRange(t))},u.createRangyRange=function(t){return t=v(t,h,"createRangyRange"),new m(t)},u.createIframeRange=function(t){return h.deprecationNotice("createIframeRange()","createRange(iframeEl)"),u.createRange(t)},u.createIframeRangyRange=function(t){return h.deprecationNotice("createIframeRangyRange()","createRangyRange(iframeEl)"),u.createRangyRange(t)},u.addShimListener(function(t){var e=t.document;"undefined"==typeof e.createRange&&(e.createRange=function(){return u.createRange(e)}),e=t=null})}),M.createCoreModule("WrappedSelection",["DomRange","WrappedRange"],function(h,l){function r(t){return"string"==typeof t?/^backward(s)?$/i.test(t):!!t}function s(t,e){if(t){if(j.isWindow(t))return t;if(t instanceof y)return t.win;var n=j.getContentDocument(t,l,e);return j.getWindow(n)}return window}function t(t){return s(t,"getWinSelection").getSelection()}function o(t){return s(t,"getDocSelection").document.selection}function d(t){var e=!1;return t.anchorNode&&(e=1==j.comparePoints(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)),e}function a(t,e,n){var i=n?"end":"start",s=n?"start":"end";t.anchorNode=e[i+"Container"],t.anchorOffset=e[i+"Offset"],t.focusNode=e[s+"Container"],t.focusOffset=e[s+"Offset"]}function c(t){var e=t.nativeSelection;t.anchorNode=e.anchorNode,t.anchorOffset=e.anchorOffset,t.focusNode=e.focusNode,t.focusOffset=e.focusOffset}function p(t){t.anchorNode=t.focusNode=null,t.anchorOffset=t.focusOffset=0,t.rangeCount=0,t.isCollapsed=!0,t._ranges.length=0}function u(t){var e;return t instanceof D?((e=h.createNativeRange(t.getDocument())).setEnd(t.endContainer,t.endOffset),e.setStart(t.startContainer,t.startOffset)):t instanceof E?e=t.nativeRange:N.implementsDomRange&&t instanceof j.getWindow(t.startContainer).Range&&(e=t),e}function n(t){if(!t.length||1!=t[0].nodeType)return!1;for(var e=1,n=t.length;e=this.rangeCount)throw new M("INDEX_SIZE_ERR");return this._ranges[t].cloneRange()},F)it=function(t){var e;h.isSelectionValid(t.win)?e=t.docSelection.createRange():(e=L(t.win.document).createTextRange()).collapse(!0),t.docSelection.type==R?v(t):m(e)?g(t,e):p(t)};else if(P(q,"getRangeAt")&&typeof q.rangeCount==x)it=function(t){if(tt&&U&&t.docSelection.type==R)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var e=0,n=t.rangeCount;en&&--t.offset}function m(t,e,n,i){-1==n&&(n=e.childNodes.length);var s=t.parentNode,r=N.getNodeIndex(t);$(i,function(t){a(t,s,r,e,n)}),e.childNodes.length==n?e.appendChild(t):e.insertBefore(t,e.childNodes[n])}function c(t,e){var n=t.parentNode,i=N.getNodeIndex(t);$(e,function(t){l(t,n,i)}),t.parentNode.removeChild(t)}function p(t,e,n,i,s){for(var r,o=[];r=t.firstChild;)m(r,e,n++,s),o.push(r);return i&&c(t,s),o}function g(t,e){return p(t,t.parentNode,N.getNodeIndex(t),!0,e)}function v(t,e){var n=t.cloneRange();n.selectNodeContents(e);var i=n.intersection(t);return""!=(i?i.toString():"")}function b(t){for(var e,n=t.getNodes([3]),i=0;(e=n[i])&&!v(t,e);)++i;for(var s=n.length-1;(e=n[s])&&!v(t,e);)--s;return n.slice(i,s+1)}function y(t,e){if(t.attributes.length!=e.attributes.length)return!1;for(var n,i,s,r=0,o=t.attributes.length;rr&&(--t.offset,t.offset==r+1&&len-1>n&&(t.node=i,t.offset=a))})),o[n]=e.data,a+=e.data.length}),i.data=o.join("")}return i.data},getLength:function(){for(var t=this.textNodes.length,e=0;t--;)e+=this.textNodes[t].length;return e},toString:function(){var n=[];return $(this.textNodes,function(t,e){n[e]="'"+t.data+"'"}),"[Merge("+n.join(",")+")]"}};var H=["elementTagName","ignoreWhiteSpace","applyToEditableOnly","useExistingElements","removeEmptyElements","onElementCreate"],K={};P.prototype={elementTagName:B,elementProperties:{},elementAttributes:{},ignoreWhiteSpace:!0,applyToEditableOnly:!1,useExistingElements:!0,removeEmptyElements:!0,onElementCreate:null,copyPropertiesToElement:function(t,e,n){var i,s,r,o,a,l,c={};for(var p in t)if(t.hasOwnProperty(p))if(o=t[p],a=e[p],"className"==p)M(e,o),M(e,this.className),e[p]=f(e[p]),n&&(c[p]=o);else if("style"==p){for(i in s=a,n&&(c[p]=r={}),t[p])t[p].hasOwnProperty(i)&&(s[i]=o[i],n&&(r[i]=s[i]));this.attrExceptions.push(p)}else e[p]=o,n&&(c[p]=e[p],l=K.hasOwnProperty(p)?K[p]:p,this.attrExceptions.push(l));return n?c:""},copyAttributesToElement:function(t,e){for(var n in t)t.hasOwnProperty(n)&&!/^class(?:Name)?$/i.test(n)&&e.setAttribute(n,t[n])},appliesToElement:function(t){return z(this.tagNames,t.tagName.toLowerCase())},getEmptyElements:function(t){var e=this;return t.getNodes([1],function(t){return e.appliesToElement(t)&&!t.hasChildNodes()})},hasClass:function(t){return 1==t.nodeType&&(this.applyToAnyTagName||this.appliesToElement(t))&&E(t,this.className)},getSelfOrAncestorWithClass:function(t){for(;t;){if(this.hasClass(t))return t;t=t.parentNode}return null},isModifiable:function(t){return!this.applyToEditableOnly||w(t)},isIgnorableWhiteSpaceNode:function(t){return this.ignoreWhiteSpace&&t&&3==t.nodeType&&T(t)},postApply:function(t,e,n,s){var r,o,a=t[0],l=t[t.length-1],c=[],p=a,u=l,h=0,d=l.length;$(t,function(t){(o=J(t,!s))?(r||(r=new I(o),c.push(r)),r.textNodes.push(t),t===a&&(p=r.textNodes[0],h=p.length),t===l&&(u=r.textNodes[0],d=r.getLength())):r=null});var f=W(l,!s);if(f&&(r||(r=new I(l),c.push(r)),r.textNodes.push(f)),c.length){for(i=0,len=c.length;len>i;++i)c[i].doMerge(n);e.setStartAndEnd(p,h,u,d)}},createContainer:function(t){var e=t.createElement(this.elementTagName);return this.copyPropertiesToElement(this.elementProperties,e,!1),this.copyAttributesToElement(this.elementAttributes,e),M(e,this.className),this.onElementCreate&&this.onElementCreate(e,this),e},elementHasProperties:function(n,t){var i=this;return h(t,function(t,e){if("className"==t)return o(n,e);if("object"==typeof e){if(!i.elementHasProperties(n[t],e))return!1}else if(n[t]!==e)return!1})},elementHasAttributes:function(n,t){return h(t,function(t,e){return n.getAttribute(t)===e&&void 0})},applyToTextNode:function(t){var e=t.parentNode;if(1==e.childNodes.length&&this.useExistingElements&&L(e)&&this.appliesToElement(e)&&this.elementHasProperties(e,this.elementProperties)&&this.elementHasAttributes(e,this.elementAttributes))M(e,this.className);else{var n=this.createContainer(N.getDocument(t));t.parentNode.insertBefore(n,t),n.appendChild(t)}},isRemovable:function(t){return L(t)&&t.tagName.toLowerCase()==this.elementTagName&&n(t)==this.elementSortedClassName&&this.elementHasProperties(t,this.elementProperties)&&!e(t,this.attrExceptions)&&this.elementHasAttributes(t,this.elementAttributes)&&this.isModifiable(t)},isEmptyContainer:function(t){var e=t.childNodes.length;return 1==t.nodeType&&this.isRemovable(t)&&(0==e||1==e&&this.isEmptyContainer(t.firstChild))},removeEmptyContainers:function(t){var e=this,n=t.getNodes([1],function(t){return e.isEmptyContainer(t)}),i=[t],s=A(i);$(n,function(t){c(t,s)}),S(i,s)},undoToTextNode:function(t,e,n,i){if(!e.containsNode(n)){var s=e.cloneRange();s.selectNode(n),s.isPointInRange(e.endContainer,e.endOffset)&&(x(n,e.endContainer,e.endOffset,i),e.setEndAfter(n)),s.isPointInRange(e.startContainer,e.startOffset)&&(n=x(n,e.startContainer,e.startOffset,i))}this.isRemovable(n)?g(n,i):O(n,this.className)},splitAncestorWithClass:function(t,e,n){var i=this.getSelfOrAncestorWithClass(t);i&&x(i,t,e,n)},undoToAncestor:function(t,e){this.isRemovable(t)?g(t,e):O(t,this.className)},applyToRange:function(t,e){var n=this,i=A((e=e||[])||[]);t.splitBoundariesPreservingPositions(i),n.removeEmptyElements&&n.removeEmptyContainers(t);var s=b(t);if(s.length){$(s,function(t){n.isIgnorableWhiteSpaceNode(t)||n.getSelfOrAncestorWithClass(t)||!n.isModifiable(t)||n.applyToTextNode(t,i)});var r=s[s.length-1];t.setStartAndEnd(s[0],0,r,r.length),n.normalize&&n.postApply(s,t,i,!1),S(e,i)}var o=n.getEmptyElements(t);$(o,function(t){M(t,n.className)})},applyToRanges:function(t){for(var e=t.length;e--;)this.applyToRange(t[e],t);return t},applyToSelection:function(t){var e=s.getSelection(t);e.setRanges(this.applyToRanges(e.getAllRanges()))},undoToRange:function(t,e){var n=this,i=A(e=e||[]);t.splitBoundariesPreservingPositions(i),n.removeEmptyElements&&n.removeEmptyContainers(t,i);var s,r,o=b(t),a=o[o.length-1];if(o.length){n.splitAncestorWithClass(t.endContainer,t.endOffset,i),n.splitAncestorWithClass(t.startContainer,t.startOffset,i);for(var l=0,c=o.length;l1

    ";var e=W(document),n=t.firstChild,i=h.getSelection();e.appendChild(t),i.collapse(n.lastChild,2),i.setStart(n.firstChild,0),1==(""+i).length,t.innerHTML="1
    ",i.collapse(t,2),i.setStart(t.firstChild,0),Q=1==(""+i).length,t.innerHTML="1

    1

    ",i.collapse(t,2),i.setStart(t.firstChild,0),tt=1==(""+i).length,e.removeChild(t),i.removeAllRanges()}();var nt,it,st,rt={includeBlockContentTrailingSpace:!0,includeSpaceBeforeBr:!0,includeSpaceBeforeBlock:!0,includePreLineTrailingSpace:!0,ignoreCharacters:""},ot={includeBlockContentTrailingSpace:!et,includeSpaceBeforeBr:!Q,includeSpaceBeforeBlock:!tt,includePreLineTrailingSpace:!0},at={en:{wordRegex:/[a-z0-9]+('[a-z0-9]+)*/gi,includeTrailingSpace:!1,tokenizer:t}},lt={caseSensitive:!1,withinRange:null,wholeWordsOnly:!1,wrap:!1,direction:"forward",wordOptions:null,characterOptions:null},ct={wordOptions:null,characterOptions:null},pt={wordOptions:null,characterOptions:null,trim:!1,trimStart:!0,trimEnd:!0},ut={wordOptions:null,characterOptions:null,direction:"forward"},ht=F.getComputedStyleProperty;it=document.createElement("table"),(st=W(document)).appendChild(it),nt="block"==ht(it,"display"),st.removeChild(it),h.features.tableCssDisplayBlock=nt;var dt={table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell"};_.prototype={get:function(t){return this.store.hasOwnProperty(t)?this.store[t]:null},set:function(t,e){return this.store[t]=e}};var ft={getPosition:function(t){var e=this.positions;return e.get(t)||e.set(t,new T(this,t))},toString:function(){return"[NodeWrapper("+F.inspectNode(this.node)+")]"}};k.prototype=ft;var mt="EMPTY",gt="NON_SPACE",vt="UNCOLLAPSIBLE_SPACE",bt="COLLAPSIBLE_SPACE",yt="TRAILING_SPACE_BEFORE_BLOCK",_t="TRAILING_SPACE_IN_BLOCK",wt="TRAILING_SPACE_BEFORE_BR",kt="PRE_LINE_TRAILING_SPACE_BEFORE_LINE_BREAK",Tt="TRAILING_LINE_BREAK_AFTER_BR";G(ft,{isCharacterDataNode:w("isCharacterDataNode",F.isCharacterDataNode,"node"),getNodeIndex:w("nodeIndex",F.getNodeIndex,"node"),getLength:w("nodeLength",F.getNodeLength,"node"),containsPositions:w("containsPositions",o,"node"),isWhitespace:w("isWhitespace",g,"node"),isCollapsedWhitespace:w("isCollapsedWhitespace",v,"node"),getComputedDisplay:w("computedDisplay",s,"node"),isCollapsed:w("collapsed",b,"node"),isIgnored:w("ignored",y,"node"),next:w("nextPos",u,"node"),previous:w("previous",m,"node"),getTextNodeInfo:w("textNodeInfo",function(t){var e=null,n=!1,i=ht(t.parentNode,"whiteSpace"),s="pre-line"==i;return s?(e=K,n=!0):("normal"==i||"nowrap"==i)&&(e=H,n=!0),{node:t,text:t.data,spaceRegex:e,collapseSpaces:n,preLine:s}},"node"),hasInnerText:w("hasInnerText",function(t,e){for(var n=this.session,i=n.getPosition(t.parentNode,this.getNodeIndex()+1),s=n.getPosition(t,0),r=e?i:s,o=e?s:i;r!==o;){if(r.prepopulateChar(),r.isDefinitelyNonEmpty())return!0;r=e?r.previousVisible():r.nextVisible()}return!1},"node"),isRenderedBlock:w("isRenderedBlock",function(t){for(var e=t.getElementsByTagName("br"),n=0,i=e.length;nt.start},isContiguousWith:function(t){return this.start==t.end||this.end==t.start},union:function(t){return new A(Math.min(this.start,t.start),Math.max(this.end,t.end))},intersection:function(t){return new A(Math.max(this.start,t.start),Math.min(this.end,t.end))},getComplements:function(t){var e=[];if(this.start>=t.start){if(this.end<=t.end)return[];e.push(new A(t.end,this.end))}else e.push(new A(this.start,Math.min(this.end,t.start))),this.end>t.end&&e.push(new A(t.end,this.end));return e},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},A.fromCharacterRange=function(t){return new A(t.start,t.end)};var l,c={rangeToCharacterRange:function(t,e){var n=t.getBookmark(e);return new A(n.start,n.end)},characterRangeToRange:function(t,e,n){var i=T.createRange(t);return i.moveToBookmark({start:e.start,end:e.end,containerNode:n}),i},serializeSelection:function(t,e){for(var n=t.getAllRanges(),i=[],s=1==n.length&&t.isBackward(),r=0,o=n.length;r/?]+)\\.)+"+"(?:ac|ad|aero|ae|af|ag|ai|al|am|an|ao|aq|arpa|ar|asia|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|biz|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|cat|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|coop|com|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|info|int|in|io|iq|ir|is|it|je|jm|jobs|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mobi|mo|mp|mq|mr|ms|mt|museum|mu|mv|mw|mx|my|mz|name|na|nc|net|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pro|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tel|tf|tg|th|tj|tk|tl|tm|tn|to|tp|travel|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|xn--0zwm56d|xn--11b5bs3a9aj6g|xn--80akhbyknj4f|xn--9t4b11yi5a|xn--deba0ad|xn--g6w251d|xn--hgbk6aj7f53bba|xn--hlcj6aya9esc7a|xn--jxalpdlp|xn--kgbechtv|xn--zckzah|ye|yt|yu|za|zm|zw)"+"|"+"(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])"+")",n="(?:\\?[^#<>\\s]*)?(?:#[^<>\\s]*)?",g="mailto:",v=new RegExp("(?:"+("\\b"+t+"[^<>\\s]+")+"|"+("\\b"+e+"(?:[;/][^#?<>\\s]*)?"+n+"(?!\\w)")+"|"+("(?:"+g+")?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+e+n+"(?!\\w)")+")","ig"),b=new RegExp("^"+t,"i"),y={"'":"`",">":"<",")":"(","]":"[","}":"{","\xbb":"\xab","\u203a":"\u2039"},_={callback:function(t,e){return e?''+t+"":t},punct_regexp:/(?:[!?.,:;'"]|(?:&|&)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)$/};return function(t,e){e=e||{},t=t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">");var n,i,s,r,o,a,l,c,p,u,h,d,f="",m=[];for(i in _)e[i]===undefined&&(e[i]=_[i]);for(;n=v.exec(t);)if(s=n[0],l=(a=v.lastIndex)-s.length,!/[\/:]/.test(t.charAt(l-1))){for(;d=(c=s).substr(-1),(h=y[d])&&(p=s.match(new RegExp("\\"+h+"(?!$)","g")),u=s.match(new RegExp("\\"+d,"g")),(p?p.length:0)<(u?u.length:0)&&(s=s.substr(0,s.length-1),a--)),e.punct_regexp&&(s=s.replace(e.punct_regexp,function(t){return a-=t.length,""})),s.length&&s!==c;);r=s,b.test(r)||(r=(-1!==r.indexOf("@")?r.indexOf(g)?g:"":r.indexOf("irc.")?r.indexOf("ftp.")?"http://":"ftp://":"irc://")+r),o!=l&&(m.push([t.slice(o,l)]),o=a),r&&r.substr&&"mailto:"!=r.substr(0,7)?m.push([s,r]):m.push([s,undefined])}for(m.push([t.substr(o)]),i=0;i'),this.$element.hasClass("input-lg")&&this.$wrapper.addClass("input-lg"),this.$element.hasClass("input-sm")&&this.$wrapper.addClass("input-sm"),"rtl"===this.textDirection&&this.$wrapper.addClass("rtl");var h=this.$element.prop("id")||(new Date).getTime()+""+Math.floor(100*(1+Math.random()));this.$input=y('').appendTo(this.$wrapper).prop("placeholder",this.$element.prop("placeholder")).prop("id",h+"-tokenfield").prop("tabindex",this.$element.data("original-tabindex"));var d=y('label[for="'+this.$element.prop("id")+'"]');if(d.length&&d.prop("for",this.$input.prop("id")),this.$copyHelper=y('').css("position","absolute").css(p,"-10000px").prop("tabindex",-1).prependTo(this.$wrapper),l?this.$wrapper.css("width",l):o?this.$wrapper.css("width",o):this.$element.parents(".form-inline").length&&this.$wrapper.width(c),(this.$element.prop("disabled")||this.$element.parents("fieldset[disabled]").length)&&this.disable(),this.$element.prop("readonly")&&this.readonly(),this.$mirror=y(''),this.$input.css("min-width",this.options.minWidth+"px"),y.each(["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent"],function(t,e){n.$mirror[0].style[e]=n.$input.css(e)}),this.$mirror.appendTo("body"),this.$wrapper.insertBefore(this.$element),this.$element.prependTo(this.$wrapper),this.update(),this.setTokens(this.options.tokens,!1,!this.$element.val()&&this.options.tokens),this.listen(),!y.isEmptyObject(this.options.autocomplete)){var f="rtl"===this.textDirection?"right":"left",m=y.extend({minLength:this.options.showAutocompleteOnFocus?0:null,position:{my:f+" top",at:f+" bottom",of:this.$wrapper}},this.options.autocomplete);this.$input.autocomplete(m)}if(!y.isEmptyObject(this.options.typeahead)){var g=this.options.typeahead,v={minLength:this.options.showAutocompleteOnFocus?0:null},b=Array.isArray(g)?g:[g,g];b[0]=y.extend({},v,b[0]),this.$input.typeahead.apply(this.$input,b),this.typeahead=!0}};a.prototype={constructor:a,createToken:function(t,e){var n=this;if(void 0===e&&(e=!0),(t="string"==typeof t?{value:t,label:t}:y.extend({},t)).value=t.value.toString().trim(),t.label=t.label&&t.label.length?t.label.trim():t.value,t.value.length&&t.label.length&&!(t.label.length<=this.options.minLength)&&!(this.options.limit&&this.getTokens().length>=this.options.limit)){var i=y.Event("tokenfield:createtoken",{attrs:t});if(this.$element.trigger(i),i.attrs&&!i.isDefaultPrevented()){var s=y('
    ').append('').append('×').data("attrs",t);this.$input.hasClass("tt-input")?this.$input.parent().before(s):this.$input.before(s),this.$input.css("width",this.options.minWidth+"px");var r=s.find(".token-label"),o=s.find(".close");r.text(t.label),s.on("mousedown",function(){if(n._disabled||n._readonly)return!1;n.preventDeactivation=!0}).on("click",function(t){return!n._disabled&&!n._readonly&&(n.preventDeactivation=!1,t.ctrlKey||t.metaKey?(t.preventDefault(),n.toggle(s)):void n.activate(s,t.shiftKey,t.shiftKey))}).on("dblclick",function(){if(n._disabled||n._readonly||!n.options.allowEditing)return!1;n.edit(s)}),o.on("click",y.proxy(this.remove,this)),this.$element.trigger(y.Event("tokenfield:createdtoken",{attrs:t,relatedTarget:s.get(0)})),e&&this.$element.val(this.getTokensList()).trigger(y.Event("change",{initiator:"tokenfield"}));n=this;return setTimeout(function(){n.update()},0),this.$element.get(0)}this.updateTokensOnEditDiscard(e)}},updateTokensOnEditDiscard:function(t){this.$input.data("edit")&&t&&this.$element.val(this.getTokensList()).trigger(y.Event("change",{initiator:"tokenfield"}))},setTokens:function(t,e,n){if(e||this.$wrapper.find(".token").remove(),t){void 0===n&&(n=!0),"string"==typeof t&&(t=this._delimiters.length?t.split(new RegExp("["+this._delimiters.join("")+"]")):[t]);var i=this;return y.each(t,function(t,e){i.createToken(e,n)}),this.$element.get(0)}this.updateTokensOnEditDiscard(n)},getTokenData:function(t){var e=t.map(function(){return y(this).data("attrs")}).get();return 1==e.length&&(e=e[0]),e},getTokens:function(t){var e=this,n=[],i=t?".active":"";return this.$wrapper.find(".token"+i).each(function(){n.push(e.getTokenData(y(this)))}),n},getTokensList:function(t,e,n){var i=(t=t||this._firstDelimiter)+((e=null!=e?e:this.options.beautify)&&" "!==t?" ":"");return y.map(this.getTokens(n),function(t){return t.value}).join(i)},getInput:function(){return this.$input.val()},setInput:function(t){this.$input.hasClass("tt-input")?this.$input.typeahead("val",t):this.$input.val(t)},listen:function(){var n=this;this.$element.on("change",y.proxy(this.change,this)),this.$wrapper.on("mousedown",y.proxy(this.focusInput,this)),this.$input.on("focus",y.proxy(this.focus,this)).on("blur",y.proxy(this.blur,this)).on("paste",y.proxy(this.paste,this)).on("keydown",y.proxy(this.keydown,this)).on("keypress",y.proxy(this.keypress,this)).on("keyup",y.proxy(this.keyup,this)),this.$copyHelper.on( "focus",y.proxy(this.focus,this)).on("blur",y.proxy(this.blur,this)).on("keydown",y.proxy(this.keydown,this)).on("keyup",y.proxy(this.keyup,this)),this.$input.on("keypress",y.proxy(this.update,this)).on("keyup",y.proxy(this.update,this)),this.$input.on("autocompletecreate",function(){var t=y(this).data("ui-autocomplete").menu.element,e=n.$wrapper.outerWidth()-parseInt(t.css("border-left-width"),10)-parseInt(t.css("border-right-width"),10);t.css("min-width",e+"px")}).on("autocompleteselect",function(t,e){return n.createToken(e.item)&&(n.$input.val(""),n.$input.data("edit")&&n.unedit(!0)),!1}).on("typeahead:selected typeahead:autocompleted",function(t,e){n.createToken(e)&&(n.$input.typeahead("val",""),n.$input.data("edit")&&n.unedit(!0))}),y(_).on("resize",y.proxy(this.update,this))},keydown:function(s){function t(t){if(r.$input.is(document.activeElement)){if(0this.$firstActiveToken.index())return this.deactivate(e)}var n=this.$wrapper.find(".active:first").prevAll(".token:first");n.length||(n=this.$wrapper.find(".token:first")),n.length||t?this.activate(n,t):this.$input.focus()},activate:function(t,e,n,i){if(t){if(void 0===i)i=!0;if(n)e=!0;if(this.$copyHelper.focus(),e||(this.$wrapper.find(".active").removeClass("active"),i?this.$firstActiveToken=t:delete this.$firstActiveToken),n&&this.$firstActiveToken){var s=this.$firstActiveToken.index()-2,r=t.index()-2,o=this;this.$wrapper.find(".token").slice(Math.min(s,r)+1,Math.max(s,r)).each(function(){o.activate(y(this),!0)})}t.addClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select()}},activateAll:function(){var e=this;this.$wrapper.find(".token").each(function(t){e.activate(y(this),0!==t,!1,!1)})},deactivate:function(t){t&&(t.removeClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select())},toggle:function(t){t&&(t.toggleClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select())},edit:function(t){if(t){var e=t.data("attrs"),n={attrs:e,relatedTarget:t.get(0)},i=y.Event("tokenfield:edittoken",n);if(this.$element.trigger(i),!i.isDefaultPrevented()){t.find(".token-label").text(e.value);var s=t.outerWidth(),r=this.$input.hasClass("tt-input")?this.$input.parent():this.$input;t.replaceWith(r),this.preventCreateTokens=!0,this.$input.val(e.value).select().data("edit",!0).width(s),this.update(),this.$element.trigger(y.Event("tokenfield:editedtoken",n))}}},unedit:function(t){if((this.$input.hasClass("tt-input")?this.$input.parent():this.$input).appendTo(this.$wrapper),this.$input.data("edit",!1),this.$mirror.text(""),this.update(),t){var e=this;setTimeout(function(){e.$input.focus()},1)}},remove:function(t,e){if(!(this.$input.is(document.activeElement)||this._disabled||this._readonly)){var n="click"===t.type?y(t.target).closest(".token"):this.$wrapper.find(".token.active");if("click"!==t.type){if(!e)e="prev";if(this[e](),"prev"===e)var i=0===n.first().prevAll(".token:first").length}var s={attrs:this.getTokenData(n),relatedTarget:n.get(0)},r=y.Event("tokenfield:removetoken",s);if(this.$element.trigger(r),!r.isDefaultPrevented()){var o=y.Event("tokenfield:removedtoken",s),a=y.Event("change",{initiator:"tokenfield"});n.remove(),this.$element.val(this.getTokensList()).trigger(o).trigger(a),this.$wrapper.find(".token").length&&"click"!==t.type&&!i||this.$input.focus(),this.$input.css("width",this.options.minWidth+"px"),this.update(),t.preventDefault(),t.stopPropagation()}}},update:function(){var t=this.$input.val(),e=parseInt(this.$input.css("padding-left"),10)+parseInt(this.$input.css("padding-right"),10);if(this.$input.data("edit")){if(t||(t=this.$input.prop("placeholder")),t===this.$mirror.text())return;this.$mirror.text(t);var n=this.$mirror.width()+10;if(n>this.$wrapper.width())return this.$input.width(this.$wrapper.width());this.$input.width(n)}else{this.$input.width(this.options.minWidth);var i="rtl"===this.textDirection?this.$input.offset().left+this.$input.outerWidth()-this.$wrapper.offset().left-parseInt(this.$wrapper.css("padding-left"),10)-e-1:this.$wrapper.offset().left+this.$wrapper.width()+parseInt(this.$wrapper.css("padding-left"),10)-this.$input.offset().left-e;isNaN(i)?this.$input.width("100%"):this.$input.width(i)}},focusInput:function(t){if(!(y(t.target).closest(".token").length||y(t.target).closest(".token-input").length||y(t.target).closest(".tt-dropdown-menu").length)){var e=this;setTimeout(function(){e.$input.focus()},0)}},search:function(){this.$input.data("ui-autocomplete")&&this.$input.autocomplete("search")},disable:function(){this.setProperty("disabled",!0)},enable:function(){this.setProperty("disabled",!1)},readonly:function(){this.setProperty("readonly",!0)},writeable:function(){this.setProperty("readonly",!1)},setProperty:function(t,e){this["_"+t]=e,this.$input.prop(t,e),this.$element.prop(t,e),this.$wrapper[e?"addClass":"removeClass"](t)},destroy:function(){this.$element.val(this.getTokensList()),this.$element.css(this.$element.data("original-styles")),this.$element.prop("tabindex",this.$element.data("original-tabindex"));var t=y('label[for="'+this.$input.prop("id")+'"]');return t.length&&t.prop("for",this.$element.prop("id")),this.$element.insertBefore(this.$wrapper),this.$element.removeData("original-styles").removeData("original-tabindex").removeData("bs.tokenfield"),this.$wrapper.remove(),this.$mirror.remove(),this.$element}};var t=y.fn.tokenfield;return y.fn.tokenfield=function(i,s){var r,o=[];Array.prototype.push.apply(o,arguments);var t=this.each(function(){var t=y(this),e=t.data("bs.tokenfield"),n="object"==typeof i&&i;"string"==typeof i&&e&&e[i]?(o.shift(),r=e[i].apply(e,o)):e||"string"==typeof i||s||(t.data("bs.tokenfield",e=new a(this,n)),t.trigger("tokenfield:initialize"))});return void 0!==r?r:t},y.fn.tokenfield.defaults={minWidth:60,minLength:0,allowEditing:!0,allowPasting:!0,limit:0,autocomplete:{},typeahead:{},showAutocompleteOnFocus:!1,createTokensOnBlur:!1,delimiter:",",beautify:!0,inputType:"text"},y.fn.tokenfield.Constructor=a,y.fn.tokenfield.noConflict=function(){return y.fn.tokenfield=t,this},a}),window.clipboard=function(){var s,r,o,t={};return t.copy=function(){function s(){r=!1,o=null}var r=!1,o=null;return document.addEventListener("copy",function(t){if(r){for(var e in o)t.clipboardData.setData(e,o[e]);t.preventDefault()}}),function(i){return new Promise(function(t,e){r=!0,o="string"==typeof i?{"text/plain":i}:i instanceof Node?{"text/html":(new XMLSerializer).serializeToString(i)}:i;try{if(!document.execCommand("copy"))throw new Error("Unable to copy. Perhaps it's not available in your browser?");s(),t()}catch(n){s(),e(n)}})}}(),t.paste=(o=!1,document.addEventListener("paste",function(t){if(o){o=!1,t.preventDefault();var e=s;s=null,e(t.clipboardData.getData(r))}}),function(i){return new Promise(function(t,e){o=!0,s=t,r=i||"text/plain";try{document.execCommand("paste")||(o=!1,e(new Error("Unable to paste. Pasting only works in Internet Explorer at the moment.")))}catch(n){o=!1,e(new Error(n))}})}),"undefined"==typeof ClipboardEvent&&"undefined"!=typeof window.clipboardData&&"undefined"!=typeof window.clipboardData.setData&&(!function(t){function n(t,e){return function(){t.apply(e,arguments)}}function r(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],c(t,n(s,this),n(i,this))}function o(n){var i=this;return null===this._state?void this._deferreds.push(n):void e(function(){var t=i._state?n.onFulfilled:n.onRejected;if(null!==t){var e;try{e=t(i._value)}catch(s){return void n.reject(s)}n.resolve(e)}else(i._state?n.resolve:n.reject)(i._value)})}function s(t){try{if(t===this)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var e=t.then;if("function"==typeof e)return void c(n(e,t),n(s,this),n(i,this))}this._state=!0,this._value=t,a.call(this)}catch(o){i.call(this,o)}}function i(t){this._state=!1,this._value=t,a.call(this)}function a(){for(var t=0,e=this._deferreds.length;t")[0],o=r.getContext("2d"),a=0,l=0,c=e.naturalWidth,p=e.naturalHeight,u=e.rotate,h=e.scaleX,d=e.scaleY,f=_(h)&&_(d)&&(1!==h||1!==d),m=_(u)&&0!==u,g=m||f,v=c,b=p;return f&&(n=c/2,i=p/2),m&&(v=(s=w({width:c,height:p,degree:u})).width,b=s.height,n=s.width/2,i=s.height/2),r.width=v,r.height=b,g&&(a=-c/2,l=-p/2,o.save(),o.translate(n,i)),m&&o.rotate(u*Math.PI/180),f&&o.scale(h,d),o.drawImage(t,a,l,c,p),g&&o.restore(),r}function h(t,e){this.$element=y(t),this.options=y.extend({},h.DEFAULTS,y.isPlainObject(e)&&e),this.ready=!1,this.built=!1,this.complete=!1,this.rotated=!1,this.cropped=!1,this.disabled=!1,this.replaced=!1,this.isImg=!1,this.originalUrl="",this.canvas=null,this.cropBox=null,this.init()}var s=y(window),r=y(document),n=window.location,d="cropper",f="preview."+d,m="cropper-modal",v="cropper-hide",C="cropper-hidden",b="cropper-invisible",k="cropper-move",T="cropper-crop",e="cropper-disabled",A="cropper-bg",S="mousedown touchstart pointerdown MSPointerDown",x="mousemove touchmove pointermove MSPointerMove",j="mouseup touchend touchcancel pointerup pointercancel MSPointerUp MSPointerCancel",I="wheel mousewheel DOMMouseScroll",P="dblclick",D="load."+d,E="error."+d,M="resize."+d,O="build."+d,N="built."+d,R="cropstart."+d,z="cropmove."+d,L="cropend."+d,$="crop."+d,B="zoom."+d,U=/^(e|w|s|n|se|sw|ne|nw|all|crop|move|zoom)$/,F="e",q="w",G="s",J="n",W="se",H="sw",K="ne",V="nw",Y="all",Z="crop",X="move",Q="zoom",tt="none",et=o(y("")[0].getContext),nt=Math.sqrt,it=Math.min,st=Math.max,rt=Math.abs,ot=Math.sin,at=Math.cos,lt=parseFloat,ct={};y.extend(ct,{init:function(){var t,e=this.$element;if(e.is("img")){if(this.isImg=!0,this.originalUrl=t=e.attr("src"),!t)return;t=e.prop("src")}else e.is("canvas")&&et&&(t=e[0].toDataURL());this.load(t)},trigger:function(t,e){var n=y.Event(t,e);return this.$element.trigger(n),n.isDefaultPrevented()},load:function(t){var e,n,i=this.options,s=this.$element,r="";t&&(this.url=t,s.one(O,i.build),this.trigger(O)||(i.checkImageOrigin&&c(t)&&(r=' crossOrigin="anonymous"',s.prop("crossOrigin")||(e=p(t))),this.$clone=n=y("'),this.isImg?s[0].complete?this.start():s.one(D,y.proxy(this.start,this)):n.one(D,y.proxy(this.start,this)).one(E,y.proxy(this.stop,this)).addClass(v).insertAfter(s)))},start:function(){t(this.isImg?this.$element[0]:this.$clone[0],y.proxy(function(t,e){this.image={naturalWidth:t,naturalHeight:e,aspectRatio:t/e},this.ready=!0,this.build()},this))},stop:function(){this.$clone.remove(),this.$clone=null}}),y.extend(ct,{build:function(){var t,e,n,i=this.options,s=this.$element,r=this.$clone;this.ready&&(this.built&&this.unbuild(),this.$container=s.parent(),this.$cropper=t=y(h.TEMPLATE),this.$canvas=t.find(".cropper-canvas").append(r),this.$dragBox=t.find(".cropper-drag-box"),this.$cropBox=e=t.find(".cropper-crop-box"),this.$viewBox=t.find(".cropper-view-box"),this.$face=n=e.find(".cropper-face"),s.addClass(C).after(t),this.isImg||r.removeClass(v),this.initPreview(),this.bind(),i.aspectRatio=lt(i.aspectRatio)||NaN,i.autoCrop?(this.cropped=!0,i.modal&&this.$dragBox.addClass(m)):e.addClass(C),i.guides||e.find(".cropper-dashed").addClass(C),i.center||e.find(".cropper-center").addClass(C),i.cropBoxMovable&&n.addClass(k).data("action",Y),i.highlight||n.addClass(b),i.background&&t.addClass(A),i.cropBoxResizable||e.find(".cropper-line, .cropper-point").addClass(C),this.setDragMode(i.dragCrop?Z:i.movable?X:tt),this.render(),this.built=!0,this.setData(i.data),s.one(N,i.built),setTimeout(y.proxy(function(){this.trigger(N),this.complete=!0},this),0))},unbuild:function(){this.built&&(this.built=!1,this.initialImage=null,this.initialCanvas=null,this.initialCropBox=null,this.container=null,this.canvas=null,this.cropBox=null,this.off(),this.resetPreview(),this.$preview=null,this.$viewBox=null,this.$cropBox=null,this.$dragBox=null,this.$canvas=null,this.$container=null,this.$cropper.remove(),this.$cropper=null)}}),y.extend(ct,{render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.options,e=this.$element,n=this.$container,i=this.$cropper;i.addClass(C),e.removeClass(C),i.css(this.container={width:st(n.width(),lt(t.minContainerWidth)||200),height:st(n.height(),lt(t.minContainerHeight)||100)}),e.addClass(C),i.removeClass(C)},initCanvas:function(){var t=this.container,e=t.width,n=t.height,i=this.image,s=i.aspectRatio,r={aspectRatio:s,width:e,height:n};es.maxWidth||s.widths.maxHeight||s.heighte.width?s.height=s.width/n:s.width=s.height*n),this.cropBox=s,this.limitCropBox(!0,!0),s.width=it(st(s.width,s.minWidth),s.maxWidth),s.height=it(st(s.height,s.minHeight),s.maxHeight),s.width=st(s.minWidth,s.width*i),s.height=st(s.minHeight,s.height*i),s.oldLeft=s.left=e.left+(e.width-s.width)/2,s.oldTop=s.top=e.top+(e.height-s.height)/2,this.initialCropBox=y.extend({},s)},limitCropBox:function(t,e){var n,i,s=this.options,r=s.strict,o=this.container,a=o.width,l=o.height,c=this.canvas,p=this.cropBox,u=s.aspectRatio;t&&(n=lt(s.minCropBoxWidth)||0,i=lt(s.minCropBoxHeight)||0,p.minWidth=it(a,n),p.minHeight=it(l,i),p.maxWidth=it(a,r?c.width:a),p.maxHeight=it(l,r?c.height:l),u&&(p.maxHeight*u>p.maxWidth?(p.minHeight=p.minWidth/u,p.maxHeight=p.maxWidth/u):(p.minWidth=p.minHeight*u,p.maxWidth=p.maxHeight*u)),p.minWidth=it(p.maxWidth,p.minWidth),p.minHeight=it(p.maxHeight,p.minHeight)),e&&(r?(p.minLeft=st(0,c.left),p.minTop=st(0,c.top),p.maxLeft=it(a,c.left+c.width)-p.width,p.maxTop=it(l,c.top+c.height)-p.height):(p.minLeft=0,p.minTop=0,p.maxLeft=a-p.width,p.maxTop=l-p.height))},renderCropBox:function(){var t=this.options,e=this.container,n=e.width,i=e.height,s=this.cropBox;(s.width>s.maxWidth||s.widths.maxHeight||s.height'),this.$preview.each(function(){var t=y(this);t.data(f,{width:t.width(),height:t.height(),original:t.html()}),t.html('')})},resetPreview:function(){this.$preview.each(function(){var t=y(this);t.html(t.data(f).original).removeData(f)})},preview:function(){var r=this.image,t=this.canvas,o=this.cropBox,a=r.width,l=r.height,c=o.left-t.left-r.left,p=o.top-t.top-r.top;this.cropped&&!this.disabled&&(this.$viewBox.find("img").css({width:a,height:l,marginLeft:-c,marginTop:-p,transform:u(r)}),this.$preview.each(function(){var t=y(this),e=t.data(f),n=e.width/o.width,i=e.width,s=o.height*n;s>e.height&&(n=e.height/o.height,i=o.width*n,s=e.height),t.width(i).height(s).find("img").css({width:a*n,height:l*n,marginLeft:-c*n,marginTop:-p*n,transform:u(r)})}))}}),y.extend(ct,{bind:function(){var t=this.options,e=this.$element,n=this.$cropper;o(t.cropstart)&&e.on(R,t.cropstart),o(t.cropmove)&&e.on(z,t.cropmove),o(t.cropend)&&e.on(L,t.cropend),o(t.crop)&&e.on($,t.crop),o(t.zoom)&&e.on(B,t.zoom),n.on(S,y.proxy(this.cropStart,this)),t.zoomable&&t.mouseWheelZoom&&n.on(I,y.proxy(this.wheel,this)),t.doubleClickToggle&&n.on(P,y.proxy(this.dblclick,this)),r.on(x,this._cropMove=i(this.cropMove,this)).on(j,this._cropEnd=i(this.cropEnd,this)),t.responsive&&s.on(M,this._resize=i(this.resize,this))},unbind:function(){var t=this.options,e=this.$element,n=this.$cropper;o(t.cropstart)&&e.off(R,t.cropstart),o(t.cropmove)&&e.off(z,t.cropmove),o(t.cropend)&&e.off(L,t.cropend),o(t.crop)&&e.off($,t.crop),o(t.zoom)&&e.off(B,t.zoom),n.off(S,this.cropStart),t.zoomable&&t.mouseWheelZoom&&n.off(I,this.wheel),t.doubleClickToggle&&n.off(P,this.dblclick),r.off(x,this._cropMove).off(j,this._cropEnd),t.responsive&&s.off(M,this._resize)}}),y.extend(ct,{resize:function(){var n,i,s,t=this.$container,e=this.container;!this.disabled&&e&&(1===(s=t.width()/e.width)&&t.height()===e.height||(n=this.getCanvasData(),i=this.getCropBoxData(),this.render(),this.setCanvasData(y.each(n,function(t,e){n[t]=e*s})),this.setCropBoxData(y.each(i,function(t,e){i[t]=e*s}))))},dblclick:function(){this.disabled||(this.$dragBox.hasClass(T)?this.setDragMode(X):this.setDragMode(Z))},wheel:function(t){var e=t.originalEvent,n=e,i=lt(this.options.wheelZoomRatio)||.1,s=1;this.disabled||(t.preventDefault(),n.deltaY?s=0")[0]).width=e,o.height=n,a=o.getContext("2d"),t.fillColor&&(a.fillStyle=t.fillColor,a.fillRect(0,0,e,n)),a.drawImage.apply(a,function(){var t,e,n,i,s,r,o=g(this.$clone[0],this.image),a=o.width,l=o.height,c=[o],p=m.x,u=m.y;return p<=-h||a
    ',h.other=y.fn.cropper,y.fn.cropper=function(i){var s,r=l(arguments,1);return this.each(function(){var t,e=y(this),n=e.data(d);if(!n){if(/destroy/.test(i))return;e.data(d,n=new h(this,i))}"string"==typeof i&&o(t=n[i])&&(s=t.apply(n,r))}),a(s)?this:s},y.fn.cropper.Constructor=h,y.fn.cropper.setDefaults=h.setDefaults,y.fn.cropper.noConflict=function(){return y.fn.cropper=h.other,this}}),function(s){function r(t,e){var n;return s.Notification?n=new s.Notification(t,{icon:b(e.icon)?e.icon:e.icon.x32,body:e.body||f,tag:e.tag||f}):s.webkitNotifications?(n=s.webkitNotifications.createNotification(e.icon,t,e.body)).show():navigator.mozNotification?(n=navigator.mozNotification.createNotification(t,e.body,e.icon)).show():s.external&&s.external.msIsSiteMode()&&(s.external.msSiteModeClearIconOverlay(),s.external.msSiteModeSetIconOverlay(b(e.icon)?e.icon:e.icon.x16,t),s.external.msSiteModeActivate(),n={ieVerification:g+1}),n}function o(t){return{close:function(){t&&(t.close?t.close():s.external&&s.external.msIsSiteMode()&&t.ieVerification===g&&s.external.msSiteModeClearIconOverlay())}}}function t(t){if(m){var e=v(t)?t:w;s.webkitNotifications&&s.webkitNotifications.checkPermission?s.webkitNotifications.requestPermission(e):s.Notification&&s.Notification.requestPermission&&s.Notification.requestPermission(e)}}function a(){var t;if(m)return s.Notification&&s.Notification.permissionLevel?t=s.Notification.permissionLevel():s.webkitNotifications&&s.webkitNotifications.checkPermission?t=u[s.webkitNotifications.checkPermission()]:navigator.mozNotification?t=c:s.Notification&&s.Notification.permission?t=s.Notification.permission:s.external&&s.external.msIsSiteMode()!==undefined&&(t=s.external.msIsSiteMode()?c:i),t}function e(t){return t&&y(t)&&_(k,t),k}function l(){return!k.pageVisibility||(document.hidden||document.msHidden||document.mozHidden||document.webkitHidden)}function n(t,e){var n,i;return m&&l()&&b(t)&&e&&(b(e.icon)||y(e.icon))&&a()===c&&(n=r(t,e)),i=o(n),k.autoClose&&n&&!n.ieVerification&&n.addEventListener&&n.addEventListener("show",function(){var t=i;s.setTimeout(function(){t.close()},k.autoClose)}),i}var i="default",c="granted",p="denied",u=[c,i,p],h={pageVisibility:!0,autoClose:5e3},d={},f="",m=function(){var t=!1;try{t=!!(s.Notification||s.webkitNotifications||navigator.mozNotification||s.external&&s.external.msIsSiteMode()!==undefined)}catch(e){}return t}(),g=Math.floor(10*Math.random()+1),v=function(t){return t&&t.constructor===Function},b=function(t){return t&&t.constructor===String},y=function(t){return t&&t.constructor===Object},_=function(t,e){var n,i;for(n in e)i=e[n],n in t&&(t[n]===i||n in d&&d[n]===i)||(t[n]=i);return t},w=function(){},k=h;s.notify={PERMISSION_DEFAULT:i,PERMISSION_GRANTED:c,PERMISSION_DENIED:p,isSupported:m,config:e,createNotification:n,permissionLevel:a,requestPermission:t},v(Object.freeze)&&Object.freeze(s.notify)}(window),function(t){"use strict";function e(o){function n(){return Dt"),m(e(M))),ht)())}function H(){return r("group",d(K,h(":"),e(Z),h(";"),m(e(M)))())}function K(){return r("display-name",function e(){var t=F();return null!==t&&(t.semantic=b(t.semantic)),t}())}function V(){return r("mailbox-list",f(d(G,v(d(h(","),G))),mt)())}function Y(){return r("address-list",f(d(q,v(d(h(","),q))),gt)())}function Z(){return r("group-list",f(V,m(M),vt)())}function X(){return r("local-part",f(bt,z,B)())}function Q(){return r("dtext",f(function t(){return a(function i(t){var e=t.charCodeAt(0),n=33<=e&&e<=90||94<=e&&e<=126;return o.rfc6532&&(n=n||y(t)),n})},_t)())}function tt(){return r("domain-literal",d(m(e(M)),h("["),v(d(e(I),Q)),e(I),h("]"),m(e(M)))())}function et(){return r("domain",function e(){var t=f(yt,z,tt)();return o.rejectTLD&&t&&t.semantic&&t.semantic.indexOf(".")<0?null:(t&&(t.semantic=t.semantic.replace(/\s+/g,"")),t)}())}function nt(){return r("addr-spec",d(X,h("@"),et)())}function it(){return r("from",f(V,Y)())}function st(){return r("sender",f(G,q)())}function rt(){return r("reply-to",Y())}function ot(){return o.strict?null:r("obs-NO-WS-CTL",a(function(t){var e=t.charCodeAt(0);return 1<=e&&e<=8||11===e||12===e||14<=e&&e<=31||127===e}))}function at(){return o.strict?null:r("obs-ctext",ot())}function lt(){return o.strict?null:r("obs-qtext",ot())}function ct(){return o.strict?null:r("obs-qp",d(h("\\"),f(h("\0"),ot,A,_))())}function pt(){return o.strict?null:r("obs-phrase",d(U,v(f(U,h("."),g(M))))())}function ut(){return o.strict?null:r("obs-FWS",v(d(m(e(w)),x),1)())}function ht(){return o.strict?null:r("obs-angle-addr",d(m(e(M)),h("<"),dt,nt,h(">"),m(e(M)))())}function dt(){return o.strict?null:r("obs-route",d(ft,h(":"))())}function ft(){return o.strict?null:r("obs-domain-list",d(v(f(m(M),h(","))),h("@"),et,v(d(h(","),m(e(M)),e(d(h("@"),et)))))())}function mt(){return o.strict?null:r("obs-mbox-list",d(v(d(m(e(M)),h(","))),G,v(d(h(","),e(d(G,m(M))))))())}function gt(){return o.strict?null:r("obs-addr-list",d(v(d(m(e(M)),h(","))),q,v(d(h(","),e(d(q,m(M))))))())}function vt(){return o.strict?null:r("obs-group-list",d(v(d(m(e(M)),h(",")),1),m(e(M)))())}function bt(){return o.strict?null:r("obs-local-part",d(U,v(d(h("."),U)))())}function yt(){return o.strict?null:r("obs-domain",d(N,v(d(h("."),N)))())}function _t(){return o.strict?null:r("obs-dtext",f(ot,j)())}function wt(t,e){var n,i,s;if(null===e||e===undefined)return null;for(i=[e];0"),this.$clone=s("

    ").prepend(this.$textCopy),this._resetStyles(),this._setCloneStyles(),this._setTextareaStyles(),t.wrap(s("
    ")).after(this.$clone),this.attach(),this.update(),e.update&&t.on("update.expanding",e.update)};r._registry=[],r.getExpandingInstance=function(t){var e=s.map(r._registry,function(t){return t.$textarea[0]}),n=s.inArray(t,e);return-1/g,">")}function u(t){return t.nodeName.toLowerCase()}function C(t,e){var n=t&&t.exec(e);return n&&0===n.index}function a(t){return y.test(t)}function l(t){var e,n,i,s,r=t.className+" ";if(r+=t.parentNode?t.parentNode.className:"",n=_.exec(r))return P(n[1])?n[1]:"no-highlight";for(e=0,i=(r=r.split(/\s+/)).length;e"}function r(t){l+=""}function o(t){("start"===t.event?s:r)(t.node)}for(var a=0,l="",c=[];t.length||e.length;){var p=i();if(l+=S(n.substring(a,p[0].offset)),a=p[0].offset,p===t){for(c.reverse().forEach(r);o(p.splice(0,1)[0]),(p=i())===t&&p.length&&p[0].offset===a;);c.reverse().forEach(s)}else"start"===p[0].event?c.push(p[0].node):c.pop(),o(p.splice(0,1)[0])}return l+S(n.substr(a))}function h(e){return e.v&&!e.cached_variants&&(e.cached_variants=e.v.map(function(t){ return n(e,{v:null},t)})),e.cached_variants||e.eW&&[n(e)]||[e]}function x(r){function o(t){return t&&t.source||t}function a(t,e){return new RegExp(o(t),"m"+(r.cI?"i":"")+(e?"g":""))}function l(e,t){if(!e.compiled){if(e.compiled=!0,e.k=e.k||e.bK,e.k){var i={},n=function(n,t){r.cI&&(t=t.toLowerCase()),t.split(" ").forEach(function(t){var e=t.split("|");i[e[0]]=[n,e[1]?Number(e[1]):1]})};"string"==typeof e.k?n("keyword",e.k):v(e.k).forEach(function(t){n(t,e.k[t])}),e.k=i}e.lR=a(e.l||/\w+/,!0),t&&(e.bK&&(e.b="\\b("+e.bK.split(" ").join("|")+")\\b"),e.b||(e.b=/\B|\b/),e.bR=a(e.b),e.e||e.eW||(e.e=/\B|\b/),e.e&&(e.eR=a(e.e)),e.tE=o(e.e)||"",e.eW&&t.tE&&(e.tE+=(e.e?"|":"")+t.tE)),e.i&&(e.iR=a(e.i)),null==e.r&&(e.r=1),e.c||(e.c=[]),e.c=Array.prototype.concat.apply([],e.c.map(function(t){return h("self"===t?e:t)})),e.c.forEach(function(t){l(t,e)}),e.starts&&l(e.starts,t);var s=e.c.map(function(t){return t.bK?"\\.?("+t.b+")\\.?":t.b}).concat([e.tE,e.i]).map(o).filter(Boolean);e.t=s.length?a(s.join("|"),!0):{exec:function(){return null}}}}l(r)}function j(t,e,n,i){function r(t,e){var n,i;for(n=0,i=e.c.length;n')+e+(n?"":E)}function c(){var t,e,n,i;if(!g.k)return S(y);for(i="",e=0,g.lR.lastIndex=0,n=g.lR.exec(y);n;)i+=S(y.substring(e,n.index)),(t=s(g,n))?(_+=t[1],i+=l(t[0],S(n[0]))):i+=S(n[0]),e=g.lR.lastIndex,n=g.lR.exec(y);return i+S(y.substr(e))}function p(){var t="string"==typeof g.sL;if(t&&!D[g.sL])return S(y);var e=t?j(g.sL,y,!0,v[g.sL]):I(y,g.sL.length?g.sL:void 0);return 0")+'"');return y+=e,e.length||1}var f=P(t);if(!f)throw new Error('Unknown language: "'+t+'"');x(f);var m,g=i||f,v={},b="";for(m=g;m!==f;m=m.parent)m.cN&&(b=l(m.cN,"",!0)+b);var y="",_=0;try{for(var w,k,T=0;g.t.lastIndex=T,w=g.t.exec(e);)k=d(e.substring(T,w.index),w[0]),T=w.index+k;for(d(e.substr(T)),m=g;m.parent;m=m.parent)m.cN&&(b+=E);return{r:_,value:b,language:t,top:g}}catch(A){if(A.message&&-1!==A.message.indexOf("Illegal"))return{r:0,value:S(e)};throw A}}function I(n,t){t=t||M.languages||v(D);var i={r:0,value:S(n)},s=i;return t.filter(P).forEach(function(t){var e=j(t,n,!1);e.language=t,e.r>s.r&&(s=e),e.r>i.r&&(s=i,i=e)}),s.language&&(i.second_best=s),i}function d(t){return M.tabReplace||M.useBR?t.replace(w,function(t,e){return M.useBR&&"\n"===t?"
    ":M.tabReplace?e.replace(/\t/g,M.tabReplace):""}):t}function f(t,e,n){var i=e?b[e]:n,s=[t.trim()];return t.match(/\bhljs\b/)||s.push("hljs"),-1===t.indexOf(i)&&s.push(i),s.join(" ").trim()}function e(t){var e,n,i,s,r,o=l(t);a(o)||(M.useBR?(e=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=t.innerHTML.replace(/\n/g,"").replace(//g,"\n"):e=t,r=e.textContent,i=o?j(o,r,!0):I(r),(n=c(e)).length&&((s=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=i.value,i.value=p(n,c(s),r)),i.value=d(i.value),t.innerHTML=i.value,t.className=f(t.className,o,i.language),t.result={language:i.language,re:i.r},i.second_best&&(t.second_best={language:i.second_best.language,re:i.second_best.r}))}function t(t){M=n(M,t)}function i(){if(!i.called){i.called=!0;var t=document.querySelectorAll("pre code");g.forEach.call(t,e)}}function r(){addEventListener("DOMContentLoaded",i,!1),addEventListener("load",i,!1)}function o(e,t){var n=D[e]=t(s);n.aliases&&n.aliases.forEach(function(t){b[t]=e})}function m(){return v(D)}function P(t){return t=(t||"").toLowerCase(),D[t]||D[b[t]]}var g=[],v=Object.keys,D={},b={},y=/^(no-?highlight|plain|text)$/i,_=/\blang(?:uage)?-([\w-]+)\b/i,w=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,E="",M={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};return s.highlight=j,s.highlightAuto=I,s.fixMarkup=d,s.highlightBlock=e,s.configure=t,s.initHighlighting=i,s.initHighlightingOnLoad=r,s.registerLanguage=o,s.listLanguages=m,s.getLanguage=P,s.inherit=n,s.IR="[a-zA-Z]\\w*",s.UIR="[a-zA-Z_]\\w*",s.NR="\\b\\d+(\\.\\d+)?",s.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",s.BNR="\\b(0b[01]+)",s.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",s.BE={b:"\\\\[\\s\\S]",r:0},s.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[s.BE]},s.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[s.BE]},s.PWM={b:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},s.C=function(t,e,n){var i=s.inherit({cN:"comment",b:t,e:e,c:[]},n||{});return i.c.push(s.PWM),i.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),i},s.CLCM=s.C("//","$"),s.CBCM=s.C("/\\*","\\*/"),s.HCM=s.C("#","$"),s.NM={cN:"number",b:s.NR,r:0},s.CNM={cN:"number",b:s.CNR,r:0},s.BNM={cN:"number",b:s.BNR,r:0},s.CSSNM={cN:"number",b:s.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},s.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[s.BE,{b:/\[/,e:/\]/,r:0,c:[s.BE]}]},s.TM={cN:"title",b:s.IR,r:0},s.UTM={cN:"title",b:s.UIR,r:0},s.METHOD_GUARD={b:"\\.\\s*"+s.UIR,r:0},s}),hljs.registerLanguage("ruby",function(t){var e="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",n={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},i={cN:"doctag",b:"@[A-Za-z]+"},s={b:"#<",e:">"},r=[t.C("#","$",{c:[i]}),t.C("^\\=begin","^\\=end",{c:[i],r:10}),t.C("^__END__","\\n$")],o={cN:"subst",b:"#\\{",e:"}",k:n},a={cN:"string",c:[t.BE,o],v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/`/,e:/`/},{b:"%[qQwWx]?\\(",e:"\\)"},{b:"%[qQwWx]?\\[",e:"\\]"},{b:"%[qQwWx]?{",e:"}"},{b:"%[qQwWx]?<",e:">"},{b:"%[qQwWx]?/",e:"/"},{b:"%[qQwWx]?%",e:"%"},{b:"%[qQwWx]?-",e:"-"},{b:"%[qQwWx]?\\|",e:"\\|"},{b:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{b:/<<(-?)\w+$/,e:/^\s*\w+$/}]},l={cN:"params",b:"\\(",e:"\\)",endsParent:!0,k:n},c=[a,s,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[t.inherit(t.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{b:"<\\s*",c:[{b:"("+t.IR+"::)?"+t.IR}]}].concat(r)},{cN:"function",bK:"def",e:"$|;",c:[t.inherit(t.TM,{b:e}),l].concat(r)},{b:t.IR+"::"},{cN:"symbol",b:t.UIR+"(\\!|\\?)?:",r:0},{cN:"symbol",b:":(?!\\s)",c:[a,{b:e}],r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{cN:"params",b:/\|/,e:/\|/,k:n},{b:"("+t.RSR+"|unless)\\s*",k:"unless",c:[s,{cN:"regexp",c:[t.BE,o],i:/\n/,v:[{b:"/",e:"/[a-z]*"},{b:"%r{",e:"}[a-z]*"},{b:"%r\\(",e:"\\)[a-z]*"},{b:"%r!",e:"![a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}].concat(r),r:0}].concat(r);o.c=c;var p=[{b:/^\s*=>/,starts:{e:"$",c:l.c=c}},{cN:"meta",b:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+>"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>"+")",starts:{e:"$",c:c}}];return{aliases:["rb","gemspec","podspec","thor","irb"],k:n,i:/\/\*/,c:r.concat(p).concat(c)}}),hljs.registerLanguage("bash",function(t){var e={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)}/}]},n={cN:"string",b:/"/,e:/"/,c:[t.BE,e,{cN:"variable",b:/\$\(/,e:/\)/,c:[t.BE]}]},i={cN:"string",b:/'/,e:/'/};return{aliases:["sh","zsh"],l:/\b-?[a-z\._]+\b/,k:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"meta",b:/^#![^\n]+sh\s*$/,r:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:!0,c:[t.inherit(t.TM,{b:/\w[\w\d_]*/})],r:0},t.HCM,n,i,e]}}),hljs.registerLanguage("javascript",function(t){var e="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},i={cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:t.CNR}],r:0},s={cN:"subst",b:"\\$\\{",e:"\\}",k:n,c:[]},r={cN:"string",b:"`",e:"`",c:[t.BE,s]};s.c=[t.ASM,t.QSM,r,i,t.RM];var o=s.c.concat([t.CBCM,t.CLCM]);return{aliases:["js","jsx"],k:n,c:[{cN:"meta",r:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},t.ASM,t.QSM,r,t.CLCM,t.CBCM,i,{b:/[{,]\s*/,r:0,c:[{b:e+"\\s*:",rB:!0,r:0,c:[{cN:"attr",b:e,r:0}]}]},{b:"("+t.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[t.CLCM,t.CBCM,t.RM,{cN:"function",b:"(\\(.*?\\)|"+e+")\\s*=>",rB:!0,e:"\\s*=>",c:[{cN:"params",v:[{b:e},{b:/\(\s*\)/},{b:/\(/,e:/\)/,eB:!0,eE:!0,k:n,c:o}]}]},{b://,sL:"xml",c:[{b:/<\w+\s*\/>/,skip:!0},{b:/<\w+/,e:/(\/\w+|\w+\/)>/,skip:!0,c:[{b:/<\w+\s*\/>/,skip:!0},"self"]}]}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[t.inherit(t.TM,{b:e}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:o}],i:/\[|%/},{b:/\$[(.]/},t.METHOD_GUARD,{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},t.UTM]},{bK:"constructor",e:/\{/,eE:!0}],i:/#(?!!)/}}),hljs.registerLanguage("css",function(t){var e="[a-zA-Z-][a-zA-Z0-9_-]*",n={b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{eW:!0,eE:!0,c:[{b:/[\w-]+\(/,rB:!0,c:[{cN:"built_in",b:/[\w-]+/},{b:/\(/,e:/\)/,c:[t.ASM,t.QSM]}]},t.CSSNM,t.QSM,t.ASM,t.CBCM,{cN:"number",b:"#[0-9A-Fa-f]+"},{cN:"meta",b:"!important"}]}}]};return{cI:!0,i:/[=\/|'\$]/,c:[t.CBCM,{cN:"selector-id",b:/#[A-Za-z0-9_-]+/},{cN:"selector-class",b:/\.[A-Za-z0-9_-]+/},{cN:"selector-attr",b:/\[/,e:/\]/,i:"$"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{b:"@",e:"[{;]",i:/:/,c:[{cN:"keyword",b:/\w+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[t.ASM,t.QSM,t.CSSNM]}]},{cN:"selector-tag",b:e,r:0},{b:"{",e:"}",i:/\S/,c:[t.CBCM,n]}]}}),hljs.registerLanguage("xml",function(t){var e={eW:!0,i:/`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],cI:!0,c:[{cN:"meta",b:"",r:10,c:[{b:"\\[",e:"\\]"}]},t.C("",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0}]},{cN:"tag",b:"|$)",e:">",k:{name:"style"},c:[e],starts:{e:"",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"|$)",e:">",k:{name:"script"},c:[e],starts:{e:"",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"meta",v:[{b:/<\?xml/,e:/\?>/,r:10},{b:/<\?\w+/,e:/\?>/}]},{cN:"tag",b:"",c:[{cN:"name",b:/[^\/><\s]+/,r:0},e]}]}});var module={},noop=function(){},console=window.console||{log:noop},supportsFileApi;FileUpload.prototype={on:function(t){this.eventHandlers=t}},UploadManager.prototype={initialize:function(){var e=this,n=e.dropContainer,t=e.inputField,i=e.cancelContainer,s=0,r=function(t){t.preventDefault(),t.stopPropagation(),s++,showDropZone(n)};onDragOver=function(t){t.dataTransfer.dropEffect="copy",t.preventDefault(),t.stopPropagation()},onDragLeave=function(t){t.preventDefault(),t.stopPropagation(),0==--s&&hideDropZone(n)},onDrop=function(t){s=0,t.preventDefault(),t.stopPropagation(),hideDropZone(n),e.processFiles(t.dataTransfer.files)},onDragEnd=function(t){s=0,t.preventDefault(),t.stopPropagation(),hideDropZone(n)},showDropZone=function(t){$(t).trigger("html5Upload.dropZone.show"),$(t).find(".article-content, .richtext").hasClass("is-dropTarget")||$(t).find(".article-content, .richtext").addClass("is-dropTarget")},hideDropZone=function(t){$(t).trigger("html5Upload.dropZone.hide"),$(t).find(".article-content, .richtext").hasClass("is-dropTarget")&&$(t).find(".article-content, .richtext").removeClass("is-dropTarget")},n&&(e.on(n,"dragleave",onDragLeave),e.on(n,"dragover",onDragOver),e.on(n,"dragenter",r),e.on(n,"dragend",onDragEnd),e.on(n,"drop",onDrop)),t&&e.on(t,"change",function(){e.processFiles(this.files)}),i&&i.on("click",function(){e.uploadCancel()})},processFiles:function(t){console.log("Processing files: "+t.length);var e,n,i,s=this,r=t.length;for(i=0;i").css({position:"absolute",top:"0px",left:"0px"}),o=i.css("position"),i.css({position:"relative"}),r.appendTo(i),u=r.offset().top,h=s.offset().top-u-parseInt(e.offsetTop,10),d=r.offset().left,f=s.offset().left-d-parseInt(e.offsetLeft,10),a=i.prop("scrollTop"),l=i.prop("scrollLeft"),r.remove(),i.css({position:o}),m={},g=function(){return 0===t.length?"function"==typeof e.callback&&e.callback():b.scroll(t,e),!0},e.onlyIfOutside&&(c=a+i.height(),p=l+i.width(),a
    ")}var e=!1;if("cmd"==this.browserMagicKey?t.altKey||t.ctrlKey||!t.metaKey||(e=!0):t.altKey||!t.ctrlKey||t.metaKey||(e=!0),e&&this.options.richTextFormatKey[t.keyCode]){if(t.preventDefault(),66==t.keyCode)return document.execCommand("bold"),!0;if(73==t.keyCode)return document.execCommand("italic"),!0;if(85==t.keyCode)return document.execCommand("underline"),!0;if(83==t.keyCode)return document.execCommand("strikeThrough"),!0}var n=!1;if("ctrl+shift"==this.browserHotkeys?!t.altKey&&t.ctrlKey&&!t.metaKey&&t.shiftKey&&(n=!0):t.altKey&&t.ctrlKey&&!t.metaKey&&(n=!0),n&&(this.options.richTextFormatKey[t.keyCode]||49==t.keyCode||50==t.keyCode||51==t.keyCode||66==t.keyCode||70==t.keyCode||90==t.keyCode||70==t.keyCode||73==t.keyCode||75==t.keyCode||76==t.keyCode||85==t.keyCode||83==t.keyCode||88==t.keyCode||90==t.keyCode||89==t.keyCode)){if(t.preventDefault(),"textonly"===this.options.mode)return;if(49==t.keyCode&&this.toggleBlock("h1"),50==t.keyCode&&this.toggleBlock("h2"),51==t.keyCode&&this.toggleBlock("h3"),66==t.keyCode&&document.execCommand("bold"),70==t.keyCode&&document.execCommand("removeFormat"),73==t.keyCode&&document.execCommand("italic"),75==t.keyCode&&document.execCommand("insertOrderedList"),76==t.keyCode&&document.execCommand("insertUnorderedList"),85==t.keyCode&&document.execCommand("underline"),83==t.keyCode&&document.execCommand("strikeThrough"),88==t.keyCode&&document.execCommand("unlink"),89==t.keyCode){var i=App.Utils.htmlRemoveRichtext(this.$element.html());this.$element.html(i)}return 90==t.keyCode&&document.execCommand("insertHorizontalRule"),this.log("content editable richtext key",t.keyCode),!0}this.allowKey(t)||this.maxLengthOk(1)||t.preventDefault()}},e.prototype.getHtmlFromClipboard=function(t){try{return t.getData("text/html")}catch(e){return void console.log("Sorry, can't get html of clipboard because browser is not supporting it.")}},e.prototype.getTextFromClipboard=function(t){var e;try{return(e=t.getData("text/plain"))&&0!==e.length||(e=t.getData("text")),e}catch(n){return void console.log("Sorry, can't get text of clipboard because browser is not supporting it.")}},e.prototype.getClipboardData=function(t){var e;if(t.clipboardData)e=t.clipboardData;else if(window.clipboardData)e=window.clipboardData;else{if(!t.originalEvent.clipboardData)throw"No clipboardData support";e=t.originalEvent.clipboardData}return e},e.prototype.getClipboardDataImage=function(t){if(t.items&&t.items[0])return l.grep(t.items,function(t){return"file"==t.kind&&("image/png"==t.type||"image/jpeg"==t.type)})[0]},e.prototype.onPaste=function(t){var e,n,i,s,r;if(t.preventDefault(),this.log("paste"),e=this.getClipboardData(t),s=this.getHtmlFromClipboard(e),App.Utils.clipboardHtmlIsWithText(s)||!(n=this.getClipboardDataImage(e)))return s&&(r=App.Utils.clipboardHtmlInsertPreperation(s,this.options))?(this.log("insert html from clipboard",r),this.paste(r),App.Utils.htmlImage2DataUrlAsyncInline(this.$element),!0):!!(i=this.getTextFromClipboard(e))&&(r=App.Utils.text2html(i),this.maxLengthOk(r.length)?(r=App.Utils.removeEmptyLines(r),this.log("insert text from clipboard",r),this.paste(r),!0):void 0);this.log("paste image",n);var o=n.getAsFile(),a=new FileReader;return a.onload=l.proxy(function(t){var n=t.target.result,i=document.createElement("img");i.src=n,(maxWidth=1e3)':'',this.paste(i)},this),App.ImageService.resize(i.src,maxWidth,"auto",scaleFactor,"image/jpeg","auto",insert)},this),a.readAsDataURL(o),!0},e.prototype.onDragover=function(t){t.stopPropagation(),t.preventDefault(),this.log("dragover")},e.prototype.onDrop=function(t){var e;if(t.stopPropagation(),t.preventDefault(),this.log("drop"),window.dataTransfer)e=window.dataTransfer;else{if(!t.originalEvent.dataTransfer)throw"No clipboardData support";e=t.originalEvent.dataTransfer}x=t.clientX,y=t.clientY;var n=e.files[0];if(n&&n.type.match("image.*")){var i=new FileReader;i.onload=function(t){var i=t.target.result,s=document.createElement("img");s.src=i,maxWidth=this.$element.width()||500,scaleFactor=2,insert=function(t,e){if(this.log("image inserted"),i=t,s="absolute"==this.options.imageWidth?'':'',document.caretPositionFromPoint){var n=document.caretPositionFromPoint(x,y);range=document.createRange(),range.setStart(n.offsetNode,n.offset),range.collapse(),range.insertNode(s)}else document.caretRangeFromPoint?(range=document.caretRangeFromPoint(x,y),range.insertNode(s)):console.log("could not find carat")},App.ImageService.resize(s.src,maxWidth,"auto",scaleFactor,"image/jpeg","auto",insert)},i.readAsDataURL(n)}},e.prototype.allowKey=function(t){return!!this.options.allowKey[t.keyCode]||!(!t.ctrlKey&&!t.metaKey||!this.options.extraAllowKey[t.keyCode])},e.prototype.maxLengthOk=function(t){if(!this.options.maxlength)return!0;var e=this.$element.text().length;if(t&&(e+=t),this.log("maxLengthOk",e,this.options.maxlength),e>this.options.maxlength){this.log("maxLengthOk, text too long");var n=this.$element.parent().parent();return n.hasClass("controls")?(n.addClass("has-error"),setTimeout(l.proxy(function(){n.removeClass("has-error")},this),1e3)):(this.$element.addClass("invalid"),setTimeout(l.proxy(function(){this.$element.removeClass("invalid")},this),1e3)),!1}return!0},e.prototype.value=function(){return"textonly"===this.options.mode?this.options.multiline?(text_plain=this.$element.text().trim(),text_plain&&""!=text_plain?this.$element.html():text_plain):this.$element.text().trim():(text_plain=this.$element.text().trim(),text_plain&&""!=text_plain||this.$element.find("img").get(0)?this.$element.html().trim():text_plain)},e.prototype.log=function(){App&&App.Log&&App.Log.debug("contenteditable",arguments),this.options.debug&&console.log(this._name,arguments)},e.prototype.paste=function(t){var e=!!window.MSInputMethodContext&&!!document.documentMode;if(document.selection&&document.selection.createRange)(n=document.selection.createRange()).pasteHTML&&n.pasteHTML(t);else if(e&&document.getSelection){var n=document.getSelection().getRangeAt(0),i=document.createElement("div");n.surroundContents(i),i.innerHTML=t}else document.execCommand("insertHTML",!1,t)},l.fn[n]=function(t){return this.each(function(){l.data(this,"plugin_"+n)||l.data(this,"plugin_"+n,new e(this,t))})},l.fn.ceg=function(){var t=l.data(this[0],"plugin_"+n);if(t)return t.value()}}(jQuery),function(s){function e(t,e){this.element=t,this.$element=s(t),this.options=s.extend({},r,e),this._defaults=r,this._name=i,document.execCommand("enableObjectResizing",!1,!1),this.bindEvents()}function n(t){this.$element=t,this.isResizing=!1,this.$element.data("objectResizingEditor",this),this.$element.addClass("objectResizingEditorActive"),this.$element.wrap('
    ');for(var e=0;e<4;e++)this.$element.before('
    ');s(document).one("click.objectResizingEditor",this.destroy.bind(this)),s(document).one("keydown.objectResizingEditor",this.onKeydown.bind(this)),this.$element.on("click.objectResizingEditor",this.stopPropagation.bind(this)),this.$element.parent().find(".enableObjectResizingShim-handle").on("mousedown",this.startResize.bind(this))}var i="enableObjectResizingShim",r={debug:!1};e.prototype.bindEvents=function(){this.$element.on("click","img",this.createEditor.bind(this)),this.$element.on("click",this.destroyEditors.bind(this))},e.prototype.createEditor=function(t){t.stopPropagation(),this.destroyEditors();var e=s(t.currentTarget);e.hasClass("objectResizingEditorActive")||new n(e)},e.prototype.destroyEditors=function(){this.$element.find("img.objectResizingEditorActive").each(function(t,e){$img=s(e),editor=$img.data("objectResizingEditor"),editor?editor.destroy():($img.removeClass("objectResizingEditorActive"),$img.siblings().remove(),$img.unwrap())})},n.prototype.onKeydown=function(t){var e=this.$element.closest("[contenteditable=true]"),n=this.$element.parent().parent().prev();switch(this.destroy(),t.keyCode){case 8:this.$element.remove(),t.preventDefault(),n[0]&&(range=document.createRange(),range.selectNode(n[0]),range.setStart(range.endContainer,range.endOffset),document.getSelection().removeAllRanges(),document.getSelection().addRange(range)),e.trigger("focus");break;default:t.stopPropagation()}},n.prototype.stopPropagation=function(t){t.stopPropagation()},n.prototype.destroy=function(){this.isResizing||(this.$element.off("click.objectResizingEditor"),s(document).off("click.objectResizingEditor"),s(document).off("keydown.objectResizingEditor"),this.$element.removeClass("objectResizingEditorActive"),this.$element.siblings().remove(),this.$element.unwrap())},n.prototype.startResize=function(t){var e=s(t.currentTarget),n=this.$element.closest('[contenteditable="true"]').width()||"";this.resizeCorner=e.index(),this.resizeDir=0==this.resizeCorner||3==this.resizeCorner?-1:1,this.startX=t.pageX,this.startWidth=this.$element.width(),this.$clone=this.$element.clone().css({width:"",height:"","max-width":n}).addClass("enableObjectResizingShim-clone enableObjectResizingShim-clone--"+this.resizeCorner),this.$element.after(this.$clone),this.isResizing=!0,s(document).on("mousemove.enableObjectResizing",this.resize.bind(this)),s(document).on("mouseup.enableObjectResizing",this.resizeEnd.bind(this))},n.prototype.resize=function(t){t.preventDefault(),t.stopPropagation();var e=t.pageX-this.startX;this.$clone.css("width",this.startWidth+this.resizeDir*e)},n.prototype.resizeEnd=function(){var t=this.$element.closest('[contenteditable="true"]').width(),e=this.$clone.width(),n=this.$clone.height(),i=this.$clone.get(0).naturalWidth;this.$clone.get(0).naturalHeight;t&&t "+t):window.console.log(t))},qq.isObject=function(t){"use strict";return null!==t&&t&&"object"==typeof t&&t.constructor===Object},qq.extend=function(t,e,n){"use strict";var i;for(i in e)e.hasOwnProperty(i)&&(n&&qq.isObject(e[i])?(t[i]===undefined&&(t[i]={}),qq.extend(t[i],e[i],!0)):t[i]=e[i])},qq.indexOf=function(t,e,n){if(t.indexOf)return t.indexOf(e,n);n=n||0;var i=t.length;for(n<0&&(n+=i);nthis._options.validation.sizeLimit?(this._error("sizeError",n),!1):!(i&&i'+(this._options.dragAndDrop&&this._options.dragAndDrop.disableDefaultDropzone?"":'
    {dragZoneText}
    ')+(this._options.button?"":'
    {uploadButtonText}
    ')+(this._options.listElement?"":'
      ')+"
      ",fileTemplate:'
    • {cancelButtonText}{retryButtonText}{statusText}
    • ',classes:{button:"qq-upload-button",drop:"qq-upload-drop-area",dropActive:"qq-upload-drop-area-active",dropDisabled:"qq-upload-drop-area-disabled",list:"qq-upload-list",progressBar:"qq-progress-bar",file:"qq-upload-file",spinner:"qq-upload-spinner",finished:"qq-upload-finished",retrying:"qq-upload-retrying",retryable:"qq-upload-retryable",size:"qq-upload-size",cancel:"qq-upload-cancel",retry:"qq-upload-retry",statusText:"qq-upload-status-text",success:"qq-upload-success",fail:"qq-upload-fail",successIcon:null,failIcon:null},failedUploadTextDisplay:{mode:"default",maxChars:50,responseProperty:"error",enableTooltip:!0},messages:{tooManyFilesError:"You may only drop one file"},retry:{showAutoRetryNote:!0,autoRetryNote:"Retrying {retryNum}/{maxAuto}...",showButton:!1},showMessage:function(t){alert(t)}},!0),qq.extend(this._options,t,!0),this._wrapCallbacks(),this._options.template=this._options.template.replace(/\{dragZoneText\}/g,this._options.text.dragZone),this._options.template=this._options.template.replace(/\{uploadButtonText\}/g,this._options.text.uploadButton),this._options.fileTemplate=this._options.fileTemplate.replace(/\{cancelButtonText\}/g,this._options.text.cancelButton),this._options.fileTemplate=this._options.fileTemplate.replace(/\{retryButtonText\}/g,this._options.text.retryButton),this._options.fileTemplate=this._options.fileTemplate.replace(/\{statusText\}/g,""),this._element=this._options.element,this._element.innerHTML=this._options.template,this._listElement=this._options.listElement||this._find(this._element,"list"),this._classes=this._options.classes,this._button||(this._button=this._createUploadButton(this._find(this._element,"button"))),this._bindCancelAndRetryEvents(),this._setupDragDrop()},qq.extend(qq.FineUploader.prototype,qq.FineUploaderBasic.prototype),qq.extend(qq.FineUploader.prototype,{clearStoredFiles:function(){qq.FineUploaderBasic.prototype.clearStoredFiles.apply(this,arguments),this._listElement.innerHTML=""},addExtraDropzone:function(t){this._setupExtraDropzone(t)},removeExtraDropzone:function(t){var e=this._options.dragAndDrop.extraDropzones;for(var n in e)if(e[n]===t)return this._options.dragAndDrop.extraDropzones.splice(n,1)},getItemByFileId:function(t){for(var e=this._listElement.firstChild;e;){if(e.qqFileId==t)return e;e=e.nextSibling}},reset:function(){qq.FineUploaderBasic.prototype.reset.apply(this,arguments),this._element.innerHTML=this._options.template,this._listElement=this._options.listElement||this._find(this._element,"list"),this._options.button||(this._button=this._createUploadButton(this._find(this._element,"button"))),this._bindCancelAndRetryEvents(),this._setupDragDrop()},_leaving_document_out:function(t){return(qq.chrome()||qq.safari()&&qq.windows())&&0==t.clientX&&0==t.clientY||qq.firefox()&&!t.relatedTarget},_storeFileForLater:function(t){qq.FineUploaderBasic.prototype._storeFileForLater.apply(this,arguments);var e=this.getItemByFileId(t);qq(this._find(e,"spinner")).hide()},_find:function(t,e){var n=qq(t).getByClass(this._options.classes[e])[0];if(!n)throw new Error("element not found "+e);return n},_setupExtraDropzone:function(t){this._options.dragAndDrop.extraDropzones.push(t),this._setupDropzone(t)},_setupDropzone:function(e){var n=this,t=new qq.UploadDropZone({element:e,onEnter:function(t){qq(e).addClass(n._classes.dropActive),t.stopPropagation()},onLeave:function(){},onLeaveNotDescendants:function(){qq(e).removeClass(n._classes.dropActive)},onDrop:function(t){n._options.dragAndDrop.hideDropzones&&qq(e).hide(),qq(e).removeClass(n._classes.dropActive),1i&&(o=r.substring(0,i)+"..."):(r=this._options.text.failUpload,this.log("'"+s+"' is not a valid property on the server response.","warn")),qq(this._find(t,"statusText")).setText(o||r),this._options.failedUploadTextDisplay.enableTooltip&&this._showTooltip(t,r)):"default"===n?qq(this._find(t,"statusText")).setText(this._options.text.failUpload):"none"!==n&&this.log("failedUploadTextDisplay.mode value of '"+n+"' is not valid","warn")},_showTooltip:function(t,e){t.title=e},_showSpinner:function(t){this._find(t,"spinner").style.display="inline-block"},_showCancelLink:function(t){this._options.disableCancelForFormUploads&&!qq.UploadHandlerXhr.isSupported()||(this._find(t,"cancel").style.display="inline")},_error:function(t,e){var n=qq.FineUploaderBasic.prototype._error.apply(this,arguments);this._options.showMessage(n)}}),qq.UploadDropZone=function(t){this._options={element:null,onEnter:function(){},onLeave:function(){},onLeaveNotDescendants:function(){},onDrop:function(){}},qq.extend(this._options,t),qq.extend(this,qq.DisposeSupport),this._element=this._options.element,this._disableDropOutside(),this._attachEvents()},qq.UploadDropZone.prototype={_dragover_should_be_canceled:function(){return qq.safari()||qq.firefox()&&qq.windows()},_disableDropOutside:function(){qq.UploadDropZone.dropOutsideDisabled||(this._dragover_should_be_canceled?qq(document).attach("dragover",function(t){t.preventDefault()}):qq(document).attach("dragover",function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="none",t.preventDefault())}),qq.UploadDropZone.dropOutsideDisabled=!0)},_attachEvents:function(){var n=this;n._attach(n._element,"dragover",function(t){if(n._isValidFileDrag(t)){var e=qq.ie()?null:t.dataTransfer.effectAllowed;t.dataTransfer.dropEffect="move"==e||"linkMove"==e?"move":"copy",t.stopPropagation(),t.preventDefault()}}),n._attach(n._element,"dragenter",function(t){n._isValidFileDrag(t)&&n._options.onEnter(t)}),n._attach(n._element,"dragleave",function(t){if(n._isValidFileDrag(t)){n._options.onLeave(t);var e=document.elementFromPoint(t.clientX,t.clientY);qq(this).contains(e)||n._options.onLeaveNotDescendants(t)}}),n._attach(n._element,"drop",function(t){n._isValidFileDrag(t)&&(t.preventDefault(),n._options.onDrop(t))})},_isValidFileDrag:function(t){if(qq.ie()&&!qq.ie10())return!1;var e=t.dataTransfer,n=qq.safari(),i=!!qq.ie10()||"none"!=e.effectAllowed;return e&&i&&(e.files||!n&&e.types.contains&&e.types.contains("Files"))}},qq.UploadHandlerAbstract=function(t){this._options={debug:!1,endpoint:"/upload.php",maxConnections:999,log:function(){},onProgress:function(){},onComplete:function(){},onCancel:function(){},onUpload:function(){},onAutoRetry:function(){}},qq.extend(this._options,t),this._queue=[],this._params=[],this.log=this._options.log},qq.UploadHandlerAbstract.prototype={add:function(){},upload:function(t,e){var n=this._queue.push(t),i={};qq.extend(i,e),this._params[t]=i,n<=this._options.maxConnections&&this._upload(t,this._params[t])},retry:function(t){0<=qq.indexOf(this._queue,t)?this._upload(t,this._params[t]):this.upload(t,this._params[t])},cancel:function(t){this.log("Cancelling "+t),this._cancel(t),this._dequeue(t)},cancelAll:function(){for(var t=0;t=n&&e');return e.setAttribute("id",t),e.style.display="none",document.body.appendChild(e),e},_createForm:function(t,e){var n=this._options.demoMode?"GET":"POST",i=qq.toElement('
      '),s=qq.obj2url(e,this._options.endpoint);return i.setAttribute("action",s),i.setAttribute("target",t.name),i.style.display="none",document.body.appendChild(i),i}}),qq.UploadHandlerXhr=function(t){qq.UploadHandlerAbstract.apply(this,arguments),this._files=[],this._xhrs=[],this._loaded=[]},qq.UploadHandlerXhr.isSupported=function(){var t=document.createElement("input");return t.type="file","multiple"in t&&"undefined"!=typeof File&&"undefined"!=typeof FormData&&"undefined"!=typeof(new XMLHttpRequest).upload},qq.extend(qq.UploadHandlerXhr.prototype,qq.UploadHandlerAbstract.prototype),qq.extend(qq.UploadHandlerXhr.prototype,{add:function(t){if(!(t instanceof File))throw new Error("Passed obj in not a File (in qq.UploadHandlerXhr)");return this._files.push(t)-1},getName:function(t){var e=this._files[t];return null!==e.fileName&&e.fileName!==undefined?e.fileName:e.name},getSize:function(t){var e=this._files[t];return null!=e.fileSize?e.fileSize:e.size},getLoaded:function(t){return this._loaded[t]||0},isValid:function(t){return this._files[t]!==undefined},reset:function(){qq.UploadHandlerAbstract.prototype.reset.apply(this,arguments),this._files=[],this._xhrs=[],this._loaded=[]},_upload:function(e,t){this._options.onUpload(e,this.getName(e),!0);var n=this._files[e],i=this.getName(e);this.getSize(e);this._loaded[e]=0;var s=this._xhrs[e]=new XMLHttpRequest,r=this;s.upload.onprogress=function(t){t.lengthComputable&&(r._loaded[e]=t.loaded,r._options.onProgress(e,i,t.loaded,t.total))},s.onreadystatechange=function(){4==s.readyState&&r._onComplete(e,s)},(t=t||{})[this._options.inputName]=i;var o=qq.obj2url(t,this._options.endpoint),a=this._options.demoMode?"GET":"POST";if(s.open(a,o,!0),s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.setRequestHeader("X-File-Name",encodeURIComponent(i)),s.setRequestHeader("Cache-Control","no-cache"),this._options.forceMultipart){var l=new FormData;l.append(this._options.inputName,n),n=l}else s.setRequestHeader("Content-Type","application/octet-stream"),s.setRequestHeader("X-Mime-Type",n.type);for(key in this._options.customHeaders)s.setRequestHeader(key,this._options.customHeaders[key]);this.log("Sending upload request for "+e),s.send(n)},_onComplete:function(id,xhr){"use strict";if(this._files[id]){var name=this.getName(id),size=this.getSize(id),response;this._options.onProgress(id,name,size,size),this.log("xhr - server response received for "+id),this.log("responseText = "+xhr.responseText);try{response="function"==typeof JSON.parse?JSON.parse(xhr.responseText):eval("("+xhr.responseText+")")}catch(error){this.log("Error when attempting to parse xhr response text ("+error+")","error"),response={}}(200===xhr.status&&response.success||!this._options.onAutoRetry(id,name,response,xhr))&&(this._options.onComplete(id,name,response,xhr),this._xhrs[id]=null,this._dequeue(id))}},_cancel:function(t){this._options.onCancel(t,this.getName(t)),this._files[t]=null,this._xhrs[t]&&(this._xhrs[t].abort(),this._xhrs[t]=null)}}),function(s){"use strict";var n,r,e,i,o,a,l,c,p,u;a=["uploaderType"],e=function(t){if(t){var e=c(t);l(e),"basic"===o("uploaderType")?n(new qq.FineUploaderBasic(e)):n(new qq.FineUploader(e))}return r},i=function(t,e){var n=r.data("fineuploader");if(!e)return n===undefined?null:n[t];n===undefined&&(n={}),n[t]=e,r.data("fineuploader",n)},n=function(t){return i("uploader",t)},o=function(t,e){return i(t,e)},l=function(t){var i=t.callbacks={};s.each((new qq.FineUploaderBasic)._options.callbacks,function(t){var e,n;e=(e=/^on(\w+)/.exec(t)[1]).substring(0,1).toLowerCase()+e.substring(1),n=r,i[t]=function(){var t=Array.prototype.slice.call(arguments);return n.triggerHandler(e,t)}})},c=function(t,e){var n,i;if(n=e===undefined?"basic"!==t.uploaderType?{element:r[0]}:{}:e,s.each(t,function(t,e){0<=s.inArray(t,a)?o(t,e):e instanceof s?n[t]=e[0]:s.isPlainObject(e)?(n[t]={},c(e,n[t])):Array.isArray(e)?(i=[],s.each(e,function(t,e){e instanceof s?s.merge(i,e):i.push(e)}),n[t]=i):n[t]=e}),e===undefined)return n},p=function(t){return"string"===s.type(t)&&!t.match(/^_/)&&n()[t]!==undefined},u=function(t){return n()[t].apply(n(),Array.prototype.slice.call(arguments,1))},s.fn.fineUploader=function(t){return r=this,n()&&p(t)?u.apply(this,arguments):"object"!=typeof t&&t?(s.error("Method "+t+" does not exist on jQuery.fineUploader"),this):e.apply(this,arguments)}}(jQuery),function(c){function t(t){if("string"==typeof t.data&&( t.data={keys:t.data}),t.data&&t.data.keys&&"string"==typeof t.data.keys){var a=t.handler,l=t.data.keys.toLowerCase().split(" ");t.handler=function(n){if(this===n.target||!(c.hotkeys.options.filterInputAcceptingElements&&c.hotkeys.textInputTypes.test(n.target.nodeName)||c.hotkeys.options.filterContentEditable&&c(n.target).attr("contenteditable")||c.hotkeys.options.filterTextInputs&&-1","/":"?","\\":"|"},textAcceptingInputTypes:["text","password","number","email","url","range","date","month","week","time","datetime","datetime-local","search","color","tel"],textInputTypes:/textarea|input|select/i,options:{filterInputAcceptingElements:!1,filterTextInputs:!1,filterContentEditable:!1}},c.each(["keydown","keyup","keypress"],function(){c.event.special[this]={add:t}})}(jQuery||this.jQuery||window.jQuery),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(s){"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e});var n={init:function(t){return this.options=s.extend({},s.noty.defaults,t),this.options.layout=this.options.custom?s.noty.layouts.inline:s.noty.layouts[this.options.layout],s.noty.themes[this.options.theme]?this.options.theme=s.noty.themes[this.options.theme]:t.themeClassName=this.options.theme,delete t.layout,delete t.theme,this.options=s.extend({},this.options,this.options.layout.options),this.options.id="noty_"+(new Date).getTime()*Math.floor(1e6*Math.random()),this.options=s.extend({},this.options,t),this._build(),this},_build:function(){var t=s('
      ').attr("id",this.options.id);if(t.append(this.options.template).find(".noty_text").html(this.options.text),this.$bar=null!==this.options.layout.parent.object?s(this.options.layout.parent.object).css(this.options.layout.parent.css).append(t):t,this.options.themeClassName&&this.$bar.addClass(this.options.themeClassName).addClass("noty_container_type_"+this.options.type),this.options.buttons){this.options.closeWith=[],this.options.timeout=!1;var e=s("
      ").addClass("noty_buttons");null!==this.options.layout.parent.object?this.$bar.find(".noty_bar").append(e):this.$bar.append(e);var i=this;s.each(this.options.buttons,function(t,e){var n=s("
      ',animation:{open:{height:"toggle"},close:{height:"toggle"},easing:"swing",speed:500,fadeSpeed:"fast"},timeout:!1,force:!1,modal:!1,maxVisible:5,killer:!1,closeWith:["click"],callback:{onShow:function(){},afterShow:function(){},onClose:function(){},afterClose:function(){},onCloseClick:function(){}},buttons:!1},s(window).on("resize",function(){s.each(s.noty.layouts,function(t,e){e.container.style.apply(s(e.container.selector))})}),window.noty=function e(t){return s.notyRenderer.init(t)},s.noty.layouts.bottom={name:"bottom",options:{},container:{object:'
        ',selector:"ul#noty_bottom_layout_container",style:function(){s(this).css({bottom:0,left:"5%",position:"fixed",width:"90%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"
      • ",selector:"li",css:{}},css:{display:"none"},addClass:""},s.noty.layouts.bottomCenter={name:"bottomCenter",options:{},container:{object:'
          ',selector:"ul#noty_bottomCenter_layout_container",style:function(){s(this).css({bottom:20,left:0,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),s(this).css({left:(s(window).width()-s(this).outerWidth(!1))/2+"px"})}},parent:{object:"
        • ",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},s.noty.layouts.bottomLeft={name:"bottomLeft",options:{},container:{object:'
            ',selector:"ul#noty_bottomLeft_layout_container",style:function(){s(this).css({bottom:20,left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&s(this).css({left:5})}},parent:{object:"
          • ",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},s.noty.layouts.bottomRight={name:"bottomRight",options:{},container:{object:'
              ',selector:"ul#noty_bottomRight_layout_container",style:function(){s(this).css({bottom:20,right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&s(this).css({right:5})}},parent:{object:"
            • ",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},s.noty.layouts.center={name:"center",options:{},container:{object:'
                ',selector:"ul#noty_center_layout_container",style:function(){s(this).css({position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var t=s(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");s("body").append(t),t.find(".i-am-closing-now").remove(),t.find("li").css("display","block");var e=t.height();t.remove(),s(this).hasClass("i-am-new")?s(this).css({left:(s(window).width()-s(this).outerWidth(!1))/2+"px",top:(s(window).height()-e)/2+"px"}):s(this).animate({left:(s(window).width()-s(this).outerWidth(!1))/2+"px",top:(s(window).height()-e)/2+"px"},500)}},parent:{object:"
              • ",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},s.noty.layouts.centerLeft={name:"centerLeft",options:{},container:{object:'
                  ',selector:"ul#noty_centerLeft_layout_container",style:function(){s(this).css({left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var t=s(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");s("body").append(t),t.find(".i-am-closing-now").remove(),t.find("li").css("display","block");var e=t.height();t.remove(),s(this).hasClass("i-am-new")?s(this).css({top:(s(window).height()-e)/2+"px"}):s(this).animate({top:(s(window).height()-e)/2+"px"},500),window.innerWidth<600&&s(this).css({left:5})}},parent:{object:"
                • ",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},s.noty.layouts.centerRight={name:"centerRight",options:{},container:{object:'
                    ',selector:"ul#noty_centerRight_layout_container",style:function(){s(this).css({right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var t=s(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");s("body").append(t),t.find(".i-am-closing-now").remove(),t.find("li").css("display","block");var e=t.height();t.remove(),s(this).hasClass("i-am-new")?s(this).css({top:(s(window).height()-e)/2+"px"}):s(this).animate({top:(s(window).height()-e)/2+"px"},500),window.innerWidth<600&&s(this).css({right:5})}},parent:{object:"
                  • ",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},s.noty.layouts.inline={name:"inline",options:{},container:{object:'
                      ',selector:"ul.noty_inline_layout_container",style:function(){s(this).css({width:"100%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"
                    • ",selector:"li",css:{}},css:{display:"none"},addClass:""},s.noty.layouts.top={name:"top",options:{},container:{object:'
                        ',selector:"ul#noty_top_layout_container",style:function(){s(this).css({top:0,left:"5%",position:"fixed",width:"90%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"
                      • ",selector:"li",css:{}},css:{display:"none"},addClass:""},s.noty.layouts.topCenter={name:"topCenter",options:{},container:{object:'
                          ',selector:"ul#noty_topCenter_layout_container",style:function(){s(this).css({top:20,left:0,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),s(this).css({left:(s(window).width()-s(this).outerWidth(!1))/2+"px"})}},parent:{object:"
                        • ",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},s.noty.layouts.topLeft={name:"topLeft",options:{},container:{object:'
                            ',selector:"ul#noty_topLeft_layout_container",style:function(){s(this).css({top:20,left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&s(this).css({left:5})}},parent:{object:"
                          • ",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},s.noty.layouts.topRight={name:"topRight",options:{},container:{object:'";if(/^\s*\w+\./.test(e)){var i=/([0-9])\./.exec(e);if(i){var s=parseInt(i[1],10);n=1':"
                              "}else n="
                                "}if(o"+$(this).html()+"
                              1. "),$(this).remove(),o=t}else o=0}),$("span",t).replaceWith(function(){return $(this).contents()}),$("span:empty",t).remove(),$("[class^='Mso']",t).removeAttr("class"),$("p:empty",t).remove(),t},function(){var t,e=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;(t=function(t){function w(){return w.__super__.constructor.apply(this,arguments)}return e(w,t),w.viewPrint=function(t,e,n,i){var s,r,o,a,l,c;return n||(n={},t.constructor.attributesGet&&(n=t.constructor.attributesGet())),s=n[e],l=t[e],c=void 0,s||(s=n[r=e+"_id"])&&t[e=r]&&(c=l,l=t[e]),l||(a=e.split("::"))[0]&&a[1]&&t[a[0]]&&(l=t[a[0]][a[1]]),s?(c||"_id"===e.substr(e.length-3,e.length)&&t[o=e.substr(0,e.length-3)]&&(c=t[o]),this.viewPrintItem(l,s,c,i,t)):this.viewPrintItem(l)},w.viewPrintItem=function(t,e,n,i,s){var r,o,a,l,c,p,u,h,d,f,m,g,v,b,y;if(null==e&&(e={}),void 0===t)return"-";if(""===t)return"-";if(null===t)return"-";for(m="",u=[t],_.isArray(t)&&(u=t),l=0,h=u.length;l"+a+""):(g="tel"===e.type?''+w.Utils.htmlEscape(g)+"":"url"!==e.type||d?w.Utils.htmlEscape(g):w.Utils.linkify(g),c=!0),c||"string"!=typeof g||(g=w.Utils.htmlEscape(g)),_.isEmpty(m)||(m+=", "),m+=g;return m},w._placeholderReplacement=function(t,e,n,i){var s,r;if(t&&e&&!_.isEmpty(e.linktemplate)&&t.constructor&&t.constructor.className&&!_.isEmpty(t[e.name]))return(s={attribute:e,session:w.Session.get(),config:w.Config.all()})[t.constructor.className.toLowerCase()]=t,r=n,i||(r=w.Utils.htmlEscape(r)),''+r+""},w.view=function(e){return function(t){return null==t&&(t={}),JST["app/views/"+e](_.extend(t,w.ViewHelpers))}},w}(Spine.Controller)).UiElement=function(){function t(){}return t}(),window.App=t}.call(this),function(){var s;App.Config=function(){function t(){}var i;return i=void 0,t.init=function(){return null!=i?i:i=new s},t.get=function(t,e){return void 0===i&&null==i&&(i=new s),i.get(t,e)},t.set=function(t,e,n){return void 0===i&&null==i&&(i=new s),i.set(t,e,n)},t.all=function(){return void 0===i&&null==i&&(i=new s),i.all()},t}(),s=function(){function t(){this.config={}}return t.prototype.get=function(t,e){if(e){if(!e in this.config)return;if(void 0===this.config[e])return;return this.config[e][t]}return this.config[t]},t.prototype.set=function(t,e,n){return n?(this.config[n]||(this.config[n]={}),this.config[n][t]=e):this.config[t]=e},t.prototype.all=function(){return this.config},t}()}.call(this),function(){var s;App.LocalStorage=function(){function t(){}var i;return i=void 0,t.set=function(t,e,n){return void 0===i&&null==i&&(i=new s),i.set(t,e,n)},t.get=function(t,e){return void 0===i&&null==i&&(i=new s),i.get(t,e)},t["delete"]=function(t,e){return void 0===i&&null==i&&(i=new s),i["delete"](t,e)},t.clear=function(){return void 0===i&&null==i&&(i=new s),i.clear()},t.keys=function(t,e){return void 0===i&&null==i&&(i=new s),i.keys(t,e)},t.usage=function(){return void 0===i&&null==i&&(i=new s),i.usage()},t}(),s=function(){function t(){}return t.prototype.set=function(t,e,n){var i;try{return n&&(t="personal::"+n+"::"+t),localStorage.setItem(t,JSON.stringify(e))}catch(s){return i=s,App.Log.error("App.LocalStorage","Local storage error!",i)}},t.prototype.get=function(t,e){var n;if(e&&(t="personal::"+e+"::"+t),n=localStorage.getItem(t))return JSON.parse(n)},t.prototype["delete"]=function(t,e){return e&&(t="personal::"+e+"::"+t),localStorage.removeItem(t)},t.prototype.clear=function(){return localStorage.clear()},t.prototype.keys=function(t,e){var n,i,s;return n=Object.keys(window.localStorage),null===e&&null===t?n:(s="",e&&(s="personal::"+e+"::"),t&&(s+=t),i=new RegExp("^"+s),n.filter(function(t){return t.match(i)}))},t.prototype.usage=function(){var t,e,n;for(t in e="",window.localStorage)n=localStorage.getItem(t),_.isString(n)&&(e+=n);return byteLength(e)},t}()}.call(this),function(){var s,r,o=[].slice,n=function(t,e){return function(){return t.apply(e,arguments)}};r=void 0,App.LogInclude=function(){function t(){}return t.log=function(t){var e,n,i;return n=t,e=2<=arguments.length?o.call(arguments,1):[],void 0===r&&null==r&&(r=new s),i=this.constructor.name,r.log(i,n,e)},t}(),App.Log=function(){function t(){}return t.debug=function(t){var e,n;return n=t,e=2<=arguments.length?o.call(arguments,1):[],void 0===r&&null==r&&(r=new s),r.log(n,"debug",e)},t.notice=function(t){var e,n;return n=t,e=2<=arguments.length?o.call(arguments,1):[],void 0===r&&null==r&&(r=new s),r.log(n,"notice",e)},t.error=function(t){var e,n;return n=t,e=2<=arguments.length?o.call(arguments,1):[],void 0===r&&null==r&&(r=new s),r.log(n,"error",e)},t.config=function(t,e){return void 0===r&&null==r&&(r=new s),r.config(t,e)},t.timeTrack=function(t){return void 0===r&&null==r&&(r=new s),r.timeTrack(t)},t}(),s=function(){function t(){var t,e;this.timeTrack=n(this.timeTrack,this),this.yieldColor=n(this.yieldColor,this),this.moduleColorsMap={},this.currentConfig={},this.currentConfigReady={},window.localStorage&&(e=window.localStorage.getItem("log_config"))&&(this.currentConfig=JSON.parse(e),this.configReady()),this.colorSupport=!1,(t=App.Browser.detection()).browser&&("Chrome"===t.browser.name?this.colorSupport=!0:"Firefox"===t.browser.anem?31<=t.browser.major&&(this.colorSupport=!0):"Safari"===t.browser.name&&(this.colorSupport=!0))}return t.prototype.configReady=function(){var t,e,n,i;for(n in e=[],t=this.currentConfig)i=t[n],"module"===n||"content"===n?e.push(this.currentConfigReady[n]=new RegExp(i,"i")):e.push(this.currentConfigReady[n]=i);return e},t.prototype.config=function(t,e){return null==t&&(t=void 0),null==e&&(e=void 0),void 0===e?t?this.currentConfig[t]:this.currentConfig:(this.currentConfig[t]=e,this.configReady(),window.localStorage?window.localStorage.setItem("log_config",JSON.stringify(this.currentConfig)):void 0)},t.prototype.log=function(t,e,n){if("debug"===e){if(!this.currentConfigReady.module&&!this.currentConfigReady.content)return;if(this.currentConfigReady.module&&!t.match(this.currentConfigReady.module))return;if(this.currentConfigReady.content&&!n.toString().match(this.currentConfigReady.content))return}return this._log(t,e,n)},t.prototype._log=function(t,e,n){var i,s,r;return r=32,(s="App."+t+"("+e+")").length(new Date).getTime()},can_be_published_archive_in_future:function(){return this.date(this.archived_at)>(new Date).getTime()},can_be_published_internal_in_future:function(){return this.date(this.internal_at)>(new Date).getTime()},is_internally_published:function(t){var e;return!!("internal"===(e=this.can_be_published_state())||"published"===e)&&!!this.translation(t.id)},is_published:function(t){return"published"===this.can_be_published_state()&&!!this.translation(t.id)},date:function(t){if(t)return new Date(t).getTime()}},App.KnowledgeBaseCanBePublished={canBePublished:function(){return!0},extended:function(){return this.include(t)}}}.call(this),function(){var t;t={translations:function(){var e,t,n;return t=this.constructor.translatableClass(),e=this.constructor.translatableForeignKey(),t.all().filter((n=this,function(t){return t[e]===n.id}))},translation:function(e){return null==e?null:this.translations().filter(function(t){return t.kb_locale_id===e})[0]},primaryTranslation:function(){var t;return t=this.knowledge_base().primaryKbLocale(),this.translation(t.id)},attributesIncludingTranslation:function(t){var e,n;return(e=this.attributes()).translation=null!=(n=this.translation(t))?n.attributes():void 0,e},attributesForRendering:function(t,e){var n;return null==e&&(e={}),n={id:this.id,url:this.uiUrl(t,e.action),title:this.guaranteedTitle(t.id),missingTranslation:void 0===this.translation(t.id)},this instanceof App.KnowledgeBase&&(n.icon="knowledge-base",n.title=""),this instanceof App.KnowledgeBaseCategory&&(n.iconFont=!0,n.icon=this.category_icon,n.count=this.countDeepAnswers(),n.state=this.visibilityState(t)),this instanceof App.KnowledgeBaseAnswer&&(n.icon="knowledge-base-answer",n.state=this.can_be_published_state(),n.tags=this.tags),n.icons={},n.missingTranslation&&(n.icons.danger=!0),n},writeMethod:function(){return this.id?"PATCH":"POST"},prepareNestedParams:function(t,e){var n,i;return this.baseParams&&(t=_.extendOwn(this.baseParams(),t)),i=t.translation,delete t.translation,(n=this.translation(e))?i.id=n.id:i.kb_locale_id=e,this.constructor.translatableClass().processAttributes&&(i=this.constructor.translatableClass().processAttributes(i)),t.translations_attributes=[i],t},objectActionName:function(){return(this.isNew()?"New":"Edit")+" "+this.objectName()},removeTranslations:function(t){var e,n,i,s,r;for(null==t&&(t={}),s=[],e=0,n=(i=this.translations()).length;e<'+App.Utils.htmlEscape(n.address)+">");return r},humanFileSize:function(t){return App.Utils.humanFileSize(t)},humanTime:function(t,e,n,i){var s;return null==e&&(e=!1),null==n&&(n=""),null==i&&(i=!0),e&&(n+=" escalation"),s=' title="'+App.i18n.translateTimestamp(t)+'"',i||(s="",n+=" noTitle"),'"},Icon:function(t,e){return null==e&&(e=""),App.Utils.icon(t,e)},fontIcon:function(t,e,n){return null==n&&(n=""),App.Utils.fontIcon(t,e,n)},RichText:function(t){return t?t.match(/@T\('/)?(t=t.replace(/@T\('(.+?)'\)/g,function(t,e){return App.i18n.translateContent(e)}),marked(t)):App.i18n.translateContent(t):t},ContentOrMimeType:function(t){var e;return e=["Content-Type","content_type","Mime-Type","mime_type"],_.values(_.pick(null!=t?t.preferences:void 0,e))[0]},ContentTypeIcon:function(t){return{"image/jpeg":"file-image","image/jpg":"file-image","image/png":"file-image","image/svg":"file-image","image/gif":"file-image","application/pdf":"file-pdf","application/msword":"file-word","application/vnd.ms-word":"file-word","application/vnd.oasis.opendocument.text":"file-word","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"file-word","application/vnd.openxmlformats-officedocument.wordprocessingml.template":"file-word","application/vnd.ms-excel":"file-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"file-excel","application/vnd.oasis.opendocument.spreadsheet":"file-excel","application/vnd.ms-powerpoint":"file-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation":"file-powerpoint","application/vnd.oasis.opendocument.presentation":"file-powerpoint","text/plain":"file-text","text/html":"file-code","application/json":"file-code","message/rfc822":"file-email","application/json":"file-code","text/plain":"file-text","text/rtf":"file-text","application/gzip":"file-archive","application/zip":"file-archive"}[t=App.Utils.contentTypeCleanup(t)]},canDownload:function(t){return"application/pdf"!==(t=App.Utils.contentTypeCleanup(t))&&"text/html"!==t},canPreview:function(t){return!_.isEmpty(t)&&!!t.match(/image\/(png|jpg|jpeg|gif)/i)},unique_avatar:function(t,e,n){var i,s,r,o,a,l;return null==n&&(n=40),o=300*n/(i=40),s=226*n/i,a=(r=new Math.seedrandom(t))()*(o-n),l=r()*(s-n),App.view("avatar_unique")({x:a,y:l,initials:e})},iconWithModifier:function(t,e){return e.className||(e.className=""),e.addStateClass&&(e.className+=" state-"+t.state),App.view("knowledge_base/_icon_with_modifier")({item:t,className:e.className,iconset:e.iconset})},replacePlaceholder:function(t,e,n){return null==n&&(n=!1),App.Utils.replaceTags(t,e,n)},dir:function(t,e){return"ltr"===App.i18n.dir()?t:e}}}.call(this),function(){App.Config.set("api_path","api/v1"),App.Config.set("image_path","/assets/images")}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.Model=function(t){function e(){e.__super__.constructor.apply(this,arguments)}return n(e,t),e.apiPath=App.Config.get("api_path"),e.prototype.uiUrl=function(){return"#"},e.prototype.translate=function(){return App[this.constructor.className].configure_translate},e.prototype.objectDisplayName=function(){return this.constructor.className},e.prototype.displayName=function(){var t;return this.name?this.name:this.realname?this.realname+" <"+this.email+">":(_.isEmpty(this.firstname)||(t=this.firstname),_.isEmpty(this.lastname)||(_.isEmpty(t)?t="":t+=" ",t+=this.lastname),_.isEmpty(t)?this.email?this.email:this.title?this.title:this.subject?this.subject:this.phone?this.phone:this.login?this.login:"???":t)},e.prototype.displayNameLong=function(){var t;return this.name?this.name:(_.isEmpty(this.firstname)||(t=this.firstname),_.isEmpty(this.lastname)||(_.isEmpty(t)?t="":t+=" ",t+=this.lastname),_.isEmpty(t)||(_.isEmpty(this.organization)?_.isEmpty(this.department)||(t=t+" ("+this.department+")"):t="object"==typeof this.organization?t+" ("+this.organization.name+")":t+" ("+this.organization+")"),_.isEmpty(t)?this.email?this.email:this.title?this.title:this.subject?this.subject:this.phone?this.phone:this.login?this.login:"???":t)},e.prototype.icon=function(){return""},e.prototype.iconTitle=function(){return""},e.prototype.iconActivity=function(){return""},e.validate=function(t){var e,n,i,s,r,o,a;for(n in null==t&&(t={}),a=null!=t&&null!=(o=t.controllerForm)?o.screen:void 0,App[t.model]&&App[t.model].attributesGet?i=App[t.model].attributesGet(a):t.model.configure_attributes&&(i=App.Model.attributesGet(a,t.model.configure_attributes)),s={},i)if(!(e=i[n]).readonly){if(t.controllerForm&&t.controllerForm.attributeIsMandatory(e.name))if((r=e.name.split("::"))[0]&&!r[1])n in t.params&&""!==t.params[n]&&void 0!==t.params[n]&&null!==t.params[n]||(s[n]=__("is required"));else{if(!r[0]||!r[1]||r[2])throw"can't parse '"+e.name+"'";t.params[r[0]]&&r[1]in t.params[r[0]]&&""!==t.params[r[0]][r[1]]&&void 0!==t.params[r[0]][r[1]]&&null!==t.params[r[0]][r[1]]||(s[n]=__("is required"))}"password"===e.type&&t.params[n]&&n+"_confirm"in t.params&&t.params[n]!==t.params[n+"_confirm"]&&(s[n]="didn't match",s[n+"_confirm"]=""),"email"===e.type&&t.params[n]&&(t.params[n].match(/\S+@\S+\.\S+/)||(s[n]="invalid"),t.params[n].match(/ /)&&(s[n]="invalid")),"datetime"===e.tag&&"invalid"===t.params[n]&&(s[n]="invalid"),"date"===e.tag&&"invalid"===t.params[n]&&(s[n]="invalid")}if((null!=t?t.controllerForm:void 0)&&App.FormHandlerCoreWorkflow.requestsRunning(t.controllerForm)&&(s._core_workflow={target:t.target,controllerForm:t.controllerForm}),!_.isEmpty(s))return s._core_workflow||App.Log.error("Model","validation failed",s),s},e.attributesSet=function(t){var e,n,i,s,r,o,a,l,c,p,u;for(n=[],r=0,l=(i=App[this.className].configure_attributes).length;rnew Date(t.updated_at))return App.Log.debug("Model","request "+s.className+".find("+e.id+") from server"),s.full(e.id,!1,!0)},App.Delay.set(o,600,"full-"+e.id,"model-"+s.className)}),"Item::Subscribe::"+this.className),e=this.className+":destroy",App.Event.bind(e,(i=this,function(t){var e;if(i.SUBSCRIPTION_ITEM&&i.SUBSCRIPTION_ITEM[t.id]&&App[i.className].exists(t.id))return e=App[i.className].find(t.id),App.Log.debug("Model","server delete on "+i.className+".find("+t.id+") "+t.updated_at),o=function(){return e.trigger("destroy",e)},App.Delay.set(o,500,"delete-"+t.id,"model-"+i.className)}),"Item::SubscribeDelete::"+this.className)),this.SUBSCRIPTION_ITEM||(this.SUBSCRIPTION_ITEM={}),this.SUBSCRIPTION_ITEM[t]||(this.SUBSCRIPTION_ITEM[t]={}),n=this.className+"-"+Math.floor(99999*Math.random()),this.SUBSCRIPTION_ITEM[t][n]=o,n},e.unsubscribe=function(t){var e,n,i;if(this.SUBSCRIPTION_ITEM)for(e in i=this.SUBSCRIPTION_ITEM)(n=i[e])[t]&&delete n[t];if(this.SUBSCRIPTION_COLLECTION&&this.SUBSCRIPTION_COLLECTION[t])return delete this.SUBSCRIPTION_COLLECTION[t]},e.fetchFull=function(t,e){var n,i,s,r,o,a,l;if(null==e&&(e={}),s=this.url+"/?full=true",App.Log.debug("Model","fetchFull collection "+this.className,s),i=this.className+"::fetchFull",!1!==e.force||0===App[this.className].count()){if(t&&(o=this,n=function(){return t(App[o.className].all())},App.QueueManager.add(i,n)),!(this.fetchFullActive&&this.fetchFullActive>(new Date).getTime()-500))return this.fetchFullActive=(new Date).getTime(),App.Ajax.request({type:"GET",url:s,processData:!0,success:(l=this,function(t){return l.fetchFullActive=!1,App.Log.debug("Model","got fetchFull collection "+l.className,t),e.clear&&App[l.className].deleteAll(),t.assets?(App.Collection.loadAssets(t.assets,{targetModel:l.className}),t.record_ids&&_.isEmpty(t.record_ids)&&App[l.className].trigger("refresh",[])):App[l.className].refresh(t),App.QueueManager.run(i)}),error:(a=this,function(t,e,n){return a.fetchFullActive=!1,App.Log.error("Model",e,n,s)})})}else t&&(r=this,n=function(){return t(App[r.className].all(),"full")},App.QueueManager.add(i,n),App.QueueManager.run(i))},e.indexFull=function(o,e){var t,n,i,a,s,r,l,c;for(null==e&&(e={}),r=this.url+"?full=true",t=0,i=(s=["page","per_page","sort_by","order_by"]).length;ts&&(s=e.updated_at):s=e.updated_at);return s},e.updatedAt=function(t){if(this.irecords[t])return this.irecords[t].updated_at},e.findNative=function(t){return this.irecords[t]||("function"==typeof notFound?notFound(t):void 0)},e.tagGet=function(t,e,n){return App.Ajax.request({id:e,type:"GET",url:this.apiPath+"/tags",data:{object:this.serverClassName||this.className,o_id:t},processData:!0,success:function(t){return n(t)}})},e.tagAdd=function(t,e){return App.Ajax.request({type:"POST",url:this.apiPath+"/tags/add",data:JSON.stringify({object:this.serverClassName||this.className,o_id:t,item:e}),processData:!0})},e.tagRemove=function(t,e){return App.Ajax.request({type:"DELETE",url:this.apiPath+"/tags/remove",data:JSON.stringify({object:this.serverClassName||this.className,o_id:t,item:e}),processData:!0})},e.clearInMemory=function(){return App.Delay.clearLevel("model-"+this.className),this.resetCallbacks(),this.resetAttributes(),this.deleteAll()},e.updateAttributes=function(t){var e,n,i,s,r,o,a,l,c,p;for(_.isEmpty(this.org_configure_attributes)&&(this.org_configure_attributes=$.extend(!0,[],this.configure_attributes)),s=$.extend(!0,[],this.configure_attributes),e=[],o=0,c=t.length;ohere')},{name:"note",display:__("Note"),tag:"textarea",note:__("Notes are visible to agents only, never to customers."),limit:250,"null":!0},{name:"updated_at",display:__("Updated"),tag:"datetime",readonly:1},{name:"active",display:__("Active"),tag:"active","default":!0},{name:"shared_drafts",display:__("Shared Drafts"),tag:"active"}],e.configure_clone=!0,e.configure_overview=["name"],e.prototype.uiUrl=function(){return"#group/zoom/"+this.id},e.prototype.activityMessage=function(t){return"create"===t.type?App.i18n.translateContent("%s created group |%s|",t.created_by.displayName(),t.title):"update"===t.type?App.i18n.translateContent("%s updated group |%s|",t.created_by.displayName(),t.title):"Unknow action for ("+this.objectDisplayName()+"/"+t.type+"), extend activityMessage() of model."},e.prototype.avatar=function(t,e){return null==t&&(t=40),null==e&&(e=[]),t=parseInt(t,10),e.push("size-"+t),e.push("avatar--group-color-"+this.id%3),App.view("avatar_group")({cssClass:e.join(" ")})},e.accesses=function(){return{read:__("Read"),create:__("Create"),change:__("Change"),overview:__("Overview"),full:__("Full")}},e.prototype.signature_id_is_display_warning=function(t){return!App.Signature.find(t).active},e}(App.Model)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.Job=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.configure("Job","name","timeplan","condition","perform","disable_notification","note","active"),e.extend(Spine.Model.Ajax),e.url=e.apiPath+"/jobs",e.configure_attributes=[{name:"name",display:__("Name"),tag:"input",type:"text",limit:100,"null":!1},{name:"timeplan",display:__("When should the job run?"),tag:"timer","null":!0},{name:"condition",display:__("Conditions for affected objects"),tag:"ticket_selector","null":!0,executionTime:!0,noCurrentUser:!0},{name:"perform",display:__("Execute changes on objects"),tag:"ticket_perform_action","null":!0,notification:!0,ticket_delete:!0},{name:"disable_notification",display:__("Disable Notifications"),tag:"boolean","default":!0},{name:"note",display:__("Note"),tag:"textarea",note:__("Notes are visible to agents only, never to customers."),limit:250,"null":!0},{name:"active",display:__("Active"),tag:"active","default":!0},{name:"matching",display:__("Will process"),readonly:1},{name:"processed",display:__("Has processed"),readonly:1},{name:"last_run_at",display:__("Last run"),tag:"datetime",readonly:1,include_timezone:!0},{name:"next_run_at",display:__("Scheduled for"),tag:"datetime",readonly:1,include_timezone:!0},{name:"running",display:__("Running"),tag:"boolean",readonly:1},{name:"created_by_id",display:__("Created by"),relation:"User",readonly:1},{name:"created_at",display:__("Created"),tag:"datetime",readonly:1},{name:"updated_by_id",display:__("Updated by"),relation:"User",readonly:1},{name:"updated_at",display:__("Updated"),tag:"datetime",readonly:1}],e.configure_delete=!0,e.configure_clone=!0,e.configure_overview=["name","last_run_at","processed","next_run_at","matching"],e}(App.Model)}.call(this),function(){var e=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.KnowledgeBase=function(t){function n(){return this.hasAssetsToLoad=e(this.hasAssetsToLoad,this),this.removeAssetsIfNeeded=e(this.removeAssetsIfNeeded,this),n.__super__.constructor.apply(this,arguments)}return i(n,t),n.configure("KnowledgeBase","iconset","color_highlight","color_header","color_header_link","translation_ids","locale_ids","homepage_layout","category_layout","custom_address"),n.extend(Spine.Model.Ajax),n.extend(App.KnowledgeBaseActions),n.extend(App.KnowledgeBaseAccess),n.url=n.apiPath+"/knowledge_bases",n.manageUrl=n.apiPath+"/knowledge_bases/manage",n.prototype.manageUrl=function(t){return null==t&&(t=null),App.Utils.joinUrlComponents(this.constructor.manageUrl,this.id,t)},n.prototype.publicBaseUrl=function(t){var e;return null==t&&(t=void 0),e=null!=this.custom_address&&"/"!==this.custom_address[0]?["http://"+this.custom_address]:null!=this.custom_address?[App.Utils.baseUrl(),this.custom_address.substr(1,this.custom_address.length-1)]:[App.Utils.baseUrl(),"help"],t&&e.push(t.systemLocale().locale),App.Utils.joinUrlComponents(e)},n.prototype.uiUrl=function(t,e){return null==e&&(e=void 0),App.Utils.joinUrlComponents(this.uiUrlComponent(),t.urlSuffix(),e)},n.prototype.uiUrlComponent=function(){return"#knowledge_base/"+this.id},n.prototype.categories=function(){return App.KnowledgeBaseCategory.all().filter((e=this,function(t){return t.knowledge_base_id===e.id}));var e},n.prototype.rootCategories=function(){return this.categories().filter(function(t){return null===t.parent_id}).sort(function(t,e){return t.position-e.position})},n.prototype.kb_locales=function(){return App.KnowledgeBaseLocale.findAll(this.kb_locale_ids)},n.prototype.primaryKbLocale=function(){return this.kb_locales().filter(function(t){return t.primary})[0]},n.prototype.knowledge_base=function(){return this},n.prototype.isEmpty=function(){return 0===this.rootCategories().length},n.translatableClass=function(){return App.KnowledgeBaseTranslation},n.translatableForeignKey=function(){return"knowledge_base_id"},n.extend(App.KnowledgeBaseTranslatable),n.prototype.remove=function(e){return null==e&&(e={}),this.rootCategories().forEach(function(t){return t.remove(e)}),this.removeTranslations(e),n.__super__.remove.apply(this,arguments)},n.prototype.objectName=function(){return __("Knowledge Base")},n.prototype.categoriesForDropdown=function(n){var t,i;return null==n&&(n={}),t=[],n.includeRoot&&t.push({value:null,name:">> Homepage <<"}),i=n.includeRoot?1:0,this.rootCategories().reduce(function(t,e){return t.concat(e.categoriesForDropdown({nested:i,kb_locale:n.kb_locale}))},t)},n.prototype.visibleInternally=function(t){return this.active&&"none"!==this.access(t)},n.prototype.visiblePublicly=function(){return this.active},n.prototype.attributes=function(){var t;return(t=n.__super__.attributes.call(this)).kb_locales=this.kb_locales().map(function(t){return t.attributes()}),t},n.prototype.loadedAnswerIds=function(){return App.KnowledgeBaseAnswer.all().filter((e=this,function(t){return t.knowledge_base().id===e.id})).map(function(t){return t.id});var e},n.prototype.loadedCategoryIds=function(){return App.KnowledgeBaseCategory.all().map(function(t){return t.id})},n.prototype.removeAssetsIfNeeded=function(t){var e,n,i,s,r,o,a,l,c,p;for(c=_.difference(this.loadedAnswerIds(),t.answer_ids),p=_.difference(this.loadedAnswerIds(),t.category_ids),i=0,r=c.length;i]+)>/g,"")).length<100?t:t.substring(0,100)+"..."},e.prototype.bodyWithPublicURLs=function(){var t,e,n,i,s,r;for(t=0,e=(r=(s=$("
                                "+this.body+"
                                ")).find("a").addBack("a").toArray()).length;t "):(n=n.reverse())[0]+" > .. > "+n[n.length-1]},n.prototype.configure_attributes=function(t){return null==t&&(t=void 0),[{name:"category_icon",model:"category",display:__("Icon"),tag:"icon_picker",iconset:this.knowledge_base().iconset,grid_width:"1/5","null":!1,"default":this.constructor.defaultIconFor(this.knowledge_base()),screen:{agent_create:{shown:!0}}},{name:"translation::title",model:"translation",display:__("Title"),tag:"input",grid_width:"4/5","null":!1,screen:{agent_create:{shown:!0}}},{name:"parent_id",model:"category",display:__("Parent"),tag:"select","null":!0,options:this.knowledge_base().categoriesForDropdown({includeRoot:!0,kb_locale:t}),grid_width:"1/2",screen:{agent_create:{tag:"input",type:"hidden",display:!1}}}]},n.prototype.publicBaseUrl=function(t){return this.isNew()?null:App.Utils.joinUrlComponents([ this.knowledge_base().publicBaseUrl(t),this.id])},n.translatableClass=function(){return App.KnowledgeBaseCategoryTranslation},n.translatableForeignKey=function(){return"category_id"},n.extend(App.KnowledgeBaseTranslatable),n.prototype.baseParams=function(){return{parent_id:this.parent_id}},n.prototype.children=function(){return void 0===this.id?[]:App.KnowledgeBaseCategory.findAllByAttribute("parent_id",this.id).sort(function(t,e){return t.position-e.position})},n.prototype.deepChildrenIds=function(){var t,e;return(e=(t=this.children()).map(function(t){return t.deepChildrenIds()})).push(t.map(function(t){return t.id})),_.flatten(e)},n.prototype.parent=function(){return App.KnowledgeBaseCategory.find(this.parent_id)},n.prototype.answers=function(){return App.KnowledgeBaseAnswer.findAllByAttribute("category_id",this.id).sort(function(t,e){return t.position-e.position})},n.prototype.countDeepAnswers=function(){var e;return(e=this.deepChildrenIds()).push(this.id),App.KnowledgeBaseAnswer.records.filter(function(t){return _.contains(e,t.category_id)}).length},n.prototype.findDeepAnswer=function(e){var t,n,i;return null!=(t=_.find(App.KnowledgeBaseAnswer.records,(n=this,function(t){return t.category_id===n.id&&e(t)})))?t:_.find(App.KnowledgeBaseCategory.records,(i=this,function(t){return t.parent_id===i.id&&t.findDeepAnswer(e)}))},n.prototype.visibilityState=function(t){return this.visiblePublicly(t)?"published":this.visibleInternally(t)?"internal":"draft"},n.prototype.visibleInternally=function(e){return null!=this.findDeepAnswer(function(t){return t.is_internally_published(e)})},n.prototype.visiblePublicly=function(e){return null!=this.findDeepAnswer(function(t){return t.is_published(e)})},n.prototype.objectName=function(){return"Category"},n.defaultIconFor=function(t){switch(null!=t?t.iconset:void 0){case"FontAwesome":return"f115";case"anticon":return"e662";case"material":return"e94d";case"ionicons":return"f139";case"Simple-Line-Icons":return"e039"}},n}(App.Model)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.KnowledgeBaseCategoryPermission=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.configure("KnowledgeBaseCategoryPermission","access"),e}(App.Model)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.KnowledgeBaseCategoryTranslation=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.configure("KnowledgeBaseCategoryTranslation","title","locale_id","category_id"),e.extend(Spine.Model.Ajax),e.extend(App.KnowledgeBaseTranslationable),e.url=e.apiPath+"/knowledge_base/category/translations",e.prototype.parent=function(){return App.KnowledgeBaseCategory.find(this.category_id)},e}(App.Model)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.KnowledgeBaseLayout=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.configure("KnowledgeBaseLayout","name"),e.extend(Spine.Model.Ajax),e.url=e.apiPath+"/knowledge_base/layouts",e}(App.Model)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.KnowledgeBaseLocale=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.configure("KnowledgeBaseLocale","knowledge_base_id","system_locale_id","primary"),e.extend(Spine.Model.Ajax),e.url=e.apiPath+"/knowledge_base/locales",e.prototype.systemLocale=function(){return App.Locale.find(this.system_locale_id)},e.prototype.urlSuffix=function(){return"locale/"+this.systemLocale().locale},e.localeFor=function(t){if(void 0===t.kb_locale_id)throw"This object doesn't have locale";return App.KnowledgeBaseLocale.find(t.kb_locale_id)},e.prototype.applyOntoPath=function(t){return t.replace(/\/locale\/[\w-]{2,5}/,"/"+this.urlSuffix())},e.prototype.attributesForRendering=function(t,e){return null==e&&(e={}),{url:this.applyOntoPath(t),title:this.systemLocale().name}},e.detect=function(e){var n;return n=App.Locale.findByAttribute("locale",App.i18n.get()),App.KnowledgeBaseLocale.all().filter(function(t){return t.knowledge_base_id===e.id&&t.system_locale_id===n.id}).pop()||e.primaryKbLocale()},e}(App.Model)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.KnowledgeBaseMenuItem=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.configure("KnowledgeBaseMenuItem","kb_locale_id","position","title","url"),e.using_kb_locale=function(t){var e;return(e=this.findAllByAttribute("kb_locale_id",t.id)).sort(function(t,e){return t.positionnew Date(v.toString())&&(T=!0);else if("before (absolute)"===i.operator)new Date(w.toString())new Date(v.toString())&&(T=!0);else if("after (relative)"===i.operator)v=this._selectorConditionDate(i,"+"),new Date(w.toString())>new Date(v.toString())&&(T=!0);else{if("within next (relative)"!==i.operator)throw"Unknown operator: "+i.operator;v=this._selectorConditionDate(i,"+"),new Date(w.toString())>new Date&&new Date(w.toString())parseInt(App.Config.get("password_max_login_failed"))},e.prototype.imageUrl=function(){if(this.image)return this.constructor.apiPath+"/users/image/"+this.image},e._fillUp=function(t){var e,n,i,s,r,o,a,l,c,p,u;if(t.accounts)for(e in t.accounts)"twitter"===e&&(t.accounts[e].link="https://twitter.com/"+t.accounts[e].username),"facebook"===e&&(t.accounts[e].link="https://www.facebook.com/profile.php?id="+t.accounts[e].uid);if(t.organization_id&&(t.organization=App.Organization.findNative(t.organization_id)),t.role_ids)for(t.roles=[],s=0,o=(l=t.role_ids).length;s").addClass("alert alert--"+e).text(t),this.$(".modal-alerts-container").html(n)},e.prototype.clearAlerts=function(){return this.$(".modal-alerts-container").empty()},e.prototype.localOnShow=function(t){return this.onShow(t)},e.prototype.onShow=function(){},e.prototype.localOnShown=function(t){return this.onShown(t)},e.prototype.onShown=function(){var t;return this.autoFocusOnFirstInput&&((t=this.$(".form-group").first()).get(0)||(t=this.el),t.find('input:not([disabled]):not([type="hidden"]):not(".btn"), select:not([disabled]), textarea:not([disabled])').first().trigger("focus")),this.initalFormParams=this.formParams()},e.prototype.localOnClose=function(t){var e;if(e=difference(this.initalFormParams,this.formParams()),!1!==this.initalFormParamsIgnore||_.isEmpty(e)||confirm(App.i18n.translateContent("The form content has been changed. Do you want to close it and lose your changes?")))return this.onClose(t);t.preventDefault()},e.prototype.onClose=function(){},e.prototype.localOnClosed=function(t){return this.onClosed(t),this.el.modal("remove")},e.prototype.onClosed=function(){},e.prototype.localOnCancel=function(t){return this.onCancel(t)},e.prototype.onCancel=function(){},e.prototype.cancel=function(t){return this.close(t),this.onCancel(t)},e.prototype.onSubmit=function(){},e.prototype.submit=function(t){return t.stopPropagation(),t.preventDefault(),this.clearAlerts(),this.onSubmit(t)},e.prototype.startLoading=function(){return this.$(".modal-body").addClass("hide"),this.$(".modal-loader").removeClass("hide")},e.prototype.stopLoading=function(){return this.$(".modal-body").removeClass("hide"),this.$(".modal-loader").addClass("hide")},e}(App.Controller)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerConfirm=function(t){function e(){return this.onSubmit=n(this.onSubmit,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.buttonClose=!0,e.prototype.buttonCancel=!0,e.prototype.buttonSubmit=__("Yes"),e.prototype.buttonClass="btn--danger",e.prototype.head=__("Confirmation"),e.prototype.small=!0,e.prototype.content=function(){return App.i18n.translateContent(this.message)},e.prototype.onSubmit=function(){if(this.close(),this.callback)return this.callback()},e}(App.ControllerModal)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerGenericDescription=function(t){function e(){return this.onSubmit=n(this.onSubmit,this),this.content=n(this.content,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.buttonClose=!0,e.prototype.buttonCancel=!1,e.prototype.buttonSubmit=__("Close"),e.prototype.head=__("Description"),e.prototype.content=function(){return marked(App.i18n.translateContent(this.description))},e.prototype.onSubmit=function(){return this.close()},e}(App.ControllerModal)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerGenericDestroyConfirm=function(t){function e(){return this.onSubmit=n(this.onSubmit,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.buttonClose=!0,e.prototype.buttonCancel=!0,e.prototype.buttonSubmit=__("delete"),e.prototype.buttonClass="btn--danger",e.prototype.head=__("Confirmation"),e.prototype.small=!0,e.prototype.content=function(){return App.i18n.translateContent("Do you really want to delete this object?")},e.prototype.onSubmit=function(){var t,e,n;return(t=this.options||{}).done=(e=this,function(){if(e.close(),e.callback)return e.callback()}),t.fail=(n=this,function(t,e){return n.log("errors"),n.showAlert(e.human_error||e.error)}),this.item.destroy(t)},e}(App.ControllerModal)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerGenericEdit=function(t){function e(){return this.content=n(this.content,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.buttonClose=!0,e.prototype.buttonCancel=!0,e.prototype.buttonSubmit=!0,e.prototype.headPrefix="Edit",e.prototype.content=function(){return this.item=App[this.genericObject].find(this.id),this.head=this.pageData.head||this.pageData.object,this.controller=new App.ControllerForm({model:App[this.genericObject],params:this.item,screen:this.screen||"edit",autofocus:!0,handlers:this.handlers}),this.controller.form},e.prototype.onSubmit=function(n){var t,e,i,s;return i=this.formParam(n.target),this.item.load(i),!((t=$(n.target).closest("form").get(0))&&t.reportValidity&&!t.reportValidity())&&((e=this.item.validate({controllerForm:this.controller}))?(this.log("error",e),this.formValidate({form:n.target,errors:e}),!1):(this.formDisable(n),(s=this).item.save({done:function(){var t;return s.callback&&(t=App[s.genericObject].fullLocal(this.id),s.callback(t)),s.close()},fail:function(t,e){return App[s.genericObject].fetch({id:this.id}),s.log("errors"),s.formEnable(n),s.controller.showAlert(e.error_human||e.error||__("The object could not be updated."))}})))},e}(App.ControllerModal)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerErrorModal=function(t){function e(){return this.onSubmit=n(this.onSubmit,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.buttonClose=!0,e.prototype.buttonCancel=!1,e.prototype.buttonSubmit=__("Close"),e.prototype.head=__("Error"),e.prototype.showTrySupport=!0,e.prototype.content=function(){return this.message},e.prototype.onSubmit=function(){if(this.close(),this.callback)return this.callback()},e}(App.ControllerModal)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.GenericHistory=function(t){function e(){this.sortorder=n(this.sortorder,this),this.onShown=n(this.onShown,this),this.content=n(this.content,this),e.__super__.constructor.apply(this,arguments),this.fetch()}return i(e,t),e.extend(App.PopoverProvidable),e.registerPopovers("User"),e.prototype.buttonClose=!0,e.prototype.buttonCancel=!1,e.prototype.buttonSubmit=!1,e.prototype.head=__("History"),e.prototype.shown=!1,e.prototype.content=function(){var t,e,n;return e=this.reworkItems(this.items),(t=$(App.view("generic/history")({items:e}))).find('a[data-type="sortorder"]').on("click",(n=this,function(t){return t.preventDefault(),n.sortorder()})),t},e.prototype.onShown=function(){return this.renderPopovers()},e.prototype.sortorder=function(){return this.items=this.items.reverse(),this.update()},e.prototype.T=function(t){return App.i18n.translateInline(t)},e.prototype.reworkItems=function(t){var e,n,i,s,r,o,a,l,c,p,u,h;for(p=[],c={},o=a=void 0,i=0,l=(t=clone(t)).length;i#'+u.number+"":s.value_from,e=this.T("Ticket")+" "+h+" "+this.T("was merged into this ticket")):"merged_into"===s.type?(h=(u=App.Ticket.find(s.id_to))?'#'+u.number+"":s.value_to,e=this.T("This ticket was merged into")+" "+this.T("ticket")+" "+h):(e=this.T(s.type)+" "+this.T(s.object)+" ",s.attribute&&(e+=""+this.translateItemAttribute(s),"User"===s.object&&"last_login"===s.attribute&&(s.value_from&&(s.value_from=App.i18n.translateTimestamp(s.value_from)),s.value_to&&(s.value_to=App.i18n.translateTimestamp(s.value_to)))),s.value_from&&(s.value_to&&(e+=" "+this.T("from")),e+=" '"+this.translateItemValue(s,s.value_from)+"'"),s.value_to?((s.value_from||"Mention"===s.object)&&(e+=" →"),e+=" '"+this.translateItemValue(s,s.value_to)+"'"):s.value_from&&(e+=" → '-'")),c.records.push(e);return _.isEmpty(c)||p.push(c),p},e.prototype.translateItemValue=function(t,e){var n,i,s,r,o;return s=t.object,n=t.attribute,"Mention"===s?(r="-",e&&(o=App.User.find(e))&&(r=o.displayName()),r):(i=this.objectAttribute(s,n))&&"datetime"===i.tag?App.i18n.translateTimestamp(e):/_(time|at)$/.test(n)?App.i18n.translateTimestamp(e):i&&!0===i.translate?this.T(e):App.Utils.htmlEscape(e)},e.prototype.translateItemAttribute=function(t){var e,n,i;return i=t.object,e=t.attribute,(n=this.objectAttribute(i,e))&&n.display?this.T(n.display):this.T(e)},e.prototype.objectAttribute=function(t,e){if(App[t]&&App[t].attributesGet())return App[t].attributesGet()[e+"_id"]||App[t].attributesGet()[e]},e}(App.ControllerModal)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerGenericNew=function(t){function e(){return this.content=n(this.content,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.buttonClose=!0,e.prototype.buttonCancel=!0,e.prototype.buttonSubmit=!0,e.prototype.headPrefix="New",e.prototype.showTrySupport=!0,e.prototype.content=function(){return this.head=this.pageData.head||this.pageData.object,this.controller=new App.ControllerForm({model:App[this.genericObject],params:this.item,screen:this.screen||"create",autofocus:!0,handlers:this.handlers}),this.controller.form},e.prototype.onSubmit=function(n){var t,e,i,s,r;return s=this.formParam(n.target),(i=new App[this.genericObject]).load(s),!((t=$(n.target).closest("form").get(0))&&t.reportValidity&&!t.reportValidity())&&((e=i.validate({controllerForm:this.controller}))?(this.log("error",e),this.formValidate({form:n.target,errors:e}),!1):(this.formDisable(n),r=this,i.save({done:function(){var t;return r.callback&&(t=App[r.genericObject].fullLocal(this.id),r.callback(t)),r.close()},fail:function(t,e){return r.log("errors",e),r.formEnable(n),r.controller.showAlert(e.error_human||e.error||__("The object could not be created."))}})))},e}(App.ControllerModal)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerAppContent=function(t){function e(t){this.requiredPermission&&this.permissionCheckRedirect(this.requiredPermission),App.TaskManager.hideAll(),t.el=t.appEl.find("#content"),t.el.removeClass("hide").removeClass("active"),t.el.get(0)||(t.appEl.append('
                                '),t.el=$("#content")),e.__super__.constructor.call(this,t)}return n(e,t),e}(App.Controller)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerArticlePublicConfirm=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.head=__("Publish Article"),e.prototype.message=__('Do you really want to set the visibility of this article to "public"?'),e}(App.ControllerConfirm)}.call(this),function(){var s=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t}, r={}.hasOwnProperty;App.CollectionController=function(t){function i(){var t,e,n;this.remove=s(this.remove,this),this.click=s(this.click,this),this.location=s(this.location,this),this.renderItem=s(this.renderItem,this),this.renderParts=s(this.renderParts,this),this.itemGet=s(this.itemGet,this),this.itemAttributes=s(this.itemAttributes,this),this.itemAttributesSet=s(this.itemAttributesSet,this),this.itemAttributesGet=s(this.itemAttributesGet,this),this.itemAttributesDelete=s(this.itemAttributesDelete,this),this.itemAttributesDiff=s(this.itemAttributesDiff,this),this.itemsAll=s(this.itemsAll,this),this.itemDestroy=s(this.itemDestroy,this),this.renderAll=s(this.renderAll,this),this.domChange=s(this.domChange,this),this.domRemove=s(this.domRemove,this),this.collectionSync=s(this.collectionSync,this),this.collectionOrderSet=s(this.collectionOrderSet,this),this.collectionOrderGet=s(this.collectionOrderGet,this),this.uIRunner=s(this.uIRunner,this),this.release=s(this.release,this),this.events||(this.events=this.constructor.events),this.observe||(this.observe=this.constructor.observe),this.currentItems={},this.renderList={},this.queue=[],this.queueRunning=!1,this.lastOrder=[],i.__super__.constructor.apply(this,arguments),this.queue.push(["renderAll"]),this.uIRunner(),this.model&&(this.subscribeId=App[this.model].subscribe(this.collectionSync)),this.globalRerender&&this.controllerBind("ui:rerender",(t=this,function(){return t.queue.push(["renderAll"]),t.uIRunner()})),this.controllerBind("auth:login",(e=this,function(){return e.queue.push(["renderAll"]),e.uIRunner()})),this.controllerBind("auth:logout",(n=this,function(){return n.queue.push(["renderAll"]),n.uIRunner()})),this.log("debug","Init @uniqKey",this.uniqKey),this.log("debug","Init @observe",this.observe),this.log("debug","Init @model",this.model)}return e(i,t),i.prototype.events={"click .js-remove":"remove","click .js-item":"click","click .js-locationVerify":"location"},i.prototype.observe={field1:!0,field2:!1},i.prototype.template="_need_to_be_defined_",i.prototype.uniqKey="id",i.prototype.model="_need_to_be_defined_",i.prototype.sortBy="name",i.prototype.order="ASC",i.prototype.insertPosition="after",i.prototype.globalRerender=!0,i.prototype.release=function(){if(this.subscribeId)return App[this.model].unsubscribe(this.subscribeId)},i.prototype.uIRunner=function(){var t,e;if(this.queue[0]&&!this.queueRunning){for(this.queueRunning=!0,e=[];;){if("domChange"===(t=this.queue.shift())[0]?this.domChange(t[1]):"domRemove"===t[0]?this.domRemove(t[1]):"change"===t[0]?this.collectionSync(t[1]):"destroy"===t[0]?this.collectionSync(t[1],"destroy"):"renderAll"===t[0]?this.renderAll():this.log("error","Unknown type "+t[0],t[1]),!this.queue[0]){this.onRenderEnd(),this.queueRunning=!1;break}e.push(void 0)}return e}},i.prototype.collectionOrderGet=function(){var t,e,n,i,s;for(s=[],e=0,i=(t=this.itemsAll()).length;e'),this.form.prepend(''),this.handlers.length&&this.dispatchHandlers(),this.el&&this.el.prepend(this.form),this.elReplace&&this.elReplace.html(this.form),this.form.on("input",this.hideAlert),this.finishForm=!0,this.form}return e(s,t),s.prototype.fullFormSubmitLabel=__("Submit"),s.prototype.fullFormSubmitAdditionalClasses="",s.prototype.fullFormButtonsContainerClass="",s.prototype.fullFormAdditionalButtons=[],s.prototype.dispatchHandlers=function(){var s,r,t,e,o,n,i;for(o=App.ControllerForm.params(this.form),i=[],t=0,e=(n=this.attributes).length;t"),_.isEmpty(this.model))return l;for(n in this.attributes=[],i=this.model.attributesGet?this.model.attributesGet(this.screen):App.Model.attributesGet(this.screen,this.model.configure_attributes,void 0,this.model.className))(t=i[n]).readonly||t.skipRendering||(this.filter&&!t.filter&&this.filter[n]&&(t.filter=this.filter[n]),this.attributes.push(t));for(p=e=0,h=(f=this.attributes).length;p").prepend(l),o=$("
                                "),u=0,d=(m=this.fullFormAdditionalButtons).length;u").text(r.text),r.disabled&&s.prop("disabled",!0),o.append(s);$("').text(App.i18n.translateContent(this.fullFormSubmitLabel)).appendTo(o),o.appendTo(l)}if(this.events)for(a in c=function(t,e){var n;return n=t.split(" "),l.find(n[1]).on(n[0],function(t){return e(t)})},g=this.events)c(a,g[a]);return l.find(".js-helpMessage").tooltip(),l},s.prototype.formGenItem=function(t,o,a,e){var l,n,i,s,r,c,p,u,h,d;if((l=clone(t,!0)).id=o+"_"+l.name,l.label_class=this.model.labelClass,this.autofocus&&1===e&&(l.autofocus="autofocus"),!0===l.required&&(l["null"]=!1),l["null"]?l.required="":l.required="required",void 0===l.autocapitalize||l.autocapitalize?l.autocapitalize="":l.autocapitalize='autocapitalize="off"',void 0===l.autocomplete?"hidden"===l.type?l.autocomplete="":l.autocomplete='autocomplete="off"':l.autocomplete='autocomplete="'+l.autocomplete+'"',void 0===l.value&&"default"in l&&!(null!=(h=this.params)?h.id:void 0)&&(l.value=l["default"]),this.params&&(1<(p=l.name.split("::")).length&&void 0!==(n=p.reduce(function(t,e){return null!=t?t[e]:void 0},this.params))&&(l.value=n),l.name in this.params&&(l.value=this.params[l.name])),"newValue"in l&&(l.value=l.newValue),App.Log.debug("ControllerForm","formGenItem-before",l),!App.UiElement[l.tag])throw"Invalid UiElement."+l.tag;return s=App.UiElement[l.tag].render(l,this.params,this),this.handlers&&(c="change",0<(r=s).find(".richtext-content").length&&(r=s.find(".richtext-content"),c="blur"),r.on(c,(d=this,function(){var t,e,n,i,s,r;for(d.lastChangedAttribute=l.name,i=App.ControllerForm.params(d.form),r=[],e=0,n=(s=d.handlers).length;e").not("."+this.className).remove(),this.forceRender&&this.appEl.find(">").filter("."+this.className).remove(),this.el=$(t),(e=this.appEl.find(">").filter("."+this.className)).get(0)?e.html(this.el.children()):(this.el.addClass(this.className),this.appEl.append(this.el),this.delegateEvents(this.events),this.refreshElements(),this.el.on("remove",this.releaseController),this.el.on("remove",this.release))},e}(App.Controller)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerModalLoading=function(t){function e(){this.hide=n(this.hide,this),this.localOnClosed=n(this.localOnClosed,this),this.showIcon=n(this.showIcon,this),this.hideIcon=n(this.hideIcon,this),this.update=n(this.update,this),e.__super__.constructor.apply(this,arguments),this.container&&this.el.addClass("modal--local"),this.render(),this.el.modal({keyboard:!1,show:!0,backdrop:"static",container:this.container}).on({"hidden.bs.modal":this.localOnClosed})}return i(e,t),e.prototype.className="modal fade",e.prototype.showTrySupport=!0,e.prototype.render=function(){return this.html(App.view("generic/modal_loader")({head:this.head,message:App.i18n.translateContent(this.message)}))},e.prototype.update=function(t,e){return null==e&&(e=!0),e&&(t=App.i18n.translateContent(t)),this.$(".js-loading").html(t)},e.prototype.hideIcon=function(){return this.$(".js-loadingIcon").addClass("hide")},e.prototype.showIcon=function(){return this.$(".js-loadingIcon").removeClass("hide")},e.prototype.localOnClosed=function(){return this.el.remove()},e.prototype.hide=function(t){var e,n;if(n=this,e=function(){return n.el.modal("hide")},t)return App.Delay.set(e,1e3*t);e()},e}(App.Controller)}.call(this),function(){var i=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerNavSidbar=function(t){function n(t){var e;this.currentPosition=i(this.currentPosition,this),this.setPosition=i(this.setPosition,this),this.executeController=i(this.executeController,this),this.selectedItem=i(this.selectedItem,this),this.groupsSorted=i(this.groupsSorted,this),this.updateNavigation=i(this.updateNavigation,this),this.render=i(this.render,this),this.hide=i(this.hide,this),this.show=i(this.show,this),n.__super__.constructor.apply(this,arguments),this.authenticateRequired&&this.authenticateCheckRedirect(),this.render(!0),this.controllerBind("ui:rerender",(e=this,function(){return e.render(!0),e.updateNavigation(!0,t)}))}return e(n,t),n.prototype.show=function(t){var e,n;if(null==t&&(t={}),this.navupdate(""),this.shown=!0,t)for(e in t)n=t[e],"el"!==e&&"shown"!==e&&"match"!==e&&(this[e]=n);if(this.updateNavigation(!1,t),this.activeController&&_.isFunction(this.activeController.show))return this.activeController.show(t)},n.prototype.hide=function(){if(this.shown=!1,this.activeController&&_.isFunction(this.activeController.hide))return this.activeController.hide()},n.prototype.render=function(t){var e,n;return null==t&&(t=!1),e=this.groupsSorted(),n=this.selectedItem(e),this.html(App.view("generic/navbar_level2/index")({className:this.configKey})),this.$(".sidebar").html(App.view("generic/navbar_level2/navbar")({groups:e,className:this.configKey,selectedItem:n}))},n.prototype.updateNavigation=function(t,e){var n,i;if(n=this.groupsSorted(),(i=this.selectedItem(n))&&(t||!this.lastTarget||i.target!==this.lastTarget))return this.lastTarget=i.target,this.$(".sidebar li").removeClass("active"),this.$('.sidebar li a[href="'+i.target+'"]').parent().addClass("active"),this.executeController(i,e)},n.prototype.groupsSorted=function(){var t,e,n,i,s,r,o,a,l;for(s in e=[],t=App.Config.get(this.configKey))if(!(i=t[s]).controller)if(i.permission)if(o=!1,"function"==typeof i.permission)(o=i.permission(this))&&e.push(i);else for(n=0,r=(l=i.permission).length;n"),this.activeController=new t.controller(_.extend(e,{el:this.$(".main div")}))},n.prototype.setPosition=function(t){if(!this.shown&&t)return t.main&&this.$(".main").scrollTop(t.main),t.sidebar?this.$(".sidebar").scrollTop(t.sidebar):void 0},n.prototype.currentPosition=function(){return{main:this.$(".main").scrollTop(),sidebar:this.$(".sidebar").scrollTop()}},n}(App.Controller)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerObserver=function(t){function e(){var t;this.release=n(this.release,this),this.render=n(this.render,this),this.hasChanged=n(this.hasChanged,this),this.maybeRender=n(this.maybeRender,this),this.subscribe=n(this.subscribe,this),e.__super__.constructor.apply(this,arguments),this.log("debug","new",this.object_id,this.model),App[this.model].exists(this.object_id)?this.maybeRender(App[this.model].fullLocal(this.object_id)):App[this.model].full(this.object_id,this.maybeRender),this.globalRerender&&this.controllerBind("ui:rerender",(t=this,function(){return t.lastAttributes=void 0,t.maybeRender(App[t.model].fullLocal(t.object_id))}))}return i(e,t),e.prototype.model="Ticket",e.prototype.template="tba",e.prototype.globalRerender=!0,e.prototype.lastAttributes=void 0,e.prototype.subscribe=function(t,e){return this.maybeRender(t,e)},e.prototype.maybeRender=function(t,e){return"remove"===e?(this.release(),void this.el.remove()):(this.log("debug","maybeRender",this.object_id,t,this.model),this.subscribeId||(this.subscribeId=t.subscribe(this.subscribe)),this.hasChanged(t)?this.render(t):void 0)},e.prototype.hasChanged=function(t){var e,n,i,s,r,o;if(e={},s=$.extend(!0,{},t),this.observe)for(i in r=this.observe)r[i]&&!_.isFunction(o)&&(e[i]=s[i]);if(this.observeNot)for(i in s)o=s[i],"cid"===i||this.observeNot[i]||_.isFunction(o)||(e[i]=o);return this.lastAttributes?(n=difference(e,this.lastAttributes),_.isEmpty(n)?(this.log("debug","maybeRender no diff, no rerender"),!1):(this.log("debug","maybeRender.diff",n,this.observe,this.model),this.lastAttributes=e,!0)):(this.lastAttributes=e,!0)},e.prototype.render=function(t){if(this.log("debug","render",this.template,t),this.html(App.view(this.template)({object:t})),this.renderPost)return this.renderPost(t)},e.prototype.release=function(){return this.log("debug","release",this.object_id,this.model,this.subscribeId),App[this.model].unsubscribe(this.subscribeId)},e}(App.Controller)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerObserverActionRow=function(t){function e(){this.render=n(this.render,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.render=function(n){var t,e,i,s,r;if(!_.isEmpty(n)){for(t=this.actions(n),this.html(App.view("generic/actions")({items:t,type:this.type})),r=[],e=0,s=t.length;e tr:nth-child("+(p+1)+")").remove();for(a=0,o=t.length;a tr:nth-child("+p+")").after(l[p]);return this.currentRows=l,this.log("debug","table.fullRender.contentRemoved",f,t),this.renderPager(this.el,!0),!0===this.frontendTimeUpdateExecute&&this.frontendTimeUpdateElement(this.el),["fullRender.contentRemoved",f,t]}}return c.length!==this.currentRows.length?(g=["fullRender.lenghtChanged",this.currentRows.length,c.length],this.renderTableFull(c),this.log("debug","table.fullRender.lenghtChanged",g),g):!0!==(g=this._isSame(c,this.currentRows))?(this.renderTableFull(c),this.log("debug","table.fullRender.contentChanged|row("+g+")"),["fullRender.contentChanged",g]):(this.log("debug","table.noChanges"),["noChanges"])},r.prototype.renderEmptyList=function(){return App.view("generic/admin/empty")({explanation:this.explanation})},r.prototype.renderTableFull=function(t,e){var n,o,i,s,r,a,l,c,p,u,h,d,f,m,g,v,b,y,w,k,T,A,S;if(null==e&&(e={}),this.log("debug","table.renderTableFull",this.orderBy,this.orderDirection),this.tableHeaders(e),this.sortList(),n=this.getBulkSelected(),A=(i=this.renderTableContainer()).filter(".table"),t||(t=this.renderTableRows()),this.currentRows=clone(t),i.find(".js-tableBody").html(t),!0===this.frontendTimeUpdateExecute&&this.frontendTimeUpdateElement(i),this.renderPager(i),s={click:"pointer",dblclick:"pointer"},!_.isEmpty(this.bindCol))for(g in b=this.bindCol)if((d=b[g]).events){for(v=0,this.dndCallback&&(v+=1),this.checkbox&&(v+=1),h=!1,f=0,m=(y=this.headers).length;f tr > td:nth-child("+v+")").css("cursor",s[e]),t.on(e,"tbody > tr > td:nth-child("+v+")",function(t){var e;return t.stopPropagation(),e=$(t.target).parents("tr").data("id"),n(e,t,t.currentTarget)})},w=d.events)o=w[a],l(A,a,o)}if(!_.isEmpty(this.bindRow)&&this.bindRow.events)for(a in c=function(t,e,n){return s[e]&&t.find("tbody > tr").css("cursor",s[e]),t.on(e,"tbody > tr",function(t){var e;return e=$(t.target).parents("tr").data("id"),n(e,t)})},k=this.bindRow.events)o=k[a],c(A,a,o);if(this.bindCheckbox&&this.bindCheckbox.events)for(a in p=function(t,e,i){return t.on(e,'input[name="bulk"]',function(t){var e,n;return t.stopPropagation(),n=$(t.currentTarget).parents("tr").data("id"),e=$(t.currentTarget).prop("checked"),i(n,e,t)})},T=this.bindCheckbox.events)o=T[a],p(A,a,o);return this.tableId&&(A.on("mousedown",".js-col-resize",this.onColResizeMousedown),A.on("click",".js-col-resize",this.stopPropagation)),this.checkbox&&(A.on("click","tr > td:nth-child(1)",function(t){return t.stopPropagation()}),A.on("change",'input[name="bulk_all"]',(S=this,function(i){var s,r,t,e,n;if(i.stopPropagation(),r=[],$(i.currentTarget).prop("checked")?$(i.currentTarget).parents("table").find('[name="bulk"]').each(function(){var t,e;if(!(t=$(this)).prop("checked"))return t.prop("checked",!0),e=t.parents("tr").data("id"),r.push([e,!0])}):$(i.currentTarget).parents("table").find('[name="bulk"]').each(function(){var t,e;if((t=$(this)).prop("checked"))return t.prop("checked",!1),e=t.parents("tr").data("id"),r.push([e,!1])}),S.bindCheckbox&&S.bindCheckbox.events&&!_.isEmpty(r)){if(!S.bindCheckbox.select_all){for(a in n=[],e=S.bindCheckbox.events)o=e[a],"click"===a||"change"===a?n.push(function(){var t,e,n;for(n=[],t=0,e=r.length;tt?this.pagerShownPage=t:void 0},r.prototype.objectsOfPage=function(t){return null==t&&(t=0),this.pagerEnabled?(t=parseInt(t),this.objects.slice(t*this.pagerItemsPerPage,(t+1)*this.pagerItemsPerPage)):this.objects},r.prototype.paginate=function(t){var e,n,i;return t.stopPropagation(),e=$(t.currentTarget).attr("data-page"),this.pagerAjax?this.navigate(""+this.pagerBaseUrl+(parseInt(e)+1)):(i=this,n=function(){return i.pagerShownPage=e,i.renderTableFull()},App.QueueManager.add("tableRender",n),App.QueueManager.run("tableRender"))},r.prototype.sortList=function(){var n,t,e,i,s,r,o,a,l,c,p,u,h,d,f,m,g,v,b,y,w,k,T,A;if(!(_.isEmpty(this.objects)||(v=this.customOrderBy||this.orderBy,b=this.customOrderDirection||this.orderDirection,this.log("debug","table.order",this.orderBy,this.orderDirection),this.log("debug","table.customOrder",this.customOrderBy,this.customOrderDirection),_.isEmpty(v)&&_.isEmpty(this.groupBy)||this.lastSortedobjects===this.objects&&this.lastOrderDirection===b&&this.lastOrderBy===v)))if(this.lastOrderDirection=b,this.lastOrderBy=v,this.pagerAjax)for(o=0,p=(y=this.headers).length;o
                                '),s.controller&&((n=s.params||{}).name=s.name,n.target=s.target,n.el=this.$("#"+s.target),this.controllerList||(this.controllerList=[]),this.controllerList.push(new s.controller(_.extend(this.originParams,n))));if(!(this.tabs.length<=1))return this.lastActiveTab=this.Config.get("lastTab"),this.lastActiveTab&&this.$(".nav-tabs li a[href='"+this.lastActiveTab+"']")[0]?this.$(".nav-tabs li a[href='"+this.lastActiveTab+"']").tab("show"):this.$(".nav-tabs li:first a").tab("show");this.$(".tab-pane").addClass("active")},e.prototype.tabRemember=function(t){return this.lastActiveTab=$(t.target).attr("href"),this.Config.set("lastTab",this.lastActiveTab)},e}(App.Controller)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerTechnicalErrorModal=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.head="StatusCode: "+status,e.prototype.contentCode="",e.prototype.buttonClose=!1,e.prototype.buttonSubmit="Ok",e.prototype.onSubmit=function(t){return this.close(t)},e.prototype.content=function(){return"
                                "+this.contentCode+"
                                "},e}(App.ControllerModal)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerWizardModal=function(t){function e(){var t;this.showInvalidField=n(this.showInvalidField,this),this.hide=n(this.hide,this),this.enable=n(this.enable,this),this.disable=n(this.disable,this),this.hideAlert=n(this.hideAlert,this),this.showAlert=n(this.showAlert,this),this.showSlide=n(this.showSlide,this),this.goToSlide=n(this.goToSlide,this),e.__super__.constructor.apply(this,arguments),this.controllerBind("ui:rerender",(t=this,function(){return t.render(),"wizard"}))}return i(e,t),e.prototype.className="modal fade",e.prototype.goToSlide=function(t){var e;if(t.preventDefault(),e=$(t.target).data("slide"))return this.showSlide(e)},e.prototype.showSlide=function(t){return this.hideAlert(t),this.$(".setup.wizard").addClass("hide"),this.$(".setup.wizard."+t).removeClass("hide"),this.$(".setup.wizard."+t+" input, .setup.wizard."+t+" select").first().trigger("focus")},e.prototype.showAlert=function(t,e){return this.$("."+t).find(".alert").first().removeClass("hide").text(App.i18n.translatePlain(e))},e.prototype.hideAlert=function(t){return this.$("."+t).find(".alert").first().addClass("hide")},e.prototype.disable=function(t){return this.formDisable(t),this.$(".wizard-controls .btn").attr("disabled",!0)},e.prototype.enable=function(t){return this.formEnable(t),this.$(".wizard-controls .btn").attr("disabled",!1)},e.prototype.hide=function(t){return t.preventDefault(),this.el.modal("hide")},e.prototype.showInvalidField=function(t,e){var n,i;if(this.$("."+t).find(".form-group").removeClass("has-error"),e){for(n in i=[],e)e[n]?i.push(this.$("."+t).find('[name="options::'+n+'"]').closest(".form-group").addClass("has-error")):i.push(void 0);return i}},e.prototype.render=function(){},e}(App.ControllerFullPage)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ControllerWizardFullScreen=function(t){function e(){return this.redirectToLogin=n(this.redirectToLogin,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.forceRender=!0,e.prototype.className="getstarted",e.prototype.redirectToLogin=function(){return App.Auth.loginCheck(),this.navigate("#",{removeEl:!0})},e}(App.ControllerWizardModal)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ChannelEmailFilter=function(t){function e(){this.edit=n(this.edit,this),this["new"]=n(this["new"],this),this.render=n(this.render,this),e.__super__.constructor.apply(this,arguments),App.PostmasterFilter.subscribe(this.render,{initFetch:!0})}return i(e,t),e.prototype.events={"click [data-type=new]":"new"},e.prototype.render=function(){var t,e,n ;return t=App.PostmasterFilter.search({sortBy:"name"}),n=$('"),e=__("With filters you can e. g. dispatch new tickets into certain groups or set a certain priority for tickets of a VIP customer."),new App.ControllerTable({el:n.find(".overview"),model:App.PostmasterFilter,objects:t,bindRow:{events:{click:this.edit}},explanation:e}),this.html(n)},e.prototype["new"]=function(t){return t.preventDefault(),new App.ControllerGenericNew({pageData:{object:__("Postmaster Filter")},genericObject:"PostmasterFilter",container:this.el.closest(".content"),callback:this.load,large:!0})},e.prototype.edit=function(t,e){return e.preventDefault(),new App.ControllerGenericEdit({id:t,pageData:{object:__("Postmaster Filter")},genericObject:"PostmasterFilter",container:this.el.closest(".content"),callback:this.load,large:!0})},e}(App.Controller)}.call(this),function(){var i,n=function(t,e){return function(){return t.apply(e,arguments)}},s=function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},r={}.hasOwnProperty;App.ChannelEmailSignature=function(t){function e(){this.edit=n(this.edit,this),this["new"]=n(this["new"],this),this.render=n(this.render,this),e.__super__.constructor.apply(this,arguments),App.Signature.subscribe(this.render,{initFetch:!0})}return s(e,t),e.prototype.events={"click [data-type=new]":"new"},e.prototype.render=function(){var t,e,n;return t=App.Signature.search({sortBy:"name"}),n=$('"),e=__("You can define different signatures for each group, which allows you to use a different signature for every department.\n\nOnce you have created a signature here, you will also need to edit the groups where you want to use it."),new App.ControllerTable({el:n.find(".overview"),model:App.Signature,objects:t,bindRow:{events:{click:this.edit}},explanation:e}),this.html(n)},e.prototype["new"]=function(t){return t.preventDefault(),new i({container:this.el.closest(".content")})},e.prototype.edit=function(t,e){var n;return e.preventDefault(),n=App.Signature.find(t),new i({object:n,container:this.el.closest(".content")})},e}(App.Controller),i=function(t){function e(){return this.onSubmit=n(this.onSubmit,this),this.content=n(this.content,this),e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.buttonClose=!0,e.prototype.buttonCancel=!0,e.prototype.buttonSubmit=!0,e.prototype.head=__("Signature"),e.prototype.content=function(){return this.object?this.form=new App.ControllerForm({model:App.Signature,params:this.object,autofocus:!0}):this.form=new App.ControllerForm({model:App.Signature,autofocus:!0}),this.form.form},e.prototype.onSubmit=function(n){var t,e,i,s,r;return i=this.formParam(n.target),(e=this.object||new App.Signature).load(i),(t=this.form.validate(i))?(this.log("error",t),this.formValidate({form:n.target,errors:t}),!1):(this.formDisable(n),e.save({done:(r=this,function(){return r.close()}),fail:(s=this,function(t,e){return s.log("errors",e),s.formEnable(n),s.form.showAlert(e.error_human||e.error||__("The object could not be created."))})}))},e}(App.ControllerModal)}.call(this),function(){var t,n,i=function(t,e){return function(){return t.apply(e,arguments)}},s=function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},r={}.hasOwnProperty;t=function(t){function e(){this.updateParams=i(this.updateParams,this),this.toggleChatSetting=i(this.toggleChatSetting,this),this.toggleChat=i(this.toggleChat,this),this.onColorPicked=i(this.onColorPicked,this),this.renderDemoWebsite=i(this.renderDemoWebsite,this),this.updatePreview=i(this.updatePreview,this),this.selectBrowserSize=i(this.selectBrowserSize,this),this.render=i(this.render,this),this.load=i(this.load,this),e.__super__.constructor.apply(this,arguments),this.Session.get("email")&&(this.previewUrl="www."+this.Session.get("email").replace(/^.+?\@/,"")),this.load(),this.permanent={chatId:1},this.widgetDesignerPermanentParams={id:"id"},$(window).on("resize.chat-designer",this.resizeDemo)}return s(e,t),e.prototype.requiredPermission="admin.channel_chat",e.prototype.header=__("Chat"),e.prototype.events={"change .js-params":"updateParams","input .js-params":"updateParams","submit .js-demo-head":"onUrlSubmit","click .js-selectBrowserSize":"selectBrowserSize","click .js-swatch":"usePaletteColor","click .js-toggle-chat":"toggleChat","change .js-chatSetting input":"toggleChatSetting","click .js-eyedropper":"pickColor"},e.prototype.elements={".js-browser":"browser",".js-browserBody":"browserBody",".js-screenshot":"screenshot",".js-website":"website",".js-chat":"chat",".js-chatHeader":"chatHeader",".js-chat-welcome":"chatWelcome",".js-testurl-input":"urlInput",".js-backgroundColor":"chatBackground",".js-code":"code",".js-palette":"palette",".js-color":"colorField",".js-chatSetting input":"chatSetting",".js-eyedropper":"eyedropper"},e.prototype.apiOptions=[{name:"chatId","default":"1",type:"Number",description:__("Identifier of the chat topic.")},{name:"show","default":!0,type:"Boolean",description:__("Show the chat when ready.")},{name:"target","default":"$('body')",type:"jQuery Object",description:__("Where to append the chat to.")},{name:"host","default":"(Empty)",type:"String",description:__("If left empty, the host gets auto-detected - in this case %s. The auto-detection reads out the host from the \n \n \n \n \n

                                '),e.push(this.T("Requirements")),e.push("

                                \n

                                "),e.push(this.T("Zammad Forms requires jQuery. If you don't already use it on your website, you can add it like this:")),e.push('

                                \n
                                <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
                                \n\n

                                '),e.push(this.T("You need to add the following Javascript code snippet to your web page")),e.push(':

                                \n\n
                                <button id="feedback-form">Feedback</button>\n\n<script id="zammad_form_script" src="'),e.push(n(this.baseurl)),e.push('/assets/form/form.js"></script>\n\n<script>\n$(function() {\n  $(\'#feedback-form\').ZammadForm({\n\n  });\n});\n</script>
                                \n\n\n
                                <div id="feedback-form">form will be placed in here</div>\n\n<script id="zammad_form_script" src="'),e.push(n(this.baseurl)),e.push('/assets/form/form.js"></script>\n\n<script>\n$(function() {\n  $(\'#feedback-form\').ZammadForm({\n\n  });\n});\n</script>
                                \n\n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/channel/sms_account_overview"]=function(t){t||(t={});var c=[],p=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l;if(c.push("

                                "),c.push(this.T("SMS Accounts")),c.push("

                                \n\n"),_.isEmpty(this.account_channels))c.push("\n

                                "),c.push(this.T("You have no configured account right now.")),c.push("

                                \n");else{for(c.push("\n "),n=0,s=(o=this.account_channels).length;n\n
                                \n
                                \n
                                \n

                                '),c.push(this.Icon("status",t.status_in+" inline")),c.push(" "),c.push(this.T("Inbound")),c.push("

                                \n
                                \n "),_.isEmpty(t.last_log_in)||(c.push('\n
                                \n '),c.push(p(t.last_log_in)),c.push("\n
                                \n ")),c.push('\n
                                \n\n
                                \n
                                \n

                                '),c.push(this.Icon("status",t.status_out+" inline")),c.push(" "),c.push(this.T("Outbound")),c.push("

                                \n
                                \n "),_.isEmpty(t.last_log_out)||(c.push('\n
                                \n '),c.push(p(t.last_log_out)),c.push("\n
                                \n ")),c.push('\n\n
                                \n
                                \n\n
                                \n
                                \n \n \n \n \n \n \n \n
                                '),c.push(this.T("Adapter")),c.push("\n "),c.push(p(t.options.adapter)),c.push("\n
                                "),c.push(this.T("Webhook")),c.push("\n "),c.push(p(this.C("http_type"))),c.push("://"),c.push(p(this.C("fqdn"))),c.push("/api/v1/sms_webhook/"),c.push(p((null!=(a=t.options)?a.webhook_token:void 0)||"?")),c.push("\n
                                "),c.push(this.T("Account")),c.push("\n "),c.push(p(t.options.account_id)),c.push("\n
                                "),c.push(this.T("Token")),c.push("\n "),c.push(p(this.M(t.options.token,1,2))),c.push("\n
                                "),c.push(this.T("Sender")),c.push("\n "),c.push(p(t.options.sender)),c.push("\n
                                "),c.push(this.T("Group")),c.push('\n \n
                                \n '),e="",c.push("\n "),t.group.displayName?(c.push("\n "),e=t.group.displayName()):(c.push("\n "),e=t.group),c.push("\n "),c.push("\n "),!1===t.group.active?(c.push("\n "),c.push(this.T("%s is inactive, please select an active one.",e))):(c.push("\n "),c.push(p(e))),c.push("\n "),c.push('\n
                                \n
                                \n
                                \n
                                \n\n
                                \n
                                '),c.push(this.T("Edit")),c.push("
                                \n "),!0===t.active?(c.push('\n
                                '),c.push(this.T("Disable"))):(c.push('\n
                                '),c.push(this.T("Enable"))),c.push("
                                \n "),c.push('\n
                                '),c.push(this.T("Delete")),c.push("
                                \n
                                \n
                                \n ");c.push("\n")}if(c.push('\n\n'),c.push(this.T("New")),c.push("\n\n

                                "),c.push(this.T("SMS Notification")),c.push("

                                \n"),_.isEmpty(this.notification_channels))c.push("\n

                                "),c.push(this.T("You have no configured account right now.")),c.push('

                                \n '),c.push(this.T("New")),c.push("\n");else{for(c.push("\n "),i=0,r=(l=this.notification_channels).length;i\n
                                \n
                                \n
                                \n

                                '),c.push(this.Icon("status",t.status_out+" inline")),c.push(" "),c.push(this.T("Outbound")),c.push("

                                \n
                                \n "),"error"===t.status_in&&(c.push('\n
                                '),c.push(p(t.last_log_in)),c.push("
                                \n ")),c.push("\n "),"error"===t.status_out&&(c.push('\n
                                '),c.push(p(t.last_log_out)),c.push("
                                \n ")),c.push('\n \n '),t.options&&(c.push("\n \n \n \n
                                "),c.push(this.T("Adapter")),c.push("\n "),c.push(p(t.options.adapter)),c.push("\n
                                "),c.push(this.T("Token")),c.push("\n "),c.push(p(this.M(t.options.token,1,2))),c.push("\n ")),c.push("\n
                                "),c.push(this.T("Sender")),c.push("\n "),c.push(p(t.options.sender)),c.push('\n
                                \n
                                \n
                                \n
                                \n
                                '),c.push(this.T("Edit")),c.push("
                                \n "),!0===t.active?(c.push('\n
                                '),c.push(this.T("Disable"))):(c.push('\n
                                '),c.push(this.T("Enable"))),c.push("
                                \n "),c.push('\n
                                '),c.push(this.T("Delete")),c.push("
                                \n
                                \n
                                \n ");c.push("\n")}c.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,c.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/channel/topics"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('\n \n \n \n \n \n \n \n \n \n \n"),e=0,n=(i=this.chats).length;e\n \n \n
                                '),s.push(this.T("Chat ID")),s.push(''),s.push(this.T("Name")),s.push(''),s.push(this.T("Note")),s.push(''),s.push(this.T("Max. clients on waitlist")),s.push(''),s.push(this.T("Delete")),s.push("
                                \n \n \n \n \n \n \n \n \n
                                \n '),s.push(this.Icon("trash")),s.push(" "),s.push(this.T("Remove")),s.push("\n
                                \n");s.push('\n
                                \n '),s.push(this.Icon("plus-small")),s.push(" "),s.push(this.T("Add")),s.push("\n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/cti/caller_log"]=function(t){t||(t={});var h=[],d=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p,u;for(h.push('\n \n \n \n \n \n \n \n \n \n \n \n \n \n "),e=0,r=(l=this.list).length;e\n \n \n \n \n \n \n \n \n \n ")}h.push("\n \n
                                \n \n \n
                                \n '),h.push(this.T("From")),h.push('\n
                                \n
                                \n
                                \n '),h.push(this.T("To")),h.push('\n
                                \n
                                \n
                                \n '),h.push(this.T("Status")),h.push('\n
                                \n
                                \n
                                \n '),h.push(this.T("Waiting")),h.push('\n
                                \n
                                \n
                                \n '),h.push(this.T("Duration")),h.push('\n
                                \n
                                \n
                                \n '),h.push(this.T("Time")),h.push("\n
                                \n
                                \n \n \n "),u=!1,h.push("\n "),n.preferences.from&&!_.isEmpty(n.preferences.from)){for(h.push("\n "),i=0,o=(c=n.preferences.from).length;i'),h.push('\n \n "),u=!0,h.push("\n ")):_.isEmpty(t.comment)||(h.push("\n "),u=!0,h.push('\n
                                \n '),h.push(this.unique_avatar(t.comment,t.comment.split(" ").map(function(t){return t[0]}).join(""))),h.push("\n "),h.push(this.T("maybe")),h.push(": "),h.push(d(t.comment)),h.push('
                                \n '),h.push(d(n.from_pretty)),h.push("\n
                                \n ")),h.push("\n ");h.push("\n ")}if(h.push("\n "),u||_.isEmpty(n.from_comment)||(h.push("\n "),u=!0,h.push('\n
                                \n '),h.push(this.unique_avatar(n.from_comment,n.from_comment.split(" ").map(function(t){return t[0]}).join(""))),h.push("\n "),h.push(d(n.from_comment)),h.push('
                                \n '),h.push(d(n.from_pretty)),h.push("\n
                                \n ")),h.push("\n "),u||(h.push('\n
                                \n '),h.push(this.unique_avatar(n.from_pretty||n.from,"??")),h.push("\n "),_.isEmpty(n.from_pretty)?(h.push('\n '),h.push(d(n.from)),h.push("\n ")):(h.push('\n '),h.push(d(n.from_pretty)),h.push("\n "),"in"===n.direction&&(h.push('\n
                                '),h.push(this.Icon("plus-small")),h.push(" "),h.push(this.T("New User")),h.push("
                                \n ")),h.push("\n ")),h.push("\n
                                \n ")),h.push("\n
                                \n "),u=!1,h.push("\n "),n.preferences.to&&!_.isEmpty(n.preferences.to)){for(h.push("\n "),s=0,a=(p=n.preferences.to).length;s\n
                                \n '),h.push(d(n.to_pretty)),h.push("\n \n ")):_.isEmpty(t.comment)||(h.push("\n "),u=!0,h.push('\n
                                \n '),h.push(this.unique_avatar(t.comment,t.comment.split(" ").map(function(t){return t[0]}).join(""))),h.push("\n "),h.push(this.T("maybe")),h.push(": "),h.push(d(t.comment)),h.push('
                                \n '),h.push(d(n.to_pretty)),h.push("\n
                                \n ")),h.push("\n ");h.push("\n ")}h.push("\n "),u||_.isEmpty(n.to_comment)||(h.push( "\n "),u=!0,h.push('\n
                                \n '),h.push(this.unique_avatar(n.to_comment,n.to_comment.split(" ").map(function(t){return t[0]}).join(""))),h.push("\n "),h.push(d(n.to_comment)),h.push('
                                \n '),h.push(d(n.to_pretty)),h.push("\n
                                \n ")),h.push("\n "),u||(h.push('\n
                                \n '),"in"!==n.direction&&(h.push("\n "),h.push(this.unique_avatar(n.to_pretty||n.to,"??")),h.push("\n ")),h.push("\n "),_.isEmpty(n.to_pretty)?(h.push('\n '),h.push(d(n.to)),h.push("\n ")):(h.push('\n '),h.push(d(n.to_pretty)),h.push("\n "),"out"===n.direction&&(h.push('\n
                                '),h.push(this.Icon("plus-small")),h.push(" "),h.push(this.T("New User")),h.push("
                                \n ")),h.push("\n ")),h.push("\n
                                \n ")),h.push('\n
                                \n "),n.state_human&&(h.push("\n "),h.push(this.Icon("status",n.status_class+" inline")),h.push(" "),h.push(this.T(n.state_human)),h.push("\n ")),h.push("\n "),h.push(d(this.time_duration(n.duration_waiting_time))),h.push(""),h.push(d(this.time_duration(n.duration_talking_time))),h.push(""),h.push(this.humanTime(n.created_at)),h.push("
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,h.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/cti/caller_log_avatar"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push(this.user.avatar()),e.push('\n
                                '),"known"!==this.level&&(e.push(this.T("maybe")),e.push(": ")),e.push(n(this.user.displayNameLong())),e.push("
                                \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/cti/index"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n

                                '),e.push(this.T("Caller log")),e.push('

                                \n
                                \n
                                \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/cti/not_configured"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                                \n
                                \n

                                '),s.push(this.T("Not configured")),s.push("

                                \n

                                "),s.push(this.T("Sorry, there is currently no CTI backend enabled.")),s.push("

                                \n

                                "),s.push(this.T("We support")),s.push(':

                                \n
                                \n '),e=0,n=(i=this.backends).length;e')),s.push(r(t.name)),this.isAdmin&&s.push(""),s.push("\n ");s.push("\n
                                \n
                                \n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/customer_chat/chat_footer"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/customer_chat/chat_header"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('
                                \n '),1\n
                                \n '),s.push(this.T("Waiting Customers")),s.push(' \n
                                \n
                                \n '),s.push(this.Icon("arrow-down")),s.push('\n
                                \n \n
                                \n ")}else s.push('\n
                                \n '),s.push(this.T("Waiting Customers")),s.push(' \n
                                \n
                                '),s.push(this.Icon("info")),s.push("
                                \n
                                \n
                                \n ");s.push('\n
                                \n '),s.push(this.T("Chatting Customers")),s.push(' \n
                                \n
                                '),s.push(this.Icon("info")),s.push('
                                \n
                                \n
                                \n
                                \n '),s.push(this.T("Active Agents")),s.push(' \n
                                \n
                                '),s.push(this.Icon("info")),s.push("
                                \n
                                \n
                                \n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/customer_chat/chat_list"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push("
                                \n"),_.isEmpty(this.chat_sessions))s.push("\n"),s.push(this.T("none")),s.push("\n");else{for(s.push("\n
                                  \n"),e=0,n=(i=this.chat_sessions).length;e"),s.push(r(t.name)),s.push(" "),t.geo_data&&(s.push("- "),s.push(r(t.geo_data))),s.push(" - "),t.user_id&&(s.push(r(t.user.displayName())),s.push(" -")),s.push(' '),s.push(this.humanTime(t.created_at)),s.push("\n");s.push("\n
                                \n")}s.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/customer_chat/chat_loader"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n
                                \n '),e.push(this.Icon("loading")),e.push("\n "),e.push(this.Icon("loading")),e.push("\n "),e.push(this.Icon("loading")),e.push("\n
                                \n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/customer_chat/chat_message"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                '),e.push(this.message),e.push("
                                \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/customer_chat/chat_notice_message"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                '),e.push(n(this.message)),e.push("
                                \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/customer_chat/chat_status_message"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                '),e.push(this.message),e.push("
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/customer_chat/chat_timestamp"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                '),e.push(n(this.label)),e.push(" "),e.push(n(this.time)),e.push("
                                \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/customer_chat/chat_window"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('
                                \n
                                \n
                                \n '),s.push(this.Icon("status")),s.push("\n "),s.push(this.Icon("status-modified-outer-circle")),s.push("\n "),s.push(this.Icon("small-dot","icon-status-modified-inner-circle")),s.push('\n
                                \n
                                \n
                                \n '),s.push(r(this.name)),s.push(" #"),s.push(r(this.session.id)),s.push('\n
                                \n
                                \n
                                '),s.push(this.T("disconnect")),s.push('
                                \n
                                \n \n
                                \n\n
                                \n
                                \n \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                '),s.push(this.T("Send")),s.push("
                                \n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/customer_chat/index"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n \n
                                \n
                                \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/customer_chat/setting"]=function(t){t||(t={});var p=[],u=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c;for(this.errors.settings&&(p.push('\n
                                '),p.push(this.T(this.errors.settings)),p.push("
                                \n")),p.push('\n
                                \n \n
                                \n \n "),p.push(this.Icon("arrow-down","dropdown-arrow")),p.push('\n
                                \n
                                \n
                                \n \n
                                \n \n
                                \n
                                \n
                                \n \n
                                \n \n "),p.push(this.Icon("arrow-down","dropdown-arrow")),p.push('\n
                                \n
                                \n\n \n \n \n \n \n"),s=0,o=(l=this.chats).length;s\n \n
                                '),p.push(this.T("Topic")),p.push("\n "),p.push(this.T("Greeting")),p.push(" ("),p.push(this.T("Separate multiple values by ;")),p.push(")\n "),p.push(this.T("Enabled")),p.push("\n
                                "),p.push(u(t.name)),p.push('\n \n \n \n");p.push("\n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,p.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/customer_chat/user_list"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push("
                                \n"),_.isEmpty(this.users))s.push("\n"),s.push(this.T("none")),s.push("\n");else{for(s.push('\n
                                \n'),t=0,e=(n=this.users).length;t\n '),s.push(i.avatar("30")),s.push('\n \n '),s.push(r(i.displayName())),s.push("\n \n
                                \n");s.push("\n\n")}s.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/customer_not_ticket_exists"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n

                                '),e.push(this.T("Welcome!")),e.push('

                                \n
                                \n
                                \n
                                \n '),this.has_any_tickets?(e.push("\n

                                "),e.push(this.T("You have no tickets to display in this overview.")),e.push("

                                \n ")):(e.push("\n "),this.is_allowed_to_create_ticket?(e.push("\n

                                "),e.push(this.T("You have not created a ticket yet.")),e.push("

                                \n

                                "),e.push(this.T('The way to communicate with us is this thing called "ticket".')),e.push("

                                \n

                                "),e.push(this.T("Please click on the button below to create your first one.")),e.push('

                                \n\n

                                '),e.push(this.T("Create your first ticket")),e.push("

                                \n ")):(e.push("\n

                                "),e.push(this.T("You currently don't have any tickets.")),e.push("

                                \n ")),e.push("\n ")),e.push("\n
                                \n
                                \n
                                \n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/customer_ticket_create"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n
                                \n
                                \n
                                \n \n\n
                                \n
                                \n \n\n
                                \n
                                \n\n
                                \n
                                \n
                                \n
                                \n\n
                                \n '),e.push(this.T("Cancel & Go Back")),e.push('\n \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n\n\n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/dashboard"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n
                                \n
                                '),e.push(this.T("My Stats")),e.push('
                                \n
                                '),e.push(this.T("First Steps")),e.push('
                                \n
                                \n \n
                                \n
                                \n\n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/dashboard/activity_stream_item"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n
                                \n \n \n \n '),this.item.objectNative&&this.item.objectNative.activityMessage?(e.push("\n "),e.push(this.item.objectNative.activityMessage(this.item)),e.push("\n ")):(e.push("\n Need objectNative in item "),e.push(n(item.object)),e.push(".find("),e.push(n(item.o_id)),e.push(")\n ")),e.push("\n \n "),e.push(this.humanTime(this.item.created_at,!1,"activity-time")),e.push('\n \n \n '),this.item.cssIcon&&(e.push("\n "),e.push(this.Icon(this.item.cssIcon)),e.push("\n ")),e.push("\n \n \n
                                \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/dashboard/first_steps"]=function(t){t||(t={});var l=[],e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;for(l.push('
                                \n '),e=0,s=(o=this.data).length;e"),l.push(this.T(t.name)),l.push("\n "),i=0,r=(a=t.items).length;i\n '),n.checked?(l.push("\n "),l.push(this.Icon("checkmark"))):(l.push("\n "),l.push(this.Icon("small-dot"))),l.push("\n "),l.push("\n "),l.push(this.T(n.name)),l.push("\n \n ");l.push("\n ")}l.push("\n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/dashboard/first_steps_clues"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n\n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/dashboard/first_steps_clues_content"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n ")),s.push("\n");s.push("\n")}else s.push('\n
                                \n '),s.push(this.T("None")),s.push("\n
                                \n");s.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/facebook/account_edit"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('\n
                                \n\n

                                '),s.push(this.T("Pages")),s.push('

                                \n

                                '),s.push(this.T("Choose the Group to which page posts will get added.")),s.push('

                                \n
                                \n '),this.channel.options.pages){for(s.push("\n "),t=0,e=(i=this.channel.options.pages).length;t"),s.push(r(n.name)),s.push('\n
                                \n ');s.push("\n ")}s.push("\n
                                \n\n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/facebook/app_config"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n

                                \n '),e.push(this.T("You can find a tutorial on how to manage a %s in our online documentation %l.","Facebook App","https://admin-docs.zammad.org/en/latest/channels/facebook.html")),e.push("\n

                                \n
                                \n

                                "),e.push(this.T("Enter your %s App Keys","Facebook")),e.push('

                                \n
                                \n
                                \n \n
                                \n
                                \n \n
                                \n
                                \n
                                \n
                                \n \n
                                \n
                                \n \n
                                \n
                                \n

                                '),e.push(this.T("Your callback URL")),e.push('

                                \n
                                \n
                                \n \n
                                \n
                                \n
                                \n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/facebook/index"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n\n
                                \n
                                \n

                                '),e.push(this.T("You can connect %s with Zammad. But first, you will have to connect your Zammad with %s.","Facebook Accounts","Facebook")),e.push('

                                \n
                                '),e.push(this.T("Connect Facebook App")),e.push("
                                \n
                                \n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/facebook/list"]=function(t){t||(t={});var l=[],c=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;for(l.push('\n\n
                                \n'),e=0,i=(o=this.channels).length;e\n
                                \n

                                '),l.push(this.Icon("status","supergood-color inline")),l.push(" "),l.push(c(t.options.user.name)),l.push(' '),l.push(c(t.options.user.id)),l.push('

                                \n
                                \n
                                \n
                                \n

                                '),l.push(this.T("Pages")),l.push("

                                \n "),t.options.pages){for(l.push("\n "),n=0,s=(a=t.options.pages).length;n "),l.push(c(r.groupName)),l.push("
                                \n ");l.push("\n ")}l.push('\n
                                \n
                                \n
                                \n
                                '),l.push(this.T("Delete")),l.push("
                                \n "),!0===t.active?(l.push('\n
                                '),l.push(this.T("Disable"))):(l.push('\n
                                '),l.push(this.T("Enable"))),l.push("
                                \n "),l.push('\n
                                '),l.push(this.T("Edit")),l.push("
                                \n
                                \n
                                \n")}l.push("\n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/actions"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/admin/empty"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push("

                                "),e.push(this.T(this.explanation)),e.push('

                                \n\n\n
                                '),e.push(this.T("No Entries")),e.push("\n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/admin/index"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('\n\n
                                \n
                                \n
                                \n\n\n')}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/admin_level2/index"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('\n
                                \n\n \n
                                \n \n
                                \n
                                \n')}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/application_selector"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n
                                \n
                                \n

                                '),e.push(this.T("Preview")),e.push(' (? '),e.push(this.T("matches")),e.push(')

                                \n
                                \n
                                \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/application_selector_empty"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/application_selector_row"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n
                                \n
                                \n
                                \n '),e.push(this.Icon("arrow-down","dropdown-arrow")),e.push('\n
                                \n
                                \n
                                \n
                                \n \n '),e.push(this.Icon("arrow-down","dropdown-arrow")),e.push("\n
                                \n
                                \n "),this.pre_condition&&(e.push('\n
                                \n
                                \n \n '),e.push(this.Icon("arrow-down","dropdown-arrow")),e.push("\n
                                \n
                                \n ")),e.push('\n
                                \n
                                \n
                                \n
                                \n '),e.push(this.Icon("minus-small")),e.push('\n
                                \n
                                \n '),e.push(this.Icon("plus-small")),e.push("\n
                                \n
                                \n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/attachment"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t;e.push('
                                \n
                                \n '),this.attribute.disabled||(e.push('\n
                                \n \n '),t=_.uniqueId("fileUpload_"),e.push('\n \n \n \n
                                \n ")),e.push('\n
                                \n
                                \n
                                \n '),e.push(this.T("Uploading")),e.push(' (0%) ...\n
                                \n
                                \n '),e.push(this.Icon("diagonal-cross")),e.push(this.T("Cancel Upload")),e.push('\n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n '),e.push(this.T("Drop files here")),e.push("\n
                                \n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/attachment_item"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n
                                '),e.push(n(this.filename)),e.push('
                                \n
                                '),e.push(n(this.humanFileSize(this.size))),e.push('
                                \n
                                \n '),e.push(this.Icon("diagonal-cross")),e.push(this.T("Delete File")),e.push("\n
                                \n
                                \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/attachments"]=function(t){t||(t={});var r=[],o=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s;if(!_.isEmpty(this.attachments)){for(r.push('\n
                                \n '),r.push(this.Icon("paperclip")),r.push('\n
                                '),r.push(this.attachments.length),r.push(" "),r.push(this.T("Attached Files")),r.push("
                                \n "),n=0,i=(s=this.attachments).length;n\n
                                \n '),t.preferences&&e&&this.ContentTypeIcon(e)?(r.push("\n "),this.canPreview(e)?(r.push( '\n \n ')):(r.push("\n "),r.push(this.Icon(this.ContentTypeIcon(e))),r.push("\n "))):(r.push("\n "),r.push(this.Icon("file-unknown"))),r.push("\n "),r.push('\n
                                \n '),r.push(o(t.filename)),r.push('\n
                                '),r.push(this.humanFileSize(t.size)),r.push("
                                \n \n ")):(r.push('\n
                                \n "),r.push(o(t.filename)),r.push('\n
                                '),r.push(this.humanFileSize(t.size)),r.push("
                                \n
                                \n ")),r.push("\n ");r.push("\n
                                \n")}r.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,r.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/attribute"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n "),"block"===this.attribute.style&&e.push("\n

                                \n "),e.push('\n
                                \n \n "),e.push(this.item),e.push("\n "),this.bookmarkable&&e.push('\n
                                \n
                                \n
                                \n '),e.push("\n "),this.attribute.note&&(e.push('\n
                                \n '),e.push(this.Icon("help")),e.push("\n
                                \n ")),e.push("\n
                                \n "),"block"===this.attribute.style&&(e.push('\n

                                \n

                                '),this.attribute.help&&e.push(this.T(this.attribute.help)),e.push(this.attribute.helpLink),e.push("

                                \n ")),e.push('\n
                                \n '),"url"!==this.attribute.type&&_.isEmpty(this.attribute.linktemplate)||_.isEmpty(this.placeholderObjects)||(e.push('\n \n '),e.push(this.Icon("external")),e.push("\n \n ")),e.push('\n \n '),"block"!==this.attribute.style&&(e.push('\n '),this.attribute.help&&e.push(this.T(this.attribute.help)),e.push(this.attribute.helpLink),e.push("\n ")),e.push("\n
                                \n
                                \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/auth_provider"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/autocompletion"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n\n\n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/business_hours"]=function(t){t||(t={});var c=[],p=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l;for(n in c.push("\n \n "),i=this.days)t=i[n],c.push('\n \n \n ");for(c.push("\n\n\n "),l=e=0,s=this.maxTimeframes-1;0<=s?e<=s:s<=e;l=0<=s?++e:--e){for(n in c.push("\n \n "),r=this.days)t=r[n],c.push("\n "),this.hours[n].timeframes[l]?(c.push('\n \n \n \n \n \n ')):c.push('\n \n '),c.push("\n ");c.push("\n ")}if(c.push("\n\n "),1\n "),o=this.days)t=o[n],c.push("\n "),1\n '),c.push(this.Icon("minus-small")),c.push("\n ")):c.push('\n \n '),c.push("\n ");c.push("\n ")}for(n in c.push("\n\n \n "),a=this.days)t=a[n],c.push('\n \n '),c.push(this.Icon("plus-small")),c.push("\n ");c.push("\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,c.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/checkbox"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                                \n'),t=0,e=(n=this.attribute.options).length;t\n \n "),s.push(this.Icon("checkbox","icon-unchecked")),s.push("\n "),s.push(this.Icon("checkbox-checked","icon-checked")),s.push('\n '),s.push(r(i.name)),s.push("\n "),i.note&&(s.push(''),s.push(this.T(i.note)),s.push("")),s.push("\n \n");s.push("\n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/color"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n\n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/column_select"]=function(t){t||(t={});var f=[],m=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p,u,h,d;if(this.attribute.seperator)f.push('\n\n');else{for(f.push('\n\n '),t=0,s=(p=this.allOptions).length;t"),f.push(m(c.name)),f.push("\n ");f.push("\n\n")}for(f.push('\n
                                \n
                                '),f.push(this.T("Nothing selected")),f.push("
                                \n "),e=0,r=(u=this.allOptions).length;e'),f.push(m(c.name)),f.push("
                                \n ");for(f.push('\n\n
                                \n '),10\n '),f.push(this.Icon("magnifier")),f.push('\n \n \n
                                \n ")),f.push('\n
                                \n '),n=0,o=(h=this.attribute.options).length;n'),f.push(m(this.T(c.label))),f.push("
                                \n "),i=0,a=(d=c.group).length;i'),f.push(m(l.name)),f.push("\n ");f.push("\n ")}else f.push('\n
                                '),f.push(m(c.name)),f.push("
                                \n ");f.push("\n ")}f.push("\n \n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,f.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/content_one"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/content_two"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n
                                \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/content_two_title"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n
                                \n \n
                                \n
                                \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/date"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n \n \n
                                \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/datepicker"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n
                                \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
                                '),e.push(this.Icon("arrow-{start}")),e.push(''),e.push(this.Icon("arrow-{end}")),e.push('
                                \n
                                \n
                                \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
                                '),e.push(this.Icon("arrow-{start}")),e.push(''),e.push(this.Icon("arrow-{end}")),e.push('
                                \n
                                \n
                                \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
                                '),e.push(this.Icon("arrow-{start}")),e.push(''),e.push(this.Icon("arrow-{end}")),e.push('
                                \n
                                \n
                                \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/datetime"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n \n \n
                                '),e.push(this.T("at")),e.push('
                                \n \n
                                \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/drox"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n
                                \n

                                \n '),e.push(this.T(this.header)),e.push("\n "),this.edit&&(e.push('\n \n ')),e.push('\n

                                \n
                                \n
                                \n
                                \n
                                \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/error/generic"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n '),e.push(this.Icon("diagonal-cross","icon-error")),e.push("\n

                                "),void 0!==this.status&&(e.push(this.T("Status Code")),e.push(": "),e.push(n(this.status)),e.push(". ")),e.push(this.T(this.detail)),e.push("

                                \n
                                \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/error/not_found"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n '),e.push(this.Icon("diagonal-cross","icon-error")),e.push("\n

                                "),e.push(this.T("Oops.. I'm sorry, but I can't find this %s.",this.objectName)),e.push("

                                \n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/error/placeholder"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n '),e.push(this.icon),e.push("\n

                                "),void 0!==this.status&&(e.push(this.T("Status Code")),e.push(": "),e.push(n(this.status)),e.push(". ")),e.push(this.T(this.detail)),e.push("

                                \n "),this.action&&(e.push('\n
                                '),e.push(this.T(this.action)),e.push("
                                \n ")),e.push("\n
                                \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/error/success"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n '),e.push(this.Icon("checkmark")),e.push("\n

                                "),e.push(this.T(this.detail)),e.push("

                                \n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/error/unauthorized"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n '),e.push(this.Icon("diagonal-cross","icon-error")),e.push("\n

                                "),e.push(this.T("Oops.. I'm sorry, but you have insufficient rights to open this %s.",this.objectName)),e.push("

                                \n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/history"]=function(t){t||(t={});var l=[],c=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;for(l.push('
                                \n'),l.push(this.T("Change order")),l.push("\n\n
                                \n\n"),e=0,s=(o=this.items).length;e'),l.push(c(n.created_by.displayName())),l.push(" -\n "),l.push(this.humanTime(n.created_at)),l.push("\n
                                  \n "),i=0,r=(a=n.records).length;i"),l.push(t),l.push("\n ");l.push("\n
                                \n
                                \n")}l.push("\n\n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/ical_feed"]=function(t){t||(t={});var i=[],s=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n;for(n in i.push('
                                \n \n
                                \n \n "),i.push(this.Icon("arrow-down")),i.push('\n
                                \n ('),i.push(this.T("iCalendar links from Google will get fetched once a day")),i.push(')\n
                                \n\n
                                \n \n \n \n
                                \n')}).call(this)}.call(t),t.safe=e,t.escape=n,i.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/icon_picker"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="") ;var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n\n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/iconset_picker"]=function(t){t||(t={});var i=[],s=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n;for(t in i.push('\n
                                \n\t'),e=this.sets)n=e[t],i.push('\n\t
                                \n\t\t
                                \n\t\t\t
                                \n\t\t
                                \n\t\t
                                \n\t\t\t'),i.push(s(n.name)),i.push('\n\t\t\t'),i.push(s(n.version)),i.push('\n\t\t\t'),i.push(this.T("Website")),i.push("\n\t\t
                                \n\t
                                \n\t");i.push("\n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,i.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/input"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/login_preview"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/modal_loader"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/multi_locales"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n \n \n \n \n \n
                                '),e.push(this.T("Language")),e.push('\n '),e.push(this.T("Default")),e.push('\n '),e.push(this.T("Delete")),e.push("\n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/multi_locales_row"]=function(t){t||(t={});var n=[],i=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},e=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e;n.push('\n
                                \n\n \n \n '),n.push(this.Icon("radio","icon-unchecked")),n.push("\n "),n.push(this.Icon("radio-checked","icon-checked")),n.push('\n \n\n \n \n '),n.push(this.Icon("checkbox","icon-unchecked")),n.push("\n "),n.push(this.Icon("checkbox-checked","icon-checked")),n.push("\n \n")}).call(this)}.call(t),t.safe=e,t.escape=s,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/navbar_level2/index"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n
                                \n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/navbar_level2/navbar"]=function(t){t||(t={});var l=[],c=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;if(this.groups){for(l.push("\n "),e=0,s=(o=this.groups).length;e"),l.push(this.T(t.name)),l.push('\n \n ")}l.push("\n ")}l.push("\n")}l.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/object_import/import_try"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n

                                \n\n

                                \n'),this.result.stats&&(e.push("\n "),e.push(this.T("The test run was successful.")),e.push("\n "),e.push(this.T("The following changes will be made:")),e.push("\n

                                  \n "),void 0!==this.result.stats.deleted&&(e.push("\n
                                • "),e.push(this.T("%s object(s) will be deleted.",this.result.stats.deleted)),e.push("
                                • \n ")),e.push("\n "),void 0!==this.result.stats.created&&(e.push("\n
                                • "),e.push(this.T("%s object(s) will be created.",this.result.stats.created)),e.push("
                                • \n ")),e.push("\n "),void 0!==this.result.stats.updated&&(e.push("\n
                                • "),e.push(this.T("%s object(s) will be updated.",this.result.stats.updated)),e.push("
                                • \n ")),e.push("\n")),e.push("\n

                                  \n\n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/object_import/imported"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push("
                                \n"),this.errors){for(s.push("\n
                                  \n "),e=0,n=(i=this.errors).length;e"),s.push(r(t)),s.push("\n ");s.push("\n")}s.push('\n
                                \n\n
                                \n

                                \n

                                \n'),this.result.stats&&(s.push("\n "),s.push(this.T("The import was successful.")),s.push("\n "),s.push(this.T("The following changes have been made:")),s.push("\n

                                  \n "),void 0!==this.result.stats.deleted&&(s.push("\n
                                • "),s.push(this.T("%s object(s) were deleted.",this.result.stats.deleted)),s.push("
                                • \n ")),s.push("\n "),void 0!==this.result.stats.created&&(s.push("\n
                                • "),s.push(this.T("%s object(s) have been created.",this.result.stats.created)),s.push("
                                • \n ")),s.push("\n "),void 0!==this.result.stats.updated&&(s.push("\n
                                • "),s.push(this.T("%s object(s) have been updated.",this.result.stats.updated)),s.push("
                                • \n ")),s.push("\n")),s.push("\n

                                  \n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/object_import/index"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n

                                \n\n

                                \n '),e.push(this.T("Bulk import allows you to create and update many records at once.")),e.push("\n "),e.push(this.T("The data must be in the comma separated values (CSV) format and saved as UTF-8. You can import a CSV file or paste the data directly into the text area.")),e.push("\n

                                \n\n

                                "),e.push(this.T("Alternatively, you can use the Zammad API to import data.")),e.push('

                                \n\n

                                '),e.push(this.T("Create new records")),e.push("

                                \n"),e.push(this.T("Records that exist in the import data (but not in Zammad) will always be created.")),e.push('\n\n

                                '),e.push(this.T("Update existing records")),e.push("

                                \n"),e.push(this.T("Update existing records with the attributes specified in the import data.")),e.push("\n\n"),!0===this.deleteOption&&(e.push('\n

                                '),e.push(this.T("Delete records")),e.push("

                                \n"),e.push(this.T("Delete all existing records first.")),e.push("\n")),e.push("\n\n

                                "),e.push(this.T("Select CSV file")),e.push('

                                \n\n\n

                                '),e.push(this.T("Paste in CSV data")),e.push('

                                \n\n\n

                                '),e.push(this.T("Note")),e.push(': '),e.push(this.T("Example CSV file for download.")),e.push("

                                \n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/object_import/result"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push("
                                \n"),s.push(this.T("Result")),s.push(": "),s.push(r(this.result)),s.push("\n"),this.errors){for(s.push("\n
                                  \n "),e=0,n=(i=this.errors).length;e"),s.push(r(t)),s.push("\n ");s.push("\n")}s.push("\n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/object_search/input"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('
                                \n '),this.attribute.multiple){if(s.push('\n \n "),s.push(this.tokens),s.push("\n ")}else s.push('\n \n ');s.push('\n \n '),!0!==this.attribute.disableCreateObject&&s.push(this.Icon("arrow-down","dropdown-arrow")),s.push('\n
                                \n\n\n')}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/object_search/item_object"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              2. \n
                                \n '),e.push(this.Icon(this.icon,"recipientList-icon")),e.push('\n
                                \n
                                \n '),this.realname?(e.push("\n "),e.push(n(this.realname))):(e.push("\n "),e.push(n(this.object.displayName()))),e.push("\n "),e.push("\n "),this.object.organization&&(e.push('\n - '),e.push(n(this.object.organization.displayName())),e.push("\n ")),e.push("\n
                                \n "),!1===this.object.active&&(e.push('\n
                                '),e.push(this.Ti("inactive")),e.push("
                                \n ")),e.push("\n
                              3. \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/object_search/item_organization"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              4. \n
                                \n '),!1===this.organization.active?(e.push("\n "),e.push(this.Icon("inactive-organization","recipientList-icon"))):(e.push("\n "),e.push(this.Icon("organization","recipientList-icon"))),e.push("\n "),e.push('\n
                                \n
                                \n '),e.push(n(this.organization.displayName())),e.push('\n - '),e.push(n(this.objectCount)),e.push(" "),e.push(this.T(this.objectSingels)),e.push("\n
                                \n "),!1===this.organization.active&&(e.push('\n
                                '),e.push(this.Ti("inactive")),e.push("
                                \n ")),e.push("\n "),e.push(this.Icon("arrow-right","recipientList-arrow")),e.push("\n
                              5. \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/object_search/item_organization_members"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                  \n
                                • \n
                                  \n '),e.push(this.Icon("arrow-left")),e.push('\n '),e.push(this.T("Back")),e.push('\n
                                  \n\n
                                • \n
                                  \n '),e.push(this.T("show more")),e.push("\n
                                  \n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/object_search/new_object"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              6. \n
                                \n '),e.push(this.Icon("plus","recipientList-icon")),e.push('\n
                                \n
                                \n '),e.push(this.T(this.objectCreate)),e.push("\n
                                \n
                              7. \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/page_loading"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n
                                \n
                                '),e.push(this.T("Loading\u2026")),e.push("
                                \n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/permission"]=function(t){t||(t={});var d=[],f=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p,u,h;for(d.push('
                                \n'),n=0,r=(l=this.permissions).length;n\n \n "),_.contains(a.preferences.plugin,"groups")){for(s in d.push('\n
                                \n \n \n \n "),i=0,o=(p=this.groups).length;i\n \n ")}d.push("\n
                                '),d.push(this.T("Group")),d.push("\n "),c=this.groupAccesses)h=c[s],d.push("\n "),d.push(this.T(h)),d.push("\n ");for(d.push("\n
                                \n "),d.push(f(e.displayName())),d.push("\n "),u=this.groupAccesses)h=u[s],d.push('\n \n \n ");d.push("\n
                                \n
                                \n ")}d.push("\n
                                \n ")}else d.push('\n \n ");d.push("\n")}d.push("\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,d.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/postmaster_match"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n
                                \n
                                \n
                                \n
                                \n '),e.push(this.Icon("arrow-down","dropdown-arrow")),e.push('\n
                                \n
                                \n
                                \n
                                \n \n '),e.push(this.Icon("arrow-down")),e.push('\n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n '),e.push(this.Icon("minus-small")),e.push('\n
                                \n
                                \n '),e.push(this.Icon("plus-small")),e.push("\n
                                \n
                                \n
                                \n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/postmaster_set"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/postmaster_set_row"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                                \n
                                \n
                                \n
                                \n '),e.push(this.Icon("arrow-down","dropdown-arrow")),e.push('\n
                                \n
                                \n
                                \n
                                \n \n '),e.push(this.Icon("arrow-down")),e.push('\n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n '),e.push(this.Icon("minus-small")),e.push('\n
                                \n
                                \n '),e.push(this.Icon("plus-small")),e.push("\n
                                \n
                                \n
                                \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/radio"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                                \n'),t=0,e=(n=this.attribute.options).length;t\n \n "),s.push(this.Icon("radio","icon-unchecked")),s.push("\n "),s.push(this.Icon("radio-checked","icon-checked")),s.push('\n '),s.push(this.T(i.name)),s.push("\n "),i.note&&(s.push(''),s.push(this.T(i.note)),s.push("")),s.push("\n \n");s.push("\n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/radio_graphic"]=function(t){t||(t={});var i,o=[],a=function(t){var e,n=o;return o=[],t.call(this),e=o.join(""),o=n,i(e)},l=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return i=t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r;for(r=this,e=function(t){return a(function(){return o.push("\n "),o.push(r.Icon("radio","icon-unchecked")),o.push("\n "),o.push(r.Icon("radio-checked","icon-checked")),o.push('\n '),o.push(r.T(t.name)),o.push(" "),t.note&&(o.push('- '),o.push(r.T(t.note)),o.push("")),o.push("\n")})},o.push('\n\n
                                \n '),t=0,n=(i=this.attribute.options).length;t\n \n \n \n \n \n '),o.push(l(e(s))),o.push("\n \n \n ");o.push("\n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,o.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/richtext"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('
                                \n\t'),this.attribute.buttons){for(s.push('\n
                                \n '),e=0,n=(i=this.attribute.buttons).length;e\n '),s.push(this.Icon(this.toolButtons[t].icon)),s.push("\n "),this.toolButtons[t].text&&(s.push("\n "),s.push(r(this.toolButtons[t].text)),s.push("\n ")),s.push("\n \n ");s.push("\n
                                \n\t")}s.push('\n
                                '),s.push(this.attribute.value),s.push("
                                \n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/searchable_select"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/searchable_select_option"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/searchable_select_submenu"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/select"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('
                                \n \n "),this.attribute.multiple||(s.push("\n "),s.push(this.Icon("arrow-down")),s.push("\n ")),s.push("\n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/sidebar_tabs"]=function(t){t||(t={});var a=[],l=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o;for(t=0,i=(r=this.items).length;t\n \n
                                \n \n\n');for(a.push('\n
                                \n'),n=0,s=(o=this.items).length;n
                                \n');a.push("\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,a.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/sidebar_tabs_item"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){!0===this.counterPossible&&this.counter&&0'),e.push(n(this.counter)),e.push("\n")),e.push("\n"),e.push(this.Icon(this.icon)),e.push("\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/sla_times"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n \n \n \n \n \n \n \n \n \n
                                '),e.push(this.T("Active")),e.push("\n "),e.push(this.T("Type")),e.push("\n "),e.push(this.T("Time")),e.push(' '),e.push(this.T("in hours")),e.push('\n
                                \n \n \n
                                '),e.push(this.T("First Response Time")),e.push('
                                \n

                                '),e.push(this.T("Timeframe for the first response.")),e.push('

                                \n
                                \n \n \n\n
                                \n \n \n
                                \n
                                '),e.push(this.T("Update Time")),e.push('
                                \n

                                '),e.push(this.T("Timeframe between agent updates or for an agent to respond.")),e.push('

                                \n
                                \n\n

                                \n \n

                                \n\n

                                \n \n

                                \n
                                \n \n \n \n \n \n \n \n \n\n
                                \n \n \n
                                '),e.push(this.T("Solution Time")),e.push('
                                \n

                                '),e.push(this.T("Timeframe for solving the problem.")),e.push('

                                \n
                                \n \n \n\n
                                \n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/table"]=function(t){t||(t={});var r=[],o=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s;for(r.push('
                                \n\n \n \n '),this.sortable&&r.push('\n \n '),r.push("\n "),this.checkbox&&(r.push('\n \n ")),r.push("\n "),this.radio&&r.push('\n \n '),r.push("\n "),e=n=0,i=(s=this.headers).length;n\n
                                \n
                                '),r.push(this.T(t.display)),r.push("
                                \n "),this.sortable||(r.push('\n
                                '),t.sortOrderIcon&&r.push(this.Icon(t.sortOrderIcon[0],t.sortOrderIcon[1])),r.push("
                                \n ")),r.push("\n
                                \n "),this.tableId&&!t.unresizable&&e\n '),r.push("\n \n ");r.push('\n
                                \n \n '),r.push(this.tableBody),r.push('\n
                                \n \n
                                \n
                                \n')}).call(this)}.call(t),t.safe=e,t.escape=n,r.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/table_pager"]=function(t){t||(t={});var i=[],s=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n;for(i.push('
                                \n '),e=t=0,n=this.pages;0<=n?t<=n:n<=t;e=0<=n?++t:--t)i.push('\n
                                '),i.push(s(e+1)),i.push("
                                \n ");i.push("\n
                                \n")}).call(this)}.call(t),t.safe=e,t.escape=n,i.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/table_row"]=function(t){t||(t={});var b=[],y=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p,u,h,d,f,m,g,v;for(b.push('\n'),this.sortable&&(b.push('\n '),b.push(this.Icon("draggable")),b.push("\n")),b.push("\n"),this.checkbox&&(b.push('\n \n \n \n")),b.push("\n"),this.radio&&(b.push('\n \n \n \n")),b.push("\n"),a=0,p=(d=this.headers).length;a\n "),"icon"===o.name)b.push("\n "),b.push(this.Icon("task-state",o["class"])),b.push("\n ");else if(o.icon)b.push("\n "),b.push(this.Icon(o.icon)),b.push("\n ");else if("action"===o.name){if(b.push("\n "),1\n
                                \n '),b.push(this.Icon("overflow-button")),b.push('\n
                                \n \n \n ")}else b.push('\n
                                \n '),b.push(this.Icon(this.actions[0].icon)),b.push("\n
                                \n ");b.push("\n ")}else{if(b.push("\n "),o.link&&(b.push('\n \n ")),b.push("\n "),o.raw)b.push("\n "),b.push(o.raw),b.push("\n ");else{if(b.push("\n "),o.prefixIcon&&(b.push('\n '),b.push(this.Icon(o.prefixIcon)),b.push("\n ")),b.push("\n "),o["class"]||o.data){if(b.push("\n \n ")}b.push("\n "),b.push(v),b.push("\n "),(o["class"]||o.data)&&b.push(""),b.push("\n ")}b.push("\n "),o.link&&b.push(""),b.push("\n ")}b.push("\n \n")}b.push("\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,b.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/table_row_group_by"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n '),e.push(this.groupByName),this.groupByCount&&(e.push(" ("),e.push(n(this.groupByCount)),e.push(")")),e.push("\n\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/tabs"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('\n
                                \n '),1\n '),t=0,e=(n=this.tabs).length;t'),s.push(this.T(i.name)),s.push("\n ");s.push("\n
                              \n ")}s.push('\n
                              \n\n')}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/textarea"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/ticket_list"]=function(t){t||(t={});var o=[],a=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r;for(o.push('
                              \n '),t=n=0,i=(s=this.tickets).length;n\n ')),o.push('\n
                              \n
                              \n '),o.push(this.Icon("task-state",r.iconClass())),o.push('\n
                              \n \n "),this.object&&(o.push('\n \n '),o.push(this.Icon("diagonal-cross")),o.push("\n \n ")),o.push("\n
                              \n ");o.push("\n "),this.tickets.length>this.show_max&&(o.push('\n
                              \n \n ")),o.push("\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,o.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/ticket_perform_action/article"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n
                              \n \n
                              \n
                              \n
                              \n
                              \n
                              \n \n
                              \n
                              \n \n
                              \n
                              \n
                              \n
                              \n \n
                              \n
                              \n
                              '),e.push(this.meta.body),e.push("
                              \n
                              \n
                              \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/ticket_perform_action/attribute_selector"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n
                              \n
                              \n \n '),e.push(this.Icon("arrow-down","dropdown-arrow")),e.push('\n
                              \n
                              \n
                              \n
                              \n \n '),e.push(this.Icon("arrow-down","dropdown-arrow")),e.push('\n
                              \n
                              \n
                              \n
                              \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/ticket_perform_action/index"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/ticket_perform_action/notification"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n
                              \n \n
                              \n
                              \n
                              \n
                              \n
                              \n \n
                              \n
                              \n \n
                              \n
                              \n'),"email"===this.notificationType&&(e.push('\n
                              \n
                              \n \n
                              \n
                              \n
                              \n
                              \n
                              \n \n
                              \n
                              \n
                              \n')),e.push('\n
                              \n
                              \n \n
                              \n
                              \n
                              \n
                              '),e.push(this.meta.body),e.push('
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/ticket_perform_action/row"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n
                              \n
                              \n
                              \n '),e.push(this.Icon("arrow-down","dropdown-arrow")),e.push('\n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n '),e.push(this.Icon("minus-small")),e.push('\n
                              \n
                              \n '),e.push(this.Icon("plus-small")),e.push("\n
                              \n
                              \n
                              \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/ticket_perform_action/webhook"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n
                              \n \n
                              \n
                              \n
                              \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/ticket_perform_action/webhook_not_available"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push("
                              "),e.push(this.T('No webhook available, please create a new one or activate an existing one at "Manage > Webhook"')),e.push("
                              \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/time_range"]=function(t){t||(t={});var i=[],s=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n;for(t in i.push('
                              \n
                              \n
                              \n \n "),i.push(this.Icon("arrow-down","dropdown-arrow")),i.push("\n
                              \n")}).call(this)}.call(t),t.safe=e,t.escape=n,i.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/time_range_value_selector"]=function(t){t||(t={});var i=[],s=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n;for(t in i.push('\n"),i.push(this.Icon("arrow-down","dropdown-arrow")),i.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,i.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/timeplan"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push("
                              \n \n \n \n
                              \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/timer"]=function(t){t||(t={});var c=[],p=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l;for(t in c.push('\n

                              \n
                              \n\n
                              \n
                              \n
                              '),c.push(this.T("Day")),c.push("
                              \n "),o=this.days)e=o[t],c.push('\n
                              '),c.push(this.T(e)),c.push('
                              \n \n ');for(n in c.push('\n
                              \n
                              \n
                              '),c.push(this.T("Hour")),c.push("
                              \n "),a=this.hours)i=a[n],c.push('\n
                              '),c.push(i),c.push('
                              \n \n ');for(s in c.push('\n
                              \n
                              \n
                              '),c.push(this.T("Minute")),c.push("
                              \n "),l=this.minutes)r=l[s],c.push('\n
                              '),c.push(r),c.push('
                              \n \n ');c.push("\n
                              \n
                              \n")}).call(this)}.call(t),t.safe=e,t.escape=n,c.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/token"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n '),e.push(n(this.name)),e.push('\n \xd7\n
                              \n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/user_permission"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                              \n'),t=0,e=(n=this.roles).length;t\n \n "),s.push(this.Icon("checkbox","icon-unchecked")),s.push("\n "),s.push(this.Icon("checkbox-checked","icon-checked")),s.push('\n '),s.push(this.T(i.displayName())),s.push("\n "),i.note&&(s.push(''),s.push(this.T(i.note)),s.push("")),s.push("\n \n");s.push('\n
                              \n
                              \n')}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/generic/user_permission_group"]=function(t){t||(t={});var c=[],p=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l;for(n in c.push('
                              \n
                              \n \n \n \n "),e=0,i=(o=this.groups).length;e\n \n ")}c.push("\n
                              '),c.push(this.T("Group")),c.push("\n "),r=this.groupAccesses)l=r[n],c.push("\n "),c.push(this.T(l)),c.push("\n ");for(c.push("\n
                              \n "),c.push(p(t.displayName())),c.push("\n "),a=this.groupAccesses)l=a[n],c.push('\n \n \n ");c.push("\n
                              \n
                              \n")}).call(this)}.call(t),t.safe=e,t.escape=n,c.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/getting_started/admin"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n '),e.push(this.Icon("full-logo","wizard-logo")),e.push('\n
                              \n
                              \n

                              '),e.push(this.T("Administrator Account")),e.push('

                              \n
                              \n
                              \n '),e.push(this.T("Go Back")),e.push('\n \n
                              \n
                              \n
                              \n
                              \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/getting_started/agent"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n '),e.push(this.Icon("full-logo","wizard-logo")),e.push('\n
                              \n
                              \n

                              '),e.push(this.T("Invite Colleagues")),e.push('

                              \n
                              \n
                              \n '),e.push(this.T("Continue")),e.push('\n \n
                              \n
                              \n
                              \n
                              \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/getting_started/auto_wizard_enabled"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n '),e.push(this.Icon("full-logo","wizard-logo")),e.push('\n
                              \n
                              \n
                              \n '),e.push(this.T("The auto wizard is enabled. Please use the provided auto wizard url.")),e.push("\n
                              \n
                              \n
                              \n
                              \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/getting_started/auto_wizard_failed"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n '),e.push(this.Icon("full-logo","wizard-logo")),e.push('\n
                              \n
                              \n
                              \n '),e.push(this.T(this.message)),e.push("\n
                              \n
                              \n
                              \n
                              \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/getting_started/auto_wizard_splash"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n '),e.push(this.Icon("full-logo","wizard-logo")),e.push("\n
                              \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/getting_started/base"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n '),e.push(this.Icon("full-logo","wizard-logo")),e.push('\n
                              \n
                              \n

                              '),e.push(this.T("Organization")),e.push('

                              \n
                              \n
                              \n
                              \n \n \n \n
                              \n
                              \n \n \n \n
                              '),e.push(this.T("Your Logo")),e.push('
                              \n
                              '),e.push(this.T("Upload")),e.push('
                              \n
                              \n '),this.C("system_online_service")||(e.push('\n
                              \n \n \n \n

                              '),e.push(this.T("The URL to this installation of Zammad.")),e.push("

                              \n
                              \n ")),e.push('\n
                              \n
                              \n
                              \n \n
                              \n
                              \n
                              \n
                              \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/getting_started/channel"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                              \n '),s.push(this.Icon("full-logo","wizard-logo")),s.push('\n
                              \n
                              \n

                              '),s.push(this.T("Connect Channels")),s.push('

                              \n
                              \n

                              '),s.push(this.T("Set up the communication channels you want to use with your Zammad.")),s.push('

                              \n
                              \n\n '),e=0,n=(i=this.adapters).length;e\n
                              \n
                              '),s.push(this.T(t.name)),s.push("
                              \n \n ");s.push('\n\n
                              \n
                              \n \n
                              \n
                              \n
                              \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/getting_started/email"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n '),e.push(this.Icon("full-logo","wizard-logo")),e.push('\n\n
                              \n
                              \n

                              '),e.push(this.T("Email Account")),e.push('

                              \n
                              \n \n
                              \n
                              \n \n \n
                              \n
                              \n \n \n
                              \n
                              \n \n \n
                              \n
                              \n
                              \n
                              \n '),e.push(this.T("Go Back")),e.push('\n \n
                              \n
                              \n
                              \n\n
                              \n
                              \n

                              '),e.push(this.T("Email Account")),e.push('

                              \n
                              \n

                              \n '),e.push(this.T("Testing")),e.push(' \n

                              \n
                              \n
                              \n
                              \n\n
                              \n
                              \n

                              '),e.push(this.T("Email Account")),e.push('

                              \n
                              \n

                              \n '),e.push(this.T("Verifying\u2026")),e.push('\n

                              \n
                              \n
                              \n
                              \n\n
                              \n
                              \n

                              '),e.push(this.T("Email Account")),e.push('

                              \n
                              \n \n

                              \n '),e.push(this.T("Verify sending and receiving")),e.push('\n

                              \n
                              \n
                              \n
                              \n\n
                              \n
                              \n

                              '),e.push(this.T("Email Inbound")),e.push('

                              \n
                              \n \n
                              \n
                              \n
                              \n '),e.push(this.T("Go Back")),e.push('\n \n
                              \n
                              \n
                              \n\n
                              \n
                              \n

                              '),e.push(this.T("Email Inbound")),e.push('

                              \n
                              \n \n

                              '),e.push(this.T("We have already found %s email(s) in your mailbox. We will move them all from your mailbox into Zammad.","x")),e.push('

                              \n\n
                              \n

                              '),e.push(this.T('In addition, we have found emails in your mailbox that are older than %s weeks. You can import such emails as an "archive", which means that no notifications are sent and the tickets have the status "closed". However, you can find them in Zammad anytime using the search function. ',"x")),e.push("

                              \n\n

                              "),e.push(this.T("Should the emails from this mailbox be imported as an archive or as regular emails?")),e.push("

                              \n\n
                                \n
                              • "),e.push(this.T("Import as archive: |No notifications are sent|, the |tickets are closed|, and original timestamps are used. You can still find them in Zammad using the search.")),e.push("
                              • \n
                              • "),e.push(this.T("Import as regular: |Notifications are sent| and the |tickets are open| - you can find the tickets in the overview of open tickets.")),e.push('
                              • \n
                              \n\n

                              \n Import as: \n

                              \n
                              \n
                              \n
                              \n
                              \n '),e.push(this.T("Go Back")),e.push('\n \n
                              \n
                              \n
                              \n\n
                              \n
                              \n

                              '),e.push(this.T("Email Outbound")),e.push('

                              \n
                              \n \n
                              \n
                              \n
                              \n
                              \n '),e.push(this.T("Go Back")),e.push('\n \n
                              \n
                              \n
                              \n\n
                              \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/getting_started/email_notification"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n '),e.push(this.Icon("full-logo","wizard-logo")),e.push('\n\n
                              \n
                              \n

                              '),e.push(this.T("Email Notification")),e.push('

                              \n
                              \n \n
                              \n
                              \n
                              \n
                              \n '),e.push(this.T("Go Back")),e.push('\n \n
                              \n
                              \n
                              \n\n
                              \n
                              \n

                              '),e.push(this.T("Email Notification")),e.push('

                              \n
                              \n

                              \n '),e.push(this.T("Verifying\u2026")),e.push("\n

                              \n
                              \n
                              \n
                              \n\n
                              \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/getting_started/email_pre_configured"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('
                              \n '),s.push(this.Icon("full-logo","wizard-logo")),s.push('\n
                              \n
                              \n

                              '),s.push(this.T("Connect Channels")),s.push('

                              \n
                              \n

                              '),s.push(this.T("Your Zammad has the following email address:")),s.push("

                              \n "),this.addresses){for(s.push("\n "),e=0,n=(i=this.addresses).length;e"),s.push(r(t.realname)),s.push(" <"),s.push(r(t.email)),s.push(">

                              \n ");s.push("\n ")}s.push('\n

                              '),s.push(this.T("If you want to use more email adresses, you can configure them later.")),s.push('

                              \n
                              \n \n
                              \n
                              \n
                              \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/getting_started/finish"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n '),e.push(this.Icon("full-logo","wizard-logo")),e.push('\n
                              \n
                              \n

                              '),e.push(this.T("Setup Finished")),e.push('

                              \n
                              \n

                              \n '),e.push(this.T("Starting Zammad")),e.push("\n

                              \n
                              \n
                              \n
                              \n
                              \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/getting_started/intro"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n '),e.push(this.Icon("full-logo","wizard-logo")),e.push('\n \n
                              \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/google/app_config"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n

                              \n '),e.push(this.T("You can find a tutorial on how to manage a %s in our online documentation %l.","Google App","https://admin-docs.zammad.org/en/latest/channels/google/index.html")),e.push("\n

                              \n
                              \n

                              "),e.push(this.T("Enter your %s App Keys","Google")),e.push('

                              \n
                              \n
                              \n \n
                              \n
                              \n \n
                              \n
                              \n
                              \n
                              \n \n
                              \n
                              \n \n
                              \n
                              \n

                              '),e.push(this.T("Your callback URL")),e.push('

                              \n
                              \n
                              \n \n
                              \n
                              \n
                              \n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/google/index"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n\n
                              \n
                              \n

                              '),e.push(this.T("You can connect %s with Zammad. But first, you will have to connect your Zammad with %s.","Google Accounts","Google")),e.push('

                              \n
                              '),e.push(this.T("Connect Google App")),e.push("
                              \n
                              \n
                              \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/google/list"]=function(t){t||(t={});var h=[],d=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p,u;if(h.push('\n\n"),!_.isEmpty(this.not_used_email_addresses)){for(h.push('\n
                              \n
                              \n
                              \n '),h.push(this.T("Notice")),h.push(": "),h.push(this.T("Unassigned email addresses, assign them to a channel or delete them.")),h.push('\n \n
                              \n
                              \n
                              \n")}for(h.push('\n\n
                              \n'),s=0,a=(p=this.channels).length;s\n
                              \n
                              \n
                              \n

                              '),h.push(this.Icon("status",t.status_in+" inline")),h.push(" "),h.push(this.T("Inbound")),h.push("

                              \n "),!1!==t.preferences.editable&&(h.push('\n
                              '),h.push(this.T("Edit")),h.push("
                              \n ")),h.push("\n
                              \n\n "),_.isEmpty(t.last_log_in)||(h.push('\n
                              \n '),h.push(d(t.last_log_in)),h.push("\n
                              \n ")),h.push("\n\n
                              \n\n

                              "),h.push(this.T("Destination Group")),h.push('

                              \n \n '),n="",h.push("\n "),t.group.displayName?(h.push("\n "),n=t.group.displayName()):(h.push("\n "),n=t.group),h.push("\n "),h.push("\n "),!1===t.group.active?(h.push("\n "),h.push(this.T("%s is inactive, please select an active one.",n))):(h.push("\n "),h.push(d(n))),h.push("\n "),h.push('\n \n
                              \n\n
                              \n
                              \n

                              '),h.push(this.Icon("status",t.status_out+" inline")),h.push(" "),h.push(this.T("Outbound")),h.push("

                              \n
                              \n\n "),_.isEmpty(t.last_log_out)||(h.push('\n
                              \n '),h.push(d(t.last_log_out)),h.push("\n
                              \n ")),h.push("\n\n
                              \n\n

                              "),h.push(this.T("Email Address")),h.push('

                              \n
                                \n '),_.isEmpty(t.email_addresses))h.push('\n
                              • '),h.push(this.T("none")),h.push("\n ");else{for(h.push("\n "),r=0,l=(u=t.email_addresses).length;r\n
                                '),h.push(d(e.email)),h.push('
                                \n
                                '),h.push(this.T("Edit")),h.push("
                                \n "),1\n '),h.push(this.Icon("diagonal-cross")),h.push("\n
                              \n ")),h.push("\n ");h.push("\n ")}h.push('\n
                            \n + '),h.push(this.T("Add")),h.push('\n \n \n\n
                            \n '),t.options.backup_imap_classic&&(h.push('\n
                            '),h.push(this.T("Rollback migration")),h.push("
                            \n ")),h.push("\n "),!0===t.active?(h.push('\n
                            '),h.push(this.T("Disable"))):(h.push('\n
                            '),h.push(this.T("Enable"))),h.push("
                            \n "),h.push('\n
                            '),h.push(this.T("Delete")),h.push('
                            \n
                            '),h.push(this.T("Reauthenticate")),h.push("
                            \n
                            \n
                            \n")}h.push("\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,h.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/import/freshdesk"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n '),e.push(this.Icon("full-logo","wizard-logo")),e.push('\n
                            \n
                            \n

                            '),e.push(this.T("%s URL","Freshdesk")),e.push('

                            \n
                            \n

                            \n '),e.push(this.T("Enter the Subdomain of your %s system","Freshdesk")),e.push(':\n

                            \n
                            \n \n
                            \n
                            \n \n '),e.push(this.freshdeskDomain),e.push('\n
                            \n
                            \n
                            \n '),e.push(this.Icon("diagonal-cross","icon-error")),e.push("\n "),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n '),e.push(this.T("Go Back")),e.push('\n
                            '),e.push(this.T("Enter credentials")),e.push('
                            \n
                            \n
                            \n\n
                            \n

                            '),e.push(this.T("%s credentials","Freshdesk")),e.push('

                            \n
                            \n

                            \n '),e.push(this.T("Enter your %s API token gained from your account profile settings.","Freshdesk")),e.push("\n

                            \n

                            \n "),e.push(this.T("Attention: These will be your login and password after the import is completed.")),e.push('\n

                            \n
                            \n \n
                            \n \n
                            \n
                            \n '),e.push(this.Icon("diagonal-cross","icon-error")),e.push("\n "),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n '),e.push(this.T("Go Back")),e.push('\n
                            '),e.push(this.T("Migrate %s Data","Freshdesk")),e.push('
                            \n
                            \n
                            \n\n
                            \n

                            '),e.push(this.T("%s Migration","Freshdesk")),e.push('

                            \n \n
                            \n \n \n \n \n \n \n \n \n \n
                            -/-\n '),e.push(this.T("Groups")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            -/-\n '),e.push(this.T("Organizations")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            -/-\n '),e.push(this.T("Users")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            -/-\n '),e.push(this.T("Tickets")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            \n
                            \n \n
                            \n\n
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/import/index"]=function(t){t||(t={});var i=[],s=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n;for(e in i.push('
                            \n '),i.push(this.Icon("full-logo","wizard-logo")),i.push('\n
                            \n
                            \n

                            '),i.push(this.T("Import from")),i.push('

                            \n \n \n
                            \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,i.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/import/kayako"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n '),e.push(this.Icon("full-logo","wizard-logo")),e.push('\n
                            \n
                            \n

                            '),e.push(this.T("%s URL","Kayako")),e.push('

                            \n
                            \n

                            \n '),e.push(this.T("Enter the Subdomain of your %s system","Kayako")),e.push(':\n

                            \n
                            \n \n
                            \n
                            \n \n '),e.push(this.kayakoDomain),e.push('\n
                            \n
                            \n
                            \n '),e.push(this.Icon("diagonal-cross","icon-error")),e.push("\n "),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n '),e.push(this.T("Go Back")),e.push('\n
                            '),e.push(this.T("Enter credentials")),e.push('
                            \n
                            \n
                            \n\n
                            \n

                            '),e.push(this.T("%s credentials","Kayako")),e.push('

                            \n
                            \n

                            \n '),e.push(this.T("Enter your email address and password from your %s account which should be used for the import.","Kayako")),e.push("\n

                            \n

                            \n "),e.push(this.T("Attention: These will also be your login and password after the import is completed.")),e.push('\n

                            \n
                            \n \n
                            \n \n
                            \n \n
                            \n \n
                            \n
                            \n '),e.push(this.Icon("diagonal-cross","icon-error")),e.push("\n "),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n '),e.push(this.T("Go Back")),e.push('\n
                            '),e.push(this.T("Migrate %s Data","Kayako")),e.push('
                            \n
                            \n
                            \n\n
                            \n

                            '),e.push(this.T("%s Migration","Kayako")),e.push('

                            \n \n
                            \n \n \n \n \n \n \n \n \n \n
                            -/-\n '),e.push(this.T("Groups")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            -/-\n '),e.push(this.T("Organizations")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            -/-\n '),e.push(this.T("Users")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            -/-\n '),e.push(this.T("Tickets")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            \n
                            \n \n
                            \n\n
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/import/otrs"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n '),e.push(this.Icon("full-logo","wizard-logo")),e.push('\n
                            \n \n
                            \n

                            '),e.push(this.T("Link %s","OTRS")),e.push('

                            \n
                            \n

                            \n '),e.push(this.T("Enter the link provided by the plugin at the end of the installation to link the two systems")),e.push(':\n

                            \n
                            \n \n
                            \n \n
                            \n
                            \n '),e.push(this.Icon("diagonal-cross","icon-error")),e.push("\n "),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            \n \n
                            \n
                            \n
                            \n '),e.push(this.T("Go Back")),e.push('\n
                            '),e.push(this.T("Migrate %s Data","OTRS")),e.push('
                            \n
                            \n
                            \n\n
                            \n

                            '),e.push(this.T("%s Migration","OTRS")),e.push('

                            \n \n
                            \n \n \n \n \n \n \n \n \n \n
                            \n '),e.push(this.T("Configuration")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push( '\n
                            \n
                            -/-\n '),e.push(this.T("Base Objects")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            -/-\n '),e.push(this.T("Users")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            -/-\n '),e.push(this.T("Tickets")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            \n
                            \n \n
                            \n\n
                            \n

                            '),e.push(this.T("Notice")),e.push('

                            \n
                            \n

                            '),e.push(this.T("We detected OTRS BPM processes that can't get imported into Zammad since we currently don't support this kind of workflows.")),e.push('

                            \n

                            '),e.push(this.T("We found a lot of dynamic fields which are not common in Zammad, as we take a different approach to ticket attributes. Zammad also uses tags in addition to custom fields to classify tickets. This difference can create a new philosophy of your ticket attributes / tags compared to your current use of dynamic fields in OTRS.")),e.push('

                            \n
                            \n \n
                            \n\n
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/import/zendesk"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n '),e.push(this.Icon("full-logo","wizard-logo")),e.push('\n
                            \n
                            \n

                            '),e.push(this.T("%s URL","Zendesk")),e.push('

                            \n
                            \n

                            \n '),e.push(this.T("Enter the URL of your %s system","Zendesk")),e.push(':\n

                            \n
                            \n \n
                            \n \n
                            \n
                            \n '),e.push(this.Icon("diagonal-cross","icon-error")),e.push("\n "),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n '),e.push(this.T("Go Back")),e.push('\n
                            '),e.push(this.T("Enter credentials")),e.push('
                            \n
                            \n
                            \n\n
                            \n

                            '),e.push(this.T("%s credentials","Zendesk")),e.push('

                            \n
                            \n

                            \n '),e.push(this.T("Enter your email address and the %s API token gained from your admin interface.","Zendesk")),e.push("\n

                            \n

                            \n "),e.push(this.T("Attention: These will be your login and password after the import is completed.")),e.push('\n

                            \n
                            \n \n
                            \n \n
                            \n \n
                            \n \n
                            \n
                            \n '),e.push(this.Icon("diagonal-cross","icon-error")),e.push("\n "),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n '),e.push(this.T("Go Back")),e.push('\n
                            '),e.push(this.T("Migrate %s Data","Zendesk")),e.push('
                            \n
                            \n
                            \n\n
                            \n

                            '),e.push(this.T("%s Migration","Zendesk")),e.push('

                            \n \n \n
                            \n \n \n \n \n \n \n \n \n \n
                            -/-\n '),e.push(this.T("Groups")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            -/-\n '),e.push(this.T("Organizations")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            -/-\n '),e.push(this.T("Users")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            -/-\n '),e.push(this.T("Tickets")),e.push('\n \n
                            \n
                            \n '),e.push(this.Icon("checkmark")),e.push('\n
                            \n
                            \n
                            \n \n
                            \n\n
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/base"]=function(t){t||(t={});var s=[],e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('\n
                            \n '),this.description){for(s.push("\n "),t=0,n=(i=this.description).length;t"),s.push(this.T.apply(this,e)),s.push("

                            \n ");s.push("\n ")}s.push('\n
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/check_mk"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push("
                            \n\n

                            "),e.push(this.T("Usage")),e.push("

                            \n\n

                            "),e.push(this.T('To enable %s for sending HTTP requests to %s, you need to create a designated "notification rule" in %s.',"Checkmk","Zammad","Checkmk")),e.push('

                            \n\n
                            \n \n \n \n \n \n \n \n
                            '),e.push(this.T("Type")),e.push('\n '),e.push(this.T("URL")),e.push('\n
                            '),e.push(this.T("Endpoint")),e.push('\n \n
                            \n \n
                            \n
                            \n
                            \n\n
                            \n\n

                            '),e.push(this.T("Examples")),e.push("

                            \n\n

                            "),e.push(this.T("You can use the following script to post the data to %s.","Zammad")),e.push('

                            \n\n\n\n
                            \n
                            \n

                            '),e.push(this.T("Script can be located under: ||%s|| and needs to be executable.","/opt/omd/sites/{SITENAME}/local/share/check_mk/notifications/zammad-service")),e.push('

                            \n\n
                            \n#!/bin/bash\n\ncurl -X POST -F "event_id=$NOTIFY_SERVICEPROBLEMID" -F "host=$NOTIFY_HOSTNAME" -F "service=$NOTIFY_SERVICEDESC" -F "state=$NOTIFY_SERVICESTATE" -F "text=$NOTIFY_SERVICEOUTPUT" '),e.push(n(App.Config.get("http_type"))),e.push("://"),e.push(n(App.Config.get("fqdn"))),e.push("/api/v1/integration/check_mk/"),e.push(n(App.Setting.get("check_mk_token"))),e.push('\n    
                            \n
                            \n\n \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/clearbit"]=function(t){t||(t={});var l=[],c=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;for(l.push('
                            \n\n
                            \n \n \n \n \n \n"),e=0,n=(i=this.settings).length;e\n \n
                            '),l.push(this.T("Title")),l.push('\n '),l.push(this.T("Value")),l.push('\n '),l.push(this.T("Description")),l.push("\n
                            "),l.push(this.T(o.display)),l.push('\n \n

                            '),l.push(this.RichText(o.note)),l.push("

                            \n");for(a in l.push("\n
                            \n
                            \n\n

                            "),l.push(this.T("Mapping")),l.push("

                            \n\n

                            "),l.push(this.T("What values of %s should be synced to users.","Clearbit")),l.push('

                            \n\n
                            \n \n \n \n \n \n"),s=this.config.user_sync)t=s[a],l.push('\n \n \n \n
                            '),l.push(this.T("Clearbit")),l.push('\n '),l.push(this.T("Zammad")),l.push('\n '),l.push(this.T("Action")),l.push("\n
                            \n \n
                            '),l.push(this.Icon("trash")),l.push(" "),l.push(this.T("Remove")),l.push("
                            \n");for(a in l.push('\n
                            \n \n
                            '),l.push(this.Icon("plus-small")),l.push(" "),l.push(this.T("Add")),l.push("
                            \n
                            \n
                            \n\n

                            "),l.push(this.T("What values of %s should be synced to organization.","Clearbit")),l.push('

                            \n\n
                            \n \n \n \n \n \n"),r=this.config.organization_sync)t=r[a],l.push('\n \n \n \n
                            '),l.push(this.T("Clearbit")),l.push('\n '),l.push(this.T("Zammad")),l.push('\n '),l.push(this.T("Action")),l.push("\n
                            \n \n
                            '),l.push(this.Icon("trash")),l.push(" "),l.push(this.T("Remove")),l.push("
                            \n");l.push('\n
                            \n \n
                            '),l.push(this.Icon("plus-small")),l.push(" "),l.push(this.T("Add")),l.push('
                            \n
                            \n
                            \n \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/cti"]=function(t){t||(t={});var p=[],u=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c;for(p.push("
                            \n\n

                            "),p.push(this.T("Endpoint Settings")),p.push("

                            \n\n

                            "),p.push(this.T("You need to configure the Zammad endpoints in the %s","PBX")),p.push(':

                            \n\n

                            \n \n \n \n \n \n \n \n
                            '),p.push(this.T("Type")),p.push('\n '),p.push(this.T("URL")),p.push('\n
                            '),p.push(this.T("Endpoint")),p.push('\n \n
                            \n
                            \n\n

                            '),p.push(this.T("Call Settings")),p.push("

                            \n

                            "),p.push(this.T("Inbound")),p.push("

                            \n\n

                            "),p.push(this.T("Block caller IDs based on sender caller ID.")),p.push('\n\n

                            \n \n \n \n \n \n"),t=0,i=(o=this.config.inbound.block_caller_ids).length;t\n \n \n
                            '),p.push(this.T("Caller id to block")),p.push('\n '),p.push(this.T("Note")),p.push('\n '),p.push(this.T("Action")),p.push("\n
                            \n \n
                            '),p.push(this.Icon("trash")),p.push(" "),p.push(this.T("Remove")),p.push("
                            \n");for(p.push('\n
                            \n \n
                            '),p.push(this.Icon("plus-small")),p.push(" "),p.push(this.T("Add")),p.push("
                            \n
                            \n
                            \n\n

                            "),p.push(this.T("Outbound")),p.push("

                            \n\n

                            "),p.push(this.T("Set caller ID of outbound calls based on destination caller ID.")),p.push('\n\n

                            \n \n \n \n \n \n"),e=0,s=(a=this.config.outbound.routing_table).length;e\n \n \n
                            '),p.push(this.T("Destination caller ID")),p.push('\n '),p.push(this.T("Set outbound caller ID")),p.push('\n '),p.push(this.T("Note")),p.push('\n '),p.push(this.T("Action")),p.push("\n
                            \n \n \n
                            '),p.push(this.Icon("trash")),p.push(" "),p.push(this.T("Remove")),p.push("
                            \n");for(p.push('\n
                            \n \n \n
                            '),p.push(this.Icon("plus-small")),p.push(" "),p.push(this.T("Add")),p.push("
                            \n
                            \n
                            \n\n

                            "),p.push(this.T("Other Settings")),p.push('

                            \n\n
                            \n \n \n \n \n \n \n \n \n
                            '),p.push(this.T("Value")),p.push('\n '),p.push(this.T("Description")),p.push('\n
                            \n '),p.push(this.T("Default caller ID for outbound calls.")),p.push('\n
                            \n '),p.push(this.T("Shown records in caller log.")),p.push("\n
                            \n
                            \n\n

                            "),p.push(this.T("Caller Log Filter")),p.push("

                            \n\n

                            "),p.push(this.T("Define queues or call destinations (whatever fits your PBX) and map your agents to it. By this, Zammad can support your agents by showing them only relevant call entries and notifications.")),p.push('

                            \n\n
                            \n \n \n \n \n \n"),n=0,r=(l=this.config.notify_map).length;n\n \n \n
                            '),p.push(this.T("Destination caller ID or queue")),p.push('\n '),p.push(this.T("Agents")),p.push('\n '),p.push(this.T("Action")),p.push("\n
                            \n \n
                            '),p.push(this.Icon("trash")),p.push(" "),p.push(this.T("Remove")),p.push("
                            \n");p.push('\n
                            \n \n
                            '),p.push(this.Icon("plus-small")),p.push(" "),p.push(this.T("Add")),p.push('
                            \n
                            \n
                            \n\n \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,p.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/exchange"]=function(t){t||(t={});var a=[],l=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o;if(a.push('
                            \n
                            \n

                            '),a.push(this.T("No %s configured.","Exchange")),a.push('

                            \n \n
                            \n
                            \n

                            '),a.push(this.T("Settings")),a.push('

                            \n \n \n \n \n \n \n \n \n \n \n
                            '),a.push(this.T("Name")),a.push('\n '),a.push(this.T("Value")),a.push('\n
                            '),a.push(this.T("Endpoint")),a.push('\n '),a.push(l(this.config.endpoint)),a.push('\n
                            '),a.push(this.T("User")),a.push('\n '),a.push(l(this.config.user)),a.push('\n
                            '),a.push(this.T("Password")),a.push('\n '),a.push(l(this.M(this.config.password))),a.push("\n
                            \n\n

                            "),a.push(this.T("Mapping")),a.push("

                            \n\n

                            "),a.push(this.T("Folders")),a.push("

                            \n "),_.isEmpty(this.folders))a.push('\n \n
                            '),a.push(this.T("No Entries")),a.push("\n
                            \n ");else{for(a.push('\n \n \n \n \n \n
                            '),a.push(this.T("Folder")),a.push("\n "),e=0,i=(s=this.folders).length;e\n '),a.push(l(t)),a.push("\n ");a.push("\n
                            \n ")}if(a.push("\n\n

                            "),a.push(this.T("User")),a.push("

                            \n "),_.isEmpty(this.config.attributes))a.push('\n \n
                            '),a.push(this.T("No Entries")),a.push("\n
                            \n ");else{for(n in a.push('\n \n \n \n \n \n \n
                            '),a.push(this.T("Exchange")),a.push('\n '),a.push(this.T("Zammad")),a.push("\n "),r=this.config.attributes)o=r[n],a.push('\n
                            '),a.push(l(n)),a.push('\n '),a.push(l(o)),a.push("\n ");a.push("\n
                            \n ")}a.push('\n\n \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,a.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/exchange_certificate_issue"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/exchange_last_import"]=function(t){t||(t={});var i=[],s=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n;if(i.push( '
                            \n

                            '),i.push(this.T("Last sync")),i.push("

                            \n "),_.isEmpty(this.job.started_at))i.push("\n "),this.job.result&&this.job.result.error?(i.push('\n \n ")):this.job.result&&this.job.result.info?(i.push('\n \n ")):(i.push("\n

                            "),i.push(this.T("Job is waiting to get started\u2026")),i.push("

                            \n ")),i.push("\n ");else{if(i.push("\n "),this.job.finished_at?(i.push("\n

                            "),i.push(this.Ttimestamp(this.job.started_at)),i.push(" - "),i.push(this.Ttimestamp(this.job.finished_at)),i.push("

                            \n "),this.job.result&&this.job.result.error?(i.push('\n \n ")):this.job.result&&this.job.result.info&&(i.push('\n \n "))):(i.push("\n "),this.job.result&&this.job.result.error?(i.push("\n

                            "),i.push(this.Ttimestamp(this.job.started_at)),i.push('

                            \n \n ")):this.job.result&&!this.job.result.sum?(i.push("\n

                            "),i.push(this.Ttimestamp(this.job.started_at)),i.push(" - "),i.push(this.T("Counting entries. This may take a while.")),i.push("

                            \n ")):(i.push("\n

                            "),i.push(this.Ttimestamp(this.job.started_at)),i.push(" - "),i.push(this.T("Running\u2026")),i.push('

                            \n
                            \n \n
                            \n '))),i.push("\n "),i.push("\n "),!_.isEmpty(this.job.result)&&this.job.result.sum){if(i.push("\n
                              \n
                            • "),i.push(this.T("%s user to %s user","Exchange","Zammad")),i.push(" ("),i.push(s(this.job.result.sum)),i.push("/"),i.push(s(this.job.result.total)),i.push("):\n
                                \n
                              • "),i.push(this.T("Users")),i.push(": "),i.push(s(this.job.result.created)),i.push(" "),i.push(this.T("created")),i.push(", "),i.push(s(this.job.result.updated)),i.push(" "),i.push(this.T("updated")),i.push(", "),i.push(s(this.job.result.unchanged)),i.push(" "),i.push(this.T("untouched")),i.push(", "),i.push(s(this.job.result.skipped)),i.push(" "),i.push(this.T("skipped")),i.push(", "),i.push(s(this.job.result.failed)),i.push(" "),i.push(this.T("failed")),i.push("\n
                              \n
                            • \n "),!_.isEmpty(this.job.result.folders)){for(t in i.push("\n
                            • "),i.push(this.T("%s folders","Exchange")),i.push(":\n
                                \n "),e=this.job.result.folders)n=e[t],i.push("\n
                              • "),i.push(t),i.push(": "),i.push(s(n.created)),i.push(" "),i.push(this.T("created")),i.push(", "),i.push(s(n.updated)),i.push(" "),i.push(this.T("updated")),i.push(", "),i.push(s(n.unchanged)),i.push(" "),i.push(this.T("untouched")),i.push(", "),i.push(s(n.failed)),i.push(" "),i.push(this.T("failed")),i.push("\n ");i.push("\n
                              \n
                            • \n ")}i.push("\n
                            \n ")}i.push("\n "),this.job.finished_at&&(i.push('\n \n ")),i.push("\n ")}i.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,i.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/exchange_summary"]=function(t){t||(t={});var i=[],s=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n;if(i.push("
                              \n
                            • "),i.push(this.T("%s user to %s user","Exchange","Zammad")),i.push(" ("),i.push(s(this.job.result.total)),i.push("):\n
                                \n
                              • "),i.push(this.T("Users")),i.push(": "),i.push(s(this.job.result.created)),i.push(" "),i.push(this.T("created")),i.push(", "),i.push(s(this.job.result.updated)),i.push(" "),i.push(this.T("updated")),i.push(", "),i.push(s(this.job.result.unchanged)),i.push(" "),i.push(this.T("untouched")),i.push(", "),i.push(s(this.job.result.skipped)),i.push(" "),i.push(this.T("skipped")),i.push(", "),i.push(s(this.job.result.failed)),i.push(" "),i.push(this.T("failed")),i.push("\n
                              \n
                            • \n "),!_.isEmpty(this.job.result.folders)){for(t in i.push("\n
                            • "),i.push(this.T("%s folders","Exchange")),i.push(":\n
                                \n "),e=this.job.result.folders)n=e[t],i.push("\n
                              • "),i.push(t),i.push(": "),i.push(s(n.created)),i.push(" "),i.push(this.T("created")),i.push(", "),i.push(s(n.updated)),i.push(" "),i.push(this.T("updated")),i.push(", "),i.push(s(n.unchanged)),i.push(" "),i.push(this.T("untouched")),i.push(", "),i.push(s(n.failed)),i.push(" "),i.push(this.T("failed")),i.push("\n ");i.push("\n
                              \n
                            • \n ")}i.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,i.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/exchange_user_attribute_row"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n \n \n \n
                            \n '),e.push(this.Icon("trash")),e.push(" "),e.push(this.T("Remove")),e.push("\n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/exchange_wizard"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/git_issue_link_modal"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n \n
                            \n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/github"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push("
                            \n

                            "),e.push(this.T("Settings")),e.push('

                            \n
                            \n \n \n \n \n \n \n \n \n
                            '),e.push(this.T("Name")),e.push('\n '),e.push(this.T("Value")),e.push('\n
                            '),e.push(this.T("Endpoint")),e.push(' *\n \n
                            '),e.push(this.T("API token")),e.push(' *\n \n
                            \n
                            \n\n \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/gitlab"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push("
                            \n

                            "),e.push(this.T("Settings")),e.push('

                            \n
                            \n \n \n \n \n \n \n \n \n
                            '),e.push(this.T("Name")),e.push('\n '),e.push(this.T("Value")),e.push('\n
                            '),e.push(this.T("Endpoint")),e.push(' *\n \n
                            '),e.push(this.T("API token")),e.push(' *\n \n
                            \n
                            \n\n \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/idoit"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push("
                            \n

                            "),e.push(this.T("Settings")),e.push('

                            \n
                            \n \n \n \n \n \n \n \n \n \n
                            '),e.push(this.T("Name")),e.push('\n '),e.push(this.T("Value")),e.push('\n
                            '),e.push(this.T("Endpoint")),e.push(' *\n \n
                            '),e.push(this.T("API token")),e.push(' *\n \n
                            '),e.push(this.T("Client ID")),e.push('\n \n
                            \n
                            \n\n \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/idoit_object_result"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push("
                            \n"),_.isEmpty(this.items))s.push("\n "),s.push(this.T("none")),s.push("\n");else{for(s.push('\n\n \n \n \n \n \n \n \n "),t=0,n=(i=this.items).length;t\n \n \n \n \n \n ");s.push("\n \n
                            '),s.push(this.T("ID")),s.push(""),s.push(this.T("Name")),s.push(''),s.push(this.T("Status")),s.push("
                            '),s.push(r(e.id)),s.push(''),s.push(r(e.title)),s.push(""),s.push(r(e.cmdb_status_title)),s.push("
                            \n")}s.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/idoit_object_selector"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/index"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                            \n

                            '),s.push(this.T(this.head)),s.push('

                            \n
                            \n
                            \n \n \n \n \n \n \n \n \n \n "),t=0,n=(i=this.integrations).length;t\n \n \n \n ");s.push("\n \n
                            '),s.push(this.T("Service")),s.push(""),s.push(this.T("Description")),s.push("
                            \n '),e.state.current()?(s.push("\n "),s.push(this.Icon("status","ok inline"))):(s.push("\n "),s.push(this.Icon("status","inactive inline"))),s.push("\n "),s.push('\n '),s.push(r(e.name)),s.push(""),s.push(this.T(e.description,e.descriptionSubstitute)),s.push("\n
                            \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/ldap"]=function(t){t||(t={});var o=[],a=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r;if(o.push('
                            \n
                            \n

                            '),o.push(this.T("No %s configured.","LDAP")),o.push('

                            \n \n
                            \n
                            \n

                            '),o.push(this.T("Settings")),o.push('

                            \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
                            '),o.push(this.T("Name")),o.push('\n '),o.push(this.T("Value")),o.push('\n
                            '),o.push(this.T("LDAP Host")),o.push('\n '),o.push(a(this.config.host_url)),o.push('\n
                            '),o.push(this.T("Base DN")),o.push('\n '),o.push(a(this.config.base_dn)),o.push('\n
                            '),o.push(this.T("Bind User")),o.push('\n '),o.push(a(this.config.bind_user)),o.push('\n
                            '),o.push(this.T("Bind Password")),o.push('\n '),o.push(a(this.M(this.config.bind_pw))),o.push('\n
                            '),o.push(this.T("UID")),o.push('\n '),o.push(a(this.config.user_uid)),o.push('\n
                            '),o.push(this.T("User Filter")),o.push('\n '),o.push(a(this.config.user_filter)),o.push('\n
                            '),o.push(this.T("GID")),o.push('\n '),o.push(a(this.config.group_uid)),o.push('\n
                            '),o.push(this.T("Group Filter")),o.push('\n '),o.push(a(this.config.group_filter)),o.push("\n
                            \n\n

                            "),o.push(this.T("Mapping")),o.push("

                            \n\n

                            "),o.push(this.T("User")),o.push("

                            \n "),_.isEmpty(this.config.user_attributes))o.push('\n \n
                            '),o.push(this.T("No Entries")),o.push("\n
                            \n ");else{for(e in o.push('\n \n \n \n \n \n \n
                            '),o.push(this.T("LDAP")),o.push('\n '),o.push(this.T("Zammad")),o.push("\n "),n=this.config.user_attributes)r=n[e],o.push('\n
                            '),o.push(a(e)),o.push('\n '),o.push(a(r)),o.push("\n ");o.push("\n
                            \n ")}if(o.push("\n\n

                            "),o.push(this.T("Role")),o.push("

                            \n "),_.isEmpty(this.group_role_map))o.push('\n \n
                            '),o.push(this.T("No Entries")),o.push("\n
                            \n ");else{for(s in o.push('\n \n \n \n \n "),i=this.group_role_map)t=i[s],o.push('\n \n
                            '),o.push(this.T("LDAP")),o.push('\n '),o.push(this.T("Zammad")),o.push("\n
                            '),o.push(a(s)),o.push('\n '),o.push(a(t)),o.push("\n ");o.push("\n ")}o.push('\n
                            \n\n \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,o.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/ldap_group_role_row"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push( '\n \n \n \n
                            \n '),e.push(this.Icon("trash")),e.push(" "),e.push(this.T("Remove")),e.push("\n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/ldap_last_import"]=function(t){t||(t={});var i=[],s=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n;if(i.push('
                            \n

                            '),i.push(this.T("Last sync")),i.push("

                            \n "),_.isEmpty(this.job.started_at))i.push("\n "),this.job.result&&this.job.result.error?(i.push('\n \n ")):this.job.result&&this.job.result.info?(i.push('\n \n ")):(i.push("\n

                            "),i.push(this.T("Job is waiting to get started\u2026")),i.push("

                            \n ")),i.push("\n ");else{if(i.push("\n "),this.job.finished_at?(i.push("\n

                            "),i.push(this.Ttimestamp(this.job.started_at)),i.push(" - "),i.push(this.Ttimestamp(this.job.finished_at)),i.push("

                            \n "),this.job.result&&this.job.result.error?(i.push('\n \n ")):this.job.result&&this.job.result.info&&(i.push('\n \n "))):(i.push("\n "),this.job.result&&this.job.result.error?(i.push("\n

                            "),i.push(this.Ttimestamp(this.job.started_at)),i.push('

                            \n \n ")):this.job.result.sum?(i.push("\n

                            "),i.push(this.Ttimestamp(this.job.started_at)),i.push(" - "),i.push(this.T("Running\u2026")),i.push('

                            \n
                            \n \n
                            \n ')):(i.push("\n

                            "),i.push(this.Ttimestamp(this.job.started_at)),i.push(" - "),i.push(this.T("Counting entries. This may take a while.")),i.push("

                            \n "))),i.push("\n "),i.push("\n "),!_.isEmpty(this.job.result)&&this.job.result.sum){if(i.push("\n
                              \n
                            • "),i.push(this.T("%s user to %s user","LDAP","Zammad")),i.push(" ("),i.push(s(this.job.result.sum)),i.push("/"),i.push(s(this.job.result.total)),i.push("):\n
                                \n
                              • "),i.push(this.T("Users")),i.push(": "),i.push(s(this.job.result.created)),i.push(" "),i.push(this.T("created")),i.push(", "),i.push(s(this.job.result.updated)),i.push(" "),i.push(this.T("updated")),i.push(", "),i.push(s(this.job.result.unchanged)),i.push(" "),i.push(this.T("untouched")),i.push(", "),i.push(s(this.job.result.skipped)),i.push(" "),i.push(this.T("skipped")),i.push(", "),i.push(s(this.job.result.failed)),i.push(" "),i.push(this.T("failed")),i.push(", "),i.push(s(this.job.result.deactivated)),i.push(" "),i.push(this.T("deactivated")),i.push("\n
                              \n "),!_.isEmpty(this.job.result.roles)){for(n in i.push("\n
                            • "),i.push(this.T("%s groups to %s roles assignments","LDAP","Zammad")),i.push(":\n
                                \n "),t=this.job.result.roles)e=t[n],i.push("\n
                              • "),i.push(this.T(n)),i.push(": "),i.push(s(e.created)),i.push(" "),i.push(this.T("created")),i.push(", "),i.push(s(e.updated)),i.push(" "),i.push(this.T("updated")),i.push(", "),i.push(s(e.unchanged)),i.push(" "),i.push(this.T("untouched")),i.push(", "),i.push(s(e.failed)),i.push(" "),i.push(this.T("failed")),i.push(", "),i.push(s(e.deactivated)),i.push(" "),i.push(this.T("deactivated")),i.push("\n ");i.push("\n
                              \n ")}i.push("\n
                            \n ")}i.push("\n "),this.job.finished_at&&(i.push('\n \n ")),i.push("\n ")}i.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,i.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/ldap_ssl_verify_row"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n '),e.push(this.T("SSL verification")),e.push('\n \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/ldap_summary"]=function(t){t||(t={});var i=[],s=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n;if(i.push("
                              \n
                            • "),i.push(this.T("%s user to %s user","LDAP","Zammad")),i.push(" ("),i.push(s(this.job.result.sum)),i.push("):\n
                                \n
                              • "),i.push(this.T("Users")),i.push(": "),i.push(s(this.job.result.created)),i.push(" "),i.push(this.T("created")),i.push(", "),i.push(s(this.job.result.updated)),i.push(" "),i.push(this.T("updated")),i.push(", "),i.push(s(this.job.result.unchanged)),i.push(" "),i.push(this.T("untouched")),i.push(", "),i.push(s(this.job.result.skipped)),i.push(" "),i.push(this.T("skipped")),i.push(", "),i.push(s(this.job.result.failed)),i.push(" "),i.push(this.T("failed")),i.push(", "),i.push(s(this.job.result.deactivated)),i.push(" "),i.push(this.T("deactivated")),i.push("\n
                              \n
                            • \n "),!_.isEmpty(this.job.result.roles)){for(n in i.push("\n
                            • "),i.push(this.T("%s groups to %s roles assignments","LDAP","Zammad")),i.push(":\n
                                \n "),t=this.job.result.roles)e=t[n],i.push("\n
                              • "),i.push(this.T(n)),i.push(": "),i.push(s(e.created)),i.push(" "),i.push(this.T("created")),i.push(", "),i.push(s(e.updated)),i.push(" "),i.push(this.T("updated")),i.push(", "),i.push(s(e.unchanged)),i.push(" "),i.push(this.T("untouched")),i.push(", "),i.push(s(e.failed)),i.push(" "),i.push(this.T("failed")),i.push(", "),i.push(s(e.deactivated)),i.push(" "),i.push(this.T("deactivated")),i.push("\n ");i.push("\n
                              \n
                            • \n ")}i.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,i.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/ldap_user_attribute_row"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n \n \n \n
                            \n '),e.push(this.Icon("trash")),e.push(" "),e.push(this.T("Remove")),e.push("\n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/ldap_wizard"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/placetel"]=function(t){t||(t={});var p=[],u=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c;for(p.push("
                            \n\n

                            "),p.push(this.T("Endpoint Settings")),p.push("

                            \n\n

                            "),p.push(this.T("You need to configure the Zammad endpoints in the %s web interface","Placetel")),p.push(':

                            \n\n

                            \n \n \n \n \n \n \n \n
                            '),p.push(this.T("Type")),p.push('\n '),p.push(this.T("URL")),p.push('\n
                            '),p.push(this.T("Endpoint")),p.push('\n \n
                            \n
                            \n\n

                            '),p.push(this.T("In order for Zammad to access %s, the %s API token must be stored here","Placetel","Placetel")),p.push(':

                            \n

                            \n \n \n \n \n \n \n \n
                            '),p.push(this.T("Type")),p.push('\n '),p.push(this.T("Content")),p.push('\n
                            '),p.push(this.T("API Token")),p.push('\n \n
                            \n
                            \n\n

                            '),p.push(this.T("Call Settings")),p.push("

                            \n

                            "),p.push(this.T("Inbound")),p.push("

                            \n\n

                            "),p.push(this.T("Block caller IDs based on sender caller ID.")),p.push('\n\n

                            \n \n \n \n \n \n"),t=0,i=(o=this.config.inbound.block_caller_ids).length;t\n \n \n
                            '),p.push(this.T("Caller id to block")),p.push('\n '),p.push(this.T("Note")),p.push('\n '),p.push(this.T("Action")),p.push("\n
                            \n \n
                            '),p.push(this.Icon("trash")),p.push(" "),p.push(this.T("Remove")),p.push("
                            \n");for(p.push('\n
                            \n \n
                            '),p.push(this.Icon("plus-small")),p.push(" "),p.push(this.T("Add")),p.push("
                            \n
                            \n
                            \n\n\n

                            "),p.push(this.T("Other Settings")),p.push('

                            \n\n
                            \n \n \n \n \n \n\n \n \n
                            '),p.push(this.T("Value")),p.push('\n '),p.push(this.T("Description")),p.push('\n
                            \n '),p.push(this.T("Shown records in caller log.")),p.push("\n
                            \n
                            \n\n

                            "),p.push(this.T("Phone Extension to Agent Mapping")),p.push("

                            \n\n

                            "),p.push(this.T("By mapping your agents' Placetel SIP users to their Zammad user accounts, Zammad can support your agents by opening either a new ticket dialogue or the user profile upon picking up a new call.")),p.push('\n\n

                            \n \n \n \n \n \n"),n=0,r=(l=this.config.user_device_map).length;n\n \n \n
                            '),p.push(this.T("Placetel")),p.push("/"),p.push(this.T("Device")),p.push('\n '),p.push(this.T("Zammad")),p.push("/"),p.push(this.T("User")),p.push('\n '),p.push(this.T("Action")),p.push("\n
                            \n \n
                            '),p.push(this.Icon("trash")),p.push(" "),p.push(this.T("Remove")),p.push("
                            \n");p.push('\n
                            \n \n
                            '),p.push(this.Icon("plus-small")),p.push(" "),p.push(this.T("Add")),p.push('
                            \n
                            \n
                            \n\n \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,p.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/sipgate"]=function(t){t||(t={});var p=[],u=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c;for(p.push("
                            \n\n

                            "),p.push(this.T("Endpoint Settings")),p.push("

                            \n\n

                            "),p.push(this.T("You need to configure the Zammad endpoints in the %s web interface","Sipgate")),p.push(':

                            \n\n

                            \n \n \n \n \n \n \n \n \n
                            '),p.push(this.T("Type")),p.push('\n '),p.push(this.T("URL")),p.push('\n
                            '),p.push(this.T("Inbound")),p.push('\n \n
                            '),p.push(this.T("Outbound")),p.push('\n \n
                            \n
                            \n\n

                            '),p.push(this.T("Call Settings")),p.push("

                            \n

                            "),p.push(this.T("Inbound")),p.push("

                            \n\n

                            "),p.push(this.T("Block caller IDs based on sender caller ID.")),p.push('\n\n

                            \n \n \n \n \n \n"),t=0,i=(o=this.config.inbound.block_caller_ids).length;t\n \n \n
                            '),p.push(this.T("Caller id to block")),p.push('\n '),p.push(this.T("Note")),p.push('\n '),p.push(this.T("Action")),p.push("\n
                            \n \n
                            '),p.push(this.Icon("trash")),p.push(" "),p.push(this.T("Remove")),p.push("
                            \n");for(p.push('\n
                            \n \n
                            '),p.push(this.Icon("plus-small")),p.push(" "),p.push(this.T("Add")),p.push("
                            \n
                            \n
                            \n\n

                            "),p.push(this.T("Outbound")),p.push( "

                            \n\n

                            "),p.push(this.T("Set caller ID of outbound calls based on destination caller ID.")),p.push('\n\n

                            \n \n \n \n \n \n"),e=0,s=(a=this.config.outbound.routing_table).length;e\n \n \n
                            '),p.push(this.T("Destination caller ID")),p.push('\n '),p.push(this.T("Set outbound caller ID")),p.push('\n '),p.push(this.T("Note")),p.push('\n '),p.push(this.T("Action")),p.push("\n
                            \n \n \n
                            '),p.push(this.Icon("trash")),p.push(" "),p.push(this.T("Remove")),p.push("
                            \n");for(p.push('\n
                            \n \n \n
                            '),p.push(this.Icon("plus-small")),p.push(" "),p.push(this.T("Add")),p.push("
                            \n
                            \n
                            \n\n

                            "),p.push(this.T("Other Settings")),p.push('

                            \n\n
                            \n \n \n \n \n \n \n \n \n
                            '),p.push(this.T("Value")),p.push('\n '),p.push(this.T("Description")),p.push('\n
                            \n '),p.push(this.T("Default caller ID for outbound calls.")),p.push('\n
                            \n '),p.push(this.T("Shown records in caller log.")),p.push("\n
                            \n
                            \n\n

                            "),p.push(this.T("Phone Extension to Agent Mapping")),p.push("

                            \n\n

                            "),p.push(this.T("By mapping your agents' sipgate users to their Zammad user accounts, Zammad can support your agents by opening either a new ticket dialogue or the user profile upon picking up a new call.")),p.push('\n\n

                            \n \n \n \n \n \n"),n=0,r=(l=this.config.user_remote_map).length;n\n \n \n
                            '),p.push(this.T("Sipgate")),p.push("/"),p.push(this.T("User")),p.push('\n '),p.push(this.T("Zammad")),p.push("/"),p.push(this.T("User")),p.push('\n '),p.push(this.T("Action")),p.push("\n
                            \n \n
                            '),p.push(this.Icon("trash")),p.push(" "),p.push(this.T("Remove")),p.push("
                            \n");p.push('\n
                            \n \n
                            '),p.push(this.Icon("plus-small")),p.push(" "),p.push(this.T("Add")),p.push('
                            \n
                            \n
                            \n\n \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,p.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/smime"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push("
                            \n

                            "),e.push(this.T("Certificates & Private Keys")),e.push('

                            \n
                            \n\n
                            '),e.push(this.T("Add Certificate")),e.push('
                            \n
                            '),e.push(this.T("Add Private Key")),e.push("
                            \n\n
                            \n\n

                            "),e.push(this.T("Default Behavior")),e.push('

                            \n

                            Choose the default behavior of the S/MIME integration on per group basis. If signing or encrypting is not possible, the setting has no effect. Agents call always manually alter the behavior for each article.

                            \n
                            \n
                            '),e.push(this.T("Update")),e.push("
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/smime_certificate_add"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n

                            \n\n
                            \n
                            \n \n
                            \n
                            \n \n
                            \n
                            \n\n
                            \n '),e.push(this.T("or")),e.push('\n
                            \n\n
                            \n
                            \n \n
                            \n
                            \n \n
                            \n
                            \n\n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/smime_group"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('\n \n \n \n \n "),_.isEmpty(this.groups))s.push('\n \n \n \n ");else{for(s.push("\n "),e=0,n=(i=this.groups).length;e\n \n
                            '),s.push(this.T("Group")),s.push("\n "),s.push(this.T("Sign")),s.push("\n "),s.push(this.T("Encryption")),s.push("\n
                            \n '),s.push(this.T("No Entries")),s.push("\n
                            '),s.push(r(t.name)),s.push('\n \n \n ');s.push("\n ")}s.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/smime_list"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('\n \n \n \n \n "),_.isEmpty(this.certs))s.push('\n \n \n \n ");else{for(s.push("\n "),e=0,n=(i=this.certs).length;e\n \n ");s.push("\n ")}s.push("\n \n
                            '),s.push(this.T("Subject")),s.push('\n '),s.push(this.T("Hash")),s.push('\n '),s.push(this.T("Fingerprint")),s.push('\n '),s.push(this.T("Created")),s.push('\n '),s.push(this.T("Expires")),s.push('\n '),s.push(this.T("Actions")),s.push("\n
                            \n '),s.push(this.T("No Entries")),s.push("\n
                            '),s.push(r(t.subject)),s.push("\n "),t.private_key&&(s.push("
                            "),s.push(this.T("Including private key.")),s.push("")),s.push("\n
                            "),s.push(r(t.doc_hash)),s.push('\n '),s.push(r(t.fingerprint.substr(1,10))),s.push("...\n "),s.push(this.datetime(t.not_before_at)),s.push("\n "),s.push(this.datetime(t.not_after_at)),s.push('\n \n \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/integration/smime_private_key_add"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n

                            \n\n
                            \n
                            \n
                            \n \n
                            \n
                            \n \n
                            \n
                            \n\n
                            \n '),e.push(this.T("or")),e.push('\n
                            \n\n
                            \n
                            \n \n
                            \n
                            \n \n
                            \n
                            \n
                            \n\n
                            \n
                            \n \n
                            \n
                            \n \n
                            \n
                            \n\n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/karma/index"]=function(t){t||(t={});var h=[],d=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p,u;for(h.push("
                            \n\n"),h.push(this.T("Zammad Karma is a powerful tool that tracks and visualizes your productivity.")),h.push("\n\n
                            \n\n

                            "),h.push(this.T("Karma Level")),h.push("

                            \n\n"),h.push(this.T("You are an |%s|.",App.i18n.translatePlain(this.user.level))),h.push(" "),h.push(this.T("Your karma is |%s|.",this.user.score)),h.push('\n\n\n'),e=0,s=(c=this.levels).length;e\n \n \n \n \n \n \n");for(h.push("\n
                            '),h.push(d(a.start)),h.push('\u2192 '),null===a.end?h.push("\u221e"):h.push(d(a.end)),h.push(""),h.push(this.T(a.name)),h.push(""),this.user.level===a.name&&(h.push("("),h.push(this.T("Your current level")),h.push(")")),h.push("
                            \n\n
                            \n\n

                            "),h.push(this.T("Latest updates")),h.push('

                            \n\n\n'),n=0,r=(p=this.logs).length;n\n \n \n \n")}h.push("\n
                            '),h.push(this.humanTime(l.created_at)),h.push(''),h.push(l.score_total),h.push("\n "),i=0,o=(u=l.comments).length;i\n
                            \n\n
                            \n\n

                            "),h.push(this.T("What affects your Zammad Karma?")),h.push("

                            \n\n

                            "),h.push(this.T("You |accumulate positive Karma| when you regularly answer and close tickets on time and when you use advanced features such as text modules, ticket reminders, or tagging tickets. Zammad |Karma will decrease| when you have re-opened tickets, escalated tickets, or tickets that are two or more days overdue.")),h.push("

                            \n\n\n\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,h.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/keyboard_shortcuts"]=function(t){t||(t={});var I=[],P=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p,u,h,d,f,m,g,v,b,y,w,k,T,A,S,C,x,j;for(I.push('
                            \n
                            \n'),e=0,a=(y=this.areas).length;e"),I.push(this.T(t.headline)),I.push("\n "),i=0,l=(w=t.content).length;i"),I.push(this.T(n.where)),I.push("

                            ")),I.push("\n "),s=0,c=(k=n.shortcuts).length;s"),I.push(this.hotkeys.join(" ")),I.push("\n ")),I.push("\n "),j.keyPrefix&&(I.push("\n "),I.push(P(j.keyPrefix)),I.push("\n ")),I.push("\n "),_.isArray(j.key)){for(I.push("\n "),o=0,p=(T=j.key).length;o"),I.push(r),I.push("\n ");I.push("\n ")}else I.push("\n "),I.push(j.key),I.push("\n ");I.push("\n "),I.push(this.T(j.description)),I.push("
                            \n ")}I.push("\n ")}I.push("\n ")}I.push("\n")}for(I.push('\n
                            \n
                            \n'),m=0,u=(A=this.areas).length;m"),I.push(this.T(t.headline)),I.push("\n "),g=0,h=(S=t.content).length;g"),I.push(this.T(n.where)),I.push("

                            ")),I.push("\n "),v=0,d=(C=n.shortcuts).length;v"),I.push(this.hotkeys.join(" ")),I.push("\n ")):j.magicKey&&(I.push("\n "),I.push(P(this.magicKey)),I.push("\n ")),I.push("\n "),j.shiftKey&&I.push("\n shift\n "),I.push("\n "),j.keyPrefix&&(I.push("\n "),I.push(P(j.keyPrefix)),I.push("\n ")),I.push("\n "),_.isArray(j.key)){for(I.push("\n "),b=0,f=(x=j.key).length;b"),I.push(r),I.push("\n ");I.push("\n ")}else I.push("\n "),I.push(j.key),I.push("\n ");I.push("\n "),I.push(this.T(j.description)),I.push("
                            \n ")}I.push("\n ")}I.push("\n ")}I.push("\n")}I.push("\n
                            \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,I.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/_answer_attachments"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(this.attachments){for(s.push('\n
                            \n\t

                            '),s.push(this.Ti("Attachments")),s.push('

                            \n\t\n
                            \n")}s.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/_icon_with_modifier"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n '),this.item.iconFont?(e.push("\n "),e.push(this.fontIcon(this.item.icon,this.iconset,"section-inner-icon"))):(e.push("\n "),e.push(this.Icon(this.item.icon,"section-inner-icon"))),e.push("\n "),e.push("\n "),e.push(this.Icon(this.item.state+"-modifier","modified-icon-modifier")),e.push("\n\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/_reader_answer_meta"]=function(t){t||(t={});var n=[],i=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},e=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e;n.push(this.T(this.answer.can_be_published_state())),n.push("\n\n"),(e=this.answer.can_be_published_by())&&(n.push("\n "),n.push(this.T("by")),n.push("\n "),n.push(i(e.displayName())),n.push("\n")),n.push("\n\n"),(t=this.answer.can_be_published_at())&&(n.push("\n "),n.push(this.humanTime(t)),n.push("\n")),n.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=s,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/_reader_linked_tickets"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t;(null!=(t=this.tickets)?t.length:void 0)&&(e.push('\n
                            \n '),e.push(this.Icon("overviews")),e.push('\n
                            \n '),e.push(this.T("Linked Tickets")),e.push(' '),e.push(this.tickets.length),e.push("\n
                            \n "),e.push(this.V("generic/ticket_list",{show_max:5,tickets:this.tickets})),e.push("\n
                            \n")),e.push("\n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/_reader_list_item"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n \n '),e.push(this.iconWithModifier(this.item,{className:"section-inner-icon-holder",iconset:this.iconset,addStateClass:!0})),e.push('\n '),e.push(n(this.item.title)),e.push("\n \n\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/_reader_pagination"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){this.previousAnswer&&(e.push('\n \n '),e.push(this.Icon("arrow-left")),e.push('\n
                            \n '),e.push(n(this.previousAnswer.title)),e.push("\n
                            \n")),e.push("\n\n"),this.nextAnswer&&(e.push('\n \n '),e.push(n(this.nextAnswer.title)),e.push('\n
                            \n '),e.push(this.Icon("arrow-right")),e.push("\n
                            \n")),e.push("\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/_reader_tags"]=function(t){t||(t={});var o=[],a=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r;if(null!=(i=this.tags)?i.length:void 0){for(o.push('\n
                            \n '),o.push(this.Icon("hashtag")),o.push('\n
                            \n '),o.push(this.T("Tags")),o.push('\n
                            \n\n \n
                            \n")}o.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,o.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/agent"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n\n
                            \n \n\n
                            \n
                            \n\n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.KnowledgeBaseForm=function(t){function e(){e.__super__.constructor.apply(this,arguments),this.render()}return n(e,t),e.prototype.events={"submit form":"submit","hidden.bs.tab":"didHide"},e.prototype.additionalButtons=[],e.prototype.didHide=function(){var t;return null!=(t=this.formControllers)?t.forEach(function(t){return t.hideAlert()}):void 0},e.prototype.className="page-content",e.prototype.split=!1,e.prototype.buildFormController=function(t){var e;return e=this.split&&_.values(App.Model.attributesGet(t,App.KnowledgeBase.configure_attributes))[0].horizontal,new App.ControllerForm({screen:t,params:this.object().attributes(),model:App.KnowledgeBase,formClass:"settings-entry",fullForm:!e,fullFormSubmitAdditionalClasses:"btn--primary",fullFormButtonsContainerClass:"justify-end",fullFormAdditionalButtons:this.additionalButtons,parentController:this})},e.prototype.wrapFormElement=function(t){return t.fullForm?t.form:new App.KnowledgeBaseVerticalForm({form:t}).el},e.prototype.render=function(){var e,t,n,i;return e="admin_"+this.screen,t=this.split?_.flatten(App.KnowledgeBase.configure_attributes.map(function(t){return Object.keys(t.screen)})).filter(function(t){return t.match(e)}):[e],this.formControllers=t.map((n=this,function(t){return n.buildFormController(t)})),this.html(this.formControllers.map((i=this,function(t){return i.wrapFormElement(t)})))},e.prototype.object=function(){return App.KnowledgeBase.find(this.knowledge_base_id)},e.prototype.scrollTop=function(){return this.el.closest(".main").animate({scrollTop:0})},e.prototype.prepareParams=function(t,e){var n,i,s,r,o,a;for(r in a=[],o=App.KnowledgeBase.attributesGet(e))n=o[r],s=this.$("."+n.tag+"[data-attribute-name="+n.name+"]"),a.push("function"==typeof(i=App.UiElement[n.tag]).prepareParams?i.prepareParams(n,s,t):void 0);return a},e.prototype.submit=function(e){var n,t,i,s;return this.preventDefaultAndStopPropagation(e),n=this.formControllers.filter(function(t){return t.form[0]===e.currentTarget||e.currentTarget.contains(t.form[0])})[0],t=this.formParam(n.form),this.prepareParams(t,n.screen),this.formDisable(this.el),n.hideAlert(),this.ajax({type:"PATCH",data:JSON.stringify(t),url:this.object().manageUrl()+"?full=true",success:(s=this,function(t){return App.Collection.loadAssets(t.assets),s.formEnable(s.el),s.scrollTop()}),error:(i=this,function(t){var e;return i.formEnable(i.el),n.showAlert((null!=(e=t.responseJSON)?e.error:void 0)||__("Changes could not be saved.")),i.scrollTop()})})},e}(App.Controller),App.KnowledgeBaseCustomAddressForm=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.events={"click .js-snippets":"openSnippetsModal"},e.prototype.elements={".js-snippets":"snippetsModalButton"},e.prototype.additionalButtons=[{className:"js-snippets",text:__("Web Server Configuration")}],e.prototype.formEnable=function(t){return e.__super__.formEnable.apply(this,arguments),this.updateSnippetsModalButton()},e.prototype.render=function(){return e.__super__.render.apply(this,arguments),this.updateSnippetsModalButton()},e.prototype.updateSnippetsModalButton=function(){var t,e;return e=0<(null!=(t=this.object().attributes().custom_address)?t.length:void 0),this.snippetsModalButton.attr("disabled",!e)},e.prototype.openSnippetsModal=function(t){var e,n,i;return this.preventDefaultAndStopPropagation(t),(e=t.currentTarget).disabled=!0,this.ajax({id:"knowledge_bases_init_admin",type:"GET",url:this.object().manageUrl("server_snippets"),processData:!0,success:(i=this,function(t){return e.disabled=!1,new App.KnowledgeBaseServerSnippet({container:i.el.closest(".content"),snippets:t.snippets,address:t.address,address_type:t.address_type})}),error:(n=this,function(t){if(e.disabled=!1,422===t.status)return new App.ControllerErrorModal({message:t.responseJSON.error,container:n.el.closest(".content")})})})},e}(App.KnowledgeBaseForm)}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/content"]=function(t){t||(t={});var n=[],e=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e;this.missingTranslation()&&(n.push('\n
                            '),n.push(this.T("No translation for this locale available")),n.push("
                            \n")),n.push('\n\n
                            \n \n
                            \n\n
                            \n \n '),n.push(this.T("Discard your unsaved changes.")),n.push("\n \n\n "),("function"==typeof(e=this.object.constructor ).canBePublished?e.canBePublished():void 0)?n.push('\n
                            \n '):(n.push('\n \n '),n.push(this.T("Update")),n.push("\n \n ")),n.push("\n
                            \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=i,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/content_can_be_published_header_suffix"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n '),e.push(this.T(this.object.can_be_published_state())),e.push("\n\n "),this.object.can_be_published_internal_in_future()&&(e.push('\n '),e.push(this.T("Will be internal")),e.push(" "),e.push(this.humanTime(this.object.internal_at)),e.push("\n ")),e.push("\n\n "),this.object.can_be_published_publish_in_future()&&(e.push('\n '),e.push(this.T("Will be published")),e.push(" "),e.push(this.humanTime(this.object.published_at)),e.push("\n ")),e.push("\n\n "),this.object.can_be_published_archive_in_future()&&(e.push('\n '),e.push(this.T("Will be archived")),e.push(" "),e.push(this.humanTime(this.object.archived_at)),e.push("\n ")),e.push("\n\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.KnowledgeBaseDelete=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.isTitleMatching=function(){var t;return t=this.object().guaranteedTitle(),this.formParam(this.el).title===t},e.prototype.submit=function(t){var n,i,s,e;{if(this.preventDefaultAndStopPropagation(t),n=this.formControllers[0],this.isTitleMatching())return n.hideAlert(),i=new App.ControllerModalLoading({container:this.parentVC.el.closest(".content")}),this.ajax({id:"knowledge_bases",type:"DELETE",url:this.object().manageUrl(),processData:!0,success:(e=this,function(){return i.hide(),e.parentVC.clear()}),error:(s=this,function(t){var e;return n.showAlert((null!=(e=t.responseJSON)?e.error:void 0)||s.T("The request could not be processed.")),i.hide()})});n.showAlert(App.i18n.translateInline("Confirmation failed."))}},e.prototype.buildFormController=function(){return new App.ControllerForm({fullForm:!0,formClass:"settings-entry",fullFormButtonsContainerClass:"justify-end",fullFormSubmitLabel:__("Delete Knowledge Base"),fullFormSubmitAdditionalClasses:"btn--danger",model:{configure_attributes:[{name:"title",model:"translation",style:"block","null":!0,display:__("Permanently Delete Knowledge Base"),help:'Deleting your knowledge base requires an additional verification step. To proceed, enter its name below ("'+this.object().guaranteedTitle()+'"). THIS ACTION CANNOT BE UNDONE.',tag:"input"}]}})},e}(App.KnowledgeBaseForm)}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/navigation"]=function(t){t||(t={});var c=[],p=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l;for(c.push('\n\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,c.join("")}}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.KnowledgeBaseNewController=function(t){function e(){e.__super__.constructor.apply(this,arguments),this.render()}return n(e,t),e.prototype.events={"submit form":"submit"},e.prototype.render=function(){return this.formController=new App.ControllerForm({model:App.KnowledgeBase,screen:"admin_create",autofocus:!1,formClass:"settings-entry",fullForm:!0,fullFormSubmitLabel:__("Create Knowledge Base"),fullFormButtonsContainerClass:"justify-end",fullFormSubmitAdditionalClasses:"btn--success"}),this.el.html(this.formController.form)},e.prototype.prepareParams=function(t){var e,n,i,s,r,o;for(s in o=[],r=App.KnowledgeBase.attributesGet(this.formController.screen))e=r[s],i=this.$("."+e.tag+"[data-attribute-name="+e.name+"]"),o.push("function"==typeof(n=App.UiElement[e.tag]).prepareParams?n.prepareParams(e,i,t):void 0);return o},e.prototype.applyDefaults=function(t){return t.iconset="FontAwesome",t.color_highlight="#38ae6a",t.color_header="#f9fafb",t.color_header_link="hsl(206,8%,50%)",t.homepage_layout="grid",t.category_layout="grid"},e.prototype.submit=function(t){var e,n,i;return this.preventDefaultAndStopPropagation(t),e=this.formParam(this.el),this.prepareParams(e),this.applyDefaults(e),this.formDisable(this.el),this.ajax({type:"POST",data:JSON.stringify(e),url:App.KnowledgeBase.manageUrl,success:(i=this,function(){return i.parentVC.fetchAndRender()}),error:(n=this,function(t){var e;return n.formEnable(n.el),n.formController.showAlert((null!=(e=t.responseJSON)?e.error:void 0)||__("Couldn't create Knowledge Base"))})})},e}(App.Controller)}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/permissions_dialog"]=function(t){t||(t={});var l=[],c=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;for(e in l.push('\n \n \n"),t=0,n=(s=this.roles).length;t\n \n")}l.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/public_menu_form_item"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                            \n

                            '),s.push(r(this.title)),s.push('

                            \n\n \n\n
                            \n
                            '),l.push(this.T("Role")),l.push("\n "),i=this.accessLevels)a=i[e],l.push("\n "),l.push(this.T(a)),l.push("\n ");for(l.push("\n
                            \n "),l.push(c(o.name)),l.push("\n\n "),r=this.accessLevels)a=r[e],l.push('\n \n \n ");l.push("\n
                            \n \n \n \n "),t=0,n=(i=this.rows).length;t\n
                            \n \n '),s.push(this.T("Title")),s.push("\n \n "),s.push(this.T("URL")),s.push("\n \n "),s.push(this.T("Target")),s.push('\n \n '),s.push(this.T("Delete")),s.push("\n
                            \n \n \n '),s.push(this.Icon("plus-small")),s.push(" "),s.push(this.T("Add")),s.push("\n \n
                            \n \n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/public_menu_form_item_row"]=function(t){t||(t={});var i=[],s=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n;i.push('\n '),i.push(this.Icon("draggable")),i.push('\n \n \n \n \n \n \n\n \n \n \n '),i.push(this.Icon("checkbox","icon-unchecked")),i.push("\n "),i.push(this.Icon("checkbox-checked","icon-checked")),i.push("\n \n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,i.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/public_menu_manager"]=function(t){t||(t={});var h=[],d=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p,u;for(h.push("

                            \n "),h.push(this.T("Public Menu")),h.push('\n

                            \n\n

                            \n '),h.push(this.T("Here you can add further links to your public FAQ page, which will be displayed either in the header or footer.")),h.push("\n

                            \n\n"),t=0,r=(p=this.locations).length;t\n

                            '),h.push(d(this.T(l.headline))),h.push("

                            \n\n "),n=0,o=(u=this.locales).length;n\n
                            '),h.push(d(s.systemLocale().name)),h.push('
                            \n\n
                            \n '),c=App.KnowledgeBaseMenuItem.using_kb_locale_location(s,l.identifier),h.push("\n\n "),0===c.length)h.push('\n '),h.push(d(this.T("Empty"))),h.push("\n ");else{for(h.push("\n "),i=0,a=c.length;i'),h.push(d(e.title)),h.push("\n ");h.push("\n ")}h.push("\n
                            \n \n ")}h.push('\n\n \n\n '),h.push(d(this.T("Edit"))),h.push("\n \n \n")}h.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,h.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/reader"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n '),this.search_return_url&&(e.push('\n \n '),e.push(this.Icon("arrow-left")),e.push('\n
                            \n '),e.push(this.T("Back to search results")),e.push("\n
                            \n ")),e.push('\n\n

                            \n\n \n\n
                            \n
                            \n
                            \n
                            \n \n
                            \n\n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/reader_list"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/scheduled_widget"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push(this.Icon("clock")),e.push('\n
                            '),e.push(this.T("Scheduled for")),e.push(" "),e.push(this.timestamp),e.push('
                            \n\n '),e.push(this.Icon("diagonal-cross")),e.push(""),e.push(this.T("Cancel")),e.push("\n\n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/search"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/search_field_panel"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n\n
                            \n '),e.push(this.Icon("mood-ok")),e.push("\n
                            "),e.push(this.T("Empty")),e.push('
                            \n
                            \n\n
                            \n '),e.push(this.Icon("mood-superbad")),e.push("\n
                            \n
                            \n\n
                              \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/search_field_widget"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n'),e.push(this.Icon("magnifier")),e.push('\n
                              '),e.push(this.Icon("spinner-small")),e.push('
                              \n\n '),e.push(this.Icon("diagonal-cross")),e.push("\n\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/search_item"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n \n '),e.push(this.iconWithModifier(this.data,{className:"section-inner-icon-holder",iconset:this.iconset,addStateClass:!0})),e.push('\n \n '),e.push(this.data.title),e.push('\n \n '),e.push(this.humanTime(this.data.date)),e.push(" "),this.data.body&&(e.push(''),e.push(this.data.body),e.push("")),e.push("\n \n \n \n\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.KnowledgeBaseServerSnippet=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.head=__("Web Server Configuration"),e.prototype.className="modal modal-knowledge-base-server-snippet",e.prototype.buttonSubmit=!1,e.prototype.initalFormParamsIgnore=!0,e.prototype.servers=[{id:"nginx",name:"Nginx",active:!0},{id:"apache",name:"Apache"}],e.prototype.content=function(){var t,e,n,i;for(t=0,e=(n=this.servers).length;t/g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o;for(a.push('
                              \n

                              '),a.push(this.T("Configuration for %s",this.address_type)),a.push(" "),a.push(l(this.address)),a.push(':

                              \n \n
                              \n '),e=0,i=(r=this.servers).length;e\n \n
                              \n ");a.push("\n
                              \n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,a.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/sidebar/actions"]=function(t){t||(t={});var l=[],c=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;for(l.push('
                              \n '),e=0,i=(o=this.actions).length;e\n "),t.iconName&&(l.push(" "),l.push(this.Icon(t.iconName)),l.push(" ")),l.push("\n "),t.name instanceof Object){for(l.push("\n "),n=0,s=(a=t.name).length;n\n ")}l.push("\n
                              \n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/sidebar/attachments"]=function(t){t||(t={});var r=[],o=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s;if(r.push('\n\n
                            • \n ");r.push("\n \n ")}r.push('\n\n
                              \n
                              \n
                              \n '),r.push(this.T("Uploading")),r.push(' (0%) ...\n
                              \n
                              \n '),r.push(this.Icon("diagonal-cross")),r.push('\n
                              \n
                              \n
                              \n
                              \n\n
                              \n '),r.push(this.Icon("plus-small")),r.push(" \n "),s=_.uniqueId("fileUpload_"),r.push('\n \n \n
                              \n\n
                              \n
                              \n '),r.push(this.T("Drop files here")),r.push("\n
                              \n
                              \n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,r.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/sidebar/generic_list"]=function(t){t||(t={});var o=[],a=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r;if(o.push('\n\n\n\n\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,o.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/sidebar/linked_tickets"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n\n"),e.push(this.V("generic/ticket_list",{show_max:5,tickets:this.tickets,object:"Ticket"})),e.push('\n\n\n '),e.push(this.Icon("plus-small")),e.push(" "),e.push(this.T("Add")),e.push("\n\n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/sidebar/tags"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('\n\n"),0\n '),e=0,n=(i=this.tags).length;e\n '),s.push(r(t)),s.push('\n
                              \n '),s.push(this.Icon("diagonal-cross")),s.push("\n
                              \n \n ");s.push("\n\n")}s.push('\n\n\n + '),s.push( this.T("Add Tag")),s.push('\n\n\n
                              \n \n
                              \n')}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/knowledge_base/vertical_form"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n

                              '),e.push(this.T(this.attribute.display)),e.push('

                              \n

                              '),e.push(this.T(this.attribute.help)),e.push('

                              \n
                              \n
                              \n \n
                              \n
                              \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/layout_ref/admin_loading"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n\n
                              \n \n \n
                              \n
                              \n
                              \n\n
                              \n
                              \n
                              Loading Email Settings
                              \n
                              \n
                              \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/layout_ref/admin_placeholder"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n\n
                              \n \n\n
                              \n

                              \n Service-Level-Agreements, abgek\xfcrzt SLAs, unterst\xfctzen Sie gegen\xfcber Kunden gewisse zeitliche Reaktionen einzuhalten. Somit k\xf6nnen Sie z. B. sagen Kunden sollen immer nach sp\xe4testens 8 Stunden eine Reaktion von Ihnen bekommen. Falls es zu einer drohenden Unterschreitung oder einer Unterschreitung kommt, wei\xdft Zammad Sie auf solche Ereignisse hin.\n

                              \n

                              \n Es k\xf6nnen Reaktionszeit (Zeit zwischen Erstellung eines Tickets und erster Reaktion eines Agenten), Aktualisierungszeit (Zeit zwischen Nachfrage eines Kunden und Reaktion eines Agenten) und L\xf6sungszeit (Zeit zwischen Erstellung und schlie\xdfen eines Tickets) definiert werden.\n

                              \n

                              \n Drohenden Unterschreitungen oder Unterschreitungen werden in einer eigenen Ansicht in den \xdcbersichten angezeigt. Zudem k\xf6nnen E-Mail Benachrichtigungen konfiguriert werden.\n

                              \n
                              \n
                              \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/layout_ref/boxFade"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n \n \n \n \n \n \n \n\n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/layout_ref/buttons"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n

                              Buttons

                              \n\n

                              Normal Buttons

                              \n

                              Default

                              \n
                              Default Button
                              \n
                              Active Button
                              \n
                              Slim Button
                              \n
                              .is-disabled Button
                              \n
                              [disabled] Button
                              \n\n

                              Primary

                              \n
                              Primary Button
                              \n
                              Secondary Button
                              \n\n

                              Positive

                              \n
                              Positive Button
                              \n
                              Positive Secondary Button
                              \n\n

                              Dangerous

                              \n
                              Dangerous Button
                              \n
                              Dangerous Secondary Button
                              \n\n

                              Split

                              \n
                              \n
                              Split First Button
                              \n
                              Split Button
                              \n
                              Active Split Button
                              \n
                              Split Last Button
                              \n
                              \n\n\n\n

                              Text Buttons

                              \n\n

                              Default

                              \n
                              Text Button
                              \n
                              Secondary Text Button
                              \n\n

                              Positive

                              \n
                              Positive Text Button
                              \n\n

                              Dangerous

                              \n
                              Dangerous Text Button
                              \n\n

                              Subtle

                              \n
                              Subtle Button
                              \n\n

                              Action Buttons

                              \n\n

                              Default

                              \n
                              Action Button
                              \n\n

                              Split

                              \n
                              \n
                              Split First
                              \n
                              Split
                              \n
                              Split Last
                              \n
                              \n\n

                              Dropdown

                              \n\n
                              \n \n \n \n
                              \n\n
                              \n\n \n\n
                              \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/layout_ref/calendar_subscriptions"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n\n
                              \n \n

                              "),e.push(this.t("Ticket Subscriptions")),e.push("

                              \n\n

                              "),e.push(this.t("See your tickets from within your favorite calendar by adding the following URL to your calendar app.")),e.push("

                              \n\n

                              "),e.push(this.t("URL")),e.push('

                              \n
                              \n '),e.push(this.t("Subscription to all my tickets:")),e.push('\n \n
                              \n\n

                              Settings

                              \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
                              '),e.push(this.t("Status Type")),e.push(''),e.push(this.t("Options")),e.push(''),e.push(this.t("Direct URL")),e.push("/th>\n
                              "),e.push(this.t("new/open")),e.push('/td>\n
                              '),e.push(this.t("pending")),e.push('
                              '),e.push(this.t("escalating")),e.push('
                              \n
                              \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/layout_ref/chat_to_ticket"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                              \n
                              \n \n \n
                              \n
                              today 11:32
                              \n\n
                              Servus!
                              \n
                              Griasde!
                              \n\n
                              Du hast du a Minutn?
                              \n
                              Ja freili!
                              \n
                              Um wos gehts?
                              \n\n\n\n\n\n
                              Oiso I hob meiner Muatta z Weihnachten a Soundbox von eich kafft
                              \n\n
                              Etz is des Problem dos oana vo de Knepf si ned gscheid drucka lasst
                              \n
                              Au weh zwick. Des soid ned sa
                              \n
                              Du kannst du des ei\'schicka?
                              \n
                              today 11:34
                              \n
                              Na dat ma wia uns des oschaun
                              \n\n
                              Ja klar. Super!
                              \n\n
                              Danksche, gell
                              \n
                              Koa ding. Duad ma ja leid das des no ned lafft
                              \n
                              Bis dann!
                              \n\n
                              Ja pfiate
                              \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
                              \n
                              \n
                              \n
                              \n \n
                              \n
                              \n
                              \n
                              \n '),e.push(this.Icon("paperclip")),e.push('\n
                              1 Attached File
                              \n
                              \n
                              Chat
                              \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
                              \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
                              \n\n\n
                              \n
                              \n
                              \n
                              \n\n
                              \n
                              \n\n\n
                              \n
                              \n
                              \n
                              \n\n
                              \n
                              \n
                              \n
                              \n
                              \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/layout_ref/clue_content"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n + '),h.push(this.T("Add")),h.push('\n \n \n\n
                            \n
                            '),h.push(this.T("Delete")),h.push("
                            \n "),t.options.backup_imap_classic&&(h.push('\n
                            '),h.push(this.T("Rollback migration")),h.push("
                            \n ")),h.push("\n "),!0===t.active?(h.push('\n
                            '),h.push(this.T("Disable"))):(h.push('\n
                            '),h.push(this.T("Enable"))),h.push("
                            \n "),h.push('\n
                            '),h.push(this.T("Reauthenticate")),h.push("
                            \n
                            \n
                            \n")}h.push("\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,h.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/modal"]=function(t){t||(t={});var a=[],l=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o;if(a.push('\n "),this.includeForm&&a.push("\n \n "),a.push("\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,a.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/monitoring"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('\n
                            \n\n
                            \n
                            \n

                            '),s.push(this.T("Current Token")),s.push('

                            \n
                            \n

                            \n \n
                            \n\n
                            \n
                            \n

                            '),s.push(this.T("Health Check")),s.push("

                            \n
                            \n

                            "),s.push(this.T("Health information can be retrieved as JSON using:")),s.push('

                            \n

                            \n
                            \n\n
                            \n
                            \n

                            '),_.isEmpty(this.data.issues)?s.push(this.Icon("status","ok inline")):s.push(this.Icon("status","error inline")),s.push(" "),s.push(this.T("Current Status")),s.push("

                            \n
                            \n
                              \n "),_.isEmpty(this.data.issues))s.push("\n
                            • "),s.push(this.T("no issues")),s.push("\n ");else{for(s.push("\n "),t=0,n=(i=this.data.issues).length;t"),s.push(r(e)),s.push("\n ");s.push("\n ")}s.push("\n
                            \n "),_.contains(this.data.actions,"restart_failed_jobs")&&(s.push('\n \n ")),s.push("\n
                            \n\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/navigation"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/navigation/menu"]=function(t){t||(t={});var a=[],l=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o;for(t=0,i=(r=this.items).length;t\n \n '),a.push(this.Icon(e["class"],"menu-item-icon")),a.push('\n \n '),a.push(this.T(e.name)),a.push("\n \n "),a.push(this.Icon("arrow-down","dropdown-icon")),a.push('\n \n \n \n ")}else a.push('\n \n '),a.push(this.Icon(e["class"],"menu-item-icon")),a.push('\n \n '),a.push(this.T(e.name)),a.push("\n \n "),void 0!==e.counter&&0!==e.counter&&(a.push('\n '),a.push(l(e.counter)),a.push("\n ")),a.push("\n "),void 0!==e["switch"]&&(a.push('\n \n \n \n \n ')),a.push("\n\n "),e.accessoryIcon&&(a.push("\n "),a.push(this.Icon(e.accessoryIcon,"accessory-icon")),a.push("\n ")),a.push("\n \n ");a.push("\n")}a.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,a.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/navigation/menu_cti_ringing"]=function(t){t||(t={});var u=[],h=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p;for(u.push('
                            \n '),n=0,r=(a=this.item).length;n\n
                            \n '),u.push(this.Icon("status","neutral")),u.push('\n
                            '),u.push(this.T("Inbound Call")),u.push('
                            \n \n
                            \n "),p=void 0,u.push("\n "),c=!1,u.push("\n "),i.preferences.from&&!_.isEmpty(i.preferences.from)){for(u.push("\n "),s=0,o=(l=i.preferences.from).length;s
                            '),u.push('\n
                            \n '),u.push(p.avatar()),u.push('\n
                            '),"known"!==t.level&&(u.push(this.T("maybe")),u.push(": ")),u.push(h(p.displayNameLong())),u.push('
                            \n '),u.push(h(i.from_pretty)),u.push('\n
                            '),u.push(this.Icon("plus")),u.push("
                            \n
                            \n "),c=!0,u.push("\n ")):_.isEmpty(t.comment)||(u.push("\n "),c=!0,u.push('\n
                            \n '),u.push(this.unique_avatar(t.comment,t.comment.split(" ").map(function(t){return t[0]}).join(""))),u.push("\n "),u.push(this.T("maybe")),u.push(": "),u.push(h(t.comment)),u.push('
                            \n '),u.push(h(i.from_pretty)),u.push('\n
                            '),u.push(this.Icon("plus")),u.push("
                            \n
                            \n ")),u.push("\n ");u.push("\n ")}u.push("\n "),c||_.isEmpty(i.from_comment)||(u.push("\n "),c=!0,u.push('\n
                            \n '),u.push(this.unique_avatar(i.from_comment,i.from_comment.split(" ").map(function(t){return t[0]}).join(""))),u.push("\n "),u.push(h(i.from_comment)),u.push('
                            \n '),u.push(h(i.from_pretty)),u.push('\n
                            '),u.push(this.Icon("plus")),u.push("
                            \n
                            \n ")),u.push("\n "),c||(u.push('\n
                            \n '),u.push(this.unique_avatar(i.from_pretty||i.from,"??")),u.push("\n "),_.isEmpty(i.from_pretty)?(u.push('\n '),u.push(h(i.from)),u.push("\n ")):(u.push('\n '),u.push(h(i.from_pretty)),u.push("\n "),"in"===i.direction&&(u.push('\n
                            '),u.push(this.Icon("plus-small")),u.push(" "),u.push(this.T("New User")),u.push("
                            \n ")),u.push("\n ")),u.push('\n
                            '),u.push(this.Icon("plus")),u.push("
                            \n
                            \n ")),u.push("\n \n ")}u.push("\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,u.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/navigation/no_result"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                          • \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/navigation/personal"]=function(t){t||(t={});var l=[],c=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;for(t=0,s=(o=this.items).length;t\n \n '),l.push(this.Icon(n.icon,"user-menu-icon")),l.push("\n \n \n ");else{for(l.push('\n
                          • \n \n \n '),"user"===n["class"]?l.push('\n \n '):(l.push("\n "),l.push(this.Icon(n.icon,"user-menu-icon")),l.push("\n ")),l.push('\n \n \n
                          • \n ")}l.push("\n")}l.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/navigation/result"]=function(t){t||(t={});var a=[],l=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o;for(t in o=this.result){for(s=o[t],a.push("\n "),e&&0 '),a.push("\n "),e=!0,a.push("\n "),n=0,r=s.length;n\n \n \n '),a.push(l(i.display)),a.push("\n \n \n ");a.push("\n")}a.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,a.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/notify"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n '),"error"===this.type&&(e.push("\n "),e.push(this.Icon("diagonal-cross","icon-error")),e.push("\n ")),e.push("\n "),"success"===this.type&&(e.push("\n "),e.push(this.Icon("checkmark")),e.push("\n ")),e.push('\n \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/object_manager/attribute"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n
                            '),e.push(this.T("Here you define which authorization has access to the attribute.")),e.push('
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}), this.JST["app/views/object_manager/attribute/autocompletion"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \nAuto-Vervollst\xe4ndigung\n
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/object_manager/attribute/boolean"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n \n \n \n \n \n \n \n \n
                            '),e.push(this.T("Key")),e.push("\n "),e.push(this.T("Display")),e.push('\n '),e.push(this.T("Default")),e.push('\n
                            \n true\n \n \n \n \n
                            \n false\n \n \n \n \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/object_manager/attribute/date"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/object_manager/attribute/datetime"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/object_manager/attribute/input"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/object_manager/attribute/integer"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/object_manager/attribute/multiselect"]=function(t){t||(t={});var o=[],a=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r;if(o.push('
                            \n \n \n \n \n \n \n '),this.params.data_option&&this.params.data_option.mapped){for(o.push("\n "),e=0,i=(s=this.params.data_option.mapped).length;e\n \n \n \n \n \n ");o.push("\n ")}o.push('\n \n \n
                            '),o.push(this.T("Key")),o.push("\n "),o.push(this.T("Display")),o.push('\n '),o.push(this.T("Default")),o.push('\n '),o.push(this.T("Action")),o.push('\n
                            '),o.push(this.Icon("draggable")),o.push('\n \n \n \n \n \n \n
                            \n '),o.push(this.Icon("trash")),o.push(" "),o.push(this.T("Remove")),o.push("\n
                            \n
                            \n \n \n \n \n \n \n \n
                            \n '),o.push(this.Icon("plus-small")),o.push(" "),o.push(this.T("Add")),o.push('\n
                            \n
                            \n \n \n \n \n \n
                            \n \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=e,t.escape=n,o.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/object_manager/attribute/select"]=function(t){t||(t={});var o=[],a=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r;if(o.push('
                            \n \n \n \n \n \n \n '),this.params.data_option&&this.params.data_option.mapped){for(o.push("\n "),e=0,i=(s=this.params.data_option.mapped).length;e\n \n \n \n
                            '),o.push(this.T("Key")),o.push("\n "),o.push(this.T("Display")),o.push('\n '),o.push(this.T("Default")),o.push('\n '),o.push(this.T("Action")),o.push('\n
                            '),o.push(this.Icon("draggable")),o.push('\n \n \n \n \n \n \n
                            \n '),o.push(this.Icon("trash")),o.push(" "),o.push(this.T("Remove")),o.push("\n
                            \n ");o.push("\n ")}o.push('\n
                            \n \n \n \n \n \n \n \n
                            \n '),o.push(this.Icon("plus-small")),o.push(" "),o.push(this.T("Add")),o.push('\n
                            \n
                            \n \n \n \n \n \n
                            \n \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=e,t.escape=n,o.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/object_manager/attribute/textarea"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/object_manager/attribute/tree_select"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n \n \n \n \n \n \n
                            '),e.push(this.T("Key")),e.push('\n '),e.push(this.T("Action")),e.push('\n
                            \n \n \n \n \n \n \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/object_manager/index"]=function(t){t||(t={});var a=[],l=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o;if(a.push('\n
                            \n '),!_.isEmpty(this.itemsToChange)){for(a.push('\n
                            \n

                            '),a.push(this.T("Database Update Required")),a.push("

                            \n

                            \n "),a.push(this.T("Changes were made that require a database update.")),a.push("\n "),a.push(this.T("This might take some time during which the system can't be used.")),a.push("\n "),a.push(this.T("Please execute database changes only in a maintenance time-slot.")),a.push("\n

                            \n

                            \n "),a.push(this.T("Changes")),a.push(":\n

                              \n "),t=0,i=(r=this.itemsToChange).length;t\n "),!0===e.to_create?(a.push("\n "),a.push(this.T("Create")),a.push(": "),a.push(l(e.object)),a.push("."),a.push(l(e.name)),a.push(" ("),a.push(l(e.data_type)),a.push(")\n ")):!0===e.to_delete?(a.push("\n "),a.push(this.T("Delete")),a.push(": "),a.push(l(e.object)),a.push("."),a.push(l(e.name)),a.push(" ("),a.push(l(e.data_type)),a.push(")\n ")):(e.to_migrate||!0===e.to_config)&&(a.push("\n "),a.push(this.T("Changed")),a.push(": "),a.push(l(e.object)),a.push("."),a.push(l(e.name)),a.push(" ("),a.push(l(e.data_type)),a.push(")\n ")),a.push("\n ");a.push('\n
                            \n

                            \n
                            \n
                            '),a.push(this.T("Discard Changes")),a.push('
                            \n
                            '),a.push(this.T("Update Database")),a.push("
                            \n
                            \n
                            \n ")}for(a.push('\n\n \n \n \n \n \n \n \n \n \n \n \n "),n=0,s=(o=this.items).length;n\n \n \n \n \n \n \n ");a.push("\n \n
                            '),a.push(this.T("Display")),a.push(''),a.push(this.T("Name")),a.push(''),a.push(this.T("Type")),a.push(""),a.push(this.T("Position")),a.push(''),a.push(this.T("Action")),a.push("
                            '),a.push(l(e.display)),a.push(""),a.push(l(e.name)),a.push(""),a.push(l(e.data_type)),a.push(""),a.push(l(e.position)),a.push("\n "),!0===e.to_create?(a.push("\n "),a.push(this.T("will be created")),a.push("\n ")):!0===e.to_delete?(a.push("\n "),a.push(this.T("will be deleted")),a.push("\n ")):!0===e.to_migrate||!0===e.to_config?(a.push("\n "),a.push(this.T("has changed")),a.push("\n ")):e.editable&&(a.push("\n "),e.deletable?(a.push('\n '),a.push(this.Icon("trash")),a.push("\n ")):(a.push('\n '),a.push(this.Icon("trash")),a.push("\n ")),a.push("\n ")),a.push("\n
                            \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,a.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/object_manager/screens"]=function(t){t||(t={});var o=[],a=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r;for(i in o.push('
                            \n \n \n \n \n \n "),n=this.data){for(s in r=n[i],o.push('\n \n \n \n \n
                            '),o.push(this.T("Permissions")),o.push("\n "),o.push(this.T("Screen")),o.push('\n '),o.push(this.T("Options")),o.push("\n
                            \n '),o.push(a(i)),o.push('\n \n \n '),r){for(t in e=r[s],o.push('\n
                            \n \n '),o.push(a(s)),o.push('\n \n '),e)e[t],o.push("\n "),o.push(this.T(t)),o.push(': \n ');o.push("\n ")}o.push('\n
                            \n \n '),o.push(this.T("Not applicable to: merging, emails, form, Facebook, Telegram, Twitter, SMS")),o.push("\n ")}o.push("\n
                            \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,o.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/organization_profile/index"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n
                            \n
                            \n '),!0===this.organization.active?(e.push("\n "),e.push(this.Icon("organization"))):(e.push("\n "),e.push(this.Icon("inactive-organization"))),e.push("\n "),e.push('\n
                            \n

                            \n
                            \n
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/organization_profile/member"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n '),e.push(this.user.avatar("40")),e.push('\n '),e.push(n(this.user.displayName())),e.push("\n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/organization_profile/object"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                            \n
                            \n '),t=0,e=(n=this.organizationData).length;t\n \n
                            '),s.push(this.organization[i.name]),s.push("
                            \n
                            \n ")):(s.push("\n "),this.organization[i.name]&&(s.push('\n
                            \n \n "),s.push(this.P(this.organization,i.name)),s.push("\n
                            \n ")),s.push("\n ")),s.push("\n ");s.push("\n
                            \n\n"),this.organization.member_ids&&(s.push('\n
                            \n \n
                            \n

                            \n

                            \n")),s.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/package"]=function(t){t||(t={});var h=[],d=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p,u;for(h.push('
                            \n

                            '),h.push(this.T("Package")),h.push(" "),h.push(this.T("Management")),h.push('

                            \n
                            \n\n
                            \n

                            \n '),h.push(this.T("The installation of packages comes with security implications, because arbitrary code will be executed in the context of the Zammad application.")),h.push("\n
                            \n "),h.push(this.T("Only packages from known, trusted, and verfied sources should be installed.")),h.push("\n

                            \n

                            \n "),h.push(this.T("After installing, updating, or uninstalling packages the following commands need to be executed on the server:")),h.push("\n

                              \n "),n=0,o=(c=this.commands).length;nzammad> "),h.push(e),h.push("\n ");for(h.push('\n
                            • root> systemctl restart zammad
                            • \n
                            \n

                            \n \n

                            \n

                            \n \n \n \n
                            \n

                            \n\n \n \n \n \n \n \n \n \n \n \n \n "),s=0,a=(p=this.packages).length;s\n \n \n \n \n \n \n ")}h.push("\n \n
                            '),h.push(this.T("Name")),h.push(""),h.push(this.T("Version")),h.push(""),h.push(this.T("Vendor")),h.push(""),h.push(this.T("State")),h.push(""),h.push(this.T("Action")),h.push("
                            '),h.push(d(i.name)),h.push(""),h.push(d(i.version)),h.push(''),h.push(d(i.vendor)),h.push(""),h.push(this.T(i.state)),h.push(""),r=0,l=(u=i.action).length;r'),h.push(this.T(t)),h.push("
                            ");h.push("
                            \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,h.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/password/reset"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n

                            '),e.push(this.T("Forgot your password?")),e.push('

                            \n
                            \n
                            \n
                            \n '),e.push(this.T("Cancel & Go Back")),e.push('\n \n
                            \n
                            \n
                            \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/password/reset_change"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n

                            '),e.push(this.T("Choose your new password.")),e.push('

                            \n
                            \n
                            \n
                            \n '),e.push(this.T("Cancel & Go Back")),e.push('\n \n
                            \n
                            \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/password/reset_failed"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t ;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n

                            '),e.push(this.T(this.head)),e.push("

                            \n

                            "),e.push(this.message),e.push('

                            \n » '),e.push(this.T("try again")),e.push(" «\n
                            \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/password/reset_sent"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n

                            '),e.push(this.T("We've sent password reset instructions to your email address.")),e.push("

                            \n

                            "),e.push(this.T("If you don't receive instructions within a minute or two, check your email's spam and junk filters, or try resending your request.")),e.push('

                            \n
                            \n '),e.push(this.T("Cancel & Go Back")),e.push('\n \n
                            \n
                            \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/popover/escalation"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n'),this.object.first_response_escalation_at&&(e.push('\n
                            \n \n
                            '),e.push(this.humanTime(this.object.first_response_escalation_at,!0)),e.push("
                            \n
                            \n")),e.push("\n"),this.object.update_escalation_at&&(e.push('\n
                            \n \n
                            '),e.push(this.humanTime(this.object.update_escalation_at,!0)),e.push("
                            \n
                            \n")),e.push("\n"),this.object.close_escalation_at&&(e.push('\n
                            \n \n
                            '),e.push(this.humanTime(this.object.close_escalation_at,!0)),e.push("
                            \n
                            \n")),e.push("\n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/popover/kb_generic"]=function(t){t||(t={});var i=[],s=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n;i.push(this.V("popover/single_object_generic",{object:this.object,attributes:this.attributes})),i.push("\n"),("function"==typeof(t=this.object).parent&&"function"==typeof(e=t.parent()).canBePublished?e.canBePublished():void 0)&&(i.push('\n
                            \n '),i.push(this.Icon("task-state",this.object.parent().can_be_published_state())),i.push('\n \n '),i.push(this.T(this.object.parent().can_be_published_state())),i.push('\n \n
                            \n\n
                            \n\n
                            \n
                            \n
                            \n \n "),(n=this.object.parent().published_at)?(i.push("\n "),i.push(this.humanTime(n,!1,"time","absolute")),i.push("\n ")):i.push("\n -\n "),i.push('\n
                            \n
                            \n \n "),(n=this.object.parent().archived_at)?(i.push("\n "),i.push(this.humanTime(n,!1,"time","absolute")),i.push("\n ")):i.push("\n -\n "),i.push('\n
                            \n \n
                            \n \n "),i.push(s(App.KnowledgeBaseLocale.localeFor(this.object).systemLocale().name)),i.push("\n
                            \n\n "),_.isEmpty(this.object.parent().tags)||(i.push('\n
                            \n \n "),i.push(s(this.object.parent().tags.map(function(t){return"#"+t}).join(" "))),i.push("\n
                            \n ")),i.push("\n
                            \n
                            \n")),i.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,i.join("")}}.call(this);(function(){this.JST||(this.JST={}),this.JST["app/views/popover/organization"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push(this.V("popover/single_object_generic",{object:this.object,attributes:this.attributes})),e.push("\n\n"),this.object.member_ids&&(e.push('\n
                            \n
                            \n \n
                            \n
                            \n')),e.push("\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}).call(this),function(){this.JST||(this.JST={}),this.JST["app/views/popover/single_object_generic"]=function(t){t||(t={});var s=[],e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(_.isEmpty(this.attributes)||s.push("\n
                            \n"),s.push("\n\n"),t=0,e=(n=this.attributes).length;t\n \n "),s.push(this.P(this.object,i.name)),s.push("\n \n ")),s.push("\n");s.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/popover/ticket"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n '),e.push(this.Icon(this.object.icon(),this.object.iconClass())),e.push(' '),e.push(this.object.iconTitle()),e.push('\n
                            \n
                            \n
                            \n \n
                            \n '),e.push(n(this.object.owner.displayName())),e.push("\n "),this.object.owner.organization&&(e.push('\n '),e.push(n(this.object.owner.organization.displayName())),e.push("\n ")),e.push('\n
                            \n
                            \n
                            \n \n
                            \n '),e.push(n(this.object.customer.displayName())),e.push("\n "),this.object.customer.organization&&(e.push('\n '),e.push(n(this.object.customer.organization.displayName())),e.push("\n ")),e.push('\n
                            \n
                            \n
                            \n
                            \n
                            \n \n
                            '),e.push(this.P(this.object,"number")),e.push('
                            \n
                            \n
                            \n \n
                            '),e.push(this.P(this.object,"priority")),e.push('
                            \n
                            \n
                            \n \n
                            '),e.push(this.P(this.object,"created_at")),e.push('
                            \n
                            \n
                            \n \n
                            '),e.push(this.P(this.object,"group")),e.push("
                            \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/popover/user"]=function(t){t||(t={});var c=[],p=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l;if(this.object.organization&&(c.push('\n\n")),c.push("\n\n"),c.push(this.V("popover/single_object_generic",{object:this.object,attributes:this.attributes})),c.push("\n"),!_.isEmpty(this.object.accounts)){for(t in c.push('\n
                            \n
                            \n \n "),this.object.accounts)c.push('\n '),c.push(p(t)),c.push("\n ");c.push("\n
                            \n")}if(c.push("\n"),!_.isEmpty(this.object.links)){for(c.push("\n
                            \n "),e=0,s=(a=this.object.links).length;e\n \n "),i=0,r=(l=o.items).length;i\n ")):(c.push('\n \n ')),c.push("\n "),c.push(this.T(n.name)),c.push(" "),void 0!==n.count&&(c.push('('),c.push(p(n.count)),c.push(")")),c.push("\n "),n.url?c.push("\n \n "):c.push("\n \n "),c.push("\n ");c.push("\n \n ")}c.push("\n")}c.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,c.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/popover/user_ticket_list"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push(this.ticketList),e.push("\n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/profile/avatar-holder"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n \n
                            \n '),e.push(this.Icon("diagonal-cross")),e.push("\n
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/profile/avatar"]=function(t){t||(t={});var r=[],e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s;for(r.push('\n\n ");r.push("\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,r.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/profile/calendar_subscriptions"]=function(t){t||(t={});var i=[],s=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n;for(n in i.push('\n
                            \n

                            '),i.push(this.T("Ticket Subscriptions")),i.push("

                            \n\n

                            "),i.push(this.T("See your tickets from within your favorite calendar by adding the following URL to your calendar app.")),i.push('

                            \n\n \n
                            \n
                            \n
                            \n \n
                            \n
                            \n
                            \n\n

                            '),i.push(this.T("Subscription Settings")),i.push('

                            \n
                            \n
                            \n \n
                            \n
                            \n \n
                            \n
                            \n \n \n \n \n \n \n "),e=this.preferences)t=e[n],i.push("\n "),_.isObject(t)&&(i.push('\n \n \n ')),i.push("\n ");i.push("\n \n
                            '),i.push(this.T("Status Type")),i.push('\n '),i.push(this.T("Options")),i.push('\n '),i.push(this.T("Direct URL")),i.push("\n
                            \n '),i.push(s(this.translationTable[n])),i.push('\n \n \n \n \n \n \n \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,i.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/profile/camera"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n \n \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/profile/devices"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('\n\n
                            \n\n

                            '),s.push(this.T("All computers and browsers that have access to your Zammad appear here.")),s.push('

                            \n\n \n \n \n \n \n \n \n \n \n \n "),e=0,n=(i=this.devices).length;e\n \n \n \n \n ");s.push("\n \n
                            '),s.push(this.T("Name")),s.push(""),s.push(this.T("Location")),s.push(""),s.push(this.T("Most recent activity")),s.push(""),s.push(this.T("Remove")),s.push("
                            "),s.push(r(t.name)),s.push(""),s.push(r(t.location)),s.push(""),s.push(this.humanTime(t.updated_at)),s.push('\n
                            "),s.push(this.Icon("trash")),s.push("
                            \n \n
                            \n\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/profile/imageCropper"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n

                            '),e.push(this.T("Avatar")),e.push('

                            \n
                            \n

                            '),e.push(this.T("Preview")),e.push('

                            \n
                            \n
                            \n \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/profile/language"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n
                            \n

                            '),e.push(this.T("Choose your language.")),e.push('

                            \n
                            \n
                            \n \n
                            \n

                            "),e.push(this.T("Did you know? You can help translating %s at:","Zammad")),e.push(' translations.zammad.org

                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/profile/linked_accounts"]=function(t){t||(t={});var i=[],s=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n;for(t in i.push('\n
                            \n \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,i.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/profile/notification"]=function(t){t||(t={});var m=[],g=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p,u,h,d,f;if(m.push('\n\n
                            \n\n
                            \n \n \n \n \n \n "),this.matrix){for(r in m.push("\n "),l=this.matrix)f=l[r],m.push("\n \n \n
                            \n '),m.push(this.T("My Tickets")),m.push('\n '),m.push(this.T("Not Assigned")),m.push('*\n '),m.push(this.T("Subscribed Tickets")),m.push('\n '),m.push(this.T("All Tickets")),m.push('*\n '),m.push(this.T("Also notify via email")),m.push("\n
                            \n "),m.push(this.T(f.name)),m.push("\n "),e=null!=(c=this.config.matrix[r])?c.criteria:void 0,m.push("\n "),t=null!=(p=this.config.matrix[r])?p.channel:void 0,m.push('\n \n \n \n \n \n \n \n \n \n \n ");m.push("\n ")}if(m.push("\n
                            \n
                            \n\n "),this.groups){for(m.push("\n

                            * "),m.push(this.T("Limit Groups")),m.push('

                            \n
                            \n \n \n \n \n \n "),i=0,o=(u=this.groups).length;i\n \n
                            '),m.push(this.T("Group")),m.push("\n "),m.push(this.T("Not Assigned")),m.push(" & "),m.push(this.T("All Tickets")),m.push("\n
                            "),m.push(g(n.displayName())),m.push('\n \n \n ");m.push("\n
                            \n
                            \n ")}for(m.push("\n\n

                            "),m.push(this.T("Sounds")),m.push('

                            \n
                            \n
                            \n \n
                            \n
                            \n \n "),m.push(this.Icon("arrow-down")),m.push('\n
                            \n
                            \n
                            \n \n
                            \n\n \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,m.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/profile/out_of_office"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n\n
                            \n
                            \n
                            \n
                            \n

                            \n '),!0===this.localData.out_of_office?(e.push("\n "),e.push( this.Icon("status","ok inline"))):(e.push("\n "),e.push(this.Icon("status","error inline"))),e.push("\n "),e.push('

                            \n
                            \n
                            \n
                            \n
                            '),e.push(this.T("From")),e.push('
                            \n
                            \n
                            \n
                            \n
                            '),e.push(this.T("Till")),e.push('
                            \n
                            \n
                            \n
                            \n \n \n
                            \n
                            \n
                            '),e.push(this.Ti("Disable")),e.push('
                            \n
                            '),e.push(this.Ti("Enable")),e.push("
                            \n
                            \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/profile/password"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n
                            \n
                            \n
                            \n \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/profile/token_access"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('\n

                            "),s.push(this.T("You can generate a personal access token for each application you use that needs access to the Zammad API.")),s.push("

                            \n\n

                            "),s.push(this.T("Add a Personal Access Token")),s.push("

                            \n

                            "),s.push(this.T("Pick a name for the application, and we'll give you a unique token.")),s.push('

                            \n'),s.push(this.T("Create")),s.push("\n\n
                            \n\n

                            "),s.push(this.T("Personal Access Tokens")),s.push('

                            \n\n \n \n \n \n \n \n \n \n \n \n \n "),_.isEmpty(this.tokens))s.push('\n \n \n \n \n \n \n \n ");s.push("\n ")}s.push("\n \n
                            '),s.push(this.T("Name")),s.push(""),s.push(this.T("Permissions")),s.push(""),s.push(this.T("Created")),s.push(""),s.push(this.T("Expires")),s.push(""),s.push(this.T("Last used")),s.push(""),s.push(this.T("Delete")),s.push("
                            '),s.push(this.T("none")),s.push("\n ");else{for(s.push("\n "),t=0,e=(n=this.tokens).length;t\n "),s.push(r(i.label)),s.push(""),i.preferences&&i.preferences.permission&&s.push(r(i.preferences.permission.join(", "))),s.push(""),s.push(this.humanTime(i.created_at)),s.push(""),s.push(this.Tdate(i.expires_at)),s.push(""),s.push(this.humanTime(i.last_used_at)),s.push('\n
                            '),s.push(this.Icon("trash")),s.push("
                            \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/profile/token_access_create"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                            \n
                            \n \n
                            \n
                            \n
                            \n\n
                            \n
                            \n \n
                            \n
                            \n
                            \n\n
                            \n
                            \n '),t=0,e=(i=this.permissions).length;t\n \n
                            \n ")):(s.push('\n \n ")),s.push("\n ");s.push("\n
                            \n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/profile/token_access_created"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push("

                            "),e.push(this.T("For security reasons, the API token is shown only once. You'll need to save it somewhere secure before continuing.")),e.push('

                            \n\n
                            \n
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/reorder_modal"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push("
                            \n \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/report/download_button"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push(''),e.push(this.Icon("download")),e.push(""),e.push(this.T("Download %s record(s)",this.count)),e.push("\n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/report/download_content"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/report/download_header"]=function(t){t||(t={});var l=[],c=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;for(l.push('\n")}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/report/main"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n\n \n\n
                            \n
                            \n\n
                            \n
                            \n
                            \n\n
                            \n \n\n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/report/sidebar"]=function(t){t||(t={});var u=[],h=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p;for(i in u.push('
                            \n '),l=this.metrics){for(o=l[i],u.push('\n
                            \n \n \n '),u.push(this.T(o.display)),u.push('\n \n \n
                            \n
                            \n
                              \n '),e=0,s=(c=o.backend).length;e\n \n \n ");u.push("\n
                            \n
                            \n
                            \n
                            \n ")}for(u.push("\n
                            \n\n

                            "),u.push(this.T("Profiles")),u.push('

                            \n
                              \n '),n=0,r=(p=this.profiles).length;n\n \n \n ");u.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,u.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/report/time_picker"]=function(t){t||(t={});var d=[],f=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p,u,h;if(d.push('
                            \n '),"day"===this.params.timeRange){for(d.push('\n
                            \n '),t=0,r=(c=this.timeRangeDay).length;t'),d.push(f(e.display)),d.push("
                            \n ");d.push("\n
                            \n ")}if(d.push("\n\n "),"day"===this.params.timeRange||"month"===this.params.timeRange){for(d.push('\n
                            \n '),n=0,o=(p=this.timeRangeMonth).length;n'),d.push(f(e.display)),d.push("
                            \n ");d.push("\n \n ")}if(d.push("\n\n "),"week"===this.params.timeRange){for(d.push('\n
                            \n '),i=0,a=(u=this.timeRangeWeek).length;i'),d.push(f(e.display)),d.push("
                            \n ");d.push("\n \n ")}if(d.push("\n\n "),"realtime"!==this.params.timeRange){for(d.push('\n
                            \n '),s=0,l=(h=this.timeRangeYear).length;s'),d.push(f(e.display)),d.push("
                            \n ");d.push("\n \n ")}d.push("\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,d.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/report/time_range_picker"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            '),e.push(this.T("Year")),e.push('
                            \n
                            '),e.push(this.T("Month")),e.push('
                            \n
                            '),e.push(this.T("Week")),e.push('
                            \n
                            '),e.push(this.T("Day")),e.push('
                            \n
                            '),e.push(this.T("Real-time")),e.push("
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/search/index"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                            \n\n \n\n
                            \n
                            \n\n\n\n
                            \n')}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/session"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                            \n

                            '),s.push(this.T("Sessions")),s.push('

                            \n
                            \n
                            \n \n \n \n \n \n \n \n \n \n \n \n \n "),t=0,e=(n=this.sessions).length;t\n \n \n \n \n \n \n \n ");s.push("\n \n
                            '),s.push(this.T("User")),s.push(""),s.push(this.T("Browser")),s.push(""),s.push(this.T("Location")),s.push(""),s.push(this.T("Age")),s.push(""),s.push(this.T("Update")),s.push(""),s.push(this.T("Action")),s.push("
                            "),i.data.user&&s.push(r(i.data.user.displayName())),s.push(''),s.push(r(i.data.user_agent)),s.push(''),i.data.geo&&i.data.geo.country_name?(s.push(r(i.data.geo.country_name)),s.push(" "),s.push(r(i.data.geo.city_name))):s.push(r(i.data.remote_ip)),s.push(""),s.push(this.humanTime(i.created_at)),s.push(""),s.push(this.humanTime(i.updated_at)),s.push(''),s.push(this.Icon("trash")),s.push("
                            \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/settings/form"]=function(t){t||(t={});var s=[],e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                            \n
                            \n \n \n \n \n \n"),t=0,e=(n=this.settings).length;t\n \n
                            '),s.push(this.T("Title")),s.push('\n '),s.push(this.T("Value")),s.push('\n '),s.push(this.T("Description")),s.push("\n
                            "),s.push(this.T(i.title)),s.push('\n \n

                            '),s.push(this.RichText(i.description)),s.push("

                            \n");s.push('\n
                            \n
                            \n \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/settings/item"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n

                            '),e.push(this.T(this.setting.title)),e.push('

                            \n

                            '),e.push(this.T(this.setting.description)),e.push('

                            \n
                            \n
                            \n \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/settings/logo"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n

                            '),e.push(this.T(this.setting.title)),e.push("

                            \n

                            "),e.push(this.T(this.setting.description)),e.push('

                            \n
                            \n
                            \n \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/settings/proxy"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n

                            '),e.push(this.T(this.setting.title)),e.push('

                            \n

                            '),e.push(this.T("Proxy address.")),e.push('

                            \n
                            \n
                            \n \n
                            \n
                            \n

                            '),e.push(this.T("Username for proxy connection.")),e.push('

                            \n
                            \n
                            \n \n
                            \n
                            \n

                            '),e.push(this.T("Password for proxy connection.")),e.push('

                            \n
                            \n
                            \n \n
                            \n
                            \n

                            '),e.push(this.T("No proxy for the following hosts.")),e.push('

                            \n
                            \n
                            \n \n
                            \n
                            \n
                            \n \n \n
                            \n\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/settings/storage_provider"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n

                            '),e.push(this.T(this.setting.title)),e.push('

                            \n

                            '),e.push(this.T("You can switch between the backend for new attachments even on a system that is already in production without any loss of data.")),e.push('

                            \n

                            '),e.push(this.T("If you want to move already stored attachments from one backend to another, you need to execute the following via console.")),e.push('

                            \n

                            \n

                            '),e.push(this.T('Move all from "%s" to "%s"',"filesystem","database")),e.push(":

                            \n

                            \n \n rails> Store::File.move('File', 'DB')\n \n

                            "),e.push(this.T('Move all from "%s" to "%s"',"database","filesystem")),e.push(':

                            \n

                            \n \n rails> Store::File.move(\'DB\', \'File\')\n \n
                            \n
                            \n
                            \n
                            \n \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/settings/switch"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('\n
                            \n

                            '),s.push(this.T.apply(this,[this.setting.description].concat(this.setting.preferences.description_i18n))),s.push("

                            \n "),t=0,e=(i=this.subSetting).length;t\n
                            \n
                            \n \n
                            \n \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/settings/ticket_auto_assignment"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n
                            \n
                            \n

                            '),e.push(this.T("Enable automatic assignment the first time an agent opens a ticket.")),e.push("

                            \n

                            "),e.push(this.T("Tickets are only assigned automatically if they do not already have an owner.")),e.push('

                            \n
                            \n

                            '),e.push(this.T('Define an exception of "automatic assignment" for certain users (e.g. executives).')),e.push('

                            \n
                            \n \n \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function( ){this.JST||(this.JST={}),this.JST["app/views/settings/ticket_hook_position"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n

                            '),e.push(this.T(this.setting.title)),e.push('

                            \n

                            '),e.push(this.T("The format of the subject.")),e.push("

                            \n
                              \n
                            • "),e.push(this.T("|Right| means |Some Subject [Ticket#12345]|")),e.push("\n
                            • "),e.push(this.T("|Left| means |[Ticket#12345] Some Subject|")),e.push("\n
                            • "),e.push(this.T('|None| means |Some Subject| (without ticket number), in which case you should enable "postmaster___follow___up___search___in" to recognize follow-ups based on email headers and/or body.')),e.push('\n
                            \n
                            \n
                            \n \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/settings/ticket_number"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n

                            '),e.push(this.T(this.setting.title)),e.push('

                            \n

                            \n '),e.push(this.T("Selects the ticket number generator module.")),e.push("\n

                              \n
                            • "),e.push(this.T('|Increment| increases the ticket number. The SystemID and the counter are used with "SystemID.Counter" format (e.g. 1010138, 1010139).')),e.push("\n
                            • "),e.push(this.T('With |Date| the ticket numbers will be generated by the current date, the SystemID, and the counter. The format will be "Year.Month.Day.SystemID.Counter" (e.g. 201206231010138, 201206231010139).')),e.push('\n
                            \n
                            \n
                            \n
                            \n
                            \n \n
                            \n
                            \n
                            \n \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/settings/ticket_number_date"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/settings/ticket_number_increment"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/signup"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/signup/verify"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/sla/index"]=function(t){t||(t={});var l=[],c=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;for(l.push('\n\n
                            \n '),_.isEmpty(this.slas)&&(l.push('\n
                            \n '),l.push(this.description),l.push("\n
                            \n ")),l.push("\n\n "),t=0,n=(s=this.slas).length;t\n
                            \n
                            \n

                            '),l.push(c(a.name)),l.push('

                            \n
                            \n
                            \n
                            '),l.push(this.T("Filter")),l.push("
                            \n "),e=0,i=(r=a.rules).length;e\n ");l.push("\n
                            \n "),l.push(this.Icon("arrow-right","action-flow-icon")),l.push('\n
                            \n
                            '),l.push(this.T("Escalation Times")),l.push("
                            \n "),a.first_response_time&&(l.push("\n "),l.push(this.time_duration_hh_mm(a.first_response_time)),l.push(" "),l.push(this.T("hours")),l.push(" - "),l.push(this.T("First Response Time")),l.push("\n ")),l.push("\n "),a.response_time&&(l.push("\n
                            \n "),l.push(this.time_duration_hh_mm(a.response_time)),l.push(" "),l.push(this.T("hours")),l.push(" - "),l.push(this.T("Update Time")),l.push(" ("),l.push(this.T("for an agent to respond")),l.push(")\n ")),l.push("\n "),a.update_time&&(l.push("\n
                            \n "),l.push(this.time_duration_hh_mm(a.update_time)),l.push(" "),l.push(this.T("hours")),l.push(" - "),l.push(this.T("Update Time")),l.push(" ("),l.push(this.T("between agent updates")),l.push(")\n ")),l.push("\n "),a.solution_time&&(l.push("\n
                            \n "),l.push(this.time_duration_hh_mm(a.solution_time)),l.push(" "),l.push(this.T("hours")),l.push(" - "),l.push(this.T("Solution Time")),l.push("\n ")),l.push('\n
                            \n
                            \n
                            \n
                            \n
                            '),l.push(this.T("Calendar")),l.push("
                            \n "),l.push(c(a.calendar.displayName())),l.push('\n
                            \n
                            \n
                            '),l.push(this.T("Delete")),l.push('
                            \n
                            '),l.push(this.T("Edit")),l.push("
                            \n
                            \n
                            \n ")}l.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/tag/edit"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/tag/index"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n
                            \n\n
                            \n
                            \n
                            \n \n \n
                            \n

                            '),e.push(this.T("New Tags")),e.push("

                            \n
                            \n

                            \u26a0 "),e.push(this.T("Allow users to add new tags.")),e.push('

                            \n
                            \n\n
                            \n

                            '),e.push(this.T("Manage Tags")),e.push('

                            \n
                            \n
                            \n \n
                            \n \n
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/tag/table"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('\n \n \n \n \n \n \n \n \n "),t=0,n=(i=this.list).length;t\n \n \n \n \n ");s.push("\n \n
                            '),s.push(this.T("Name")),s.push(""),s.push(this.T("Count")),s.push(""),s.push(this.T("Action")),s.push("
                            '),s.push(r(e.name)),s.push(''),s.push(this.Icon("trash")),s.push("
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/telegram/bot_add"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n

                            \n '),e.push(this.T("You can find a tutorial on how to manage a %s in our online documentation %l.","Telegram Bot","https://admin-docs.zammad.org/en/latest/channels/telegram.html")),e.push("\n

                            \n
                            \n

                            "),e.push(this.T("Enter your %s App Keys","Telegram")),e.push('

                            \n
                            \n
                            \n \n
                            \n
                            \n \n
                            \n
                            \n

                            '),e.push(this.T("Settings")),e.push('

                            \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')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/telegram/bot_edit"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n
                            \n

                            '),e.push(this.T("Enter your %s App Keys","Telegram")),e.push('

                            \n
                            \n
                            \n \n
                            \n
                            \n \n
                            \n
                            \n

                            '),e.push(this.T("Settings")),e.push('

                            \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')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/telegram/index"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('\n\n
                            \n\n'),_.isEmpty(this.channels))s.push('\n
                            \n

                            '),s.push(this.T("You have no configured %s right now.","Telegram Bot")),s.push("

                            \n
                            \n");else{for(s.push("\n\n"),e=0,n=(i=this.channels).length;e\n
                            \n

                            '),s.push(this.Icon("status","supergood-color inline")),s.push(" "),s.push(r(t.options.bot.first_name)),s.push(' @'),s.push(r(t.options.bot.username)),s.push('

                            \n
                            \n
                            \n
                            \n

                            '),s.push(this.T("Messages")),s.push("

                            \n @"),s.push(r(t.options.bot.username)),s.push("\n
                            \n "),s.push(this.Icon("arrow-right","action-flow-icon")),s.push('\n
                            \n

                            '),s.push(this.T("Group")),s.push("

                            \n "),t.options&&(s.push("\n "),s.push(r(t.options.groupName)),s.push("\n ")),s.push('\n
                            \n
                            \n
                            \n
                            '),s.push(this.T("Delete")),s.push("
                            \n "),!0===t.active?(s.push('\n
                            '),s.push(this.T("Disable"))):(s.push('\n
                            '),s.push(this.T("Enable"))),s.push("
                            \n "),s.push('\n
                            '),s.push(this.T("Edit")),s.push("
                            \n
                            \n
                            \n");s.push("\n
                            \n")}}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_overview/batch_dragger"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n\t
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_overview/batch_overlay"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n '),e.push(this.T("drag here to cancel")),e.push('\n
                            \n
                            \n
                            '),e.push(this.T("run macro").split(" ").join("
                            ")),e.push("
                            \n "),e.push(this.Icon("arrow-up")),e.push('\n
                            \n
                            \n '),e.push(this.Icon("arrow-down")),e.push('\n
                            '),e.push(this.T("assign tickets").split(" ").join("
                            ")),e.push('
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_overview/batch_overlay_macro"]=function(t){t||(t={});var r=[],o=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s;for(r.push('
                            \n'),e=20\n
                            '),r.push(o(i.name)),r.push("
                            \n
                            \n");r.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,r.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_overview/batch_overlay_user_group"]=function(t){t||(t={});var l=[],c=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;for(e=0,i=(r=this.users).length;e\n
                            '),l.push(a.avatar(80)),l.push('
                            \n
                            '),l.push(a.displayName()),l.push("
                            \n\n");for(l.push("\n"),n=0,s=(o=this.groups).length;n\n\t
                            '),l.push(t.avatar(80)),l.push('
                            \n
                            '),l.push(t.displayName()),l.push('
                            \n
                            '),l.push(this.T("%s people",t.valid_users_count)),l.push("
                            \n\n");l.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_overview/index"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n\n
                            \n
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){var n,i=function(t,e){return function(){return t.apply(e,arguments)}},s=function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},r={}.hasOwnProperty;App.TicketSharedDraftModal=function(t){function e(t){this.attachmentsImported=i(this.attachmentsImported,this),this.contentView=new n({shared_draft:t.shared_draft}),e.__super__.constructor.apply(this,arguments),this.shared_draft.constructor.needsLoading&&this.load(),this.controllerBind(this.importCallbackName(),this.attachmentsImported)}return s(e,t),e.prototype.head=__("Apply Shared Draft"),e.prototype.events={"click .js-delete":"onDelete"},e.prototype.buttonClose=!0,e.prototype.buttonCancel=!0,e.prototype.buttonSubmit="Apply",e.prototype.leftButtons=[{text:"Delete",className:"js-delete"}],e.prototype.content=function(){return this.contentView.el},e.prototype.importCallbackName=function(){return"import_attachments_done-"+this.controllerId},e.prototype.load=function(){return this.startLoading(),this.ajax({id:"shared_draft_"+this.shared_draft.id,type:"GET",url:this.apiPath+"/tickets/shared_drafts/"+this.shared_draft.id,processData:!0,success:(e=this,function(t){return App.Collection.loadAssets(t.assets),e.shared_draft_content=t.shared_draft_content,e.contentView.loadContent(e.shared_draft_content),e.stopLoading()}),error:(t=this,function(){return t.stopLoading()})});var t,e},e.prototype.onSubmit=function(){return this.hasChanges?new App.TicketSharedDraftOverwriteModal({head:__("Apply Draft"),message:__("There is existing content. Do you want to overwrite it?"),onSaveDraft:(t=this,function(){return t.disable(!0),t.applyAttachments()})}):(this.disable(!0),void this.applyAttachments());var t},e.prototype.attachmentsImported=function(t){if(t.success)return this.applyMeta(t),this.cancel();this.disable(!1)},e.prototype.disable=function(t){return this.el.find(".js-submit").attr("disabled",t)},e.prototype.applyAttachments=function(){switch(this.shared_draft.constructor){case App.TicketSharedDraftZoom:return App.Event.trigger("ui::ticket::import_draft_attachments",{shared_draft_id:this.shared_draft.id,ticket_id:this.parent.ticket_id,callbackName:this.importCallbackName()});case App.TicketSharedDraftStart:return App.Event.trigger("ticket_create_import_draft_attachments",{shared_draft_id:this.shared_draft.id,callbackName:this.importCallbackName()})}},e.prototype.applyMeta=function(t){var e,n;switch(this.shared_draft.constructor){case App.TicketSharedDraftZoom:return this.parent.$(".article-add"),n=this.shared_draft.new_article,App.Event.trigger("ui::ticket::setArticleType",{ticket:{id:this.parent.ticket_id},type:{name:n.type},article:n,nofocus:!0,shared_draft_id:this.shared_draft.id}),App.Event.trigger("ui::ticket::load",{ticket_id:this.parent.ticket_id,draft:this.shared_draft.ticket_attributes});case App.TicketSharedDraftStart:return(e=_.clone(this.shared_draft_content)).group_id=this.shared_draft.group_id,e.attachments=t.attachments,App.Event.trigger("ticket_create_rerender",{options:e,shared_draft_id:this.shared_draft.id})}},e.prototype.onDelete=function(t){var n;return t.preventDefault(),n=this,new App.ControllerModal({container:this.container,buttonClose:!0,buttonCancel:!0,buttonSubmit:__("Yes"),buttonClass:"btn--danger",head:__("Are you sure?"),small:!0,content:function(){return App.i18n.translateContent("Do you really want to delete this draft?")},onSubmit:function(){switch(this.startLoading(),n.shared_draft.constructor){case App.TicketSharedDraftZoom:return this.ajax({id:"ticket_shared_draft_delete",type:"DELETE",url:this.apiPath+"/tickets/"+n.parent.ticket_id+"/shared_draft",success:(e=this,function(){return e.stopLoading(),e.cancel(),n.cancel(),n.shared_draft.remove({clear:!0}),n.parent.draftFetched()})});case App.TicketSharedDraftStart:return this.ajax({id:"ticket_shared_draft_delete",type:"DELETE",url:this.apiPath+"/tickets/shared_drafts/"+n.shared_draft.id,success:(t=this,function(){return t.stopLoading(),t.cancel(),n.cancel(),n.shared_draft.remove({clear:!0}),n.parent.render()})})}var t,e}})},e}(App.ControllerModal),n=function(t){function e(){this.loadContent=i(this.loadContent,this),e.__super__.constructor.apply(this,arguments),this.render()}return s(e,t),e.prototype.body=function(){var t;switch(this.shared_draft.constructor){case App.TicketSharedDraftZoom:return this.shared_draft.new_article.body;case App.TicketSharedDraftStart:return null!=(t=this.shared_draft_content)?t.body:void 0}},e.prototype.author=function(){return App.User.find(this.shared_draft.updated_by_id)},e.prototype.timestamp=function(){return new Date(this.shared_draft.updated_at)},e.prototype.loadContent=function(t){return this.shared_draft_content=t,this.render()},e.prototype.render=function(){return this.html(App.view("ticket_shared_draft_modal")({body:this.body(),name:this.author().displayName(),timestamp:this.timestamp()})),new App.WidgetAvatar({el:this.$(".js-avatar"),object_id:this.shared_draft.updated_by_id,size:40})},e}(App.Controller)}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_shared_draft_modal"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push( '
                            \n
                            \n \n
                            \n \n '),e.push(n(this.name)),e.push("\n
                            \n
                            \n\n
                            \n \n
                            \n "),e.push(this.humanTime(this.timestamp)),e.push("\n
                            \n
                            \n
                            \n\n
                            \n\n\n
                            \n "),e.push(this.body),e.push("\n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.TicketSharedDraftOverwriteModal=function(t){function e(){return this.post=n(this.post,this),this.showDraft=n(this.showDraft,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.head=__("Save Draft"),e.prototype.message=__("There is an existing draft. Do you want to overwrite it?"),e.prototype.buttonCancel=!0,e.prototype.buttonSubmit=__("Overwrite Draft"),e.prototype.buttonClass="btn--danger",e.prototype.onShowDraft=null,e.prototype.onSaveDraft=null,e.prototype.showDraft=function(t){return t.preventDefault(),this.cancel(),this.onShowDraft(t)},e.prototype.onSubmit=function(){return this.onSaveDraft(),this.close()},e.prototype.post=function(){var t;if(this.onShowDraft)return(t=$("
                            "+App.Utils.icon("note")+" "+__("Show Draft")+"
                            ")).click(this.showDraft),this.el.find(".modal-rightFooter").prepend(t)},e}(App.ControllerModal)}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n '),e.push(this.C("ticket_hook")),e.push(' '),e.push(this.ticket.number),e.push('\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
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/article_new"]=function(t){t||(t={});var l=[],c=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;if(l.push('
                            \n \n \n \n \n \n \n
                            \n
                            \n \n ");for(l.push('\n
                            \n \n ");l.push("\n \n ")}l.push("\n \n "),this.internalSelector&&(l.push('\n \n ")),l.push('\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
                            \n \n
                            '),l.push(this.Icon("lock-open","btn-inactive-icon")),l.push(this.Icon("lock","btn-active-icon")),l.push(this.T("Encrypt")),l.push('
                            \n
                            \n \n
                            '),l.push(this.Icon("not-signed","btn-inactive-icon")),l.push(this.Icon("signed","btn-active-icon")),l.push(this.T("Sign")),l.push('
                            \n
                            \n
                            \n
                            \n\n
                            \n
                            \n
                            '),l.push(this.article.body),l.push('
                            \n \n \n
                            \n
                            \n
                            \n '),l.push(this.T("Enter Note or")),l.push('\n \n '),a=_.uniqueId("fileUpload_"),l.push('\n \n \n \n
                            \n
                            \n
                            \n
                            \n '),l.push(this.T("Uploading")),l.push(' (0%) ...\n
                            \n
                            \n '),l.push(this.Icon("diagonal-cross")),l.push(this.T("Cancel Upload")),l.push('\n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n '),l.push(this.T("Drop files here")),l.push("\n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/article_view"]=function(t){t||(t={});var tt=[],et=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p,u,h,d,f,m,g,v,b,y,_,w,k,T,A,S,C,x,j,I,P,D,E,M,O,N,R,z,L,$,B,U,F,q,G,J,W,H,K,V,Y,Z,X,Q;if(tt.push('\n\n
                            \n '),"Agent"!==this.article.sender.name?(tt.push("\n "),"left"):(tt.push("\n "),"right"),tt.push("\n "),tt.push('\n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            '),tt.push(this.article.html),tt.push('
                            \n
                            \n
                            '),tt.push(this.T("See more")),tt.push("
                            \n
                            \n
                            \n "),tt.push(this.attachments),tt.push('\n
                            \n
                            \n
                            \n
                            \n\n\n
                            \n\n'),tt.push(this.humanTime(this.article.created_at)),tt.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,tt.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/article_view_actions"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                            \n '),e=0,n=(i=this.actions).length;e\n '),s.push(this.Icon(t.icon,"article-action-icon")),s.push(''),s.push(this.T(t.name)),s.push("\n \n ");s.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/article_view_delivery_failed"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n
                            \n
                            \n '),e.push(this.T("Delivery failed")),e.push(': "'),e.push(n(this.article.body)),e.push('"\n
                            \n
                            \n\n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/article_view_system"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n"'),e.push(n(this.article.subject)),e.push('" -> "'),e.push(n(this.article.to)),e.push('"\n
                            \n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/attribute_bar"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(s.push('\n\n\n\n
                            \n \n \n\n \n '),s.push(this.Icon("note")),s.push('\n \n \n\n \n '),s.push(this.Icon("reload")),s.push("\n "),s.push(this.T("Sharing draft\u2026")),s.push('\n \n
                            \n\n
                            \n\n
                            '),s.push(this.T("Discard your unsaved changes.")),s.push('
                            \n\n
                            \n'),this.macroDisabled&&this.sharedDraftsDisabled)s.push('\n \n");else{if(s.push('\n \n")}s.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/highlighter"]=function(t){t||(t={});var r=[],o=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s;for(r.push('
                            \n '),r.push(this.Icon("marker","js-highlight-icon")),r.push('\n
                            \n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,r.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/meta"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n '),e.push(this.C("ticket_hook")),e.push(''),e.push(n(this.ticket.number)),e.push("\n - "),e.push(this.T("created")),e.push(" "),e.push(this.humanTime(this.ticket.created_at)),e.push("\n\n"),this.isCustomer||(e.push("\n "),this.ticket.escalation_at&&(e.push(' - '),e.push(this.T("escalation")),e.push(" "),e.push(this.humanTime(this.ticket.escalation_at,!0,"",!1))),e.push("\n")),e.push("\n\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/overview_navigator"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n '),e.push(n(this.current_position)),e.push('/'),e.push(n(this.total_count)),e.push('\n
                            \n\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/setting"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n '),e.push(this.Icon("cog","dropdown-icon")),e.push("\n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/sidebar_article_attachment"]=function(t){t||(t={});var r=[],o=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s;for(r.push('
                            \n '),n=0,i=(s=this.ticketAttachments).length;n\n
                            \n '),t&&this.ContentTypeIcon(t)?(r.push("\n "), this.canPreview(t)?(r.push('\n \n ')):(r.push("\n "),r.push(this.Icon(this.ContentTypeIcon(t))),r.push("\n "))):(r.push("\n "),r.push(this.Icon("file-unknown"))),r.push("\n "),r.push('\n
                            \n '),r.push(o(e.attachment.filename)),r.push('\n
                            '),r.push(this.humanTime(e.article.created_at)),r.push(" ("),r.push(this.humanFileSize(e.attachment.size)),r.push(")
                            \n \n ");r.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,r.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/sidebar_git_issue"]=function(t){t||(t={});var l=[],c=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;for(t=0,s=(o=this.issues).length;t\n \n '),l.push(this.Icon("diagonal-cross")),l.push('\n \n \n \n ")),l.push("\n "),0\n \n "),n=0,r=(a=e.labels).length;n'),l.push(c(i.title)),l.push(" ");l.push("\n \n ")}l.push('\n \n
                            \n')}l.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/sidebar_idoit"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(t=0,e=(i=this.objects).length;t\n \n '),s.push(r(n.title)),s.push("
                            \n "),s.push(this.T("Status")),s.push(": "),s.push(r(n.cmdb_status_title)),s.push("
                            \n "),s.push(this.T("Type")),s.push(": "),s.push(r(n.type_title)),s.push("
                            \n \n");s.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/sidebar_ticket"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n
                            \n\n\n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/time_accounting"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/time_unit"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push("
                            \n \n
                            "),e.push(n(this.ticket.time_unit)),e.push("
                            \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/ticket_zoom/title"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            '),e.push(n(this.object.title||"-")),e.push("
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/time_accounting/by_customer"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(this.rows.length){for(s.push('\n\n \n \n \n \n "),t=0,e=(n=this.rows).length;t\n \n
                            '),s.push(this.T("Customer")),s.push("\n "),s.push(this.T("Organization")),s.push("\n "),s.push(this.T("Time Units")),s.push("\n
                            '),s.push(r(i.customer.email)),s.push("\n "),i.organization&&s.push(r(i.organization.name)),s.push("\n "),s.push(r(i.time_unit)),s.push("\n ");s.push("\n
                            \n\n")}else s.push('\n \n
                            '),s.push(this.T("No Entries")),s.push("\n
                            \n");s.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/time_accounting/by_organization"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(this.rows.length){for(s.push('\n\n \n \n \n \n "),t=0,e=(n=this.rows).length;t\n \n
                            '),s.push(this.T("Organization")),s.push("\n "),s.push(this.T("Time Units")),s.push("\n
                            '),s.push(r(i.organization.name)),s.push("\n "),s.push(r(i.time_unit)),s.push("\n ");s.push("\n
                            \n\n")}else s.push('\n \n
                            '),s.push(this.T("No Entries")),s.push("\n
                            \n");s.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/time_accounting/by_ticket"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;if(this.rows.length){for(s.push('\n\n \n \n \n \n "),t=0,e=(n=this.rows).length;t\n \n
                            '),s.push(this.T("Ticket#")),s.push("\n "),s.push(this.T("Title")),s.push("\n "),s.push(this.T("Customer")),s.push("\n "),s.push(this.T("Organization")),s.push("\n "),s.push(this.T("Agent")),s.push("\n "),s.push(this.T("Time Units")),s.push("\n "),s.push(this.T("Time Units Total")),s.push("\n "),s.push(this.T("Created At")),s.push("\n "),s.push(this.T("Closed At")),s.push("\n
                            '),s.push(r(i.ticket.number)),s.push('\n '),s.push(r(i.ticket.title||"-")),s.push("\n "),s.push(r(i.customer)),s.push("\n "),s.push(r(i.organization)),s.push("\n "),s.push(r(i.agent)),s.push("\n "),s.push(r(i.time_unit)),s.push("\n "),s.push(r(i.ticket.time_unit)),s.push("\n "),s.push(this.humanTime(i.ticket.created_at)),s.push("\n "),s.push(this.humanTime(i.ticket.close_at)),s.push("\n ");s.push("\n
                            \n\n")}else s.push('\n \n
                            '),s.push(this.T("No Entries")),s.push("\n
                            \n");s.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/time_accounting/index"]=function(t){t||(t={});var a=[],l=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o;for(a.push('\n
                            \n\n
                            \n
                            \n

                            '),a.push(this.T("Selector")),a.push("

                            \n
                            \n

                            "),a.push(this.T("Enable time accounting for following matching tickets.")),a.push('

                            \n
                            \n \n \n
                            \n\n
                            \n\n

                            '),a.push(this.T("Overviews")),a.push('

                            \n
                            \n
                            \n '),t=0,i=(r=this.timeRangeYear).length;t'),a.push(l(e.display)),a.push("
                            \n ");for(a.push('\n
                            \n\n
                            \n '),n=0,s=(o=this.timeRangeMonth).length;n'),a.push(l(e.display)),a.push("
                            \n ");a.push("\n
                            \n
                            \n

                            "),a.push(this.T("Ticket")),a.push(' '),a.push(this.Icon("download")),a.push('

                            \n
                            \n
                            \n

                            '),a.push(this.T("Customer")),a.push(' '),a.push(this.Icon("download")),a.push('

                            \n
                            \n
                            \n

                            '),a.push(this.T("Organization")),a.push(' '),a.push(this.Icon("download")),a.push('

                            \n
                            \n \n\n\n')}).call(this)}.call(t),t.safe=e,t.escape=n,a.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/translation/index"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n
                            \n\n
                            \n

                            '),e.push(this.T("Contributing Translations")),e.push("

                            \n

                            "),e.push(this.T('Starting with Zammad 5.1, translations can be contributed exclusively via "translations.zammad.org" %l.',"https://translations.zammad.org")),e.push("

                            \n

                            \n "),e.push(this.T("While it will be no longer possible to directly push changed translations from Zammad, they can be contributed in a very convenient user interface based on Weblate.")),e.push('\n

                            \n
                            \n\n
                            \n

                            '),e.push(this.T("Inline translation")),e.push("

                            \n

                            "),e.push(this.T('To make translations easier you can enable and disable the inline translation feature by pressing "%s".',"ctrl+alt+t")),e.push("

                            \n

                            "),e.push(this.T("Text with disabled inline translations looks like")),e.push('\u2002

                            \n

                            "),e.push(this.T("Text with enabled inline translations looks like")),e.push('\u2002

                            \n

                            "),e.push(this.T("Just click into the highlighted area and update the words right there. Enjoy!")),e.push("

                            \n

                            "),e.push(this.T("If you want to translate it via the translation table, just go ahead below.")),e.push('

                            \n
                            \n\n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/translation/list"]=function(t){t||(t={});var c=[],p=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l;for(c.push("

                            "),c.push(this.T("Date & Time")),c.push('

                            \n\n \n \n \n \n \n \n \n \n \n "),e=0,s=(o=this.times).length;e\n \n
                            '),c.push(this.T("Type")),c.push(''),c.push(this.T("Target")),c.push(''),c.push(this.T("Original")),c.push(''),c.push(this.T("Action")),c.push("
                            '),c.push(p(l[1])),c.push('\n \n '),c.push(p(l[3])),c.push('\n '),c.push(this.T("Reset")),c.push("\n ");for(c.push("\n
                            \n\n

                            "),c.push(this.T("Words")),c.push('

                            \n\n \n \n \n \n \n \n \n \n \n "),i=0,r=(a=this.strings).length;i\n \n
                            '),c.push(this.T("Source")),c.push(''),c.push(this.T("Target")),c.push(''),c.push(this.T("Original")),c.push(''),c.push(this.T("Action")),c.push("
                            '),c.push(p(n[1])),c.push('\n \n '),c.push(p(n[3])),c.push('\n '),c.push(this.T("Reset")),c.push("\n ");c.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,c.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/translation/support"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push("

                            \n "),this.percent<80&&(e.push("\n "),e.push(this.T("Only %s% of this language is already translated. Please help to improve Zammad and complete the translation.",this.percent)),e.push("\n ")),e.push("\n "),80<=this.percent&&(e.push("\n "),e.push(this.T("Up to %s% of this language is already translated. Please help to make Zammad even better and complete the translation.",this.percent)),e.push("\n ")),e.push("\n

                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/translation/todo"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push("

                            "),s.push(this.T("Words")),s.push(": "),s.push(this.T("not translated")),s.push('

                            \n\n \n \n \n \n \n \n \n \n "),t=0,n=(i=this.list).length;t\n \n
                            '),s.push(this.T("Source")),s.push(''),s.push(this.T("Target")),s.push(''),s.push(this.T("Action")),s.push("
                            '),s.push(r(e[1])),s.push('\n \n '),s.push(this.T("Create")),s.push(' / '),s.push(this.T("is the same")),s.push("\n ");s.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/twitter/account_edit"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n
                            \n\n

                            '),e.push(this.T("Search Terms")),e.push('

                            \n

                            '),e.push(this.T("Tweets containing search terms are automatically turned into tickets.")),e.push('

                            \n\n \n \n \n \n \n \n \n \n \n \n
                            '),e.push(this.T("Search Term")),e.push("\n "),e.push(this.T("Group")),e.push("\n "),e.push(this.T("Action")),e.push('\n
                            \n '),e.push(this.T("Empty")),e.push('\n
                            \n '),e.push(this.Icon("plus-small")),e.push("\n
                            \n\n

                            "),e.push(this.T("Mentions Group")),e.push('

                            \n

                            '),e.push(this.T("Choose the group to which mentions will get added.")),e.push('

                            \n
                            \n\n

                            '),e.push(this.T("Direct Messages Group")),e.push('

                            \n

                            '),e.push(this.T("Choose the group to which direct messages will get added.")),e.push('

                            \n
                            \n\n

                            '),e.push(this.T("Retweets")),e.push('

                            \n

                            '),e.push(this.T("Choose if retweets should also be converted to tickets.")),e.push('

                            \n "),e.push(this.T("Track retweets")),e.push('\n \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/twitter/app_config"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n

                            \n '),e.push(this.T("You can find a tutorial on how to manage a %s in our online documentation %l.","Twitter App","https://admin-docs.zammad.org/en/latest/channels/twitter.html")),e.push("\n

                            \n
                            \n

                            "),e.push(this.T("Enter your %s App Keys","Twitter")),e.push('

                            \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 \n
                            \n
                            \n \n
                            \n
                            \n
                            \n
                            \n \n
                            \n
                            \n \n
                            \n
                            \n

                            '),e.push(this.T("Your callback URL")),e.push('

                            \n
                            \n
                            \n \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/twitter/index"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n\n
                            \n
                            \n

                            '),e.push(this.T("You can connect %s with Zammad. But first, you will have to connect your Zammad with %s.","Twitter Accounts","Twitter")),e.push('

                            \n
                            '),e.push(this.T("Connect Twitter App")),e.push("
                            \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/twitter/list"]=function(t){t||(t={});var u=[],h=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p;for(u.push('\n\n"),this.external_credential&&this.external_credential.credentials&&!this.external_credential.credentials.webhook_id&&(u.push('\n \n")),u.push('\n\n
                            \n'),e=0,s=(a=this.channels).length;e\n
                            \n

                            '),u.push(this.Icon("status","supergood-color inline")),u.push(" "),u.push(h(t.options.user.name)),u.push(' @'),u.push(h(t.options.user.screen_name)),u.push("

                            \n
                            \n\n "),this.external_credential&&this.external_credential.credentials&&this.external_credential.credentials.webhook_id&&t.options&&t.options.subscribed_to_webhook_id!==this.external_credential.credentials.webhook_id&&(u.push('\n \n ")),u.push('\n\n
                            \n
                            \n

                            '),u.push(this.T("Search Terms")),u.push("

                            \n "),t.options.sync.search){for(u.push("\n "),n=0,r=( l=t.options.sync.search).length;n\n ");u.push("\n ")}if(u.push("\n
                            \n "),u.push(this.Icon("arrow-right","action-flow-icon")),u.push('\n
                            \n

                            '),u.push(this.T("Group")),u.push("

                            \n "),t.options.sync.search){for(u.push("\n "),i=0,o=(c=t.options.sync.search).length;i\n ");u.push("\n ")}u.push('\n
                            \n
                            \n
                            \n
                            \n

                            '),u.push(this.T("Mentions")),u.push("

                            \n @"),u.push(h(t.options.user.screen_name)),u.push("\n
                            \n "),u.push(this.Icon("arrow-right","action-flow-icon")),u.push('\n
                            \n

                            '),u.push(this.T("Group")),u.push("

                            \n "),t.options.sync.mentions&&(u.push("\n "),u.push(h(t.options.sync.mentions.groupName)),u.push("\n ")),u.push('\n
                            \n
                            \n
                            \n
                            \n

                            '),u.push(this.T("Direct Messages")),u.push("

                            \n @"),u.push(h(t.options.user.screen_name)),u.push("\n
                            \n "),u.push(this.Icon("arrow-right","action-flow-icon")),u.push('\n
                            \n

                            '),u.push(this.T("Group")),u.push("

                            \n "),t.options.sync.direct_messages&&(u.push("\n "),u.push(h(t.options.sync.direct_messages.groupName)),u.push("\n ")),u.push('\n
                            \n
                            \n
                            \n
                            \n

                            '),u.push(this.T("Retweets")),u.push("

                            \n "),t.options.sync.track_retweets&&(u.push("\n "),u.push(this.T("Retweets are converted into tickets.")),u.push("\n "),u.push(this.T("Conversion of retweets into tickets is turned off."))),u.push("\n "),u.push('\n
                            \n
                            \n
                            \n
                            '),u.push(this.T("Delete")),u.push("
                            \n "),!0===t.active?(u.push('\n
                            '),u.push(this.T("Disable"))):(u.push('\n
                            '),u.push(this.T("Enable"))),u.push("
                            \n "),u.push('\n
                            '),u.push(this.T("Edit")),u.push("
                            \n
                            \n
                            \n")}u.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,u.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/twitter/search_term"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n \n
                            \n \n
                            \n '),e.push(this.Icon("trash")),e.push(" "),e.push(this.T("Remove")),e.push("\n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/user"]=function(t){t||(t={});var l=[],c=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;if(l.push('\n
                            \n
                            \n \n '),l.push(this.Icon("magnifier")),l.push('\n
                            \n\n
                            \n
                            '),l.push(this.T("Roles")),l.push(':
                            \n
                            \n '),n=0,s=(o=this.roles).length;n'),l.push(this.T(a.displayName())),l.push("
                            \n ");l.push('\n
                            \n
                            \n\n
                            \n\n')}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/user_profile/index"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n
                            \n
                            \n '),this.user.organization&&e.push('\n
                            \n '),e.push('\n
                            \n
                            \n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/user_profile/name"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push(this.user.avatar("80")),e.push("\n

                            "),e.push(n(this.user.displayName())),e.push("

                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/user_profile/object"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                            \n '),t=0,e=(n=this.userData).length;t\n \n
                            '),s.push(this.user[i.name]),s.push("
                            \n
                            \n ")):(s.push("\n "),this.user[i.name]&&(s.push('\n
                            \n \n "),s.push(this.P(this.user,i.name)),s.push("\n
                            \n ")),s.push("\n ")),s.push("\n ");s.push("\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/user_profile/organization"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push(''),e.push(n(this.organization.displayName())),e.push("\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/version"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n

                            '),e.push(this.T("Version")),e.push('

                            \n
                            \n
                            \n

                            \n '),e.push(this.T("This is Zammad version %s",this.version)),e.push("\n

                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.KnowledgeBaseVerticalForm=function(t){function e(){e.__super__.constructor.apply(this,arguments),this.form.form.addClass("controls"),this.render()}return n(e,t),e.prototype.elements={".form-item":"container"},e.prototype.render=function(){var t,e;return e=this.form.attributes[0].name,t=_.find(App.Model.attributesGet(!1,this.form.model.configure_attributes),function(t){return t.name===e}),this.html(App.view("knowledge_base/vertical_form")({attribute:t})),this.container.html(this.form.form)},e}(App.Controller)}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/button_with_dropdown"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('\n\n \n \n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/http_log"]=function(t){t||(t={});var l=[],c=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a;if(l.push("
                            \n

                            "),l.push(this.T("Recent Logs")),l.push("

                            \n"),this.description){for(l.push("\n "),t=0,i=(o=this.description).length;t"),l.push(this.T.apply(this,e)),l.push("

                            \n ");l.push("\n")}if(l.push('\n
                            \n'),this.records.length){for(l.push('\n \n \n \n \n \n"),n=0,s=(a=this.records).length;n\n \n
                            '),l.push(this.T("Direction")),l.push("\n "),l.push(this.T("Request")),l.push('\n '),l.push(this.T("Created at")),l.push("\n
                            '),l.push(this.T(r.direction)),l.push('\n '),l.push(c(r.status)),l.push(" "),l.push(c(r.method)),l.push(" "),l.push(c(r.url)),l.push("\n "),l.push(this.humanTime(r.created_at)),l.push("\n");l.push("\n
                            \n")}else l.push('\n\n
                            '),l.push(this.T("No Entries")),l.push("\n
                            \n");l.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,l.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/http_log_show"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n \n \n \n \n \n \n \n \n \n \n
                            '),e.push(this.T("Direction")),e.push("\n "),e.push(this.T(this.record.direction)),e.push("\n
                            "),e.push(this.T("URL")),e.push("\n "),e.push(n(this.record.url)),e.push("\n
                            "),e.push(this.T("Method")),e.push("\n "),e.push(n(this.record.method)),e.push("\n
                            "),e.push(this.T("Status")),e.push("\n "),e.push(n(this.record.status)),e.push("\n
                            "),e.push(this.T("Request")),e.push("\n "),e.push(App.Utils.text2html(this.record.request.content)),e.push("\n
                            "),e.push(this.T("Response")),e.push("\n "),e.push(App.Utils.text2html(this.record.response.content)),e.push("\n
                            "),e.push(this.T("Created at")),e.push("\n "),e.push(this.datetime(this.record.created_at)),e.push("\n
                            \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/invite_user"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/mention"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push("\n
                            \n
                            \n \n
                            \n
                            \n \n
                            \n
                            \n
                            \n'),t=0,e=(i=this.mentions).length;t"),s.push(n.avatar),s.push("\n");s.push("\n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/online_notification"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            '),e.push(this.T("Notifications")),e.push(" "),e.push(this.count),e.push('
                            \n '),e.push(this.T("Mark all as read")),e.push('\n
                            \n
                            \n
                            \n '),e.push(this.T("No unread notifications for you. :)")),e.push('\n
                            \n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/online_notification_item"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n \n "),e.push(this.item.created_by.avatar()),e.push('\n \n \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/organization"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('\n\n"),t=0,e=(n=this.organizationData).length;t\n '),"richtext"!==i.tag?(s.push("\n \n "),s.push(this.P(this.organization,i.name)),s.push("\n ")):(s.push("\n \n
                            '),s.push(this.organization[i.name]),s.push("
                            \n ")),s.push("\n \n ")),s.push("\n");s.push("\n\n"),this.organization.member_ids&&(s.push('\n
                            \n\n")),s.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/payload_example"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push("
                            \n"),e.push(this.T("Header")),e.push("\n
                            \nX-Zammad-Trigger:  Name of the Trigger\nX-Zammad-Delivery: 6d600811-06a3-40af-aebd-a2d8213e85aa\nX-Hub-Signature:   sha1=06007ef23c38e435f49091cdfa3c770b3d85d7be\n
                            \n"),e.push(this.T("Body")),e.push("\n
                            "),e.push(n(this.payload)),e.push("
                            \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/shared_draft"]=function(t){t||(t={});var r=[],o=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s;for(r.push('
                            \n
                            \n
                            \n \n \n
                            \n
                            \n \n \n
                            \n
                            \n\n
                            \n\n
                            \n \n
                            \n\n "),_.isEmpty(this.shared_drafts)&&r.push("\n no drafts\n "),r.push("\n\n "),e=0,n=(s=this.shared_drafts).length;e\n
                            '),r.push(o(t.name)),r.push('
                            \n
                            \n
                            \n '),r.push(o(App.User.find(t.updated_by_id).displayName())),r.push("\n \u2e31\n
                            \n
                            \n "),r.push(this.humanTime(t.updated_at)),r.push("\n
                            \n
                            \n
                            \n ");r.push("\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,r.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/switch_back_to_user"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push(this.Icon("switchView","switchBackToUser-icon")),e.push('\n
                            '),e.push(this.T('Zammad looks like this for "%s"',this.S("firstname")+" "+this.S("lastname"))),e.push('
                            \n
                            \n '),e.push(this.T("Back to my view")),e.push('\n
                            \n '),e.push(this.Icon("diagonal-cross")),e.push("\n
                            \n
                            \n")}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/tag"]=function(t){t||(t={});var s=[],r=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push("\n
                              \n '),t=0,e=(n=this.tags).length;t\n '),s.push(r(i)),s.push('\n
                              \n '),s.push(this.Icon("diagonal-cross")),s.push("\n
                              \n ");s.push('\n
                            \n
                            + '),s.push(this.T("Add Tag")),s.push('
                            \n
                            \n \n
                            \n')}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/task_item"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('\n \n \n \n\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/template"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n
                            \n
                            \n \n
                            \n
                            \n
                            \n \n \n
                            \n
                            \n
                            \n
                            \n
                            \n \n \n
                            \n
                            \n \n
                            \n
                            \n
                            \n\n
                            \n

                            '),e.push(this.T("No template created yet.")),e.push("

                            \n

                            "),e.push(this.T("With templates you can pre-fill ticket attributes.")),e.push("

                            \n

                            "),e.push(this.T("Choose attributes and then save them as a new template.")),e.push( '

                            \n

                            '),e.push(this.T("Save new template")),e.push("

                            \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/text_module"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push('
                            \n\n \n ×\n
                            \n
                            \n \n\n\n
                            \n
                            \n \n \n \n
                            \n
                            \n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/ticket_stats"]=function(t){t||(t={});var e=[],n=t.safe,i=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){this.user&&this.user.organization&&(e.push('\n
                            \n
                            '),e.push(this.T("Tickets of User")),e.push(" "),e.push("("+this.user_total+")"),e.push('
                            \n
                            '),e.push(this.T("Tickets of Organization")),e.push(" "),e.push("("+this.organization_total+")"),e.push("
                            \n
                            \n")),e.push('\n\n
                            \n
                            \n
                            \n
                            \n
                            \n\n
                            \n
                            \n\n
                            \n
                            \n
                            \n
                            \n
                            \n\n
                            \n
                            \n')}).call(this)}.call(t),t.safe=n,t.escape=i,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/ticket_stats_frequency"]=function(t){t||(t={});var s=[],e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i;for(s.push('
                            '),s.push(this.T("Frequency")),s.push('
                            \n
                            \n '),t=0,n=(i=this.ticket_volume_by_year).length;t\n
                            \n
                            \n
                            \n
                            \n
                            '),s.push(this.T(e.text.substr(0,3))),s.push("
                            \n
                            \n ");s.push('\n\n
                            \n
                            \n \n '),s.push(this.T("Closed")),s.push('\n
                            \n
                            \n \n '),s.push(this.T("Created")),s.push("\n
                            \n
                            \n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/ticket_stats_list"]=function(t){t||(t={});var e=[],n=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?s(t):""},i=t.safe,s=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){e.push("\n"),this.ticket_ids.length?(e.push("\n "),e.push(this.ticketList),e.push("\n")):(e.push('\n
                            \n
                            \n '),e.push(this.T("none")),e.push("\n
                            \n")),e.push("\n"),this.ticket_ids.length>this.ticket_ids_show.length&&(e.push('\n '),e.push(this.T("Show all\u2026")),e.push("\n")),e.push("\n")}).call(this)}.call(t),t.safe=i,t.escape=s,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["app/views/widget/user"]=function(t){t||(t={});var d=[],f=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,n,i,s,r,o,a,l,c,p,u,h;for(d.push('\n"),e=0,r=(c=this.userData).length;e\n \n "),"richtext"!==h.tag?(d.push("\n "),h.link?(d.push(''),d.push(this.P(this.user,h.name)),d.push("\n ")):(d.push("\n "),d.push(this.P(this.user,h.name)),d.push("\n ")),d.push("\n ")):(d.push('\n
                            '),d.push(this.user[h.name]),d.push("
                            \n ")),d.push("\n \n ")),d.push("\n");if(d.push("\n"),!_.isEmpty(this.user.accounts)){for(t in d.push('\n \n")}if(d.push("\n"),!_.isEmpty(this.user.links)){for(d.push("\n "),i=0,o=(p=this.user.links).length;i\n \n"),s=0,a=(u=l.items).length;s\n ")):(d.push('\n \n ')),d.push("\n "),d.push(this.T(n.name)),d.push(" "),void 0!==n.count&&(d.push('('),d.push(f(n.count)),d.push(")")),d.push("\n "),n.url?d.push("\n \n "):d.push("\n \n "),d.push("\n \n");d.push("\n ")}d.push("\n")}d.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,d.join("")}}.call(this),function(){var i=function(t,e){return function(){return t.apply(e,arguments)}};App._CollectionSingletonBase=function(){function t(){var t,e,n;this.clear=i(this.clear,this),this.callback=i(this.callback,this),this.trigger=i(this.trigger,this),this.fetch=i(this.fetch,this),this.unbindById=i(this.unbindById,this),this.unbind=i(this.unbind,this),this.bind=i(this.bind,this),this.set=i(this.set,this),this.get=i(this.get,this),this.callbacks={},this.counter=0,this.key="collection-"+this.event,(t=App.SessionStorage.get(this.key))&&this.set(t),App.Event.bind(this.event,(e=this,function(t){return e.set(t),e.callback(t)})),App.Event.bind("auth:logout",(n=this,function(t){return n.clear(t)}))}return t.prototype.event="to_be_defined",t.prototype.restEndpoint="/to_be_defined",t.prototype.get=function(){return this.collectionData},t.prototype.set=function(t){return App.SessionStorage.set("collection-"+this.event,t),this.collectionData=t},t.prototype.bind=function(t,e,n){var i;if(null==e&&(e=!0),null==n&&(n=!1),this.counter+=1,i=this.counter,e)if(void 0===this.collectionData)this.fetch();else if(t(this.collectionData),n)return;return this.callbacks[i]={callback:t,one:n},i},t.prototype.unbind=function(t){var e,n,i;for(e in i=[],n=this.callbacks)t===n[e].callback?i.push(delete this.callbacks[e]):i.push(void 0);return i},t.prototype.unbindById=function(t){return delete this.callbacks[t]},t.prototype.fetch=function(){var t,e;if(!this.fetchActive)return this.fetchActive=!0,App.Ajax.request({id:"collection-"+this.event,type:"GET",url:App.Config.get("api_path")+this.restEndpoint,processData:!0,success:(e=this,function(t){return e.fetchActive=!1,e.set(t),e.callback(t)}),error:(t=this,function(){return t.fetchActive=!1})})},t.prototype.trigger=function(){return this.callback(this.get())},t.prototype.callback=function(e){var n,t,i,s,r;for(i in r=[],s=this.callbacks)n=s[i],t=function(t){return function(){if(n.callback(e),n.one)return delete t.callbacks[i]}}(this),App.QueueManager.add(this.key,t),r.push(App.QueueManager.run(this.key));return r},t.prototype.clear=function(){return this.collectionData=void 0},t}()}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.ObjectOrganizationAutocompletion=function(t){function e(t){this.hideOrganizationMembers=n(this.hideOrganizationMembers,this),this.showOrganizationMembers=n(this.showOrganizationMembers,this),this.emptyResultList=n(this.emptyResultList,this),this.searchObject=n(this.searchObject,this),this.onKeyUp=n(this.onKeyUp,this),this.build=n(this.build,this),this.buildObjectNew=n(this.buildObjectNew,this),this.buildObjectItem=n(this.buildObjectItem,this),this.buildOrganizationMembers=n(this.buildOrganizationMembers,this),this.navigateByKeyboard=n(this.navigateByKeyboard,this),this.removeToken=n(this.removeToken,this),this.removeThisToken=n(this.removeThisToken,this),this.createToken=n(this.createToken,this),this.executeCallback=n(this.executeCallback,this),this.selectObject=n(this.selectObject,this),this.onObjectClick=n(this.onObjectClick,this),this.resetObjectSelection=n(this.resetObjectSelection,this),this.onBlur=n(this.onBlur,this),this.focusInput=n(this.focusInput,this),this.onFocus=n(this.onFocus,this),this.close=n(this.close,this),this.open=n(this.open,this),this.element=n(this.element,this),e.__super__.constructor.apply(this,arguments),this.lazySearch=_.debounce(this.searchObject,200),this.key=Math.floor(999999*Math.random()).toString(),this.attribute.sourceType||(this.attribute.sourceType="GET"),this.attribute.source||(this.attribute.source=this.apiPath+"/search/user-organization"),this.build(),this.attribute.value&&this.callback&&this.callback(this.attribute.value)}return i(e,t),e.prototype.className="dropdown js-recipientDropdown",e.prototype.events={"hide.bs.dropdown .js-recipientDropdown":"hideOrganizationMembers","click .js-organization":"showOrganizationMembers","click .js-back":"hideOrganizationMembers","click .js-object":"onObjectClick","click .js-objectNew":"newObject","focus .js-objectSelect":"onFocus","input .js-objectSelect":"open","click .js-objectSelect":"stopPropagation","blur .js-objectSelect":"onBlur","click .form-control":"focusInput",click:"stopPropagation","change .js-objectId":"executeCallback","click .js-remove":"removeThisToken","click .js-showMoreMembers":"showMoreMembers"},e.prototype.elements={".recipientList":"recipientList",".js-objectSelect":"objectSelect",".js-objectId":"objectId",".form-control":"formControl"},e.prototype.templateObjectItem="generic/object_search/item_object",e.prototype.templateObjectNew="generic/object_search/new_object",e.prototype.templateOrganizationItem="generic/object_search/item_organization",e.prototype.templateOrganizationItemMembers="generic/object_search/item_organization_members",e.prototype.objectSingle="User",e.prototype.objectIcon="user",e.prototype.inactiveObjectIcon="inactive-user",e.prototype.objectSingels="People",e.prototype.objectCreate=__("Create new object"),e.prototype.referenceAttribute="member_ids",e.prototype.element=function(){return this.el},e.prototype.release=function(){return $(window).off("click.ObjectOrganizationAutocompletion")},e.prototype.open=function(){if(!this.el.hasClass("open"))return this.el.addClass("open"),$(window).on("click.ObjectOrganizationAutocompletion",this.close),$(window).on("keydown.ObjectOrganizationAutocompletion",this.navigateByKeyboard)},e.prototype.close=function(){return $(window).off("keydown.ObjectOrganizationAutocompletion"),this.el.removeClass("open"),$(window).off("click.ObjectOrganizationAutocompletion")},e.prototype.onFocus=function(){return this.formControl.addClass("focus"),this.open()},e.prototype.focusInput=function(){if(!this.formControl.hasClass("focus"))return this.objectSelect.trigger("focus")},e.prototype.onBlur=function(){var t,e;return e=this.objectSelect.val(),_.isEmpty(e)&&!this.attribute.multiple?this.objectId.val(""):!0===this.attribute.guess&&(t=this.objectId.val(),(_.isEmpty(t)||t.match(/^guess:/))&&(_.isEmpty(e)||this.objectId.val("guess:"+e))),this.formControl.removeClass("focus")},e.prototype.resetObjectSelection=function(){return this.objectId.val("").trigger("change")},e.prototype.onObjectClick=function(t){var e,n;return e=$(t.currentTarget).data("object-id"),n=$(t.currentTarget).find(".recipientList-name").text().trim(),this.selectObject(e,n),this.close()},e.prototype.selectObject=function(t,e){return this.attribute.multiple?this.addValueToObjectInput(e,t):(this.objectSelect.val(""),this.objectId.val(t).trigger("change"))},e.prototype.executeCallback=function(){var t,e,n;if(this.attribute.multiple?(this.currentObject&&this.createToken(this.currentObject),this.currentObject=null):(n=this.objectId.val())&&App[this.objectSingle].exists(n)&&(t=(e=App[this.objectSingle].find(n)).displayName(),e.email&&(t.match(/\@|,|;|\^|\+|#|\xa7|\$|%|&|\/|\(|\)|=|\?|!|\*|\[|\]/)&&(t='"'+t+'"'),t+=" <"+e.email+">"),this.objectSelect.val(t)),this.callback)return this.callback(n)},e.prototype.createToken=function(t){var e,n;return e=t.name,n=t.value,this.objectSelect.before(App.view("generic/token")({name:e,value:n}))},e.prototype.removeThisToken=function(t){return this.removeToken($(t.currentTarget).parents(".token"))},e.prototype.removeToken=function(t){var e,n;switch(t){case"last":if(!(n=this.$(".token").last()).length)return;break;default:n=t}return e=n.data("value"),this.objectId.find("[value="+e+"]").remove(),this.objectId.trigger("change"),n.remove()},e.prototype.navigateByKeyboard=function(t){var e,n,i,s;switch(t.keyCode){case 27:return this.recipientList.hasClass("is-shown")?this.objectSelect.val("").trigger("change"):void this.hideOrganizationMembers();case 8:if(""===this.objectSelect.val()&&this.objectSelect.is(t.target))return this.removeToken("last");break;case 9:return this.close();case 37:case 39:break;case 38:if(t.preventDefault(),this.recipientList.hasClass("is-shown"))return void(0===this.recipientList.find("li.is-active").length?this.recipientList.find("li").last().addClass("is-active"):0!==this.recipientList.find("li.is-active").prev().length&&this.recipientList.find("li.is-active").removeClass("is-active").prev().addClass("is-active"));0===(i=this.$(".recipientList-organizationMembers").not(".hide")).not(".hide").find("li.is-active").length?i.not(".hide").find("li").last().addClass("is-active"):0!==i.not(".hide").find("li.is-active").prev().length&&i.not(".hide").find("li.is-active").removeClass("is-active").prev().addClass("is-active");break;case 40:if(t.preventDefault(),this.recipientList.hasClass("is-shown"))return void(0===this.recipientList.find("li.is-active").length?this.recipientList.find("li").first().addClass("is-active"):0!==this.recipientList.find("li.is-active").next().length&&this.recipientList.find("li.is-active").removeClass("is-active").next().addClass("is-active"));0===(i=this.$(".recipientList-organizationMembers").not(".hide")).not(".hide").find("li.is-active").length?i.find("li").first().addClass("is-active"):0!==i.not(".hide").find("li.is-active").next().length&&i.not(".hide").find("li.is-active").removeClass("is-active").next().addClass("is-active");break;case 13:if(t.preventDefault(),t.stopPropagation(),!this.recipientList.hasClass("is-shown")){if((s=this.$(".recipientList-organizationMembers").not(".hide")).find(".js-back.is-active").get(0))return void this.hideOrganizationMembers();if(!(e=s.find("li.is-active").data("object-id")))return;return n=s.find("li.is-active .recipientList-name").text().trim(),this.selectObject(e,n),void(this.attribute.multiple||this.close())}if(e=this.recipientList.find("li.is-active").data("object-id"))return void("new"===e?this.newObject():(n=this.recipientList.find("li.is-active .recipientList-name").text().trim(),this.selectObject(e,n),this.attribute.multiple||this.close()));if(!this.recipientList.find("li.is-active").data("organization-id"))return;return this.showOrganizationMembers(void 0,this.recipientList.find("li.is-active"))}},e.prototype.addValueToObjectInput=function(t,e){if(this.objectSelect.val(""),this.currentObject={name:t,value:e},!this.objectId.val()||!this.objectId.val().includes(""+e))return this.objectId.append(""),this.objectId.trigger("change")},e.prototype.buildOrganizationItem=function(t){var e;return e=0,t[this.referenceAttribute]&&(e=t[this.referenceAttribute].length),App.view(this.templateOrganizationItem)({organization:t,objectSingels:this.objectSingels,objectCount:e})},e.prototype.showMoreMembers=function(t){var e,n,i;return this.preventDefaultAndStopPropagation(t),i=(e=$(t.target).closest(".js-showMoreMembers")).attr("organization-member-limit"),n=25*(parseInt(i/25)+1),e.attr("organization-member-limit",n),this.renderMembers(e,i,n)},e.prototype.renderMembers=function(s,t,e){var n,i,r;return n=s.closest(".recipientList-organizationMembers").attr("organization-id"),(i=App.Organization.find(n)).members(t,e,(r=this,function(t){var e,n,i;for(e=0,n=t.length;e")):this.params&&this.params[this.attribute.name+"_completion"]?n=this.params[this.attribute.name+"_completion"]:this.log("objectId doesn't exist",c));return this.html(App.view("generic/object_search/input")({attribute:this.attribute,value:c,tokens:l,name:n})),this.attribute.disableCreateObject||this.recipientList.append(this.buildObjectNew()),this.searchTerm="",this.objectSelect.on("keyup",this.onKeyUp)},e.prototype.onKeyUp=function(t){var e;if(e=$(t.target).val().trim(),this.searchTerm!==e)return this.searchTerm=e,this.hideOrganizationMembers(),_.isEmpty(e)?(this.emptyResultList(),this.attribute.disableCreateObject||this.recipientList.append(this.buildObjectNew()),void(this.attribute.multiple||this.resetObjectSelection())):e&&(!this.attribute.minLengt||this.attribute.minLengt<=e.length)?this.lazySearch(e):void 0},e.prototype.searchObject=function(t){var e,u;return e={query:t},this.attribute.queryCallback&&(e=this.attribute.queryCallback(t)),this.ajax({id:"searchObject"+this.key,type:this.attribute.sourceType,url:this.attribute.source,data:e,processData:!0,success:(u=this,function(t){var e,n,i,s,r,o,a,l,c,p;if(u.emptyResultList(),App.Collection.loadAssets(t.assets),t.user_ids)for(e=0,r=(c=t.user_ids).length;e"),e},i.fullQuoteHeaderExtractEmail=function(t){var e;if(e=t.match(/]+)(>?)/))return e[1]},i}()}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.GlobalSearch=function(t){function e(){this.close=n(this.close,this),this.renderTry=n(this.renderTry,this),this.ajaxStop=n(this.ajaxStop,this),this.ajaxStart=n(this.ajaxStart,this),this.search=n(this.search,this),e.__super__.constructor.apply(this,arguments),this.searchResultCache={},this.lastQuery=void 0,this.apiPath=App.Config.get("api_path"),this.ajaxId="search-"+Math.floor(999999*Math.random())}return i(e,t),e.prototype.ajaxCount=0,e.prototype.search=function(l){var t,e,c,n,p;return c=l.query,t=new Date,!l.force&&this.searchResultCache[c]&&this.searchResultCache[c].time>t.setSeconds(t.getSeconds()-20)?(this.ajaxRequestId&&App.Ajax.abort(this.ajaxRequestId),this.ajaxStart(l),this.renderTry(this.searchResultCache[c].result,c,l),e=function(){return n.ajaxStop(l)},void(n=this).delay(e,700)):(e=function(){return p.ajaxStart(l),e=function(){if(l.callbackLongerAsExpected)return l.callbackLongerAsExpected()},p.delay(e,1e4,"global-search-ajax-longer-as-expected"),p.ajaxRequestId=App.Ajax.request({id:p.ajaxId,type:"GET",url:p.apiPath+"/search",data:{query:c,limit:p.limit||10},processData:!0,success:function(t){var e,n,i,s,r,o,a;for(p.clearDelay("global-search-ajax-longer-as-expected"),App.Collection.loadAssets(t.assets),a={},e=0,r=(o=t.result).length;e'+App.Utils.htmlEscape(this.translate(t))+"":this.translate(t,e,!0,!0):t},e.prototype.translatePlain=function(t,e){return this.translate(t,e)},e.prototype.translate=function(t,e,n,i){var s,r,o,a;if("string"!=typeof t&&t&&t.toString&&(t=t.toString()),void 0===t)return"";if(""===t)return"";if(void 0!==this.mapString[t]?(this._translated=!0,a=this.mapString[t]):(this._translated=!1,a=t),n&&(a=App.Utils.htmlEscape(a)),i&&(a=a.replace(/\|\|(.+?)\|\|/gm,"$1").replace(/\|(.+?)\|/gm,"$1").replace(/_(.+?)_/gm,"$1").replace(/\/\/(.+?)\/\//gm,"$1").replace(/\xa7(.+?)\xa7/gm,"$1")),e)for(r=0,o=e.length;r\ud83d\udd17'});return i&&(a=a.replace(/\[(.+?)\]\((.+?)\)/gm,'$1')),this.log("debug","translate",t,e,a),a},e.prototype.meta=function(){return this.mapMeta},e.prototype.setMap=function(t,e){return"FORMAT_DATE"===t||"FORMAT_DATETIME"===t?""===e?delete this.mapTime[t]:this.mapTime[t]=e:""===e?delete this.mapString[t]:this.mapString[t]=e},e.prototype.date=function(t,e){return t?this.convert(t,e,this.mapTime.FORMAT_DATE||this.dateFormat):t},e.prototype.timestamp=function(t,e){return t?this.convert(t,e,this.mapTime.FORMAT_DATETIME||this.timestampFormat):t},e.prototype.convertUTC=function(t){var e,n,i,s,r,o;return o=(r=t.match(/\d+/g))[0],s=r[1],i=r[2],e=r[3],n=r[4],new Date(Date.UTC(o,s-1,i,e,n))},e.prototype.formatNumber=function(t,e){for(;t.toString().length'+String.fromCharCode("0x"+t.unicode)+"").get(0))})),n?(this.iconGrid.html(i),this.empty=!1,this.refreshElements()):(this.empty||((t=Math.floor(Math.random()*this.noMatch.length))===this.noMatch.filter(".is-active").index()&&(t=(t+1)%this.noMatch.length),this.noMatch.removeClass("is-active").eq(t).addClass("is-active")),this.empty=!0,this.iconGrid.empty())},n.prototype.filterIcons=function(t){return this.throttledRenderIcons(t.currentTarget.value)},n.prototype.onIconClick=function(t){return this.pick(t.currentTarget.getAttribute("data-unicode"))},n.prototype.pick=function(t){return this.shadow.val(t),this.input.text(String.fromCharCode("0x"+t)),this.el.closest("form").trigger("input")},n.prototype.onShadowFocus=function(){return this.input.trigger("focus")},n.prototype.onPickerOpen=function(){return this.filter.trigger("focus"),this.isOpen=!0},n.prototype.onPickerClose=function(){return this.isOpen=!1,this.filter.val(""),this.renderIcons(),$(document).off("keydown.icon_picker")},n.prototype.onFocus=function(){return $(document).on("keydown.icon_picker",this.navigate)},n.prototype.navigate=function(t){switch(t.keyCode){case 40:return this.nudge(t,0,1);case 38:return this.nudge(t,0,-1);case 39:return this.nudge(t,1);case 37:return this.nudge(t,-1);case 13:return this.onEnter(t);case 27:return this.onEscape()}},n.prototype.onEscape=function(){if(this.currentItem=null,this.isOpen)return this.toggle()},n.prototype.onEnter=function(){return this.isOpen?this.currentItem?(this.pick(this.currentItem.attr("data-unicode")),this.toggle()):void 0:this.toggle()},n.prototype.toggle=function(){return this.$('[data-toggle="dropdown"]').dropdown("toggle")},n.prototype.nudge=function(t,e,n){var i,s;if(t.preventDefault(),this.currentItem){if((s=this.currentItem.index())+(i=function(){switch(!1){case!(0=this.icons.length||s+i<0)return;s+=i,this.unhighlightCurrentItem()}else s=0;return this.currentItem=this.icons.eq(s),this.currentItem.addClass("is-active").get(0).scrollIntoView({behavior:"instant"})},n.prototype.highlightItem=function(t){return this.unhighlightCurrentItem(),this.currentItem=$(t.currentTarget),this.currentItem.addClass("is-active")},n.prototype.unhighlightCurrentItem=function(){if(this.currentItem)return this.currentItem.removeClass("is-active"),this.currentItem=null},n}(Spine.Controller)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.IconsetPicker=function(t){function e(){this.element=n(this.element,this),e.__super__.constructor.apply(this,arguments),this.render()}return i(e,t),e.prototype.sets={FontAwesome:{name:__("Font Awesome"),version:"4.7",website:"https://fontawesome.com/v4.7.0/"},anticon:{name:__("Anticon"),version:"2.10",website:"https://2x.ant.design/components/icon/"},material:{name:__("Material"),version:"2.2.0",website:"https://material.io/icons/"},ionicons:{name:__("Ionicons"),version:"2.0.1",website:"https://ionicons.com/v2/"},"Simple-Line-Icons":{name:__("Simple Line Icons"),version:"0.0.1",website:"https://simplelineicons.github.io/"}},e.prototype.elements={".js-set":"setElements",input:"input"},e.prototype.events={"click .js-set":"pick"},e.prototype.element=function(){return this.el},e.prototype.render=function(){var t,e,n;for(t in this.html(App.view("generic/iconset_picker")({attribute:this.attribute,sets:this.sets})),n=[],e=this.sets)e[t],App.Utils.loadIconFont(t),n.push(App.Utils.loadIconFontInfo(t,this.initializePreview.bind(this,t)));return n},e.prototype.initializePreview=function(t,e){return this.sets[t].icons=e,this.renderPreview(t,e)},e.prototype.renderPreview=function(t){var e,n,i,s,r;for(e=document.createDocumentFragment(),i=_.shuffle(this.sets[t].icons),n=s=0,r=54;0<=r?s<=r:r<=s;n=0<=r?++s:--s)e.appendChild($(''+String.fromCharCode("0x"+i[n].unicode)+"").get(0));return this.el.find('[data-family="'+t+'"] .js-preview').html(e)},e.prototype.pick=function(t){var e;return e=$(t.currentTarget).attr("data-family"),this.input.val(e),this.setElements.removeClass("is-active"),t.currentTarget.classList.add("is-active")},e.prototype.flip=function(t){var e,n;return n=(e=$(t.currentTarget)).closest(".js-set").attr("data-family"),e.hasClass("do-flash")&&(e.removeClass("do-flash"),e.get(0).offsetWidth),e.text(String.fromCharCode("0x"+_.sample(this.sets[n].icons).unicode)),e.addClass("do-flash")},e}(Spine.Controller)}.call(this),function(){App.ImageService=function(){function r(){}return r.supported_types=["image/jpeg","image/png"],r.resizeForAvatar=function(t,e,n,i,s){return null==i&&(i=r.supported_types[0]),r.checkUrl(t)?s(t):r.resize(t,e,n,2,i,.7,s)},r.resizeForApp=function(t,e,n,i){return r.checkUrl(t)?i(t):r.resize(t,e,n,2,"image/png",.7,i)},r.resize=function(t,r,o,a,l,c,p,e){var u,h;return null==r&&(r="auto"),null==o&&(o="auto"),null==a&&(a=1),null==e&&(e=!0),(u=new Image).onload=(h=this,function(){var t,e,n,i,s;return n=u.width,e=u.height,console.log("ImageService","current size",n,e),console.log("ImageService","sizeFactor",a),"auto"===o&&"auto"===r&&(r=n,o=e),"auto"!==r&&n'+n+""),n},e.prototype.buildContentFor=function(t){var e,n,i,s;return n=this.objectIdFor(t),s=this.constructor.klass.fullLocal(n),i=this.constructor.ignoredAttributes,e=_.values(this.constructor.klass.attributesGet("view")).filter(function(t){var e,n;return(n=(e=t.name).substr(0,e.length-3))in s&&(e=n),s[e]&&t.shown&&!_.include(i,e)}),this.buildHtmlContent({object:s,attributes:e})},e}(App.PopoverProvider)}.call(this),function(){var t,n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;t=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.klass=App.Ticket,e.selectorCssClassPrefix="escalation",e.templateName="escalation",e.includeData=!1,e.prototype.displayTitleUsing=function(){return App.i18n.translateInline("Escalation Times")},e.prototype.buildContentFor=function(t){var e,n;return e=this.objectIdFor(t),n=this.constructor.klass.fullLocal(e),this.buildHtmlContent({object:n})},e}(App.SingleObjectPopoverProvider),App.PopoverProvider.registerProvider("Escalation",t)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.KbPopoverProvider=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.templateName="kb_generic",e.includeData=!1,e.prototype.displayTitleUsing=function(t){return t.title},e}(App.SingleObjectPopoverProvider)}.call(this),function(){var t,n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;t=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.klass=App.KnowledgeBaseAnswerTranslation,e.selectorCssClassPrefix="kb-answer",e}(App.KbPopoverProvider),App.PopoverProvider.registerProvider("KnowledgeBaseAnswer",t)}.call(this),function(){var t,n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;t=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.klass=App.KnowledgeBaseCategoryTranslation,e.selectorCssClassPrefix="kb-category",e}( App.KbPopoverProvider),App.PopoverProvider.registerProvider("KnowledgeBaseCategory",t)}.call(this),function(){var t,n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;t=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.klass=App.KnowledgeBaseTranslation,e.selectorCssClassPrefix="kb",e}(App.KbPopoverProvider),App.PopoverProvider.registerProvider("KnowledgeBase",t)}.call(this),function(){var t,n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;t=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.klass=App.Organization,e.selectorCssClassPrefix="organization",e.templateName="organization",e.ignoredAttributes=["name"],e.prototype.displayTitleUsing=function(t){return t.name},e.prototype.buildHtmlContent=function(t){var o;return o=e.__super__.buildHtmlContent.apply(this,arguments),t.object.members(0,10,function(t){var e,n,i,s,r;for(s=[],n=0,i=t.length;n'),!1===r.active&&e.addClass("is-inactive"),e.append(r.displayName()),s.push(e);return o.find(".js-userList").html(s)}),o},e}(App.SingleObjectPopoverProvider),App.PopoverProvider.registerProvider("Organization",t)}.call(this),function(){var t,n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;t=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.klass=App.Ticket,e.selectorCssClassPrefix="ticket",e.templateName="ticket",e.includeData=!1,e.prototype.displayTitleUsing=function(t){return t.title},e}(App.SingleObjectPopoverProvider),App.PopoverProvider.registerProvider("Ticket",t)}.call(this),function(){var t,n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;t=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.klass=App.User,e.selectorCssClassPrefix="user",e.templateName="user",e.ignoredAttributes=["firstname","lastname","organization"],e.prototype.displayTitleUsing=function(t){var e;return e=t.displayName(),t.isOutOfOffice()&&(e+=" ("+t.outOfOfficeText()+")"),e},e}(App.SingleObjectPopoverProvider),App.PopoverProvider.registerProvider("User",t)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;App.UserTicketPopoverProvider=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.templateName="user_ticket_list",e.prototype.fetch=function(n){return this.params.parentController.ajax({type:"GET",url:App.Config.get("api_path")+"/ticket_customer",data:{customer_id:n.user_id},processData:!0,success:(i=this,function(t){var e;return App.Collection.loadAssets(t.assets),e={open:t.ticket_ids_open,closed:t.ticket_ids_closed},i.callback({ticketsList:e,selector:n.selector})})});var i},e.prototype.build=function(t){if(this.checkPermissions())return this.fetch(t)},e.prototype.callback=function(t){return this.clear(this.popovers),this.popovers=this.buildPopovers(t)},e.prototype.buildTitleFor=function(t){return $(t).find('[title="*"]').val()},e.prototype.buildContentFor=function(t,e){var n,i;return i=$(t).filter("[data-type]").data("type"),n=(e.ticketsList[i]||[]).map(function(t){return App.Ticket.fullLocal(t)}),this.buildHtmlContent({tickets:n})},e}(App.PopoverProvider)}.call(this),function(){App.PrettyDate=function(){function t(){}return t.humanTime=function(t,e,n,i){var s,r,o,a,l,c,p,u,h,d;return null==n&&(n=!0),null==i&&(i=void 0),t?(a=((o=new Date)-(r=new Date(t)))/1e3,"",e&&(0"+p+""),p):"absolute"!==i||"past"!==l&&"future"!==l?"past"===l&&!e&&604800"+p+""),p):(d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][r.getDay()],c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r.getMonth()],p=a<518400?App.i18n.translateInline(d)+" "+r.getHours()+":"+this.s(r.getMinutes(),2):r.getYear()===o.getYear()?App.i18n.translateInline(d)+" "+r.getDate()+". "+App.i18n.translateInline(c)+" "+r.getHours()+":"+this.s(r.getMinutes(),2):App.i18n.translateInline(d)+" "+App.i18n.translateTimestamp(t),e&&(p=""+p+""),p))):""},t.s=function(t,e){for(;t.toString().lengthr.length-1?void 0:(this.unhighlightCurrentItem(),this.currentItem=r.eq(n),this.currentItem.addClass("is-active"),this.clearAutocomplete())):this.toggle()},e.prototype.autocompleteOrNavigateIn=function(t){return this.currentItem&&this.currentItem.hasClass("js-enter")?this.navigateIn(t):this.fillWithAutocompleteSuggestion(t)},e.prototype.autocompleteOrNavigateOut=function(t){return 0!==this.level?this.navigateOut(t):this.fillWithAutocompleteSuggestion(t)},e.prototype.fillWithAutocompleteSuggestion=function(t){var e;if(this.suggestion)return e=39===t.keyCode?this.suggestion.length:this.invisiblePart.text().length+1,this.attribute.multiple?this.addValueToShadowInput(this.suggestion,this.suggestionValue):(this.input.val(this.suggestion),this.shadowInput.val(this.suggestionValue)),this.clearAutocomplete(),this.toggle(),this.input.prop("selectionStart",e),this.input.prop("selectionEnd",e)},e.prototype.autocomplete=function(t,e){var n;return this.suggestion=e,this.suggestionValue=t,n=e.indexOf(this.query),this.query&&0===n?(this.invisiblePart.text(this.query),this.visiblePart.text(e.slice(this.query.length))):this.clearAutocomplete()},e.prototype.clearAutocomplete=function(){return this.suggestion=null,this.visiblePart.text(""),this.invisiblePart.text("")},e.prototype.selectItem=function(t){var e,n;if(e=t.currentTarget.querySelector("span.searchableSelect-option-text").textContent.trim())return n=t.currentTarget.getAttribute("data-value"),this.attribute.multiple?this.addValueToShadowInput(e,n):(this.input.val(e),this.shadowInput.val(n))},e.prototype.navigateIn=function(t){return t.stopPropagation(),this.selectItem(t),this.navigateDepth(1)},e.prototype.navigateOut=function(t){return t.stopPropagation(),this.navigateDepth(-1)},e.prototype.navigateDepth=function(t){var n,e;if(!this.animating)return 0").attr("selected",!0).attr("value",this.currentData.value).text(this.currentData.name)),this.shadowInput.trigger("change")},e.prototype.highlightFirst=function(t){if(this.unhighlightCurrentItem(),this.currentItem=this.getCurrentOptions().not(".is-hidden").first(),this.currentItem.addClass("is-active"),t)return this.autocomplete(this.currentItem.attr("data-value"),this.currentItem.children("span.searchableSelect-option-text").text().trim())},e.prototype.highlightItem=function(t){return this.unhighlightCurrentItem(),this.currentItem=$(t.currentTarget),this.currentItem.addClass("is-active")},e.prototype.unhighlightCurrentItem=function(){if(this.currentItem)return this.currentItem.removeClass("is-active"),this.currentItem=null},e}(Spine.Controller)}.call(this),function(){var e,i=function(t,e){return function(){return t.apply(e,arguments)}},s=function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},r={}.hasOwnProperty;App.TaskManager=function(){function t(){}var n;return n=void 0,t.init=function(t){if(null==t&&(t={}),!t.force)return null!=n?n:n=new e(t);n=new e(t)},t.all=function(){return n?n.all():[]},t.allWithMeta=function(){return n?n.allWithMeta():[]},t.execute=function(t){if(n)return n.execute(t)},t.get=function(t){if(n)return n.get(t)},t.update=function(t,e){if(n)return n.update(t,e)},t.remove=function(t){if(n)return n.remove(t)},t.notify=function(t){if(n)return n.notify(t)},t.mute=function(t){if(n)return n.mute(t)},t.reorder=function(t){if(n)return n.reorder(t)},t.touch=function(t){if(n)return n.touch(t)},t.reset=function(){if(n)return n.reset()},t.tasksInitial=function(){return void 0===n&&null==n&&(n=new e),n.tasksInitial()},t.worker=function(t){if(n)return n.worker(t)},t.ensureWorker=function(t,e){if(n)return n.ensureWorker(t,e)},t.nextTaskUrl=function(){if(n)return n.nextTaskUrl()},t.TaskbarId=function(){if(n)return n.TaskbarId()},t.hideAll=function(){if(n)return n.showControllerHideOthers()},t.preferencesSubscribe=function(t,e){if(n)return n.preferencesSubscribe(t,e)},t.preferencesUnsubscribe=function(t){if(n)return n.preferencesUnsubscribe(t)},t.preferencesTrigger=function(t){if(n)return n.preferencesTrigger(t)},t.tasksAutoCleanupDelayTime=function(t){if(n)return t?n.tasksAutoCleanupDelayTime=t:n.tasksAutoCleanupDelayTime},t.tasksAutoCleanupTaskMax=function(t){if(n)return t?n.maxTaskCount=t:n.maxTaskCount},t}(),e=function(t){function n(t){var e;null==t&&(t={}),this.preferencesTrigger=i(this.preferencesTrigger,this),this.preferencesUnsubscribe=i(this.preferencesUnsubscribe,this),this.preferencesSubscribe=i(this.preferencesSubscribe,this),this.tasksInitial=i(this.tasksInitial,this),this.tasksAutoCleanup=i(this.tasksAutoCleanup,this),this.tasksAutoCleanupDelay=i(this.tasksAutoCleanupDelay,this),this.taskUpdateLoop=i(this.taskUpdateLoop,this),this.taskUpdateTrigger=i(this.taskUpdateTrigger,this),this.TaskbarId=i(this.TaskbarId,this),this.nextTaskUrl=i(this.nextTaskUrl,this),this.reset=i(this.reset,this),this.release=i(this.release,this),this.reorder=i(this.reorder,this),this.mute=i(this.mute,this),this.notify=i(this.notify,this),this.remove=i(this.remove,this),this.update=i(this.update,this),this.getWithMeta=i(this.getWithMeta,this),this.get=i(this.get,this),this.hide=i(this.hide,this),this.show=i(this.show,this),this.showControllerHideOthers=i(this.showControllerHideOthers,this),this.startController=i(this.startController,this),this.ensureWorker=i(this.ensureWorker,this),n.__super__.constructor.apply(this,arguments),t.el?this.el=t.el:this.el=$("#app"),this.offlineModus=t.offlineModus,this.tasksInitial(),this.controllerBind("taskbar:preferences",(e=this,function(t){return e.tasksPreferences[t.key]=t.preferences,e.preferencesTrigger(t.key)}))}return s(n,t),n.extend(App.PopoverProvidable),n.include(App.LogInclude),n.prototype.init=function(){return this.domStore={},this.shownStore={},this.workers={},this.allTasksByKey={},this.tasksToUpdate={},this.tasksPreferences={},this.tasksPreferencesCallbacks={},this.tasksAutoCleanupDelayTime=12e3,this.activeTaskHistory=[],this.queue=[],this.queueRunning=!1,this.maxTaskCount=30},n.prototype.all=function(){var t,e,n,i;for(e in t=[],n=this.allTasksByKey)i=n[e],t.push(i);return _.sortBy(t,function(t){return t.prio})},n.prototype.allWithMeta=function(){var t,e,n,i;for(e=0,n=(t=this.all()).length;en&&(n=s.prio);return++n},n.prototype.domID=function(t){return"content_permanent_"+t},n.prototype.worker=function(t){if(this.workers[t])return this.workers[t]},n.prototype.ensureWorker=function(t,e){var n,i;{if(!(n=this.worker(t)))return this.one("TaskManager::"+t+"::WorkerStarted",(i=this,function(){return i.ensureWorker(t,e),!0}));e(n)}},n.prototype.execute=function(t){return this.queue.push(t),this.run()},n.prototype.run=function(){var t,e,n;if(this.queue[0]&&!this.queueRunning){for(this.queueRunning=!0,n=[];;){e=this.queue.shift();try{this.executeSingel(e)}catch(i){t=i,this.log("error","executeSingel task:",e.key,t)}if(!this.queue[0]){this.queueRunning=!1;break}n.push(void 0)}return n}},n.prototype.executeSingel=function(n){var t,e,i,s,r;if(n.key=App.Utils.htmlAttributeCleanup(n.key),!n.init||!this.workers[n.key]){if(n.init&&(n.params.init=!0),n.params&&(n.show?n.params.shown=!0:delete n.params.shown),n.show&&this.activeTaskHistory.push(_.clone(n)),(s=this.get(n.key))||this.workers[n.key]||n.persistent||((s=new App.Taskbar).load({key:n.key,params:n.params,callback:n.controller,client_id:123,prio:this.newPrio(),notify:!1,active:n.show}),this.allTasksByKey[n.key]=s.attributes(),this.touch(n.key),(r=this).tasksToUpdate[n.key]="inCreate",s.save({done:function(){var t,e;for(e in"inCreate"===r.tasksToUpdate[n.key]&&delete r.tasksToUpdate[n.key],r.allTasksByKey[n.key]=this.attributes(),r.tasksPreferences[n.key]=clone(this.preferences),r.preferencesTrigger(n.key),t=[],r.allTasks)r.allTasks[e]&&r.allTasks[e].key===this.key?(s=this.attributes(),t.push(r.allTasks[e]=s)):t.push(void 0);return t},fail:function(){if("inCreate"===r.tasksToUpdate[n.key])return delete r.tasksToUpdate[n.key]}})),n.show&&this.$("#content").remove(),n.show)for(e in i=this.allTasksByKey)s=i[e],e!==n.key?s.active&&(s.active=!1,this.taskUpdate(s)):(t=!1,s.active||(t=!0,s.active=!0),s.notify&&(t=!0,s.notify=!1),t&&this.taskUpdate(s));return this.startController(n)}},n.prototype.startController=function(t){var e,n,i,s;return this.log("debug","controller start try...",t),s=_.clone(t.params),e=this.domID(t.key),(n=this.domStore[e])?i=n.el:(i=$('
                            '),this.domStore[e]={el:i}),s.el=i,s.appEl=this.el,s.taskKey=t.key,t.show||(s.doNotLog=1),this.workers[t.key]||(this.workers[t.key]=new App[t.controller](s),App.Event.trigger("TaskManager::"+t.key+"::WorkerStarted")),t.show?this.showControllerHideOthers(t.key,s):this.hide(t.key),this.tasksAutoCleanupDelay()},n.prototype.showControllerHideOthers=function(t,e){var n,i;for(n in this.workers)n!==t&&!1!==this.shownStore[n]&&this.hide(n);for(n in this.$("#content").addClass("hide"),i=[],this.workers)n===t?i.push(this.show(n,e)):i.push(void 0);return i},n.prototype.show=function(t,e){var n,i,s;return n=this.workers[t],this.shownStore[t]=!0,this.preferencesTrigger(t),i=this.domID(t),s=this.domStore[i],!this.$("#"+i).get(0)&&s&&s.el?(this.frontendTimeUpdateElement(s.el),this.el.append(s.el),this.$("#"+i).removeClass("hide").addClass("active"),n&&s.position&&n.setPosition(s.position)):this.$("#"+i).removeClass("hide").addClass("active"),n&&(n.active&&_.isFunction(n.active)&&n.active(!0),n.show&&_.isFunction(n.show)&&n.show(e)),!0},n.prototype.hide=function(t){var e,n,i,s,r;return e=this.workers[t],this.shownStore[t]=!1,(s=this.$("#"+this.domID(t))).get(0)&&(n=this.domID(t),i=this.domStore[n],e&&_.isFunction(e.currentPosition)?(r=e.currentPosition(),i.position=r,s.addClass("hide").removeClass("active"),i.el=s.detach()):s.addClass("hide").removeClass("active")),!!e&&(e.active&&_.isFunction(e.active)&&e.active(!1),e.hide&&_.isFunction(e.hide)&&e.hide(),this.delayedRemoveAnyPopover(),!0)},n.prototype.get=function(t){return this.allTasksByKey[t]},n.prototype.getWithMeta=function(t){var e;if(e=this.get(t))return this.getMeta(e)},n.prototype.update=function(t,e){var n,i,s,r;if(!(s=this.get(t)))throw"No such task with '"+t+"' to update";for(n in e)r=e[n],s[n]=r;return i=!1,1===Object.keys(e).length&&e.state&&(i=!0),this.taskUpdate(s,i)},n.prototype.remove=function(t){var e;if(e=this.allTasksByKey[t],delete this.allTasksByKey[t],e)return App.Event.trigger("taskRemove",[e]),this.taskDestroy(e),this.release(t)},n.prototype.notify=function(t){var e;if(!(e=this.get(t)))throw"No such task with '"+t+"' to notify";if(!e.notify)return e.notify=!0,this.taskUpdate(e)},n.prototype.mute=function(t){var e;if(!(e=this.get(t)))throw"No such task with '"+t+"' to mute";if(e.notify)return e.notify=!1,this.taskUpdate(e)},n.prototype.reorder=function(t){var e,n,i,s,r;for(e=s=0,i=t.length;e'),$("#app #"+e+"_trash").append(i.el).remove(),i.el=void 0),i=void 0),delete this.domStore[this.domID(t)],this.workers[t],delete this.workers[t],delete this.tasksPreferences[t];try{return(n=this.$("#"+this.domID(t))).html(""),n.remove()}catch(s){return this.log("notice","invalid key '"+t+"'")}},n.prototype.reset=function(){var t,e,n;for(t in e=this.allTasksByKey)e[t],this.release(t);for(t in n=this.workers)n[t],this.release(t);return this.init(),App.Taskbar.deleteAll(),App.Event.trigger("taskInit")},n.prototype.nextTaskUrl=function(){for(var t,e,n,i;(e=this.activeTaskHistory.pop())&&e.key;)if((t=this.workers[e.key])&&t.url)return t.url();return!!((n=(i=this.all())[i.length-1])&&(t=this.workers[n.key])&&t.url)&&t.url()},n.prototype.TaskbarId=function(){return this.TaskbarIdInt||(this.TaskbarIdInt=Math.floor(99999999*Math.random())),this.TaskbarIdInt},n.prototype.taskUpdate=function(t,e){if(null==e&&(e=!1),this.log("debug","UPDATE task",t,e),"inCreate"!==this.tasksToUpdate[t.key]&&(this.tasksToUpdate[t.key]="toUpdate",this.taskUpdateTrigger(),!e))return this.touch(t.key)},n.prototype.touch=function(e){var t,n;return n=this,t=function(){var t;if(t=n.getWithMeta(e))return t.active&&t.meta&&n.title(t.meta.title),App.Event.trigger("taskUpdate",[t])},App.Delay.set(t,20,"task-"+e,void 0)},n.prototype.taskUpdateTrigger=function(){return App.Delay.set(this.taskUpdateLoop,2e3,"check_update_to_server_pending","task",!0)},n.prototype.taskUpdateLoop=function(){var t,e,n,i,s;if(!this.offlineModus){for(t in e=[],this.tasksToUpdate)if(t&&(n=this.get(t)))if("toUpdate"===this.tasksToUpdate[n.key]){if(this.tasksToUpdate[n.key]="inProgress",!(i=App.Taskbar.findByAttribute("key",n.key))){delete s.tasksToUpdate[this.key];continue}i.load(n),i.isOnline()?(s=this,e.push(i.save({done:function(){if("inProgress"===s.tasksToUpdate[this.key])return delete s.tasksToUpdate[this.key]},fail:function(){if(s.log("error","can't update task",this),"inProgress"===s.tasksToUpdate[this.key])return delete s.tasksToUpdate[this.key]}}))):e.push(void 0)}else e.push(void 0);return e}},n.prototype.taskDestroy=function(t){var e;if("inProgress"!==this.tasksToUpdate[t.key]&&"inCreate"!==this.tasksToUpdate[t.key]){if(delete this.tasksToUpdate[t.key],delete this.tasksPreferences[t.key],t.id&&App.Taskbar.exists(t.id))return App.Taskbar.destroy(t.id)}else App.Delay.set((e=this,function(){return e.taskDestroy(t)}),800,void 0,"task",!0)},n.prototype.tasksAutoCleanupDelay=function(){var t,e;return e=this,t=function(){return e.tasksAutoCleanup()},App.Delay.set(t,this.tasksAutoCleanupDelayTime,"task-autocleanup",void 0,!0)},n.prototype.tasksAutoCleanup=function(){var t,e,n,i,s,r,o,a;if(a=this,(t=function(){return Object.keys(a.allTasksByKey).length})()>this.maxTaskCount){for(i=[],e=0,n=(r=this.offlineModus?this.all():App.Taskbar.search({sortBy:"updated_at",order:"ASC"})).length;ethis.maxTaskCount)if(s.active)i.push(void 0);else if(o=App.TaskManager.worker(s.key)){if(o.changed&&o.changed())continue;this.log("notice","More then "+this.maxTaskCount+" tasks open, close oldest untouched task "+s.key),i.push(this.remove(s.key))}else i.push(void 0);else i.push(void 0);return i}},n.prototype.tasksInitial=function(){var t,e,n,i,s,r,o,a,l,c,p;for(this.init(),n=0,s=(c=App.Taskbar.all()).length;n"),e=this.objectIcon,!1===t.active&&this.inactiveObjectIcon&&(e=this.inactiveObjectIcon),App.view(this.templateObjectItem)({realname:n,object:t,icon:e})},e}(App.ObjectOrganizationAutocompletion),n=function(t){function e(){return this.onSubmit=i(this.onSubmit,this),e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.buttonClose=!0,e.prototype.buttonCancel=!0,e.prototype.buttonSubmit=!0,e.prototype.head=__("User"),e.prototype.headPrefix="New",e.prototype.content=function(){return this.controller=new App.ControllerForm({model:App.User,screen:"create",autofocus:!0}),this.controller.form},e.prototype.onSubmit=function(n){var t,e,i,s,r,o;if(!(e=this.formParam(n.target)).login&&e.email&&(e.login=e.email),!e.role_ids||_.isEmpty(e.role_ids)){for(i in s=[],App.Role.all())i&&!0===i.active&&!0===i.default_at_signup&&s.push(i.id);e.role_ids=s}return this.log("notice","updateAttributes",e),(o=new App.User).load(e),(t=o.validate({controllerForm:this.controller}))?(this.log("error",t),void this.formValidate({form:n.target,errors:t})):(r=this,o.save({done:function(){var t;return t=function(t){return r.parent.el.find("[name=customer_id]").val(t.id).trigger("change"),r.parent.close(),r.close()},App.User.full(this.id,t,!0)},fail:function(t,e){return r.log("errors",e),r.formEnable(n),r.controller.showAlert(e.error_human||e.error||__("The object could not be created."))}}))},e}(App.ControllerModal)}.call(this),function(){var t,n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;t=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.templateName="user_ticket_list",e.prototype.fetch=function(n){return this.params.parentController.ajax({type:"GET",url:App.Config.get("api_path")+"/ticket_customer",data:{customer_id:n.user_id},processData:!0,success:(i=this,function(t){var e;return App.Collection.loadAssets(t.assets),e={open:t.ticket_ids_open,closed:t.ticket_ids_closed},i.callback({ticketsList:e,selector:n.selector})})});var i},e.prototype.build=function(t){if(this.checkPermissions())return this.fetch(t)},e.prototype.callback=function(t){return this.clear(this.popovers),this.popovers=this.buildPopovers(t)},e.prototype.buildTitleFor=function(t){return $(t).find('[title="*"]').val()},e.prototype.buildContentFor=function(t,e){var n,i;return i=$(t).filter("[data-type]").data("type"),n=(e.ticketsList[i]||[]).map(function(t){return App.Ticket.fullLocal(t)}),this.buildHtmlContent({ticketList:App.view("generic/ticket_list")({tickets:n,show_id:!0})})},e}(App.PopoverProvider),App.PopoverProvider.registerProvider("UserTicket",t)}.call(this),function(){var e=[].slice;App.Utils=function(){function t(){}return t.mapTagAttributes={FONT:["color"],SPAN:["style"],DIV:["style"],TABLE:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","sortable","summary","width","style"],TD:["abbr","align","axis","colspan","headers","rowspan","valign","width","style"],TH:["abbr","align","axis","colspan","headers","rowspan","scope","sorted","valign","width","style"],TR:["width","style"],A:["href","hreflang","name","rel"],IMG:["align","alt","border","height","src","srcset","width","style"]},t.mapCss={SPAN:["color"],DIV:["color"],TABLE:["background","background-color","color","font-size","vertical-align","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","text-align","border","border-top","border-right","border-bottom","border-left","border-collapse","border-style","border-spacing","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style"],TH:["background","background-color","color","font-size","vertical-align","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","text-align","border","border-top","border-right","border-bottom","border-left","border-collapse","border-style","border-spacing","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style"],TR:["background","background-color","color","font-size","vertical-align","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","text-align","border","border-top","border-right","border-bottom","border-left","border-collapse","border-style","border-spacing","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style"],TD:["background","background-color","color","font-size","vertical-align","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","text-align","border","border-top","border-right","border-bottom","border-left","border-collapse","border-style","border-spacing","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style"],IMG:["width","height"]},t.cssValuesBacklist={DIV:["color:white","color:black","color:#000","color:#000000","color:#fff","color:#ffffff","color:rgb(0,0,0)","color:#585856","color:rgb(88, 88, 86)","color:#b3b3b3","color:rgb(34, 34, 34)"],SPAN:["color:white","color:black","color:#000","color:#000000","color:#fff","color:#ffffff","color:rgb(0,0,0)","color:#585856","color:rgb(88, 88, 86)","color:#b3b3b3","color:rgb(34, 34, 34)"],TABLE:["font-size:0","font-size:0px","font-size:0em","font-size:0%","font-size:1px","font-size:1em","font-size:1%","font-size:2","font-size:2px","font-size:2em","font-size:2%","font-size:3","font-size:3px","font-size:3em","font-size:3%","display:none","visibility:hidden"],TH:["font-size:0","font-size:0px","font-size:0em","font-size:0%","font-size:1px","font-size:1em","font-size:1%","font-size:2","font-size:2px","font-size:2em","font-size:2%","font-size:3","font-size:3px","font-size:3em","font-size:3%","display:none","visibility:hidden"],TR:["font-size:0","font-size:0px","font-size:0em","font-size:0%","font-size:1","font-size:1px","font-size:1em","font-size:1%","font-size:2","font-size:2px","font-size:2em","font-size:2%","font-size:3","font-size:3px","font-size:3em","font-size:3%","display:none","visibility:hidden"],TD:["font-size:0","font-size:0px","font-size:0em","font-size:0%","font-size:1px","font-size:1em","font-size:1%","font-size:2","font-size:2px","font-size:2em","font-size:2%","font-size:3","font-size:3px","font-size:3em","font-size:3%","display:none","visibility:hidden"]},t.textCleanup=function(t){return t?t.trim().replace(/(\r\n|\n\r)/g,"\n").replace(/\r/g,"\n").replace(/[ ]\n/g,"\n").replace(/\n{3,20}/g,"\n\n"):""},t.text2html=function(t){return t=this.textCleanup(t),(t="
                            "+(t=(t=(t=this.linkify(t)).replace(/(\n\r|\r\n|\r)/g,"\n")).replace(/ /g,"  ")).replace(/\n/g,"
                            ")+"
                            ").replace(/
                            <\/div>/g,"

                            ")},t.html2text=function(t,e){return t?e?(t=t.replace(/([A-z])\n([A-z])/gm,"$1 $2").replace(/\n|\r/g,"").replace(/<(br|hr)>/g,"\n").replace(/<(br|hr)\/>/g,"\n").replace(/<\/(div|p|blockquote|form|textarea|address|tr)>/g,"\n"),$("
                            "+t+"
                            ").text()):(t=(t=t.replace(/([A-z])\n([A-z])/gm,"$1 $2").replace(/>\n/g,">").replace(/\n|\r/g,"")).replace(/<(br|hr)>/g,"\n").replace(/<(br|hr)\/>/g,"\n").replace(/<(div)(|.+?)>/g,"").replace(/<(p|blockquote|form|textarea|address|tr)(|.+?)>/g,"\n").replace(/<\/(div|p|blockquote|form|textarea|address|tr)>/g,"\n"),$("
                            "+t+"
                            ").text().trim().replace(/\n{3,20}/g,"\n\n")):t},t.linkify=function(t){return window.linkify(t)},t.phoneify=function(t){return _.isEmpty(t)?t:"tel:"+(t=t.replace(/[^0-9,\+,#,\*]+/g,"").replace(/(.)\+/,"$1"))},t.wrap=function(t,e){var n,i,s,r,o,a,l,c,p,u,h,d;for(null==e&&(e=82),h="",s=n=0,o=(l=t.split(/\n/)).length;se&&(p=0,d=d.trim(),h+=d+="\n",d=""),p+=c.length,d+=c,i!==u.length&&(p+=1,d+=" ");h+=d,d="",n!==l.length&&(h+="\n")}return h},t.quote=function(t,e){return null==e&&(e=82),t=this.textCleanup(t),(t=this.wrap(t,e)).trim().replace(/^(.*)$/gm,function(t){return t?"> "+t:">"})},t.escapeRegExp=function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},t.htmlEscape=function(t){return t&&t.replace?t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"):t},t.htmlStrip=function(t){for(var e,n,i;(n=t.get(0))&&(e=n.firstChild)&&1===e.nodeType&&"BR"===e.tagName&&e.remove;)e.remove();for(i=[];(n=t.get(0))&&(e=n.lastChild)&&1===e.nodeType&&"BR"===e.tagName&&e.remove;)i.push(e.remove());return i},t.htmlLastLineEmpty=function(t){var e,n;return!!(n=t.get(0))&&(!!(e=n.lastChild)&&(1===e.nodeType&&"BR"===e.tagName))},t.htmlRemoveTags=function(t){return t=this._checkTypeOf(t),this._removeComments(t),this._removeWordMarkup(t),t.find("div, span, p, li, ul, ol, a, b, u, i, label, small, strong, strike, pre, code, center, blockquote, form, fieldset, textarea, font, address, table, thead, tbody, tr, th, td, h1, h2, h3, h4, h5, h6").replaceWith(function(){return $(this).contents()}),t.find("div, span, p, li, ul, ol, a, b, u, i, label, small, strong, strike, pre, code, center, blockquote, form, fieldset, textarea, font, table, thead, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, br, hr, img, svg, input, select, button, style, applet, embed, noframes, canvas, script, frame, iframe, meta, link, title, head").remove(),t},t.htmlRemoveRichtext=function(t,e){return null==e&&(e=!0),t&&(t=this._checkTypeOf(t),this._removeComments(t),this._removeWordMarkup(t),t.find("li, ul, ol, a, b, u, i, label, small, strong, strike, pre, code, center, blockquote, form, fieldset, textarea, font, address, table, thead, tbody, tr, th, td, h1, h2, h3, h4, h5, h6").replaceWith(function(){return $(this).contents()}),t.find("li, ul, ol, a, b, u, i, label, small, strong, strike, pre, code, center, blockquote, form, fieldset, textarea, font, address, table, thead, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, hr, img, svg, input, select, button, style, applet, embed, noframes, canvas, script, frame, iframe, meta, link, title, head").remove(),this._removeAttributes(t,e)),t},t.htmlCleanup=function(t){var i;return t&&(t=this._checkTypeOf(t),this._removeComments(t),this._removeWordMarkup(t),this._stripDoubleDomainAnchors(t),t.find("small, time, form, label").replaceWith(function(){return $(this).contents()}),i="div",t.find("textarea").each(function(){var t,e,n;return e=this.outerHTML,n=new RegExp("<"+this.tagName,"i"),t=e.replace(n,"<"+i),n=new RegExp(""+t+"
                            "):e&&e.get(0)?e:$("
                            "+t+"
                            ")}catch(n){return n,$("
                            "+t+"
                            ")}},t._cleanAttribute=function(t){var e,n,i,s,r,o,a,l,c,p,u,h,d,f,m;if(t){if(this.mapTagAttributes[t.nodeName])for(s=0,l=(n=t.attributes).length;s"+t+"").text().trim()).replace(/(\n|\r|\t)/g,""),s=(s=$("
                            "+e+"
                            ").text().trim()).replace(/(\n|\r|\t)/g,""),i=new RegExp(function(t){return(t+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}(s),"mi"),!n.match(i)},t.signatureIdentifyByPlaintext=function(t,e,n){var a,i,s,r,o,l,c;if(null==e&&(e=!1),null==n&&(n=!1),c=(l=this.html2text(t)).split("\n"),!e&&c.length<10&&l.length<300)return t;if(r=function(t){return(t+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")},a=function(t){return t.match(/(<|>|&)/)&&(t=t.replace(/(.+?)(<|>|&).+?$/,"$1").trim()),t},function(t,e){var n,i,s,r,o;for(n=r=0,i=t.length;n)/g,""),n=a)}(c,s),function(t,e){var n,i,s,r,o;for(n=r=0,i=t.length;n)'),t.match(o))return t.replace(o,i+"$1");if(o=new RegExp('(
                            )'),t.match(o))return t.replace(o,i+"$1")}return(s&&s[0]||(o=new RegExp('(
                            )'),!t.match(o)))&&(s&&s[0]||(o=new RegExp('(
                            )'),!t.match(o)))?s&&s[0]?"separator"===(s=_.sortBy(s,"lineCount"))[0].type?(o=new RegExp(">(s{0,10}"+r(App.Utils.htmlEscape(s[0].line))+")s{0,10}<"),t.replace(o,">"+i+"$1<")):(o=new RegExp(">(s{0,10}"+r(App.Utils.htmlEscape(s[0].line))+")"),t.replace(o,">"+i+"$1")):t:t.replace(o,i+"$1")},t.isMicrosoftOffice=function(t){var e;return e=new RegExp("-----(Urspr\xfcngliche Nachricht|Original Message|Mensaje original|Message d'origine|Messaggio originale|\u90ae\u4ef6\u539f\u4ef6|\u539f\u59cb\u90f5\u4ef6)-----"),t.match(e)},t.signatureIdentifyByHtml=function(t){var e,n,i;return this.isMicrosoftOffice(t)?this.signatureIdentifyByPlaintext(t):1===(e=$(App.Utils.safeParseHtml(t))).length&&(null!=(n=$(e[0]))&&null!=(i=n.children())?i.length:void 0)?(e[0].innerHTML=this.signatureIdentifyByHtmlHelper(e[0].innerHTML),e[0].outerHTML):this.signatureIdentifyByHtmlHelper(t)},t.signatureIdentifyByHtmlHelper=function(t,e){var n,i,s,r,o,a,l,c;null==e&&(e=!1),s=[],i=[],c=[],r=function(t){var e;return"BLOCKQUOTE"===(e=(t=$(t)).prop("tagName"))||(!("DIV"!==e||!t.data("signature")&&"yahoo_quoted"!==t.prop("class"))||_.some(t.children(),function(t){return r(t)}))};try{n=$("
                            ").html(t)}catch(p){p,n=$("
                            ").html("
                            "+t+"
                            ")}return 0").text(n).html()),n.trim().length)return i.push(t)}else if(e.nodeType===Node.ELEMENT_NODE){if(c.push(e.outerHTML),r(e))return s.push(t);if(n.trim().length)return i.push(t)}}),l=_.max(i||0),(s=_.filter(s,function(t){return l<=t})).length?(o=_.min(s),a='',c.splice(o,0,a),c.join("")):t)},t.replaceTags=function(t,h,d){return null==d&&(d=!1),t.replace(/#\{\s{0,2}(.+?)\s{0,2}\}/g,function(t,e){var n,i,s,r,o,a,l,c,p,u;for(l=(e=e.replace(/<.+?>/g,"")).split(/\./),i=h,s=void 0,r=0,o=l.length;r"+t+"
                            ")).find("blockquote").remove(),o=a.text(),i=0,s=(r=["Attachment","attachment","Attached","attached","Enclosed","enclosed","Enclosure","enclosure"]).length;i'}},t.fontIcon=function(t,e,n){return null==n&&(n=""),this.loadIconFont(e),''+String.fromCharCode("0x"+t)+""},t.loadIconFont=function(t){var e;if(!$('[data-icon-font="'+t+'"]').length)return e="@font-face {\n font-family: '"+t+"';\n src: url('"+("assets/icon-fonts/"+t+".woff")+"');\n font-weight: normal;\n font-style: normal;\n}\n\n[data-font=\""+t+"\"] {\n font-family: '"+t+"';\n}",$('