window.zammadChatTemplates||(window.zammadChatTemplates={}),window.zammadChatTemplates.agent=function(e){function t(e){return e&&e.ecoSafe?e:void 0!==e&&null!=e?o(e):""}var n=[],s=(e=e||{}).safe,o=e.escape,o=(e.safe=function(e){return e&&e.ecoSafe?e:(void 0!==e&&null!=e||(e=""),(e=new String(e)).ecoSafe=!0,e)},o||(e.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}));return function(){!function(){this.agent.avatar&&(n.push('\n\n')),n.push('\n\n '),n.push(t(this.agent.name)),n.push("\n")}.call(this)}.call(e),e.safe=s,e.escape=o,n.join("")},function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).DOMPurify=t()}(this,function(){"use strict";function Ee(){for(var e=arguments.length,t=Array(e),n=0;n/gm),it=e(/^data-[\-\w.\u00B7-\uFFFF]/),at=e(/^aria-[\-\w]+$/),rt=e(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lt=e(/^(?:\w+script|data):/i),ct=e(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Je(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t"+e:n=(s=je(e,/^[\r\n\t ]+/))&&s[0],u?u.createHTML(e):e);if(I===E)try{t=(new F).parseFromString(s,"text/html")}catch(e){}if(!t||!t.documentElement){t=i.createDocument(I,"template",null);try{t.documentElement.innerHTML=te?"":s}catch(e){}}return s=t.body||t.documentElement,e&&n&&s.insertBefore(o.createTextNode(n),s.childNodes[0]||null),I===E?V.call(t,C?"html":"body")[0]:C?t.documentElement:s}function X(e){return Y.call(e.ownerDocument||e,e,t.SHOW_ELEMENT|t.SHOW_COMMENT|t.SHOW_TEXT,null,!1)}function p(e){return"object"===(void 0===d?"undefined":$e(d))?e instanceof d:e&&"object"===(void 0===e?"undefined":$e(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function $(e){var t;if(M("beforeSanitizeElements",e,null),!((n=e)instanceof q||n instanceof P||"string"==typeof n.nodeName&&"string"==typeof n.textContent&&"function"==typeof n.removeChild&&n.attributes instanceof N&&"function"==typeof n.removeAttribute&&"function"==typeof n.setAttribute&&"string"==typeof n.namespaceURI&&"function"==typeof n.insertBefore))return m(e),1;if(je(e.nodeName,/[\u0080-\uFFFF]/))return m(e),1;var n=Re(e.nodeName);if(M("uponSanitizeElement",e,{tagName:n,allowedTags:b}),!p(e.firstElementChild)&&(!p(e.content)||!p(e.content.firstElementChild))&&qe(/<[/\w]/g,e.innerHTML)&&qe(/<[/\w]/g,e.textContent))return m(e),1;if("select"===n&&qe(/