/*! For license information please see core-main.js.LICENSE.txt */
!function(){var e,i,o,r={98821:function(e,i,o){"use strict";var r={};o.r(r),o.d(r,{deleteKey:function(){return k},getApps:function(){return C},getKeys:function(){return x},getValue:function(){return w},setValue:function(){return y}});var s={};o.r(s),o.d(s,{formatLinksPlain:function(){return sn},formatLinksRich:function(){return rn},plainToRich:function(){return nn},richToPlain:function(){return on}});var a={};o.r(a),o.d(a,{dismiss:function(){return un},query:function(){return cn}}),o(28594),o(35666);var c=o(69183),u=o(59050),l=o(19755),h=o.n(l),d=o(64024),p=o(25108),A={updatableNotification:null,getDefaultNotificationFunction:null,setDefault:function(t){this.getDefaultNotificationFunction=t},hide:function(t,e){u.default.isFunction(t)&&(e=t,t=void 0),t?(t.each((function(){h()(this)[0].toastify?h()(this)[0].toastify.hideToast():p.error("cannot hide toast because object is not set"),this===this.updatableNotification&&(this.updatableNotification=null)})),e&&e.call(),this.getDefaultNotificationFunction&&this.getDefaultNotificationFunction()):p.error("Missing argument $row in OC.Notification.hide() call, caller needs to be adjusted to only dismiss its own notification")},showHtml:function(t,e){(e=e||{}).isHTML=!0,e.timeout=e.timeout?e.timeout:d.Rl;var n=(0,d.PV)(t,e);return n.toastElement.toastify=n,h()(n.toastElement)},show:function(t,e){(e=e||{}).timeout=e.timeout?e.timeout:d.Rl;var n=(0,d.PV)(function(t){return t.toString().split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""").split("'").join("'")}(t),e);return n.toastElement.toastify=n,h()(n.toastElement)},showUpdate:function(t){return this.updatableNotification&&this.updatableNotification.hideToast(),this.updatableNotification=(0,d.PV)(t,{timeout:d.Rl}),this.updatableNotification.toastElement.toastify=this.updatableNotification,h()(this.updatableNotification.toastElement)},showTemporary:function(t,e){(e=e||{}).timeout=e.timeout||d.TN;var n=(0,d.PV)(t,e);return n.toastElement.toastify=n,h()(n.toastElement)},isHidden:function(){return!h()("#content").find(".toastify").length}},f=u.default.throttle((function(){A.showTemporary(t("core","Connection to server lost"))}),7e3,{trailing:!1}),g=!1,m={enableDynamicSlideToggle:function(){g=!0},showAppSidebar:function(t){(t||h()("#app-sidebar")).removeClass("disappear").show(),h()("#app-content").trigger(new(h().Event)("appresized"))},hideAppSidebar:function(t){(t||h()("#app-sidebar")).hide().addClass("disappear"),h()("#app-content").trigger(new(h().Event)("appresized"))}},v=o(79753);function b(t,e,n){"post"!==t&&"delete"!==t||!zt.PasswordConfirmation.requiresPasswordConfirmation()?(n=n||{},h().ajax({type:t.toUpperCase(),url:(0,v.generateOcsUrl)("apps/provisioning_api/api/v1/config/apps")+e,data:n.data||{},success:n.success,error:n.error})):zt.PasswordConfirmation.requirePasswordConfirmation(_.bind(b,this,t,e,n))}function C(t){b("get","",t)}function x(t,e){b("get","/"+t,e)}function w(t,e,n,i){(i=i||{}).data={defaultValue:n},b("get","/"+t+"/"+e,i)}function y(t,e,n,i){(i=i||{}).data={value:n},b("post","/"+t+"/"+e,i)}function k(t,e,n){b("delete","/"+t+"/"+e,n)}var B=window.oc_appconfig||{},E={getValue:function(t,e,n,i){w(t,e,n,{success:i})},setValue:function(t,e,n){y(t,e,n)},getApps:function(t){C({success:t})},getKeys:function(t,e){x(t,{success:e})},deleteKey:function(t,e){k(t,e)}},D=void 0!==window._oc_appswebroots&&window._oc_appswebroots,I=o(72316),S=o.n(I),T=o(76591),M=o(25108),P={create:"POST",update:"PROPPATCH",patch:"PROPPATCH",delete:"DELETE",read:"PROPFIND"};function O(t,e){if(u.default.isArray(t))return u.default.map(t,(function(t){return O(t,e)}));var n={href:t.href};return u.default.each(t.propStat,(function(t){if("HTTP/1.1 200 OK"===t.status)for(var i in t.properties){var o=i;i in e&&(o=e[i]),n[o]=t.properties[i]}})),n.id||(n.id=z(n.href)),n}function z(t){var e=t.indexOf("?");e>0&&(t=t.substr(0,e));var n,i=t.split("/");do{n=i[i.length-1],i.pop()}while(!n&&i.length>0);return n}function R(t){return t>=200&&t<=299}function H(t,e,n,i){return t.propPatch(e.url,function(t,e){var n,i={};for(n in t){var o=e[n],r=t[n];o||(M.warn('No matching DAV property for property "'+n),o=n),(u.default.isBoolean(r)||u.default.isNumber(r))&&(r=""+r),i[o]=r}return i}(n.changed,e.davProperties),i).then((function(t){R(t.status)?u.default.isFunction(e.success)&&e.success(n.toJSON()):u.default.isFunction(e.error)&&e.error(t)}))}var N=S().noConflict();Object.assign(N,{davCall:function(t,e){var n=new T.dav.Client({baseUrl:t.url,xmlNamespaces:u.default.extend({"DAV:":"d","http://owncloud.org/ns":"oc"},t.xmlNamespaces||{})});n.resolveUrl=function(){return t.url};var i=u.default.extend({"X-Requested-With":"XMLHttpRequest",requesttoken:OC.requestToken},t.headers);return"PROPFIND"===t.type?function(t,e,n,i){return t.propFind(e.url,u.default.values(e.davProperties)||[],e.depth,i).then((function(t){if(R(t.status)){if(u.default.isFunction(e.success)){var n=u.default.invert(e.davProperties),i=O(t.body,n);e.depth>0&&i.shift(),e.success(i)}}else u.default.isFunction(e.error)&&e.error(t)}))}(n,t,0,i):"PROPPATCH"===t.type?H(n,t,e,i):"MKCOL"===t.type?function(t,e,n,i){return t.request(e.type,e.url,i,null).then((function(o){R(o.status)?H(t,e,n,i):u.default.isFunction(e.error)&&e.error(o)}))}(n,t,e,i):function(t,e,n,i){return i["Content-Type"]="application/json",t.request(e.type,e.url,i,e.data).then((function(t){if(R(t.status)){if(u.default.isFunction(e.success)){if("PUT"===e.type||"POST"===e.type||"MKCOL"===e.type){var i=t.body||n.toJSON(),o=t.xhr.getResponseHeader("Content-Location");return"POST"===e.type&&o&&(i.id=z(o)),void e.success(i)}if(207===t.status){var r=u.default.invert(e.davProperties);e.success(O(t.body,r))}else e.success(t.body)}}else u.default.isFunction(e.error)&&e.error(t)}))}(n,t,e,i)},davSync:function(t){return function(e,n,i){var o={type:P[e]||e},r=n instanceof t.Collection;if("update"===e&&(n.hasInnerCollection?o.type="MKCOL":(n.usePUT||n.collection&&n.collection.usePUT)&&(o.type="PUT")),i.url||(o.url=u.default.result(n,"url")||function(){throw new Error('A "url" property or function must be specified')}()),null!=i.data||!n||"create"!==e&&"update"!==e&&"patch"!==e||(o.data=JSON.stringify(i.attrs||n.toJSON(i))),"PROPFIND"!==o.type&&(o.processData=!1),"PROPFIND"===o.type||"PROPPATCH"===o.type){var s=n.davProperties;!s&&n.model&&(s=n.model.prototype.davProperties),s&&(u.default.isFunction(s)?o.davProperties=s.call(n):o.davProperties=s),o.davProperties=u.default.extend(o.davProperties||{},i.davProperties),u.default.isUndefined(i.depth)&&(i.depth=r?1:0)}var a=i.error;i.error=function(t,e,n){i.textStatus=e,i.errorThrown=n,a&&a.call(i.context,t,e,n)};var c=i.xhr=t.davCall(u.default.extend(o,i),n);return n.trigger("request",n,c,i),c}}(N)});var j=N,L=o(65358),U=window._oc_config||{},F=o(25108),W=I.Model.extend({defaults:{fullName:"",lastMessage:"",actions:[],hasOneAction:!1,hasTwoActions:!1,hasManyActions:!1},initialize:function(){0===this.get("actions").length?this.set("hasOneAction",!0):1===this.get("actions").length?(this.set("hasTwoActions",!0),this.set("secondAction",this.get("actions")[0])):this.set("hasManyActions",!0);var e=this.get("fullName");this.get("avatar")&&e&&this.set("avatarLabel",t("core","Avatar of {fullName}",{fullName:e}))}}),Y=I.Collection.extend({model:W}),Q=I.View.extend({_collection:void 0,_subViews:[],tagName:"ul",initialize:function(t){this._collection=t.collection},render:function(){var t=this;return t.$el.html(""),t._subViews=[],t._collection.forEach((function(e){var n=new q({model:e});n.render(),t.$el.append(n.$el),n.on("toggle:actionmenu",t._onChildActionMenuToggle,t),t._subViews.push(n)})),t},_onChildActionMenuToggle:function(t){this._subViews.forEach((function(e){e.trigger("parent:toggle:actionmenu",t)}))}}),q=I.View.extend({className:"contact",tagName:"li",_template:void 0,_model:void 0,_actionMenuShown:!1,events:{"click .icon-more":"_onToggleActionsMenu"},contactTemplate:o(10944),template:function(t){return this.contactTemplate(t)},initialize:function(t){this._model=t.model,this.on("parent:toggle:actionmenu",this._onOtherActionMenuOpened,this)},render:function(){return this.$el.html(this.template({contact:this._model.toJSON()})),this.delegateEvents(),this.$("div.avatar").imageplaceholder(this._model.get("fullName")),this},_onToggleActionsMenu:function(){this._actionMenuShown=!this._actionMenuShown,this._actionMenuShown?this.$(".menu").show():this.$(".menu").hide(),this.trigger("toggle:actionmenu",this.$el)},_onOtherActionMenuOpened:function(t){this.$el.is(t)||(this._actionMenuShown=!1,this.$(".menu").hide())}}),G=I.View.extend({_loadingTemplate:void 0,_errorTemplate:void 0,_contentTemplate:void 0,_contactsTemplate:void 0,_contacts:void 0,_searchTerm:"",events:{"input #contactsmenu-search":"_onSearch"},templates:{loading:o(95386),error:o(20421),menu:o(66115),list:o(34083)},_onSearch:u.default.debounce((function(t){var e=this.$("#contactsmenu-search").val();e!==this._searchTerm&&(this.trigger("search",this.$("#contactsmenu-search").val()),this._searchTerm=e)}),700),loadingTemplate:function(t){return this.templates.loading(t)},errorTemplate:function(e){return this.templates.error(u.default.extend({couldNotLoadText:t("core","Could not load your contacts")},e))},contentTemplate:function(e){return this.templates.menu(u.default.extend({searchContactsLabel:t("core","Search contacts")},e))},contactsTemplate:function(e){return this.templates.list(u.default.extend({noContactsFoundText:t("core","No contacts found"),showAllContactsText:t("core","Show all contacts …"),contactsAppMgmtText:t("core","Install the Contacts app")},e))},initialize:function(t){this.options=t},showLoading:function(t){this.render(),this._contacts=void 0,this.$(".content").html(this.loadingTemplate({loadingText:t}))},showError:function(){this.render(),this._contacts=void 0,this.$(".content").html(this.errorTemplate())},showContacts:function(t,e){this._contacts=t.contacts,this.render({contacts:t.contacts});var n=new Q({collection:t.contacts});n.render(),this.$(".content").html(this.contactsTemplate({contacts:t.contacts,searchTerm:e,contactsAppEnabled:t.contactsAppEnabled,contactsAppURL:zt.generateUrl("/apps/contacts"),canInstallApp:zt.isUserAdmin(),contactsAppMgmtURL:zt.generateUrl("/settings/apps/social/contacts")})),this.$("#contactsmenu-contacts").html(n.$el)},render:function(t){var e=this.$("#contactsmenu-search").val();return this.$el.html(this.contentTemplate(t)),this.$("#contactsmenu-search").val(e),this.$("#contactsmenu-search").focus(),this}}),X=function(t){this.initialize(t)};X.prototype={$el:void 0,_view:void 0,_contactsPromise:void 0,initialize:function(t){this.$el=h()(t.el),this._view=new G({el:this.$el}),this._view.on("search",(function(t){this.loadContacts(t)}),this)},_getContacts:function(t){var e=zt.generateUrl("/contactsmenu/contacts");return Promise.resolve(h().ajax(e,{method:"POST",data:{filter:t}}))},loadContacts:function(e){var n=this;return n._contactsPromise||(n._contactsPromise=n._getContacts(e)),u.default.isUndefined(e)||""===e?n._view.showLoading(t("core","Loading your contacts …")):n._view.showLoading(t("core","Looking for {term} …",{term:e})),n._contactsPromise.then((function(t){t.contacts=new Y(t.contacts),n._view.showContacts(t,e)}),(function(t){n._view.showError(),F.error("There was an error loading your contacts",t)})).then((function(){delete n._contactsPromise})).catch(F.error.bind(this))}};var V=X,K=document.getElementsByTagName("head")[0].getAttribute("data-user"),Z=document.getElementsByTagName("head")[0].getAttribute("data-user-displayname"),J=void 0!==K&&K,$=o(96384),tt=o(62520);function et(t){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(t)}var nt={YES_NO_BUTTONS:70,OK_BUTTONS:71,FILEPICKER_TYPE_CHOOSE:1,FILEPICKER_TYPE_MOVE:2,FILEPICKER_TYPE_COPY:3,FILEPICKER_TYPE_COPY_MOVE:4,FILEPICKER_TYPE_CUSTOM:5,dialogsCounter:0,alert:function(t,e,n,i){this.message(t,e,"alert",nt.OK_BUTTON,n,i)},info:function(t,e,n,i){this.message(t,e,"info",nt.OK_BUTTON,n,i)},confirm:function(t,e,n,i){return this.message(t,e,"notice",nt.YES_NO_BUTTONS,n,i)},confirmDestructive:function(t,e,n,i,o){return this.message(t,e,"none",n,i,void 0===o||o)},confirmHtml:function(t,e,n,i){return this.message(t,e,"notice",nt.YES_NO_BUTTONS,n,i,!0)},prompt:function(e,n,i,o,r,s){return h().when(this._getMessageTemplate()).then((function(a){var c="oc-dialog-"+nt.dialogsCounter+"-content",l="#"+c,d=a.octemplate({dialog_name:c,title:n,message:e,type:"notice"}),p=h()("");p.attr("type",s?"password":"text").attr("id",c+"-input").attr("placeholder",r);var A=h()("").attr("for",c+"-input").text(r+": ");d.append(A),d.append(p),void 0===o&&(o=!1),h()("body").append(d),void 0!==i&&(i=u.default.once(i));var f=[{text:t("core","No"),click:function(){void 0!==i&&i(!1,p.val()),h()(l).ocdialog("close")}},{text:t("core","Yes"),click:function(){void 0!==i&&i(!0,p.val()),h()(l).ocdialog("close")},defaultButton:!0}];h()(l).ocdialog({closeOnEscape:!0,modal:o,buttons:f,close:function(){void 0!==i&&i(!1,p.val())}}),p.focus(),nt.dialogsCounter++}))},filepicker:function(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:d.K9.Choose,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:void 0,u=function(t,e){var n=function(t){var e=(null==t?void 0:t.root)||"",n=(null==t?void 0:t.path)||"";return n.startsWith(e)&&(n=n.slice(e.length)||"/"),n};return o?function(i){return t(i.map(n),e)}:function(i){return t(n(i[0]),e)}},l=(0,d.fn)(e);s===this.FILEPICKER_TYPE_CUSTOM?(c.buttons||[]).forEach((function(t){l.addButton({callback:u(n,t.type),label:t.text,type:t.defaultButton?"primary":"secondary"})})):l.setButtonFactory((function(e,o){var r,a,c=[],l=(null==e||null===(r=e[0])||void 0===r||null===(r=r.attributes)||void 0===r?void 0:r.displayName)||(null==e||null===(a=e[0])||void 0===a?void 0:a.basename),h=l||(0,tt.basename)(o);return s===d.K9.Choose&&c.push({callback:u(n,d.K9.Choose),label:l&&!i.multiSelect?t("core","Choose {file}",{file:l}):t("core","Choose"),type:"primary"}),s!==d.K9.CopyMove&&s!==d.K9.Copy||c.push({callback:u(n,d.K9.Copy),label:h?t("core","Copy to {target}",{target:h}):t("core","Copy"),type:"primary",icon:''}),s!==d.K9.Move&&s!==d.K9.CopyMove||c.push({callback:u(n,d.K9.Move),label:h?t("core","Move to {target}",{target:h}):t("core","Move"),type:s===d.K9.Move?"primary":"secondary",icon:$}),c})),r&&l.setMimeTypeFilter("string"==typeof r?[r]:r||[]),"function"==typeof(null==c?void 0:c.filter)&&l.setFilter((function(t){return c.filter(function(t){var e,n,i,o,r,s;return{id:t.fileid||null,path:t.path,mimetype:t.mime||null,mtime:(null===(e=t.mtime)||void 0===e?void 0:e.getTime())||null,permissions:t.permissions,name:(null===(n=t.attributes)||void 0===n?void 0:n.displayName)||t.basename,etag:(null===(i=t.attributes)||void 0===i?void 0:i.etag)||null,hasPreview:(null===(o=t.attributes)||void 0===o?void 0:o.hasPreview)||null,mountType:(null===(r=t.attributes)||void 0===r?void 0:r.mountType)||null,quotaAvailableBytes:(null===(s=t.attributes)||void 0===s?void 0:s.quotaAvailableBytes)||null,icon:null,sharePermissions:null}}(t))})),l.allowDirectories(!0===(null==c?void 0:c.allowDirectoryChooser)||(null==r?void 0:r.includes("httpd/unix-directory"))||!1).setMultiSelect(o).startAt(a).build().pick()},message:function(e,n,i,o,r,s,a){return h().when(this._getMessageTemplate()).then((function(c){var u="oc-dialog-"+nt.dialogsCounter+"-content",l="#"+u,d=c.octemplate({dialog_name:u,title:n,message:e,type:i},a?{escapeFunction:""}:{});void 0===s&&(s=!1),h()("body").append(d);var p=[];switch(o){case nt.YES_NO_BUTTONS:p=[{text:t("core","No"),click:function(){void 0!==r&&r(!1),h()(l).ocdialog("close")}},{text:t("core","Yes"),click:function(){void 0!==r&&r(!0),h()(l).ocdialog("close")},defaultButton:!0}];break;case nt.OK_BUTTON:p[0]={text:t("core","OK"),click:function(){h()(l).ocdialog("close"),void 0!==r&&r()},defaultButton:!0};break;default:"object"===et(o)&&o.type===nt.YES_NO_BUTTONS&&(p=[{text:o.cancel||t("core","No"),click:function(){void 0!==r&&r(!1),h()(l).ocdialog("close")}},{text:o.confirm||t("core","Yes"),click:function(){void 0!==r&&r(!0),h()(l).ocdialog("close")},defaultButton:!0,classes:o.confirmClasses}])}h()(l).ocdialog({closeOnEscape:!0,closeCallback:function(){r&&r(!1)},modal:s,buttons:p}),nt.dialogsCounter++})).fail((function(i,o){0===i?alert(n+": "+e):alert(t("core","Error loading message template: {error}",{error:o}))}))},_fileexistsshown:!1,fileexists:function(e,i,o,r){var s=this,a=new(h().Deferred),c=function(t,e,n,i,o){i=Math.round(i),o=Math.round(o);for(var r=t.getContext("2d").getImageData(0,0,e,n),s=t.getContext("2d").getImageData(0,0,i,o),a=r.data,c=s.data,u=e/i,l=n/o,h=Math.ceil(u/2),d=Math.ceil(l/2),p=0;p=-1&&S<=1&&(g=2*S*S*S-3*S*S+1)>0&&(w+=g*a[3+(I=4*(D+k*e))],v+=g,a[I+3]<255&&(g=g*a[I+3]/250),b+=g*a[I],C+=g*a[I+1],x+=g*a[I+2],m+=g)}c[f]=b/m,c[f+1]=C/m,c[f+2]=x/m,c[f+3]=w/v}t.getContext("2d").clearRect(0,0,Math.max(e,i),Math.max(n,o)),t.width=i,t.height=o,t.getContext("2d").putImageData(s,0,0)},u=function(n,i,o){var r=n.find(".template").clone().removeClass("template").addClass("conflict"),s=r.find(".original"),a=r.find(".replacement");r.data("data",e),r.find(".filename").text(i.name),s.find(".size").text(zt.Util.humanFileSize(i.size)),s.find(".mtime").text(zt.Util.formatDate(i.mtime)),o.size&&o.lastModified&&(a.find(".size").text(zt.Util.humanFileSize(o.size)),a.find(".mtime").text(zt.Util.formatDate(o.lastModified)));var u=i.directory+"/"+i.name,l={file:u,x:96,y:96,c:i.etag,forceIcon:0},d=Files.generatePreviewUrl(l);d=d.replace(/'/g,"%27"),s.find(".icon").css({"background-image":"url('"+d+"')"}),function(t){var e=new(h().Deferred),n=t.type&&t.type.split("/").shift();if(window.FileReader&&"image"===n){var i=new FileReader;i.onload=function(t){var n=new Blob([t.target.result]);window.URL=window.URL||window.webkitURL;var i=window.URL.createObjectURL(n),o=new Image;o.src=i,o.onload=function(){var t,n,i,r,s,a,u,l=(t=o,s=document.createElement("canvas"),a=t.width,u=t.height,a>u?(i=0,n=(a-u)/2):(i=(u-a)/2,n=0),r=Math.min(a,u),s.width=r,s.height=r,s.getContext("2d").drawImage(t,n,i,r,r,0,0,r,r),c(s,r,r,96,96),s.toDataURL("image/png",.7));e.resolve(l)}},i.readAsArrayBuffer(t)}else e.reject();return e}(o).then((function(t){a.find(".icon").css("background-image","url("+t+")")}),(function(){u=zt.MimeType.getIconUrl(o.type),a.find(".icon").css("background-image","url("+u+")")}));var p=n.find(".conflict").length;s.find("input:checkbox").attr("id","checkbox_original_"+p),a.find("input:checkbox").attr("id","checkbox_replacement_"+p),n.append(r),o.lastModified>i.mtime?a.find(".mtime").css("font-weight","bold"):o.lastModifiedi.size?a.find(".size").css("font-weight","bold"):o.size&&o.size0?(h()(d).find(".allnewfiles").prop("checked",!1),h()(d).find(".allnewfiles + .count").text(t("core","({count} selected)",{count:e}))):(h()(d).find(".allnewfiles").prop("checked",!1),h()(d).find(".allnewfiles + .count").text("")),m()})),h()(d).on("click",".original,.allexistingfiles",(function(){var e=h()(d).find('.conflict .original input[type="checkbox"]:checked').length;e===h()(d+" .conflict").length?(h()(d).find(".allexistingfiles").prop("checked",!0),h()(d).find(".allexistingfiles + .count").text(t("core","(all selected)"))):e>0?(h()(d).find(".allexistingfiles").prop("checked",!1),h()(d).find(".allexistingfiles + .count").text(t("core","({count} selected)",{count:e}))):(h()(d).find(".allexistingfiles").prop("checked",!1),h()(d).find(".allexistingfiles + .count").text("")),m()})),a.resolve()})).fail((function(){a.reject(),alert(t("core","Error loading file exists template"))}));return a.promise()},_getMessageTemplate:function(){var t=h().Deferred();if(this.$messageTemplate)t.resolve(this.$messageTemplate);else{var e=this;h().get(zt.filePath("core","templates","message.html"),(function(n){e.$messageTemplate=h()(n),t.resolve(e.$messageTemplate)})).fail((function(e,n,i){t.reject(e.status,i)}))}return t.promise()},_getFileExistsTemplate:function(){var t=h().Deferred();if(this.$fileexistsTemplate)t.resolve(this.$fileexistsTemplate);else{var e=this;h().get(zt.filePath("files","templates","fileexists.html"),(function(n){e.$fileexistsTemplate=h()(n),t.resolve(e.$fileexistsTemplate)})).fail((function(){t.reject()}))}return t.promise()}},it=nt,ot=function(t,e){var n=t.getElementsByTagName("head")[0].getAttribute("data-requesttoken");return{getToken:function(){return n},setToken:function(t){e("csrf-token-update",{token:n=t})}}}(document,c.j8),rt=ot.getToken,st=ot.setToken,at=function t(e,n){var i,o,r="";if(this.typelessListeners=[],this.closed=!1,this.listeners={},n)for(i in n)r+=i+"="+encodeURIComponent(n[i])+"&";if(r+="requesttoken="+encodeURIComponent(rt()),this.useFallBack||"undefined"==typeof EventSource){var s="oc_eventsource_iframe_"+t.iframeCount;t.fallBackSources[t.iframeCount]=this,this.iframe=h()(""),this.iframe.attr("id",s),this.iframe.hide(),o="&",-1===e.indexOf("?")&&(o="?"),this.iframe.attr("src",e+o+"fallback=true&fallback_id="+t.iframeCount+"&"+r),h()("body").append(this.iframe),this.useFallBack=!0,t.iframeCount++}else o="&",-1===e.indexOf("?")&&(o="?"),this.source=new EventSource(e+o+r),this.source.onmessage=function(t){for(var e=0;e18e5},requirePasswordConfirmation:function(e,n,i){n=void 0!==n?n:{};var o={title:t("core","Authentication required"),text:t("core","This action requires you to confirm your password"),confirm:t("core","Confirm"),label:t("core","Password"),error:""},r=u.default.extend(o,n),s=this;this.requiresPasswordConfirmation()&&zt.dialogs.prompt(r.text,r.title,(function(t,e){t&&""!==e?s._confirmPassword(e,r):u.default.isFunction(i)&&i()}),!0,r.label,!0).then((function(){var t=h()(".oc-dialog:visible");if(t.find(".ui-icon").remove(),t.addClass("password-confirmation"),""!==r.error){var e=h()("").addClass("msg warning").text(r.error);t.find(".oc-dialog-content").append(e)}var n=t.find(".oc-dialog-buttonrow");n.addClass("aside");var i=n.find("button");i.eq(0).hide(),i.eq(1).text(r.confirm)})),this.callback=e},_confirmPassword:function(e,n){var i=this;h().ajax({url:(0,v.generateUrl)("/login/confirm"),data:{password:e},type:"POST",success:function(t){window.nc_lastLogin=t.lastLogin,u.default.isFunction(i.callback)&&i.callback()},error:function(){n.error=t("core","Failed to authenticate, try again"),zt.PasswordConfirmation.requirePasswordConfirmation(i.callback,n)}})}},yt=window._theme||{},kt={_handlers:[],_pushState:function(t,e,n){var i;if(i="string"==typeof t?t:zt.buildQueryString(t),window.history.pushState){if(e=e||location.pathname+"?"+i,navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&parseInt(navigator.userAgent.split("/").pop())<51)for(var o,r=document.querySelectorAll('[fill^="url(#"], [stroke^="url(#"], [filter^="url(#invert"]'),s=0,a=r.length;s=0?t.substr(e+1):t.length?t.substr(1):""},_decodeQuery:function(t){return t.replace(/\+/g," ")},parseUrlQuery:function(){var t,e=this._parseHashQuery();return e&&(t=zt.parseQueryString(this._decodeQuery(e))),(t=u.default.extend(t||{},zt.parseQueryString(this._decodeQuery(location.search))))||{}},_onPopState:function(t){var e;if(this._cancelPop)this._cancelPop=!1;else if(this._handlers.length){e=t&&t.state,u.default.isString(e)?e=zt.parseQueryString(e):e||(e=this.parseUrlQuery()||{});for(var n=0;n="0"&&e<="9";s!==r&&(n[++o]="",r=s),n[o]+=e,i++}return n}var Dt={History:kt,humanFileSize:Bt.sS,computerFileSize:function(t){if("string"!=typeof t)return null;var e=t.toLowerCase().trim(),n=null,i=e.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i);return null===i?null:(n=parseFloat(e),isFinite(n)?(i[5]&&(n*={b:1,k:1024,kb:1024,mb:1048576,m:1048576,gb:1073741824,g:1073741824,tb:1099511627776,t:1099511627776,pb:0x4000000000000,p:0x4000000000000}[i[5]]),n=Math.round(n)):null)},formatDate:function(t,e){return void 0===window.TESTING&&zt.debug&&Et.warn("OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment"),e=e||"LLL",xt()(t).format(e)},relativeModifiedDate:function(e){void 0===window.TESTING&&zt.debug&&Et.warn("OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment");var n=xt()().diff(xt()(e));return n>=0&&n<45e3?t("core","seconds ago"):xt()(e).fromNow()},getScrollBarWidth:function(){if(this._scrollBarWidth)return this._scrollBarWidth;var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;return n===i&&(i=e.clientWidth),document.body.removeChild(e),this._scrollBarWidth=n-i,this._scrollBarWidth},stripTime:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},naturalSortCompare:function(t,e){var n,i=_t(t),o=_t(e);for(n=0;i[n]&&o[n];n++)if(i[n]!==o[n]){var r=Number(i[n]),s=Number(o[n]);return r==i[n]&&s==o[n]?r-s:i[n].localeCompare(o[n],zt.getLanguage())}return i.length-o.length},waitFor:function(t,e){!function n(){!0!==t()&&setTimeout(n,e)}()},isCookieSetToValue:function(t,e){for(var n=document.cookie.split(";"),i=0;i!$_",fileIsBlacklisted:function(t){return!!t.match(U.blacklist_files_regex)},Apps:m,AppConfig:E,appConfig:B,appswebroots:D,Backbone:j,ContactsMenu:V,config:U,currentUser:J,dialogs:it,EventSource:ct,getCurrentUser:function(){return{uid:J,displayName:Z}},isUserAdmin:function(){return At},L10N:vt,_ajaxConnectionLostHandler:f,_processAjaxError:function(t){(0!==t.status||"abort"!==t.statusText&&"timeout"!==t.statusText&&!zt._reloadCalled)&&(u.default.contains([302,303,307,401],t.status)&&zt.currentUser?setTimeout((function(){if(!zt._userIsNavigatingAway&&!zt._reloadCalled){var t=0,e=setInterval((function(){A.showUpdate(n("core","Problem loading page, reloading in %n second","Problem loading page, reloading in %n seconds",5-t)),t>=5&&(clearInterval(e),zt.reload()),t++}),1e3);zt._reloadCalled=!0}}),100):0===t.status&&setTimeout((function(){zt._userIsNavigatingAway||zt._reloadCalled||zt._ajaxConnectionLostHandler()}),100))},registerXHRForErrorProcessing:function(t){t.addEventListener&&(t.addEventListener("load",(function(){4===t.readyState&&(t.status>=200&&t.status<300||304===t.status||h()(document).trigger(new(h().Event)("ajaxError"),t))})),t.addEventListener("error",(function(){h()(document).trigger(new(h().Event)("ajaxError"),t)})))},getCapabilities:function(){return OC.debug&<.warn("OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities"),(0,ut.getCapabilities)()},hideMenus:pt,registerMenu:function(t,e,n,i){e.addClass("menu");var o="A"===t.prop("tagName")||"BUTTON"===t.prop("tagName");t.on(o?"click.menu":"click.menu keyup.menu",(function(o){o.preventDefault(),o.key&&"Enter"!==o.key||(e.is(ht)?pt():(ht&&pt(),!0===i&&e.parent().addClass("openedMenu"),t.attr("aria-expanded",!0),e.slideToggle(50,n),ht=e,dt=t))}))},showMenu:function(t,e,n){e.is(ht)||(pt(),ht=e,dt=t,e.trigger(new(h().Event)("beforeShow")),e.show(),e.trigger(new(h().Event)("afterShow")),u.default.isFunction(n)&&n())},unregisterMenu:function(t,e){e.is(ht)&&pt(),t.off("click.menu").removeClass("menutoggle"),e.removeClass("menu")},basename:L.EZ,encodePath:L.Ec,dirname:L.XX,isSamePath:L.Mg,joinPaths:L.RQ,getHost:function(){return window.location.host},getHostName:function(){return window.location.hostname},getPort:function(){return window.location.port},getProtocol:function(){return window.location.protocol.split(":")[0]},getCanonicalLocale:mt.aj,getLocale:mt.Kd,getLanguage:mt.G3,buildQueryString:function(t){return t?h().map(t,(function(t,e){var n=encodeURIComponent(e);return null!=t&&(n+="="+encodeURIComponent(t)),n})).join("&"):""},parseQueryString:function(t){var e,n,i,o={};if(!t)return null;(e=t.indexOf("?"))>=0&&(t=t.substr(e+1));for(var r=t.replace(/\+/g,"%20").split("&"),s=0;s=0?[a.substr(0,e),a.substr(e+1)]:[a]).length&&(i=decodeURIComponent(n[0]))&&(o[i]=n.length>1?decodeURIComponent(n[1]):null)}return o},msg:bt,Notification:A,PasswordConfirmation:wt,Plugins:{_plugins:{},register:function(t,e){var n=this._plugins[t];n||(n=this._plugins[t]=[]),n.push(e)},getPlugins:function(t){return this._plugins[t]||[]},attach:function(t,e,n){for(var i=this.getPlugins(t),o=0;o=0;--o){var r=this.tryEntries[o],s=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var a=n.call(r,"catchLoc"),c=n.call(r,"finallyLoc");if(a&&c){if(this.prev=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var o=i.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function Ut(t,e,n,i,o,r,s){try{var a=t[r](s),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(i,o)}function Ft(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var r=t.apply(e,n);function s(t){Ut(r,i,o,s,a,"next",t)}function a(t){Ut(r,i,o,s,a,"throw",t)}s(void 0)}))}}var Wt=null,Yt=function(){var t=Ft(Lt().mark((function t(){var e,n;return Lt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,v.generateUrl)("/csrftoken"),t.next=3,h().get(e);case 3:return n=t.sent,t.abrupt("return",n.token);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Qt=function(){var t=Ft(Lt().mark((function t(){var e;return Lt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Yt();case 3:e=t.sent,st(e),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),Nt.error("session heartbeat failed",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}(),qt=function(){var t=setInterval(Qt,1e3*function(){var t=NaN;return Wt.session_lifetime&&(t=Math.floor(Wt.session_lifetime/2)),Math.min(86400,Math.max(60,isNaN(t)?900:t))}());return Nt.info("session heartbeat polling started"),t},Gt=o(20144),Xt=o(93815),Vt={name:"ContactsIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Kt=o(51900),Zt={name:"ContactsMenu",components:{Contacts:(0,Kt.Z)(Vt,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon contacts-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M20,0H4V2H20V0M4,24H20V22H4V24M20,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6A2,2 0 0,0 20,4M12,6.75A2.25,2.25 0 0,1 14.25,9A2.25,2.25 0 0,1 12,11.25A2.25,2.25 0 0,1 9.75,9A2.25,2.25 0 0,1 12,6.75M17,17H7V15.5C7,13.83 10.33,13 12,13C13.67,13 17,13.83 17,15.5V17Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports,NcHeaderMenu:Xt.Z},data:function(){return{contactsMenu:null}},mounted:function(){this.contactsMenu=new zt.ContactsMenu({el:"#contactsmenu-menu"})},methods:{handleOpen:function(){var t;null===(t=this.contactsMenu)||void 0===t||t.loadContacts()}}},Jt=o(93379),$t=o.n(Jt),te=o(7795),ee=o.n(te),ne=o(90569),ie=o.n(ne),oe=o(3565),re=o.n(oe),se=o(19216),ae=o.n(se),ce=o(44589),ue=o.n(ce),le=o(56507),he={};he.styleTagTransform=ue(),he.setAttributes=re(),he.insert=ie().bind(null,"head"),he.domAPI=ee(),he.insertStyleElement=ae(),$t()(le.Z,he),le.Z&&le.Z.locals&&le.Z.locals;var de=(0,Kt.Z)(Zt,(function(){var t=this,e=t._self._c;return e("NcHeaderMenu",{attrs:{id:"contactsmenu","aria-label":t.t("core","Search contacts")},on:{open:t.handleOpen},scopedSlots:t._u([{key:"trigger",fn:function(){return[e("Contacts",{attrs:{size:20}})]},proxy:!0}])},[t._v(" "),e("div",{attrs:{id:"contactsmenu-menu"}})])}),[],!1,null,"a43dc864",null).exports,pe=o(3349),Ae=o(74176),fe={name:"AppMenu",components:{NcActions:pe.Z,NcActionLink:Ae.Z},data:function(){return{apps:(0,Rt.j)("core","apps",{}),appLimit:0,observer:null}},computed:{appList:function(){return Object.values(this.apps)},mainAppList:function(){return this.appList.slice(0,this.appLimit)},popoverAppList:function(){return this.appList.slice(this.appLimit)},appLabel:function(){return function(e){return e.name+(e.active?" ("+t("core","Currently open")+")":"")+(e.unread>0?" ("+n("core","{count} notification","{count} notifications",e.unread,{count:e.unread})+")":"")}}},mounted:function(){this.observer=new ResizeObserver(this.resize),this.observer.observe(this.$el),this.resize(),(0,c.Ld)("nextcloud:app-menu.refresh",this.setApps)},beforeDestroy:function(){this.observer.disconnect(),(0,c.r1)("nextcloud:app-menu.refresh",this.setApps)},methods:{setNavigationCounter:function(t,e){this.$set(this.apps[t],"unread",e)},setApps:function(t){var e=t.apps;this.apps=e},resize:function(){var t=this.$el.offsetWidth,e=Math.floor(t/50)-1;1==this.appList.length-e&&e--,e<1&&(e=0),this.appLimit=e}}},ge=fe,me=o(26370),ve={};ve.styleTagTransform=ue(),ve.setAttributes=re(),ve.insert=ie().bind(null,"head"),ve.domAPI=ee(),ve.insertStyleElement=ae(),$t()(me.Z,ve),me.Z&&me.Z.locals&&me.Z.locals;var be=(0,Kt.Z)(ge,(function(){var t=this,e=t._self._c;return e("nav",{staticClass:"app-menu"},[e("ul",{staticClass:"app-menu-main"},t._l(t.mainAppList,(function(n){return e("li",{key:n.id,staticClass:"app-menu-entry",class:{"app-menu-entry__active":n.active},attrs:{"data-app-id":n.id}},[e("a",{class:{"has-unread":n.unread>0},attrs:{href:n.href,"aria-label":t.appLabel(n),title:n.name,"aria-current":!!n.active&&"page",target:n.target?"_blank":void 0,rel:n.target?"noopener noreferrer":void 0}},[e("img",{attrs:{src:n.icon,alt:""}}),t._v(" "),e("div",{staticClass:"app-menu-entry--label"},[t._v("\n\t\t\t\t\t"+t._s(n.name)+"\n\t\t\t\t\t"),n.unread>0?e("span",{staticClass:"hidden-visually unread-counter"},[t._v(t._s(n.unread))]):t._e()])])])})),0),t._v(" "),e("NcActions",{staticClass:"app-menu-more",attrs:{"aria-label":t.t("core","More apps")}},t._l(t.popoverAppList,(function(n){return e("NcActionLink",{key:n.id,staticClass:"app-menu-popover-entry",attrs:{"aria-label":t.appLabel(n),"aria-current":!!n.active&&"page",href:n.href},scopedSlots:t._u([{key:"icon",fn:function(){return[e("div",{staticClass:"app-icon",class:{"has-unread":n.unread>0}},[e("img",{attrs:{src:n.icon,alt:""}})])]},proxy:!0}],null,!0)},[t._v("\n\t\t\t"+t._s(n.name)+"\n\t\t\t"),n.unread>0?e("span",{staticClass:"hidden-visually unread-counter"},[t._v(t._s(n.unread))]):t._e()])})),1)],1)}),[],!1,null,"71a77d80",null).exports,Ce=o(18519),xe=o(20435),we=(0,Rt.j)("core","versionHash",""),ye={name:"UserMenuEntry",components:{NcLoadingIcon:xe.Z},props:{id:{type:String,required:!0},name:{type:String,required:!0},href:{type:String,required:!0},active:{type:Boolean,required:!0},icon:{type:String,required:!0}},data:function(){return{loading:!1}},computed:{cachedIcon:function(){return"".concat(this.icon,"?v=").concat(we)}},methods:{handleClick:function(){this.loading=!0}}},ke=o(88951),Be={};Be.styleTagTransform=ue(),Be.setAttributes=re(),Be.insert=ie().bind(null,"head"),Be.domAPI=ee(),Be.insertStyleElement=ae(),$t()(ke.Z,Be),ke.Z&&ke.Z.locals&&ke.Z.locals;var Ee=(0,Kt.Z)(ye,(function(){var t=this,e=t._self._c;return e("li",{staticClass:"menu-entry",attrs:{id:t.id}},[t.href?e("a",{class:{active:t.active},attrs:{href:t.href},on:{click:function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.handleClick.apply(null,arguments)}}},[t.loading?e("NcLoadingIcon",{staticClass:"menu-entry__loading-icon",attrs:{size:18}}):e("img",{attrs:{src:t.cachedIcon,alt:""}}),t._v("\n\t\t"+t._s(t.name)+"\n\t")],1):e("button",[e("img",{attrs:{src:t.cachedIcon,alt:""}}),t._v("\n\t\t"+t._s(t.name)+"\n\t")])])}),[],!1,null,"6e59d13c",null),_e=Ee.exports,De=(0,Rt.j)("core","settingsNavEntries",[]),Ie={name:"UserMenu",components:{NcAvatar:Ce.Z,NcHeaderMenu:Xt.Z,UserMenuEntry:_e},data:function(){var t;return{settingsNavEntries:De,userId:null===(t=(0,Ht.ts)())||void 0===t?void 0:t.uid}},mounted:function(){(0,c.j8)("core:user-menu:mounted")}},Se=o(43233),Te={};Te.styleTagTransform=ue(),Te.setAttributes=re(),Te.insert=ie().bind(null,"head"),Te.domAPI=ee(),Te.insertStyleElement=ae(),$t()(Se.Z,Te),Se.Z&&Se.Z.locals&&Se.Z.locals;var Me=(0,Kt.Z)(Ie,(function(){var t=this,e=t._self._c;return e("NcHeaderMenu",{staticClass:"user-menu",attrs:{id:"user-menu","aria-label":t.t("core","Open settings menu")},scopedSlots:t._u([{key:"trigger",fn:function(){return[e("NcAvatar",{staticClass:"user-menu__avatar",attrs:{"disable-menu":!0,"disable-tooltip":!0,user:t.userId}})]},proxy:!0}])},[t._v(" "),e("nav",{staticClass:"user-menu__nav",attrs:{"aria-label":t.t("core","Settings menu")}},[e("ul",t._l(t.settingsNavEntries,(function(n){return e("UserMenuEntry",t._b({key:n.id},"UserMenuEntry",n,!1))})),1)])])}),[],!1,null,"c151965a",null).exports,Pe={zh:"zh-cn",zh_Hans:"zh-cn",zh_Hans_CN:"zh-cn",zh_Hans_HK:"zh-cn",zh_Hans_MO:"zh-cn",zh_Hans_SG:"zh-cn",zh_Hant:"zh-hk",zh_Hant_HK:"zh-hk",zh_Hant_MO:"zh-mo",zh_Hant_TW:"zh-tw"},Oe=zt.getLocale();Object.prototype.hasOwnProperty.call(Pe,Oe)&&(Oe=Pe[Oe]),xt().locale(Oe);var ze=function(){var t,e,n;if(XMLHttpRequest.prototype.open=(t=XMLHttpRequest.prototype.open,function(e,n,i){t.apply(this,arguments),this.getResponseHeader("X-Requested-With")||this.setRequestHeader("X-Requested-With","XMLHttpRequest")}),window.fetch=(e=window.fetch,function(t,n){return n||(n={}),n.headers||(n.headers=new Headers),n.headers instanceof Headers&&!n.headers.has("X-Requested-With")?n.headers.append("X-Requested-With","XMLHttpRequest"):n.headers instanceof Object&&!n.headers["X-Requested-With"]&&(n.headers["X-Requested-With"]="XMLHttpRequest"),e(t,n)}),h()(window).on("unload.main",(function(){zt._unloadCalled=!0})),h()(window).on("beforeunload.main",(function(){setTimeout((function(){zt._userIsNavigatingAway=!0,setTimeout((function(){zt._unloadCalled||(zt._userIsNavigatingAway=!1)}),1e4)}),1)})),h()(document).on("ajaxError.main",(function(t,e,n){n&&n.allowAuthErrors||zt._processAjaxError(e)})),function(){if(function(){try{Wt=(0,Rt.j)("core","config")}catch(t){Wt=zt.config}}(),function(){if(Wt.auto_logout&&(0,Ht.ts)()){var t=Date.now();window.addEventListener("mousemove",(function(e){t=Date.now(),localStorage.setItem("lastActive",t)})),window.addEventListener("touchstart",(function(e){t=Date.now(),localStorage.setItem("lastActive",t)})),window.addEventListener("storage",(function(e){"lastActive"===e.key&&(t=e.newValue)})),setInterval((function(){var e=Date.now()-1e3*Wt.session_lifetime;if(t