*/i="undefined"!=typeof window?window:this,a=function(n,i){var a=[],o=a.slice,s=a.concat,u=a.push,l=a.indexOf,d={},c=d.toString,f=d.hasOwnProperty,h={},m=n.document,_=function(e,t){return new _.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,g=/-([\da-z])/gi,v=function(e,t){returnt.toUpperCase()};functionM(e){vart="length"ine&&e.length,n=_.type(e);return"function"!==n&&!_.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeoft&&t>0&&t-1ine)}_.fn=_.prototype={jquery:"2.1.4",constructor:_,selector:"",length:0,toArray:function(){returno.call(this)},get:function(e){returnnull!=e?e<0?this[e+this.length]:this[e]:o.call(this)},pushStack:function(e){vart=_.merge(this.constructor(),e);returnt.prevObject=this,t.context=this.context,t},each:function(e,t){return_.each(this,e,t)},map:function(e){returnthis.pushStack(_.map(this,(function(t,n){returne.call(t,n,t)})))},slice:function(){returnthis.pushStack(o.apply(this,arguments))},first:function(){returnthis.eq(0)},last:function(){returnthis.eq(-1)},eq:function(e){vart=this.length,n=+e+(e<0?t:0);returnthis.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){returnthis.prevObject||this.constructor(null)},push:u,sort:a.sort,splice:a.splice},_.extend=_.fn.extend=function(){vare,t,n,r,i,a,o=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeofo&&(l=o,o=arguments[s]||{},s++),"object"==typeofo||_.isFunction(o)||(o={}),s===u&&(o=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(tine)n=o[t],o!==(r=e[t])&&(l&&r&&(_.isPlainObject(r)||(i=_.isArray(r)))?(i?(i=!1,a=n&&_.isArray(n)?n:[]):a=n&&_.isPlainObject(n)?n:{},o[t]=_.extend(l,a,r)):void0!==r&&(o[t]=r));returno},_.extend({expando:"jQuery"+("2.1.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){thrownewError(e)},noop:function(){},isFunction:function(e){return"function"===_.type(e)},isArray:Array.isArray,isWindow:function(e){returnnull!=e&&e===e.window},isNumeric:function(e){return!_.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return!("object"!==_.type(e)||e.nodeType||_.isWindow(e)||e.constructor&&!f.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){vart;for(tine)return!1;return!0},type:function(e){returnnull==e?e+"":"object"==typeofe||"function"==typeofe?d[c.call(e)]||"object":typeofe},globalEval:function(e){vart,n=eval;(e=_.trim(e))&&(1===e.indexOf("use strict")?((t=m.createElement("script")).text=e,m.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){returne.replace(y,"ms-").replace(g,v)},nodeName:function(e,t){returne.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){varr=0,i=e.length,a=M(e);if(n){if(a)for(;r<i&&!1!==t.apply(e[r],n);r++);elsefor(rine)if(!1===t.apply(e[r],n))break}elseif(a)for(;r<i&&!1!==t.call(e[r],r,e[r]);r++);elsefor(rine)if(!1===t.call(e[r],r,e[r]))break;returne},trim:function(e){returnnull==e?"":(e+"").replace(p,"")},makeArray:function(e,t){varn=t||[];returnnull!=e&&(M(Object(e))?_.merge(n,"string"==typeofe?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){returnnull==t?-1:l.call(t,e,n)},merge:function(e,t){for(varn=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];returne.length=i,e},grep:function(e,t,n){for(varr=[],i=0,a=e.length,o=!n;i<a;i++)!t(e[i],i)!==o&&r.push(e[i]);returnr},map:function(e,t,n){varr,i=0,a=e.length,o=[];if(M(e))for(;i<a;i++)null!=(r=t(e[i],i,n))&&o.push(r);elsefor(iine)null!=(r=t(e[i],i,n))&&o.push(r);returns.apply([],o)},guid:1,proxy:function(e,t){varn,r,i;if("string"==typeoft&&(n=e[t],t=e,e=n),_.isFunction(e))returnr=o.call(arguments,2),(i=function(){returne.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||_.guid++,i},now:Date.now,support:h}),_.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));varL=
function(e,t){varn=["B","KB","MB","GB","TB"],r=e>0?Math.floor(Math.log(e)/Math.log(1024)):0,i=n[r=Math.min(n.length-1,r)],a=(e/Math.pow(1024,r)).toFixed(1);return!0===t&&0===r?"0.0"!==a?"< 1 KB":"0 KB":(a=r<2?parseFloat(a).toFixed(0):".0"===a.substr(a.length-2,2)?a.substr(0,a.length-2):parseFloat(a).toLocaleString(OC.getCanonicalLocale()))+" "+i},computerFileSize:function(e){if("string"!=typeofe)returnnull;vart=e.toLowerCase().trim(),n=null,r=t.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i);returnnull===r?null:(n=parseFloat(t),isFinite(n)?(r[5]&&(n*={b:1,k:1024,kb:1024,mb:1048576,m:1048576,gb:1073741824,g:1073741824,tb:1099511627776,t:1099511627776,pb:0x4000000000000,p:0x4000000000000}[r[5]]),n=Math.round(n)):null)},formatDate:function(e,t){returnt=t||"LLL",oe()(e).format(t)},relativeModifiedDate:function(e){varn=oe()().diff(oe()(e));returnn>=0&&n<45e3?t("core","seconds ago"):oe()(e).fromNow()},isIE:function(){returns()("html").hasClass("ie")},getScrollBarWidth:function(){if(this._scrollBarWidth)returnthis._scrollBarWidth;vare=document.createElement("p");e.style.width="100%",e.style.height="200px";vart=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);varn=e.offsetWidth;t.style.overflow="scroll";varr=e.offsetWidth;returnn===r&&(r=t.clientWidth),document.body.removeChild(t),this._scrollBarWidth=n-r,this._scrollBarWidth},stripTime:function(e){returnnewDate(e.getFullYear(),e.getMonth(),e.getDate())},naturalSortCompare:function(e,t){varn,r=se(e),i=se(t);for(n=0;r[n]&&i[n];n++)if(r[n]!==i[n]){vara=Number(r[n]),o=Number(i[n]);returna==r[n]&&o==i[n]?a-o:r[n].localeCompare(i[n],me.getLanguage())}returnr.length-i.length},waitFor:function(e,t){!functionn(){!0!==e()&&setTimeout(n,t)}()},isCookieSetToValue:function(e,t){for(varn=document.cookie.split(";"),r=0;r<n.length;r++){vari=n[r].split("=");if(i[0].trim()===e&&i[1].trim()===t)return!0}return!1}},le=i(191),de=window._oc_webroot;if(void0===de){varce=(de=location.pathname).indexOf("/index.php/");de=-1!==ce?de.substr(0,ce):de.substr(0,de.lastIndexOf("/"))}varfe,he=de,me=r.a={coreApps:A.i,menuSpeed:A.j,PERMISSION_ALL:A.a,PERMISSION_CREATE:A.b,PERMISSION_DELETE:A.c,PERMISSION_NONE:A.d,PERMISSION_READ:A.e,PERMISSION_SHARE:A.f,PERMISSION_UPDATE:A.g,TAG_FAVORITE:A.h,fileIsBlacklisted:function(e){return!!e.match(P.blacklist_files_regex)},addScript:function(e,t,n){varr;console.warn("OC.addScript is deprecated, use OCP.Loader.loadScript instead");vari=OC.filePath(e,"js",t+".js");returnu[i]?n&&n():(r=s.a.Deferred(),s.a.getScript(i,(function(){returnr.resolve()})),u[i]=r),u[i]},addStyle:function(e,t){console.warn("OC.addStyle is deprecated, use OCP.Loader.loadStylesheet instead");varn=OC.filePath(e,"css",t+".css");-1===l.indexOf(n)&&(l.push(n),document.createStyleSheet?document.createStyleSheet(n):(t=s()('<link rel="stylesheet" type="text/css" href="'+n+'"/>'),s()("head").append(t)))},Apps:m.a,AppConfig:y,appConfig:p,appSettings:function(e){if(console.warn("OC.appSettings is deprecated and will be removed with Nextcloud 18"),void0===e||void0===e.appid)throw{name:"MissingParameter",message:"The parameter appid is missing"};varn={scriptName:"settings.php",cache:!0};s.a.extend(n,e);varr=s()("#appsettings");if(0===r.length)throw{name:"MissingDOMElement",message:'There has be be an element with id "appsettings" for the popup to show.'};vari=s()("#appsettings_popup");if(0===i.length&&(s()("body").prepend('<div class="popup hidden" id="appsettings_popup"></div>'),(i=s()("#appsettings_popup")).addClass(r.hasClass("topright")?"topright":"bottomleft")),i.is(":visible"))i.hide().remove();else{vara=r.hasClass("topright")?"up":"left";s.a.get(Object(g.a)(n.appid,"",n.scriptName),(function(e){i.html(e).ready((function(){if(i.prepend('<span class="arrow '+a+'"></span><h2>'+t("core","Settings")+'</h2><a class="close"></a>').show(),i.find(".close").bind("click",(function(){i
varr=function(e){vart,n,r,i={};if(!e)returnnull;(t=e.indexOf("?"))>=0&&(e=e.substr(t+1));for(vara=e.replace(/\+/g,"%20").split("&"),o=0;o<a.length;o++){vars=a[o];(n=(t=s.indexOf("="))>=0?[s.substr(0,t),s.substr(t+1)]:[s]).length&&((r=decodeURIComponent(n[0]))&&(n.length>1?i[r]=decodeURIComponent(n[1]):i[r]=null))}returni},i=function(t){returnt?e.map(t,(function(e,t){varn=encodeURIComponent(t);returnnull!=e&&(n+="="+encodeURIComponent(e)),n})).join("&"):""}}).call(this,n(0))},function(e,t,n){varr=n(6),i=n(85),a=r.WeakMap;e.exports="function"==typeofa&&/native code/.test(i(a))},function(e,t,n){varr=n(11),i=n(133),a=n(26),o=n(12);e.exports=function(e,t){for(varn=i(t),s=o.f,u=a.f,l=0;l<n.length;l++){vard=n[l];r(e,d)||s(e,d,u(t,d))}}},function(e,t,n){varr=n(8);e.exports=function(e){if(!r(e)&&null!==e)throwTypeError("Can't set "+String(e)+" as a prototype");returne}},function(e,t,n){"use strict";varr=n(145),i=n(181);e.exports=r("Map",(function(e){returnfunction(){returne(this,arguments.length?arguments[0]:void0)}}),i)},function(e,t,n){varr=n(9);e.exports=function(e,t,n,i){try{returni?t(r(n)[0],n[1]):t(n)}catch(t){vara=e.return;throwvoid0!==a&&r(a.call(e)),t}}},function(e,t,n){"use strict";varr=n(12).f,i=n(44),a=n(104),o=n(46),s=n(58),u=n(64),l=n(73),d=n(105),c=n(10),f=n(75).fastKey,h=n(22),m=h.set,_=h.getterFor;e.exports={getConstructor:function(e,t,n,l){vard=e((function(e,r){s(e,d,t),m(e,{type:t,index:i(null),first:void0,last:void0,size:0}),c||(e.size=0),null!=r&&u(r,e[l],e,n)})),h=_(t),p=function(e,t,n){varr,i,a=h(e),o=y(e,t);returno?o.value=n:(a.last=o={index:i=f(t,!0),key:t,value:n,previous:r=a.last,next:void0,removed:!1},a.first||(a.first=o),r&&(r.next=o),c?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},y=function(e,t){varn,r=h(e),i=f(t);if("F"!==i)returnr.index[i];for(n=r.first;n;n=n.next)if(n.key==t)returnn};returna(d.prototype,{clear:function(){for(vare=h(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void0),deletet[n.index],n=n.next;e.first=e.last=void0,c?e.size=0:this.size=0},delete:function(e){vart=h(this),n=y(this,e);if(n){varr=n.next,i=n.previous;deletet.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),c?t.size--:this.size--}return!!n},forEach:function(e){for(vart,n=h(this),r=o(e,arguments.length>1?arguments[1]:void0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),a(d.prototype,n?{get:function(e){vart=y(this,e);returnt&&t.value},set:function(e,t){returnp(this,0===e?0:e,t)}}:{add:function(e){returnp(this,e=0===e?0:e,e)}}),c&&r(d.prototype,"size",{get:function(){returnh(this).size}}),d},setStrong:function(e,t,n){varr=t+" Iterator",i=_(t),a=_(r);l(e,t,(function(e,t){m(this,{type:r,target:e,state:i(e),kind:t,last:void0})}),(function(){for(vare=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;returne.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void0,{value:void0,done:!0})}),n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){varr=n(6),i=n(127),a=n(92),o=n(13),s=n(7),u=s("iterator"),l=s("toStringTag"),d=a.values;for(varcini){varf=r[c],h=f&&f.prototype;if(h){if(h[u]!==d)try{o(h,u,d)}catch(e){h[u]=d}if(h[l]||o(h,l,c),i[c])for(varmina)if(h[m]!==a[m])try{o(h,m,a[m])}catch(e){h[m]=a[m]}}}},function(e,t,n){"use strict";varr=n(2),i=n(128);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,n){"use strict";n(183);varr=n(18),i=n(5),a=n(7),o=n(128),s=n(13),u=a("species"),l=!i((function(){vare=/./;returne.exec=function(){vare=[];returne.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d="$0"==="a".replace(/./,"$0"),c=a("replace"),f=!!/./[c]&&""===/./[c]("a","$0"),h=!i((function(){vare=/(?:)/,t=e.exec;e.exec=function(){returnt.apply(this,arguments)};varn="ab".split(e);return2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,c){varm=a(e),_=!i((function(){vart
varr=window._oc_debug},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyBus=void0;varr,i=(r=n(193))&&r.__esModule?r:{default:r};functiona(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}varo="1.1.4",s=function(){functione(t){!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,e),function(e,t,n){tine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"bus",void0),"function"==typeoft.getVersion&&i.default.valid(t.getVersion())?i.default.major(t.getVersion())!==i.default.major(this.getVersion())&&console.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()):console.warn("Proxying an event bus with an unknown or invalid version"),this.bus=t}vart,n,r;returnt=e,(n=[{key:"getVersion",value:function(){returno}},{key:"subscribe",value:function(e,t){this.bus.subscribe(e,t)}},{key:"unsubscribe",value:function(e,t){this.bus.unsubscribe(e,t)}},{key:"emit",value:function(e,t){this.bus.emit(e,t)}}])&&a(t.prototype,n),r&&a(t,r),e}();t.ProxyBus=s},function(e,t,n){(function(n){varr;t=e.exports=f,r="object"==typeofn&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?function(){vare=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";vari=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],o=t.src=[],s=t.tokens={},u=0;functionl(e){s[e]=u++}l("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",l("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",l("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",l("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",l("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",l("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",l("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",l("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",l("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",l("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",l("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",l("FULL"),l("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",l("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",l("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",l("GTLT"),o[s.GTLT]="((?:<|>)?=?)",l("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",l("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",l("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",l("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",l("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",l("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",l("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",l("COERCERTL"),a[s.COERCERTL]=newRegExp(o[s.COERCE],"g"),l("LONETILDE"),o[s.LONETILDE]="(?:~>?)",l("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",a[s.TILDETRIM]=newRegExp(o[s.TILDETRIM],"g");l("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE
varr,i;r=this,i=function(e){vart=function(e){returnnewt.lib.init(e)};functionn(e,t){return!(!e||"string"!=typeoft||!(e.className&&e.className.trim().split(/\s+/gi).indexOf(t)>-1))}returnt.lib=t.prototype={toastify:"1.7.0",constructor:t,init:function(e){returne||(e={}),this.options={},this.toastElement=null,this.options.text=e.text||"Hi there!",this.options.duration=0===e.duration?0:e.duration||3e3,this.options.selector=e.selector,this.options.callback=e.callback||function(){},this.options.destination=e.destination,this.options.newWindow=e.newWindow||!1,this.options.close=e.close||!1,this.options.gravity="bottom"===e.gravity?"toastify-bottom":"toastify-top",this.options.positionLeft=e.positionLeft||!1,this.options.position=e.position||"",this.options.backgroundColor=e.backgroundColor,this.options.avatar=e.avatar||"",this.options.className=e.className||"",this.options.stopOnFocus=void0===e.stopOnFocus||e.stopOnFocus,this.options.onClick=e.onClick,this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";vare=document.createElement("div");if(e.className="toastify on "+this.options.className,this.options.position?e.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(e.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):e.className+=" toastify-right",e.className+=" "+this.options.gravity,this.options.backgroundColor&&(e.style.background=this.options.backgroundColor),e.innerHTML=this.options.text,""!==this.options.avatar){vart=document.createElement("img");t.src=this.options.avatar,t.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?e.appendChild(t):e.insertAdjacentElement("beforeend",t)}if(!0===this.options.close){varn=document.createElement("span");n.innerHTML="✖",n.className="toast-close",n.addEventListener("click",function(e){e.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));varr=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&r>360?e.insertAdjacentElement("afterbegin",n):e.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0){constt=this;e.addEventListener("mouseover",(function(t){window.clearTimeout(e.timeOutValue)})),e.addEventListener("mouseleave",(function(){e.timeOutValue=window.setTimeout((function(){t.removeElement(e)}),t.options.duration)}))}returnvoid0!==this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeofthis.options.onClick&&void0===this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),this.options.onClick()}.bind(this)),e},showToast:function(){vare;if(this.toastElement=this.buildToast(),!(e=void0===this.options.selector?document.body:document.getElementById(this.options.selector)))throw"Root element is not defined";returne.insertBefore(this.toastElement,e.firstChild),t.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(e){e.className=e.className.replace(" on",""),window.setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e),this.options.callback.call(e),t.reposition()}.bind(this),400)}},t.reposition=function(){for(vare,t={top:15,bottom:15},r={top:15,bottom:15},i={top:15,bottom:15},a=document.getElementsByClassName("toastify"),o=0;o<a.length;o++){e=!0===n(a[o],"toastify-top")?"toastify-top":"toastify-bottom";vars=a[o].offsetHeight;e=e.substr(9,e.length-1),(window.innerWidth>0?window.innerWidth:screen.width)<=360?(a[o].style[e]=i[e]+"px",i[e]+=s+15):!0===n(