var _i=Object.defineProperty,hi=Object.defineProperties;var mi=Object.getOwnPropertyDescriptors;var Tn=Object.getOwnPropertySymbols;var yi=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable;var Se=(c,y)=>(y=Symbol[c])?y:Symbol.for("Symbol."+c),bi=c=>{throw TypeError(c)};var vt=(c,y,o)=>y in c?_i(c,y,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[y]=o,oe=(c,y)=>{for(var o in y||(y={}))yi.call(y,o)&&vt(c,o,y[o]);if(Tn)for(var o of Tn(y))gi.call(y,o)&&vt(c,o,y[o]);return c},Pe=(c,y)=>hi(c,mi(y));var Oe=(c,y,o)=>vt(c,typeof y!="symbol"?y+"":y,o);var ve=function(c,y){this[0]=c,this[1]=y},At=(c,y,o)=>{var l=(v,O,A,T)=>{try{var B=o[v](O),e=(O=B.value)instanceof ve,n=B.done;Promise.resolve(e?O[0]:O).then(r=>e?l(v==="return"?v:"next",O[1]?{done:r.done,value:r.value}:r,A,T):A({value:r,done:n})).catch(r=>l("throw",r,A,T))}catch(r){T(r)}},p=v=>b[v]=O=>new Promise((A,T)=>l(v,O,A,T)),b={};return o=o.apply(c,y),b[Se("asyncIterator")]=()=>b,p("next"),p("throw"),p("return"),b},Tt=c=>{var y=c[Se("asyncIterator")],o=!1,l,p={};return y==null?(y=c[Se("iterator")](),l=b=>p[b]=v=>y[b](v)):(y=y.call(c),l=b=>p[b]=v=>{if(o){if(o=!1,b==="throw")throw v;return v}return o=!0,{done:!1,value:new ve(new Promise(O=>{var A=y[b](v);A instanceof Object||bi("Object expected"),O(A)}),1)}}),p[Se("iterator")]=()=>p,l("next"),"throw"in y?l("throw"):p.throw=b=>{throw b},"return"in y&&l("return"),p},xn=(c,y,o)=>(y=c[Se("asyncIterator")])?y.call(c):(c=c[Se("iterator")](),y={},o=(l,p)=>(p=c[l])&&(y[l]=b=>new Promise((v,O,A)=>(b=p.call(c,b),A=b.done,Promise.resolve(b.value).then(T=>v({value:T,done:A}),O)))),o("next"),o("return"),y);import{e as et,u as wi,f as vi,g as kn,o as Ai,h as Ti,i as xi,j as ki,k as Si,m as tt,R as Oi,n as Ei,p as Ni,q as Wn,r as Ri,w as Ii,x as Ci,y as Pi,z as Sn,A as Ee,B as Bi,_ as de,C as Fi,t as le,D as ji,d as Qe,v as Ct,s as Rt,E as Ze,F as Li,l as Ye,G as On,H as Ui,I as xt,J as Mi,K as kt,L as Di}from"./index-Dh8t1o6F-C2aJvLpY.chunk.mjs";import{l as nt,f as j,o as P,g as z,m as ce,t as G,h as Be,k as te,n as En,u as ye,j as Nn,p as St,q as Jn,s as Hi,a as Q,w as J,e as ie,v as Rn,x as qi,b as X,y as In,z as Pt,A as It,B as Cn,C as Vi,D as Gi,E as Fe,G as zi,r as ee,F as Xn,H as Kn,T as $i,I as Wi,J as Ji}from"./style-DK3b3yEc.chunk.mjs";import{B as K}from"./BrowserStorage-PqkYeaDj.chunk.mjs";import"./vite-preload-helper-B9rAsR6N.chunk.mjs";const Xi={class:"empty-content",role:"note"},Ki={key:0,class:"empty-content__icon","aria-hidden":"true"},Qi={key:0,class:"empty-content__name"},Zi={key:1,class:"empty-content__description"},Yi={key:2,class:"empty-content__action"},er=nt({__name:"NcEmptyContent",props:{description:{default:""},name:{default:""}},setup(c){return(y,o)=>(P(),j("div",Xi,[y.$slots.icon?(P(),j("div",Ki,[ce(y.$slots,"icon",{},void 0,!0)])):z("",!0),ce(y.$slots,"name",{},()=>[y.name!==""?(P(),j("span",Qi,G(y.name),1)):z("",!0)],!0),y.description!==""||y.$slots.description?(P(),j("p",Zi,[ce(y.$slots,"description",{},()=>[Be(G(y.description),1)],!0)])):z("",!0),y.$slots.action?(P(),j("div",Yi,[ce(y.$slots,"action",{},void 0,!0)])):z("",!0)]))}}),tr=et(er,[["__scopeId","data-v-697cfd8f"]]),nr=["data-timestamp","title","textContent"],or=nt({__name:"NcDateTime",props:{timestamp:{},format:{default:()=>({timeStyle:"medium",dateStyle:"short"})},relativeTime:{type:[Boolean,String],default:"long"},ignoreSeconds:{type:Boolean}},setup(c){const y=c,o=te(()=>({format:y.format})),l=te(()=>({ignoreSeconds:y.ignoreSeconds,relativeTime:y.relativeTime||"long",update:y.relativeTime!==!1})),p=wi(En(()=>y.timestamp),o),b=vi(En(()=>y.timestamp),l),v=te(()=>y.relativeTime?b.value:p.value);return(O,A)=>(P(),j("span",{class:"nc-datetime",dir:"auto","data-timestamp":O.timestamp,title:ye(p),textContent:G(v.value)},null,8,nr))}}),ir=["id"],rr={class:"header-menu__caret"},sr=["id"],ar={ref:"contentContainer",class:"header-menu__content"},ur=nt({__name:"NcHeaderMenu",props:{id:{},ariaLabel:{default:()=>{}},open:{type:Boolean,default:!1},isNav:{type:Boolean,default:!1},description:{default:()=>{}},excludeClickOutsideSelectors:{default:()=>[]}},emits:["closed","opened","update:open"],setup(c,{emit:y}){const o=y,l=kn(),p=kn(),b=Nn(),v=Nn(c.open),O=te(()=>c.isNav?"nav":"div"),A=St("contentContainer"),T=St("headerMenu"),B=St("triggerButton"),e=te(()=>Array.isArray(c.excludeClickOutsideSelectors)?c.excludeClickOutsideSelectors:c.excludeClickOutsideSelectors.split(" "));Ai(T,()=>r(!1),{ignore:e}),Ti("Escape",()=>r(!1),{prevent:!0}),xi(v,{disabled:()=>!c.isNav}),Jn(()=>c.open,f=>r(f));function n(){r(!v.value)}async function r(f){f!==v.value&&(v.value=f,o("update:open",f),await Hi(),await(f?_():g()),o(f?"opened":"closed"))}function u(f){var x;c.isNav&&f.relatedTarget instanceof Node&&((x=T.value)!=null&&x.contains(f.relatedTarget))&&r(!1)}async function _(){var f;c.isNav||b.value||(b.value=ki(A.value,{allowOutsideClick:!0,trapStack:Si(),fallbackFocus:(f=B.value)==null?void 0:f.$el}),b.value.activate())}function g(){var f;(f=b.value)==null||f.deactivate(),b.value=void 0}return(f,x)=>(P(),Q(It(O.value),{id:f.id,ref:"headerMenu","aria-labelledby":f.isNav?ye(p):null,class:Pt([{"header-menu--opened":v.value},"header-menu"]),onFocusout:u},{default:J(()=>[ie(ye(tt),{id:f.isNav?ye(p):null,ref:"triggerButton","aria-controls":"header-menu-".concat(f.id),"aria-expanded":v.value.toString(),"aria-label":f.ariaLabel,class:"header-menu__trigger",size:"large",variant:"tertiary-no-background",onClick:qi(n,["prevent"])},{icon:J(()=>[ce(f.$slots,"trigger",{},void 0,!0)]),_:3},8,["id","aria-controls","aria-expanded","aria-label"]),f.description?(P(),j("span",{key:0,id:ye(l),class:"header-menu__description hidden-visually"},G(f.description),9,ir)):z("",!0),Rn(X("div",rr,null,512),[[In,v.value]]),Rn(X("div",{id:"header-menu-".concat(f.id),class:"header-menu__wrapper"},[X("div",ar,[ce(f.$slots,"default",{},void 0,!0)],512)],8,sr),[[In,v.value]])]),_:3},40,["id","aria-labelledby","class"]))}}),lr=et(ur,[["__scopeId","data-v-d45c5788"]]),cr={};function dr(c,y){return P(),j("div",null,[ce(c.$slots,"trigger")])}const fr=et(cr,[["render",dr]]),pr={class:"user-bubble__name"},_r={key:0,class:"user-bubble__secondary"},hr=nt({__name:"NcUserBubble",props:Cn({avatarImage:{default:void 0},user:{default:void 0},displayName:{default:void 0},showUserStatus:{type:Boolean},url:{default:void 0},to:{default:void 0},primary:{type:Boolean},size:{default:20},margin:{default:2}},{open:{type:Boolean},openModifiers:{}}),emits:Cn(["click"],["update:open"]),setup(c,{emit:y}){const o=Vi(c,"open"),l=c,p=y,b=te(()=>{if(!l.avatarImage)return!1;try{return!!new URL(l.avatarImage)}catch(n){return!1}}),v=te(()=>!!l.avatarImage),O=te(()=>({marginInlineStart:"".concat(l.margin,"px")})),A=te(()=>{var n,r;if(!l.url||l.url.trim()==="")return!1;try{return!!new URL(l.url,(r=(n=l.url)==null?void 0:n.startsWith)!=null&&r.call(n,"/")?window.location.href:void 0)}catch(u){return Gi("[NcUserBubble] Invalid URL passed",{url:l.url}),!1}}),T=te(()=>A.value?l.url:void 0),B=te(()=>A.value?"a":l.to?Oi:"div"),e=te(()=>({height:"".concat(l.size,"px"),lineHeight:"".concat(l.size,"px"),borderRadius:"".concat(l.size/2,"px")}));return Jn([()=>l.displayName,()=>l.user],()=>{!l.displayName&&l.user}),(n,r)=>(P(),Q(It(n.$slots.default?ye(Ni):fr),{shown:o.value,"onUpdate:shown":r[1]||(r[1]=u=>o.value=u),class:"user-bubble__wrapper",trigger:"hover focus"},{trigger:J(({attrs:u})=>[(P(),Q(It(B.value),Fe({class:["user-bubble__content",{"user-bubble__content--primary":n.primary}],style:e.value,to:n.to,href:T.value},u,{onClick:r[0]||(r[0]=_=>p("click",_))}),{default:J(()=>[ie(ye(Ei),{url:v.value&&b.value?n.avatarImage:void 0,"icon-class":v.value&&!b.value?n.avatarImage:void 0,user:n.user,"display-name":n.displayName,size:n.size-n.margin*2,style:zi(O.value),"disable-tooltip":!0,"disable-menu":!0,"hide-status":!n.showUserStatus,class:"user-bubble__avatar"},null,8,["url","icon-class","user","display-name","size","style","hide-status"]),X("span",pr,G(n.displayName||n.user),1),n.$slots.name?(P(),j("span",_r,[ce(n.$slots,"name",{},void 0,!0)])):z("",!0)]),_:2},1040,["class","style","to","href"]))]),default:J(()=>[ce(n.$slots,"default",{},void 0,!0)]),_:3},40,["shown"]))}}),mr=et(hr,[["__scopeId","data-v-37bde6b7"]]);var Ae={},Pn={};const yr=Wn(Ri);var Bn;function gr(){return Bn||(Bn=1,function(c){Object.defineProperty(c,Symbol.toStringTag,{value:"Module"});const y=yr;function o(){try{return y.loadState("core","capabilities")}catch(l){return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}c.getCapabilities=o}(Pn)),Pn}var Fn={},jn={},Ln={},Un;function Qn(){return Un||(Un=1,function(c){Object.defineProperty(c,Symbol.toStringTag,{value:"Module"});const y=Ii(),o=Ci(),l=r=>r&&r.__esModule?r:{default:r},p=l(y),b=l(o);class v{constructor(u){Oe(this,"bus");typeof u.getVersion!="function"||!b.default(u.getVersion())?console.warn("Proxying an event bus with an unknown or invalid version"):p.default(u.getVersion())!==p.default(this.getVersion())&&console.warn("Proxying an event bus of version "+u.getVersion()+" with "+this.getVersion()),this.bus=u}getVersion(){return"3.3.3"}subscribe(u,_){this.bus.subscribe(u,_)}unsubscribe(u,_){this.bus.unsubscribe(u,_)}emit(u,..._){this.bus.emit(u,..._)}}class O{constructor(){Oe(this,"handlers",new Map)}getVersion(){return"3.3.3"}subscribe(u,_){this.handlers.set(u,(this.handlers.get(u)||[]).concat(_))}unsubscribe(u,_){this.handlers.set(u,(this.handlers.get(u)||[]).filter(g=>g!==_))}emit(u,..._){(this.handlers.get(u)||[]).forEach(g=>{try{g(_[0])}catch(f){console.error("could not invoke event listener",f)}})}}let A=null;function T(){var r;return A!==null?A:typeof window>"u"?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):((r=window.OC)!=null&&r._eventBus&&typeof window._nc_event_bus>"u"&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof(window==null?void 0:window._nc_event_bus)<"u"?A=new v(window._nc_event_bus):A=window._nc_event_bus=new O,A)}function B(r,u){T().subscribe(r,u)}function e(r,u){T().unsubscribe(r,u)}function n(r,...u){T().emit(r,...u)}c.ProxyBus=v,c.SimpleBus=O,c.emit=n,c.subscribe=B,c.unsubscribe=e}(Ln)),Ln}const br=Wn(Pi);var Mn;function wr(){return Mn||(Mn=1,function(c){Object.defineProperty(c,Symbol.toStringTag,{value:"Module"});const y=Qn(),o=br;let l;const p=[];function b(){var x;return l===void 0&&(l=(x=document.head.dataset.requesttoken)!=null?x:null),l}function v(x){p.push(x)}y.subscribe("csrf-token-update",x=>{l=x.token,p.forEach(C=>{try{C(l)}catch(F){console.error("Error updating CSRF token observer",F)}})});function O(){const x=document==null?void 0:document.querySelector('meta[name="csp-nonce"]');if(!x){const C=b();return C?btoa(C):void 0}return x.nonce}const A=o.getBuilder("public").persist().build();class T{constructor(){Oe(this,"_displayName");Oe(this,"uid");Oe(this,"isAdmin");A.getItem("guestUid")||A.setItem("guestUid",u()),this._displayName=A.getItem("guestNickname")||"",this.uid=A.getItem("guestUid")||u(),this.isAdmin=!1,y.subscribe("user:info:changed",C=>{this._displayName=C.displayName,A.setItem("guestNickname",C.displayName||"")})}get displayName(){return this._displayName}set displayName(C){this._displayName=C,A.setItem("guestNickname",C),y.emit("user:info:changed",this)}}let B;function e(){return B||(B=new T),B}function n(){var x;return((x=e())==null?void 0:x.displayName)||null}function r(x){if(!x||x.trim().length===0)throw new Error("Nickname cannot be empty");e().displayName=x}function u(){var x;return(x=globalThis.crypto)!=null&&x.randomUUID?globalThis.crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,C=>{const F=Math.random()*16|0;return(C==="x"?F:F&3|8).toString(16)})}let _;function g(x,C){return x?x.getAttribute(C):null}function f(){if(_!==void 0)return _;const x=document==null?void 0:document.getElementsByTagName("head")[0];if(!x)return null;const C=g(x,"data-user");return C===null?(_=null,_):(_={uid:C,displayName:g(x,"data-user-displayname"),isAdmin:!!window._oc_isadmin},_)}c.getCSPNonce=O,c.getCurrentUser=f,c.getGuestNickname=n,c.getGuestUser=e,c.getRequestToken=b,c.onRequestTokenUpdate=v,c.setGuestNickname=r}(jn)),jn}var Ot,Dn;function vr(){if(Dn)return Ot;Dn=1;function c(t,i){return function(){return t.apply(i,arguments)}}const{toString:y}=Object.prototype,{getPrototypeOf:o}=Object,{iterator:l,toStringTag:p}=Symbol,b=(t=>i=>{const s=y.call(i);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),v=t=>(t=t.toLowerCase(),i=>b(i)===t),O=t=>i=>typeof i===t,{isArray:A}=Array,T=O("undefined");function B(t){return t!==null&&!T(t)&&t.constructor!==null&&!T(t.constructor)&&u(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const e=v("ArrayBuffer");function n(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&e(t.buffer),i}const r=O("string"),u=O("function"),_=O("number"),g=t=>t!==null&&typeof t=="object",f=t=>t===!0||t===!1,x=t=>{if(b(t)!=="object")return!1;const i=o(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(p in t)&&!(l in t)},C=t=>{if(!g(t)||B(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(i){return!1}},F=v("Date"),q=v("File"),re=v("Blob"),Te=v("FileList"),Ne=t=>g(t)&&u(t.pipe),D=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||u(t.append)&&((i=b(t))==="formdata"||i==="object"&&u(t.toString)&&t.toString()==="[object FormData]"))},je=v("URLSearchParams"),[Le,ot,Ue,fe]=["ReadableStream","Request","Response","Headers"].map(v),it=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Re(t,i,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let a,d;if(typeof t!="object"&&(t=[t]),A(t))for(a=0,d=t.length;a0;)if(d=s[a],i===d.toLowerCase())return d;return null}const ge=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Ee,Ft=t=>!T(t)&&t!==ge;function rt(){const{caseless:t,skipUndefined:i}=Ft(this)&&this||{},s={},a=(d,m)=>{const h=t&&Bt(s,m)||m;x(s[h])&&x(d)?s[h]=rt(s[h],d):x(d)?s[h]=rt({},d):A(d)?s[h]=d.slice():(!i||!T(d))&&(s[h]=d)};for(let d=0,m=arguments.length;d(Re(i,(d,m)=>{s&&u(d)?t[m]=c(d,s):t[m]=d},{allOwnKeys:a}),t),no=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),oo=(t,i,s,a)=>{t.prototype=Object.create(i.prototype,a),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:i.prototype}),s&&Object.assign(t.prototype,s)},io=(t,i,s,a)=>{let d,m,h;const k={};if(i=i||{},t==null)return i;do{for(d=Object.getOwnPropertyNames(t),m=d.length;m-- >0;)h=d[m],(!a||a(h,t,i))&&!k[h]&&(i[h]=t[h],k[h]=!0);t=s!==!1&&o(t)}while(t&&(!s||s(t,i))&&t!==Object.prototype);return i},ro=(t,i,s)=>{t=String(t),(s===void 0||s>t.length)&&(s=t.length),s-=i.length;const a=t.indexOf(i,s);return a!==-1&&a===s},so=t=>{if(!t)return null;if(A(t))return t;let i=t.length;if(!_(i))return null;const s=new Array(i);for(;i-- >0;)s[i]=t[i];return s},ao=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&o(Uint8Array)),uo=(t,i)=>{const s=(t&&t[l]).call(t);let a;for(;(a=s.next())&&!a.done;){const d=a.value;i.call(t,d[0],d[1])}},lo=(t,i)=>{let s;const a=[];for(;(s=t.exec(i))!==null;)a.push(s);return a},co=v("HTMLFormElement"),fo=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,s,a){return s.toUpperCase()+a}),jt=(({hasOwnProperty:t})=>(i,s)=>t.call(i,s))(Object.prototype),po=v("RegExp"),Lt=(t,i)=>{const s=Object.getOwnPropertyDescriptors(t),a={};Re(s,(d,m)=>{let h;(h=i(d,m,t))!==!1&&(a[m]=h||d)}),Object.defineProperties(t,a)},_o=t=>{Lt(t,(i,s)=>{if(u(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const a=t[s];if(u(a)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},ho=(t,i)=>{const s={},a=d=>{d.forEach(m=>{s[m]=!0})};return A(t)?a(t):a(String(t).split(i)),s},mo=()=>{},yo=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function go(t){return!!(t&&u(t.append)&&t[p]==="FormData"&&t[l])}const bo=t=>{const i=new Array(10),s=(a,d)=>{if(g(a)){if(i.indexOf(a)>=0)return;if(B(a))return a;if(!("toJSON"in a)){i[d]=a;const m=A(a)?[]:{};return Re(a,(h,k)=>{const R=s(h,d+1);!T(R)&&(m[k]=R)}),i[d]=void 0,m}}return a};return s(t,0)},wo=v("AsyncFunction"),vo=t=>t&&(g(t)||u(t))&&u(t.then)&&u(t.catch),Ut=((t,i)=>t?setImmediate:i?((s,a)=>(ge.addEventListener("message",({source:d,data:m})=>{d===ge&&m===s&&a.length&&a.shift()()},!1),d=>{a.push(d),ge.postMessage(s,"*")}))("axios@".concat(Math.random()),[]):s=>setTimeout(s))(typeof setImmediate=="function",u(ge.postMessage)),Ao=typeof queueMicrotask<"u"?queueMicrotask.bind(ge):typeof Sn<"u"&&Sn.nextTick||Ut;var w={isArray:A,isArrayBuffer:e,isBuffer:B,isFormData:D,isArrayBufferView:n,isString:r,isNumber:_,isBoolean:f,isObject:g,isPlainObject:x,isEmptyObject:C,isReadableStream:Le,isRequest:ot,isResponse:Ue,isHeaders:fe,isUndefined:T,isDate:F,isFile:q,isBlob:re,isRegExp:po,isFunction:u,isStream:Ne,isURLSearchParams:je,isTypedArray:ao,isFileList:Te,forEach:Re,merge:rt,extend:to,trim:it,stripBOM:no,inherits:oo,toFlatObject:io,kindOf:b,kindOfTest:v,endsWith:ro,toArray:so,forEachEntry:uo,matchAll:lo,isHTMLForm:co,hasOwnProperty:jt,hasOwnProp:jt,reduceDescriptors:Lt,freezeMethods:_o,toObjectSet:ho,toCamelCase:fo,noop:mo,toFiniteNumber:yo,findKey:Bt,global:ge,isContextDefined:Ft,isSpecCompliantForm:go,toJSONObject:bo,isAsyncFn:wo,isThenable:vo,setImmediate:Ut,asap:Ao,isIterable:t=>t!=null&&u(t[l])};function U(t,i,s,a,d){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",i&&(this.code=i),s&&(this.config=s),a&&(this.request=a),d&&(this.response=d,this.status=d.status?d.status:null)}w.inherits(U,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Mt=U.prototype,Dt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Dt[t]={value:t}}),Object.defineProperties(U,Dt),Object.defineProperty(Mt,"isAxiosError",{value:!0}),U.from=(t,i,s,a,d,m)=>{const h=Object.create(Mt);w.toFlatObject(t,h,function(S){return S!==Error.prototype},S=>S!=="isAxiosError");const k=t&&t.message?t.message:"Error",R=i==null&&t?t.code:i;return U.call(h,k,R,s,a,d),t&&h.cause==null&&Object.defineProperty(h,"cause",{value:t,configurable:!0}),h.name=t&&t.name||"Error",m&&Object.assign(h,m),h};var To=null;function st(t){return w.isPlainObject(t)||w.isArray(t)}function Ht(t){return w.endsWith(t,"[]")?t.slice(0,-2):t}function qt(t,i,s){return t?t.concat(i).map(function(a,d){return a=Ht(a),!s&&d?"["+a+"]":a}).join(s?".":""):i}function xo(t){return w.isArray(t)&&!t.some(st)}const ko=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function Me(t,i,s){if(!w.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,s=w.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(M,E){return!w.isUndefined(E[M])});const a=s.metaTokens,d=s.visitor||S,m=s.dots,h=s.indexes,k=(s.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(i);if(!w.isFunction(d))throw new TypeError("visitor must be a function");function R(M){if(M===null)return"";if(w.isDate(M))return M.toISOString();if(w.isBoolean(M))return M.toString();if(!k&&w.isBlob(M))throw new U("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(M)||w.isTypedArray(M)?k&&typeof Blob=="function"?new Blob([M]):Bi.from(M):M}function S(M,E,I){let V=M;if(M&&!I&&typeof M=="object"){if(w.endsWith(E,"{}"))E=a?E:E.slice(0,-2),M=JSON.stringify(M);else if(w.isArray(M)&&xo(M)||(w.isFileList(M)||w.endsWith(E,"[]"))&&(V=w.toArray(M)))return E=Ht(E),V.forEach(function(Y,W){!(w.isUndefined(Y)||Y===null)&&i.append(h===!0?qt([E],W,m):h===null?E:E+"[]",R(Y))}),!1}return st(M)?!0:(i.append(qt(I,E,m),R(M)),!1)}const N=[],L=Object.assign(ko,{defaultVisitor:S,convertValue:R,isVisitable:st});function H(M,E){if(!w.isUndefined(M)){if(N.indexOf(M)!==-1)throw Error("Circular reference detected in "+E.join("."));N.push(M),w.forEach(M,function(I,V){(!(w.isUndefined(I)||I===null)&&d.call(i,I,w.isString(V)?V.trim():V,E,L))===!0&&H(I,E?E.concat(V):[V])}),N.pop()}}if(!w.isObject(t))throw new TypeError("data must be an object");return H(t),i}function Vt(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return i[s]})}function at(t,i){this._pairs=[],t&&Me(t,this,i)}const Gt=at.prototype;Gt.append=function(t,i){this._pairs.push([t,i])},Gt.toString=function(t){const i=t?function(s){return t.call(this,s,Vt)}:Vt;return this._pairs.map(function(s){return i(s[0])+"="+i(s[1])},"").join("&")};function So(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function zt(t,i,s){if(!i)return t;const a=s&&s.encode||So;w.isFunction(s)&&(s={serialize:s});const d=s&&s.serialize;let m;if(d?m=d(i,s):m=w.isURLSearchParams(i)?i.toString():new at(i,s).toString(a),m){const h=t.indexOf("#");h!==-1&&(t=t.slice(0,h)),t+=(t.indexOf("?")===-1?"?":"&")+m}return t}class Oo{constructor(){this.handlers=[]}use(i,s,a){return this.handlers.push({fulfilled:i,rejected:s,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){w.forEach(this.handlers,function(s){s!==null&&i(s)})}}var $t=Oo,Wt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Eo=typeof URLSearchParams<"u"?URLSearchParams:at,No=typeof FormData<"u"?FormData:null,Ro=typeof Blob<"u"?Blob:null,Io={isBrowser:!0,classes:{URLSearchParams:Eo,FormData:No,Blob:Ro},protocols:["http","https","file","blob","url","data"]};const ut=typeof window<"u"&&typeof document<"u",lt=typeof navigator=="object"&&navigator||void 0,Co=ut&&(!lt||["ReactNative","NativeScript","NS"].indexOf(lt.product)<0),Po=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bo=ut&&window.location.href||"http://localhost";var Fo=Object.freeze({__proto__:null,hasBrowserEnv:ut,hasStandardBrowserWebWorkerEnv:Po,hasStandardBrowserEnv:Co,navigator:lt,origin:Bo}),Z=oe(oe({},Fo),Io);function jo(t,i){return Me(t,new Z.classes.URLSearchParams,oe({visitor:function(s,a,d,m){return Z.isNode&&w.isBuffer(s)?(this.append(a,s.toString("base64")),!1):m.defaultVisitor.apply(this,arguments)}},i))}function Lo(t){return w.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function Uo(t){const i={},s=Object.keys(t);let a;const d=s.length;let m;for(a=0;a=s.length;return h=!h&&w.isArray(d)?d.length:h,R?(w.hasOwnProp(d,h)?d[h]=[d[h],a]:d[h]=a,!k):((!d[h]||!w.isObject(d[h]))&&(d[h]=[]),i(s,a,d[h],m)&&w.isArray(d[h])&&(d[h]=Uo(d[h])),!k)}if(w.isFormData(t)&&w.isFunction(t.entries)){const s={};return w.forEachEntry(t,(a,d)=>{i(Lo(a),d,s,0)}),s}return null}function Mo(t,i,s){if(w.isString(t))try{return(i||JSON.parse)(t),w.trim(t)}catch(a){if(a.name!=="SyntaxError")throw a}return(s||JSON.stringify)(t)}const ct={transitional:Wt,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const s=i.getContentType()||"",a=s.indexOf("application/json")>-1,d=w.isObject(t);if(d&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return a?JSON.stringify(Jt(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let m;if(d){if(s.indexOf("application/x-www-form-urlencoded")>-1)return jo(t,this.formSerializer).toString();if((m=w.isFileList(t))||s.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Me(m?{"files[]":t}:t,h&&new h,this.formSerializer)}}return d||a?(i.setContentType("application/json",!1),Mo(t)):t}],transformResponse:[function(t){const i=this.transitional||ct.transitional,s=i&&i.forcedJSONParsing,a=this.responseType==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(s&&!this.responseType||a)){const d=!(i&&i.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(m){if(d)throw m.name==="SyntaxError"?U.from(m,U.ERR_BAD_RESPONSE,this,null,this.response):m}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Z.classes.FormData,Blob:Z.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],t=>{ct.headers[t]={}});var dt=ct;const Do=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Ho=t=>{const i={};let s,a,d;return t&&t.split("\n").forEach(function(m){d=m.indexOf(":"),s=m.substring(0,d).trim().toLowerCase(),a=m.substring(d+1).trim(),!(!s||i[s]&&Do[s])&&(s==="set-cookie"?i[s]?i[s].push(a):i[s]=[a]:i[s]=i[s]?i[s]+", "+a:a)}),i};const Xt=Symbol("internals");function Ie(t){return t&&String(t).trim().toLowerCase()}function De(t){return t===!1||t==null?t:w.isArray(t)?t.map(De):String(t)}function qo(t){const i=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=s.exec(t);)i[a[1]]=a[2];return i}const Vo=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ft(t,i,s,a,d){if(w.isFunction(a))return a.call(this,i,s);if(d&&(i=s),!!w.isString(i)){if(w.isString(a))return i.indexOf(a)!==-1;if(w.isRegExp(a))return a.test(i)}}function Go(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,s,a)=>s.toUpperCase()+a)}function zo(t,i){const s=w.toCamelCase(" "+i);["get","set","has"].forEach(a=>{Object.defineProperty(t,a+s,{value:function(d,m,h){return this[a].call(this,i,d,m,h)},configurable:!0})})}class He{constructor(i){i&&this.set(i)}set(i,s,a){const d=this;function m(k,R,S){const N=Ie(R);if(!N)throw new Error("header name must be a non-empty string");const L=w.findKey(d,N);(!L||d[L]===void 0||S===!0||S===void 0&&d[L]!==!1)&&(d[L||R]=De(k))}const h=(k,R)=>w.forEach(k,(S,N)=>m(S,N,R));if(w.isPlainObject(i)||i instanceof this.constructor)h(i,s);else if(w.isString(i)&&(i=i.trim())&&!Vo(i))h(Ho(i),s);else if(w.isObject(i)&&w.isIterable(i)){let k={},R,S;for(const N of i){if(!w.isArray(N))throw TypeError("Object iterator must return a key-value pair");k[S=N[0]]=(R=k[S])?w.isArray(R)?[...R,N[1]]:[R,N[1]]:N[1]}h(k,s)}else i!=null&&m(s,i,a);return this}get(i,s){if(i=Ie(i),i){const a=w.findKey(this,i);if(a){const d=this[a];if(!s)return d;if(s===!0)return qo(d);if(w.isFunction(s))return s.call(this,d,a);if(w.isRegExp(s))return s.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,s){if(i=Ie(i),i){const a=w.findKey(this,i);return!!(a&&this[a]!==void 0&&(!s||ft(this,this[a],a,s)))}return!1}delete(i,s){const a=this;let d=!1;function m(h){if(h=Ie(h),h){const k=w.findKey(a,h);k&&(!s||ft(a,a[k],k,s))&&(delete a[k],d=!0)}}return w.isArray(i)?i.forEach(m):m(i),d}clear(i){const s=Object.keys(this);let a=s.length,d=!1;for(;a--;){const m=s[a];(!i||ft(this,this[m],m,i,!0))&&(delete this[m],d=!0)}return d}normalize(i){const s=this,a={};return w.forEach(this,(d,m)=>{const h=w.findKey(a,m);if(h){s[h]=De(d),delete s[m];return}const k=i?Go(m):String(m).trim();k!==m&&delete s[m],s[k]=De(d),a[k]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const s=Object.create(null);return w.forEach(this,(a,d)=>{a!=null&&a!==!1&&(s[d]=i&&w.isArray(a)?a.join(", "):a)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,s])=>i+": "+s).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...s){const a=new this(i);return s.forEach(d=>a.set(d)),a}static accessor(i){const s=(this[Xt]=this[Xt]={accessors:{}}).accessors,a=this.prototype;function d(m){const h=Ie(m);s[h]||(zo(a,m),s[h]=!0)}return w.isArray(i)?i.forEach(d):d(i),this}}He.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(He.prototype,({value:t},i)=>{let s=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(a){this[s]=a}}}),w.freezeMethods(He);var ne=He;function pt(t,i){const s=this||dt,a=i||s,d=ne.from(a.headers);let m=a.data;return w.forEach(t,function(h){m=h.call(s,m,d.normalize(),i?i.status:void 0)}),d.normalize(),m}function Kt(t){return!!(t&&t.__CANCEL__)}function xe(t,i,s){U.call(this,t!=null?t:"canceled",U.ERR_CANCELED,i,s),this.name="CanceledError"}w.inherits(xe,U,{__CANCEL__:!0});function Qt(t,i,s){const a=s.config.validateStatus;!s.status||!a||a(s.status)?t(s):i(new U("Request failed with status code "+s.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function $o(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function Wo(t,i){t=t||10;const s=new Array(t),a=new Array(t);let d=0,m=0,h;return i=i!==void 0?i:1e3,function(k){const R=Date.now(),S=a[m];h||(h=R),s[d]=k,a[d]=R;let N=m,L=0;for(;N!==d;)L+=s[N++],N=N%t;if(d=(d+1)%t,d===m&&(m=(m+1)%t),R-h{s=R,d=null,m&&(clearTimeout(m),m=null),t(...k)};return[(...k)=>{const R=Date.now(),S=R-s;S>=a?h(k,R):(d=k,m||(m=setTimeout(()=>{m=null,h(d)},a-S)))},()=>d&&h(d)]}const qe=(t,i,s=3)=>{let a=0;const d=Wo(50,250);return Jo(m=>{const h=m.loaded,k=m.lengthComputable?m.total:void 0,R=h-a,S=d(R),N=h<=k;a=h;const L={loaded:h,total:k,progress:k?h/k:void 0,bytes:R,rate:S||void 0,estimated:S&&k&&N?(k-h)/S:void 0,event:m,lengthComputable:k!=null,[i?"download":"upload"]:!0};t(L)},s)},Zt=(t,i)=>{const s=t!=null;return[a=>i[0]({lengthComputable:s,total:t,loaded:a}),i[1]]},Yt=t=>(...i)=>w.asap(()=>t(...i));var Xo=Z.hasStandardBrowserEnv?((t,i)=>s=>(s=new URL(s,Z.origin),t.protocol===s.protocol&&t.host===s.host&&(i||t.port===s.port)))(new URL(Z.origin),Z.navigator&&/(msie|trident)/i.test(Z.navigator.userAgent)):()=>!0,Ko=Z.hasStandardBrowserEnv?{write(t,i,s,a,d,m){const h=[t+"="+encodeURIComponent(i)];w.isNumber(s)&&h.push("expires="+new Date(s).toGMTString()),w.isString(a)&&h.push("path="+a),w.isString(d)&&h.push("domain="+d),m===!0&&h.push("secure"),document.cookie=h.join("; ")},read(t){const i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Qo(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Zo(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function en(t,i,s){let a=!Qo(i);return t&&(a||s==!1)?Zo(t,i):i}const tn=t=>t instanceof ne?oe({},t):t;function be(t,i){i=i||{};const s={};function a(S,N,L,H){return w.isPlainObject(S)&&w.isPlainObject(N)?w.merge.call({caseless:H},S,N):w.isPlainObject(N)?w.merge({},N):w.isArray(N)?N.slice():N}function d(S,N,L,H){if(w.isUndefined(N)){if(!w.isUndefined(S))return a(void 0,S,L,H)}else return a(S,N,L,H)}function m(S,N){if(!w.isUndefined(N))return a(void 0,N)}function h(S,N){if(w.isUndefined(N)){if(!w.isUndefined(S))return a(void 0,S)}else return a(void 0,N)}function k(S,N,L){if(L in i)return a(S,N);if(L in t)return a(void 0,S)}const R={url:m,method:m,data:m,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,withXSRFToken:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:k,headers:(S,N,L)=>d(tn(S),tn(N),L,!0)};return w.forEach(Object.keys(oe(oe({},t),i)),function(S){const N=R[S]||d,L=N(t[S],i[S],S);w.isUndefined(L)&&N!==k||(s[S]=L)}),s}var nn=t=>{const i=be({},t);let{data:s,withXSRFToken:a,xsrfHeaderName:d,xsrfCookieName:m,headers:h,auth:k}=i;if(i.headers=h=ne.from(h),i.url=zt(en(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),k&&h.set("Authorization","Basic "+btoa((k.username||"")+":"+(k.password?unescape(encodeURIComponent(k.password)):""))),w.isFormData(s)){if(Z.hasStandardBrowserEnv||Z.hasStandardBrowserWebWorkerEnv)h.setContentType(void 0);else if(w.isFunction(s.getHeaders)){const R=s.getHeaders(),S=["content-type","content-length"];Object.entries(R).forEach(([N,L])=>{S.includes(N.toLowerCase())&&h.set(N,L)})}}if(Z.hasStandardBrowserEnv&&(a&&w.isFunction(a)&&(a=a(i)),a||a!==!1&&Xo(i.url))){const R=d&&m&&Ko.read(m);R&&h.set(d,R)}return i},Yo=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(i,s){const a=nn(t);let d=a.data;const m=ne.from(a.headers).normalize();let{responseType:h,onUploadProgress:k,onDownloadProgress:R}=a,S,N,L,H,M;function E(){H&&H(),M&&M(),a.cancelToken&&a.cancelToken.unsubscribe(S),a.signal&&a.signal.removeEventListener("abort",S)}let I=new XMLHttpRequest;I.open(a.method.toUpperCase(),a.url,!0),I.timeout=a.timeout;function V(){if(!I)return;const W=ne.from("getAllResponseHeaders"in I&&I.getAllResponseHeaders()),ae={data:!h||h==="text"||h==="json"?I.responseText:I.response,status:I.status,statusText:I.statusText,headers:W,config:t,request:I};Qt(function(pe){i(pe),E()},function(pe){s(pe),E()},ae),I=null}"onloadend"in I?I.onloadend=V:I.onreadystatechange=function(){!I||I.readyState!==4||I.status===0&&!(I.responseURL&&I.responseURL.indexOf("file:")===0)||setTimeout(V)},I.onabort=function(){I&&(s(new U("Request aborted",U.ECONNABORTED,t,I)),I=null)},I.onerror=function(W){const ae=W&&W.message?W.message:"Network Error",pe=new U(ae,U.ERR_NETWORK,t,I);pe.event=W||null,s(pe),I=null},I.ontimeout=function(){let W=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const ae=a.transitional||Wt;a.timeoutErrorMessage&&(W=a.timeoutErrorMessage),s(new U(W,ae.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,t,I)),I=null},d===void 0&&m.setContentType(null),"setRequestHeader"in I&&w.forEach(m.toJSON(),function(W,ae){I.setRequestHeader(ae,W)}),w.isUndefined(a.withCredentials)||(I.withCredentials=!!a.withCredentials),h&&h!=="json"&&(I.responseType=a.responseType),R&&([L,M]=qe(R,!0),I.addEventListener("progress",L)),k&&I.upload&&([N,H]=qe(k),I.upload.addEventListener("progress",N),I.upload.addEventListener("loadend",H)),(a.cancelToken||a.signal)&&(S=W=>{I&&(s(!W||W.type?new xe(null,t,I):W),I.abort(),I=null)},a.cancelToken&&a.cancelToken.subscribe(S),a.signal&&(a.signal.aborted?S():a.signal.addEventListener("abort",S)));const Y=$o(a.url);if(Y&&Z.protocols.indexOf(Y)===-1){s(new U("Unsupported protocol "+Y+":",U.ERR_BAD_REQUEST,t));return}I.send(d||null)})},ei=(t,i)=>{const{length:s}=t=t?t.filter(Boolean):[];if(i||s){let a=new AbortController,d;const m=function(S){if(!d){d=!0,k();const N=S instanceof Error?S:this.reason;a.abort(N instanceof U?N:new xe(N instanceof Error?N.message:N))}};let h=i&&setTimeout(()=>{h=null,m(new U("timeout ".concat(i," of ms exceeded"),U.ETIMEDOUT))},i);const k=()=>{t&&(h&&clearTimeout(h),h=null,t.forEach(S=>{S.unsubscribe?S.unsubscribe(m):S.removeEventListener("abort",m)}),t=null)};t.forEach(S=>S.addEventListener("abort",m));const{signal:R}=a;return R.unsubscribe=()=>w.asap(k),R}};const ti=function*(t,i){let s=t.byteLength;if(s{const d=ni(t,i);let m=0,h,k=R=>{h||(h=!0,a&&a(R))};return new ReadableStream({async pull(R){try{const{done:S,value:N}=await d.next();if(S){k(),R.close();return}let L=N.byteLength;if(s){let H=m+=L;s(H)}R.enqueue(new Uint8Array(N))}catch(S){throw k(S),S}},cancel(R){return k(R),d.return()}},{highWaterMark:2})},rn=64*1024,{isFunction:Ve}=w,ii=(({Request:t,Response:i})=>({Request:t,Response:i}))(w.global),{ReadableStream:sn,TextEncoder:an}=w.global,un=(t,...i)=>{try{return!!t(...i)}catch(s){return!1}},ri=t=>{t=w.merge.call({skipUndefined:!0},ii,t);const{fetch:i,Request:s,Response:a}=t,d=i?Ve(i):typeof fetch=="function",m=Ve(s),h=Ve(a);if(!d)return!1;const k=d&&Ve(sn),R=d&&(typeof an=="function"?(E=>I=>E.encode(I))(new an):async E=>new Uint8Array(await new s(E).arrayBuffer())),S=m&&k&&un(()=>{let E=!1;const I=new s(Z.origin,{body:new sn,method:"POST",get duplex(){return E=!0,"half"}}).headers.has("Content-Type");return E&&!I}),N=h&&k&&un(()=>w.isReadableStream(new a("").body)),L={stream:N&&(E=>E.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(E=>{!L[E]&&(L[E]=(I,V)=>{let Y=I&&I[E];if(Y)return Y.call(I);throw new U("Response type '".concat(E,"' is not supported"),U.ERR_NOT_SUPPORT,V)})});const H=async E=>{if(E==null)return 0;if(w.isBlob(E))return E.size;if(w.isSpecCompliantForm(E))return(await new s(Z.origin,{method:"POST",body:E}).arrayBuffer()).byteLength;if(w.isArrayBufferView(E)||w.isArrayBuffer(E))return E.byteLength;if(w.isURLSearchParams(E)&&(E=E+""),w.isString(E))return(await R(E)).byteLength},M=async(E,I)=>{const V=w.toFiniteNumber(E.getContentLength());return V!=null?V:H(I)};return async E=>{let{url:I,method:V,data:Y,signal:W,cancelToken:ae,timeout:pe,onDownloadProgress:gt,onUploadProgress:mn,responseType:_e,headers:bt,withCredentials:Je="same-origin",fetchOptions:yn}=nn(E),gn=i||fetch;_e=_e?(_e+"").toLowerCase():"text";let Xe=ei([W,ae&&ae.toAbortSignal()],pe),Ce=null;const we=Xe&&Xe.unsubscribe&&(()=>{Xe.unsubscribe()});let bn;try{if(mn&&S&&V!=="get"&&V!=="head"&&(bn=await M(bt,Y))!==0){let me=new s(I,{method:"POST",body:Y,duplex:"half"}),ke;if(w.isFormData(Y)&&(ke=me.headers.get("content-type"))&&bt.setContentType(ke),me.body){const[wt,Ke]=Zt(bn,qe(Yt(mn)));Y=on(me.body,rn,wt,Ke)}}w.isString(Je)||(Je=Je?"include":"omit");const ue=m&&"credentials"in s.prototype,wn=Pe(oe({},yn),{signal:Xe,method:V.toUpperCase(),headers:bt.normalize().toJSON(),body:Y,duplex:"half",credentials:ue?Je:void 0});Ce=m&&new s(I,wn);let he=await(m?gn(Ce,yn):gn(I,wn));const vn=N&&(_e==="stream"||_e==="response");if(N&&(gt||vn&&we)){const me={};["status","statusText","headers"].forEach(An=>{me[An]=he[An]});const ke=w.toFiniteNumber(he.headers.get("content-length")),[wt,Ke]=gt&&Zt(ke,qe(Yt(gt),!0))||[];he=new a(on(he.body,rn,wt,()=>{Ke&&Ke(),we&&we()}),me)}_e=_e||"text";let pi=await L[w.findKey(L,_e)||"text"](he,E);return!vn&&we&&we(),await new Promise((me,ke)=>{Qt(me,ke,{data:pi,headers:ne.from(he.headers),status:he.status,statusText:he.statusText,config:E,request:Ce})})}catch(ue){throw we&&we(),ue&&ue.name==="TypeError"&&/Load failed|fetch/i.test(ue.message)?Object.assign(new U("Network Error",U.ERR_NETWORK,E,Ce),{cause:ue.cause||ue}):U.from(ue,ue&&ue.code,E,Ce)}}},si=new Map,ln=t=>{let i=t?t.env:{};const{fetch:s,Request:a,Response:d}=i,m=[a,d,s];let h=m.length,k=h,R,S,N=si;for(;k--;)R=m[k],S=N.get(R),S===void 0&&N.set(R,S=k?new Map:ri(i)),N=S;return S};ln();const _t={http:To,xhr:Yo,fetch:{get:ln}};w.forEach(_t,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch(s){}Object.defineProperty(t,"adapterName",{value:i})}});const cn=t=>"- ".concat(t),ai=t=>w.isFunction(t)||t===null||t===!1;var dn={getAdapter:(t,i)=>{t=w.isArray(t)?t:[t];const{length:s}=t;let a,d;const m={};for(let h=0;h"adapter ".concat(R," ")+(S===!1?"is not supported by the environment":"is not available in the build"));let k=s?h.length>1?"since :\n"+h.map(cn).join("\n"):" "+cn(h[0]):"as no adapter specified";throw new U("There is no suitable adapter to dispatch the request "+k,"ERR_NOT_SUPPORT")}return d},adapters:_t};function ht(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new xe(null,t)}function fn(t){return ht(t),t.headers=ne.from(t.headers),t.data=pt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),dn.getAdapter(t.adapter||dt.adapter,t)(t).then(function(i){return ht(t),i.data=pt.call(t,t.transformResponse,i),i.headers=ne.from(i.headers),i},function(i){return Kt(i)||(ht(t),i&&i.response&&(i.response.data=pt.call(t,t.transformResponse,i.response),i.response.headers=ne.from(i.response.headers))),Promise.reject(i)})}const pn="1.12.2",Ge={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{Ge[t]=function(s){return typeof s===t||"a"+(i<1?"n ":" ")+t}});const _n={};Ge.transitional=function(t,i,s){function a(d,m){return"[Axios v"+pn+"] Transitional option '"+d+"'"+m+(s?". "+s:"")}return(d,m,h)=>{if(t===!1)throw new U(a(m," has been removed"+(i?" in "+i:"")),U.ERR_DEPRECATED);return i&&!_n[m]&&(_n[m]=!0,console.warn(a(m," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(d,m,h):!0}},Ge.spelling=function(t){return(i,s)=>(console.warn("".concat(s," is likely a misspelling of ").concat(t)),!0)};function ui(t,i,s){if(typeof t!="object")throw new U("options must be an object",U.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let d=a.length;for(;d-- >0;){const m=a[d],h=i[m];if(h){const k=t[m],R=k===void 0||h(k,m,t);if(R!==!0)throw new U("option "+m+" must be "+R,U.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new U("Unknown option "+m,U.ERR_BAD_OPTION)}}var ze={assertOptions:ui,validators:Ge};const se=ze.validators;class $e{constructor(i){this.defaults=i||{},this.interceptors={request:new $t,response:new $t}}async request(i,s){try{return await this._request(i,s)}catch(a){if(a instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;const m=d.stack?d.stack.replace(/^.+\n/,""):"";try{a.stack?m&&!String(a.stack).endsWith(m.replace(/^.+\n.+\n/,""))&&(a.stack+="\n"+m):a.stack=m}catch(h){}}throw a}}_request(i,s){typeof i=="string"?(s=s||{},s.url=i):s=i||{},s=be(this.defaults,s);const{transitional:a,paramsSerializer:d,headers:m}=s;a!==void 0&&ze.assertOptions(a,{silentJSONParsing:se.transitional(se.boolean),forcedJSONParsing:se.transitional(se.boolean),clarifyTimeoutError:se.transitional(se.boolean)},!1),d!=null&&(w.isFunction(d)?s.paramsSerializer={serialize:d}:ze.assertOptions(d,{encode:se.function,serialize:se.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),ze.assertOptions(s,{baseUrl:se.spelling("baseURL"),withXsrfToken:se.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let h=m&&w.merge(m.common,m[s.method]);m&&w.forEach(["delete","get","head","post","put","patch","common"],E=>{delete m[E]}),s.headers=ne.concat(h,m);const k=[];let R=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(s)===!1||(R=R&&E.synchronous,k.unshift(E.fulfilled,E.rejected))});const S=[];this.interceptors.response.forEach(function(E){S.push(E.fulfilled,E.rejected)});let N,L=0,H;if(!R){const E=[fn.bind(this),void 0];for(E.unshift(...k),E.push(...S),H=E.length,N=Promise.resolve(s);L{if(!a._listeners)return;let m=a._listeners.length;for(;m-- >0;)a._listeners[m](d);a._listeners=null}),this.promise.then=d=>{let m;const h=new Promise(k=>{a.subscribe(k),m=k}).then(d);return h.cancel=function(){a.unsubscribe(m)},h},i(function(d,m,h){a.reason||(a.reason=new xe(d,m,h),s(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const s=this._listeners.indexOf(i);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const i=new AbortController,s=a=>{i.abort(a)};return this.subscribe(s),i.signal.unsubscribe=()=>this.unsubscribe(s),i.signal}static source(){let i;return{token:new mt(function(s){i=s}),cancel:i}}}var li=mt;function ci(t){return function(i){return t.apply(null,i)}}function di(t){return w.isObject(t)&&t.isAxiosError===!0}const yt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(yt).forEach(([t,i])=>{yt[i]=t});var fi=yt;function hn(t){const i=new We(t),s=c(We.prototype.request,i);return w.extend(s,We.prototype,i,{allOwnKeys:!0}),w.extend(s,i,null,{allOwnKeys:!0}),s.create=function(a){return hn(be(t,a))},s}const $=hn(dt);return $.Axios=We,$.CanceledError=xe,$.CancelToken=li,$.isCancel=Kt,$.VERSION=pn,$.toFormData=Me,$.AxiosError=U,$.Cancel=$.CanceledError,$.all=function(t){return Promise.all(t)},$.spread=ci,$.isAxiosError=di,$.mergeConfig=be,$.AxiosHeaders=ne,$.formToJSON=t=>Jt(w.isHTMLForm(t)?new FormData(t):t),$.getAdapter=dn.getAdapter,$.HttpStatusCode=fi,$.default=$,Ot=$,Ot}var Hn={},qn;function Ar(){return qn||(qn=1,function(c){Object.defineProperty(c,Symbol.toStringTag,{value:"Module"});const y=(n,r)=>A(n,"",r),o=n=>"/remote.php/"+n,l=(n,r)=>{var u;return((u=r==null?void 0:r.baseURL)!=null?u:T())+o(n)},p=(n,r,u)=>{var _;const g=Object.assign({ocsVersion:2},u||{}).ocsVersion===1?1:2;return((_=u==null?void 0:u.baseURL)!=null?_:T())+"/ocs/v"+g+".php"+b(n,r,u)},b=(n,r,u)=>{const _=Object.assign({escape:!0},u||{}),g=function(f,x){return x=x||{},f.replace(/{([^{}]*)}/g,function(C,F){const q=x[F];return _.escape?encodeURIComponent(typeof q=="string"||typeof q=="number"?q.toString():C):typeof q=="string"||typeof q=="number"?q.toString():C})};return n.charAt(0)!=="/"&&(n="/"+n),g(n,r||{})},v=(n,r,u)=>{var _,g,f;const x=Object.assign({noRewrite:!1},u||{}),C=(_=u==null?void 0:u.baseURL)!=null?_:B();return((f=(g=window==null?void 0:window.OC)==null?void 0:g.config)==null?void 0:f.modRewriteWorking)===!0&&!x.noRewrite?C+b(n,r,u):C+"/index.php"+b(n,r,u)},O=(n,r)=>r.includes(".")?A(n,"img",r):A(n,"img","".concat(r,".svg")),A=(n,r,u)=>{var _,g,f;const x=(f=(g=(_=window==null?void 0:window.OC)==null?void 0:_.coreApps)==null?void 0:g.includes(n))!=null?f:!1,C=u.slice(-3)==="php";let F=B();return C&&!x?(F+="/index.php/apps/".concat(n),r&&(F+="/".concat(encodeURI(r))),u!=="index.php"&&(F+="/".concat(u))):!C&&!x?(F=e(n),r&&(F+="/".concat(r,"/")),F.at(-1)!=="/"&&(F+="/"),F+=u):((n==="settings"||n==="core"||n==="search")&&r==="ajax"&&(F+="/index.php"),n&&(F+="/".concat(n)),r&&(F+="/".concat(r)),F+="/".concat(u)),F},T=()=>window.location.protocol+"//"+window.location.host+B();function B(){let n=window._oc_webroot;if(typeof n>"u"){n=location.pathname;const r=n.indexOf("/index.php/");if(r!==-1)n=n.slice(0,r);else{const u=n.indexOf("/",1);n=n.slice(0,u>0?u:void 0)}}return n}function e(n){var r,u;return(u=((r=window._oc_appswebroots)!=null?r:{})[n])!=null?u:""}c.generateFilePath=A,c.generateOcsUrl=p,c.generateRemoteUrl=l,c.generateUrl=v,c.getAppRootUrl=e,c.getBaseUrl=T,c.getRootUrl=B,c.imagePath=O,c.linkTo=y}(Hn)),Hn}var Vn;function Tr(){return Vn||(Vn=1,function(c){var n;Object.defineProperties(c,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=wr(),o=vr(),l=Ar(),p=(r=>r&&r.__esModule?r:{default:r})(o),b=p.default.create({headers:{requesttoken:(n=y.getRequestToken())!=null?n:"","X-Requested-With":"XMLHttpRequest"}});y.onRequestTokenUpdate(r=>{b.defaults.headers.requesttoken=r});const v=Object.assign(b,{CancelToken:p.default.CancelToken,isCancel:p.default.isCancel}),O=Symbol("csrf-retry");function A(r){return async u=>{var C;if(!o.isAxiosError(u))throw u;const{config:_,response:g,request:f}=u,x=f==null?void 0:f.responseURL;if(_&&!_[O]&&(g==null?void 0:g.status)===412&&((C=g==null?void 0:g.data)==null?void 0:C.message)==="CSRF check failed"){console.warn("Request to ".concat(x," failed because of a CSRF mismatch. Fetching a new token"));const{data:{token:F}}=await r.get(l.generateUrl("/csrftoken"));return console.debug("New request token ".concat(F," fetched")),r.defaults.headers.requesttoken=F,r(Pe(oe({},_),{headers:Pe(oe({},_.headers),{requesttoken:F}),[O]:!0}))}throw u}}const T=Symbol("retryDelay");function B(r){return async u=>{if(!o.isAxiosError(u))throw u;const{config:_,response:g,request:f}=u,x=f==null?void 0:f.responseURL,C=g==null?void 0:g.status,F=g==null?void 0:g.headers;let q=typeof(_==null?void 0:_[T])=="number"?_==null?void 0:_[T]:1;if(C===503&&(F==null?void 0:F["x-nextcloud-maintenance-mode"])==="1"&&(_!=null&&_.retryIfMaintenanceMode)){if(q*=2,q>32)throw console.error("Retry delay exceeded one minute, giving up.",{responseURL:x}),u;return console.warn("Request to ".concat(x," failed because of maintenance mode. Retrying in ").concat(q,"s")),await new Promise(re=>{setTimeout(re,q*1e3)}),r(Pe(oe({},_),{[T]:q}))}throw u}}async function e(r){var u;if(o.isAxiosError(r)){const{config:_,response:g,request:f}=r,x=f==null?void 0:f.responseURL;(g==null?void 0:g.status)===401&&((u=g==null?void 0:g.data)==null?void 0:u.message)==="Current user is not logged in"&&(_!=null&&_.reloadExpiredSession)&&(window!=null&&window.location)&&(console.error("Request to ".concat(x," failed because the user session expired. Reloading the page …")),window.location.reload())}throw r}v.interceptors.response.use(r=>r,A(v)),v.interceptors.response.use(r=>r,B(v)),v.interceptors.response.use(r=>r,e),Object.defineProperty(c,"isAxiosError",{enumerable:!0,get:()=>o.isAxiosError}),Object.defineProperty(c,"isCancel",{enumerable:!0,get:()=>o.isCancel}),c.default=v}(Fn)),Fn}var Gn;function xr(){if(Gn)return Ae;Gn=1;var c=Ae&&Ae.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.getSupportedTypes=p,Ae.listen=b;const y=gr(),o=c(Tr()),l=Qn();function p(){const A=(0,y.getCapabilities)();return A.notify_push?A.notify_push.type:[]}function b(A,T,B={}){return v(B),window._notify_push_listeners[A]||(window._notify_push_listeners[A]=[]),window._notify_push_listeners[A].push(T),window._notify_push_ws!==null&&typeof window._notify_push_ws=="object"&&window._notify_push_ready?window._notify_push_ws.send("listen "+A):O(B),window._notify_push_available}function v(A={}){typeof window._notify_push_listeners>"u"&&(window._notify_push_listeners={},window._notify_push_ws=null,window._notify_push_online=!0,window._notify_push_available=!1,window._notify_push_error_count=0,window._notify_push_ready=!1,(0,l.subscribe)("networkOffline",()=>{window._notify_push_online=!1,window._notify_push_ws=null,window._notify_push_ready=!1}),(0,l.subscribe)("networkOnline",()=>{window._notify_push_error_count=0,window._notify_push_online=!0,O(A)}))}async function O(A={}){if(window._notify_push_ws)return!0;window._notify_push_ws=!0;const T=(0,y.getCapabilities)();if(!T.notify_push)return window._notify_push_available=!1,window._notify_push_ws=null,!1;window._notify_push_available=!0;let B;return A.credentials||(B=(await o.default.post(T.notify_push.endpoints.pre_auth)).data),window._notify_push_ws=new WebSocket(T.notify_push.endpoints.websocket),window._notify_push_ws.onopen=()=>{if(typeof window._notify_push_ws=="object"&&window._notify_push_ws){B?(window._notify_push_ws.send(""),window._notify_push_ws.send(B)):A.credentials&&(window._notify_push_ws.send(A.credentials.username),window._notify_push_ws.send(A.credentials.password)),window._notify_push_ready=!0;for(let e in window._notify_push_listeners)window._notify_push_ws.send("listen "+e)}},window._notify_push_ws.onmessage=e=>{if(e.data==="authenticated")window._notify_push_error_count=0;else{const n=e.data.indexOf(" ");let[r,u]=n>0?[e.data.slice(0,n),e.data.slice(n+1)]:[e.data,null];if(u&&(u=JSON.parse(u)),window._notify_push_listeners[r])for(let _ of window._notify_push_listeners[r])_(r,u)}},window._notify_push_ws.onerror=window._notify_push_ws.onclose=()=>{window._notify_push_ws=null,window._notify_push_error_count+=1,window._notify_push_ready=!1,setTimeout(()=>{window._notify_push_online&&O(A)},1e3*window._notify_push_error_count)},!0}return Ae}var kr=xr();const Sr={name:"BellOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Or=["aria-hidden","aria-label"],Er=["fill","width","height"],Nr={d:"M10 21H14C14 22.1 13.1 23 12 23S10 22.1 10 21M21 19V20H3V19L5 17V11C5 7.9 7 5.2 10 4.3V4C10 2.9 10.9 2 12 2S14 2.9 14 4V4.3C17 5.2 19 7.9 19 11V17L21 19M17 11C17 8.2 14.8 6 12 6S7 8.2 7 11V18H17V11Z"},Rr={key:0};function Ir(c,y,o,l,p,b){return P(),j("span",Fe(c.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon bell-outline-icon",role:"img",onClick:y[0]||(y[0]=v=>c.$emit("click",v))}),[(P(),j("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[X("path",Nr,[o.title?(P(),j("title",Rr,G(o.title),1)):z("",!0)])],8,Er))],16,Or)}const Cr=de(Sr,[["render",Ir]]),Pr={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Br=["aria-hidden","aria-label"],Fr=["fill","width","height"],jr={d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"},Lr={key:0};function Ur(c,y,o,l,p,b){return P(),j("span",Fe(c.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon close-icon",role:"img",onClick:y[0]||(y[0]=v=>c.$emit("click",v))}),[(P(),j("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[X("path",jr,[o.title?(P(),j("title",Lr,G(o.title),1)):z("",!0)])],8,Fr))],16,Br)}const Zn=de(Pr,[["render",Ur]]),Mr={name:"MessageOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Dr=["aria-hidden","aria-label"],Hr=["fill","width","height"],qr={d:"M20 2H4C2.9 2 2 2.9 2 4V22L6 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2M20 16H5.2L4 17.2V4H20V16Z"},Vr={key:0};function Gr(c,y,o,l,p,b){return P(),j("span",Fe(c.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon message-outline-icon",role:"img",onClick:y[0]||(y[0]=v=>c.$emit("click",v))}),[(P(),j("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[X("path",qr,[o.title?(P(),j("title",Vr,G(o.title),1)):z("",!0)])],8,Hr))],16,Dr)}const Yn=de(Mr,[["render",Gr]]),zr={name:"BellIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$r=["aria-hidden","aria-label"],Wr=["fill","width","height"],Jr={d:"M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21A2,2 0 0,1 12,23A2,2 0 0,1 10,21"},Xr={key:0};function Kr(c,y,o,l,p,b){return P(),j("span",Fe(c.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon bell-icon",role:"img",onClick:y[0]||(y[0]=v=>c.$emit("click",v))}),[(P(),j("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[X("path",Jr,[o.title?(P(),j("title",Xr,G(o.title),1)):z("",!0)])],8,Wr))],16,$r)}const Qr=de(zr,[["render",Kr]]),Zr={key:0,class:"notifications-button__icon"},Yr=["width","height"],es={__name:"IconNotification",props:{showDot:{type:Boolean,default:!1},showWarning:{type:Boolean,default:!1},size:{type:Number,default:20}},setup(c){var v;const y=(v=Fi())==null?void 0:v.theming,o=/^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;function l(O){const A=parseInt(O.substring(1,3),16)/255,T=parseInt(O.substring(3,5),16)/255,B=parseInt(O.substring(5,7),16)/255,e=Math.max(A,T,B),n=Math.min(A,T,B);let r=0,u=0;const _=(e+n)/2;if(e!==n){const g=e-n;switch(u=_>.5?g/(2-e-n):g/(e+n),e){case A:r=(T-B)/g+(T{if(!(y!=null&&y.color)||!o.test(y==null?void 0:y.color))return!1;const[O,A,T]=l(y.color);return(O>=330||O<=15)&&A>.4&&(T>.1||T<.6)}),b=te(()=>{if(!(y!=null&&y.color)||!o.test(y==null?void 0:y.color))return!1;const[O,A,T]=l(y.color);return(O>=305||O<=64)&&A>.7&&(T>.1||T<.6)});return(O,A)=>c.showDot||c.showWarning?(P(),j("span",Zr,[(P(),j("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",width:c.size,height:c.size,viewBox:"0 0 24 24",fill:"currentColor"},[A[0]||(A[0]=X("path",{d:"M 19,11.79 C 18.5,11.92 18,12 17.5,12 14.47,12 12,9.53 12,6.5 12,5.03 12.58,3.7 13.5,2.71 13.15,2.28 12.61,2 12,2 10.9,2 10,2.9 10,4 V 4.29 C 7.03,5.17 5,7.9 5,11 v 6 l -2,2 v 1 H 21 V 19 L 19,17 V 11.79 M 12,23 c 1.11,0 2,-0.89 2,-2 h -4 c 0,1.11 0.9,2 2,2 z"},null,-1)),X("path",{class:Pt(["notification__dot",{"notification__dot--warning":c.showWarning&&!b.value,"notification__dot--white":p.value||c.showWarning&&b.value}]),d:"M 21,6.5 C 21,8.43 19.43,10 17.5,10 15.57,10 14,8.43 14,6.5 14,4.57 15.57,3 17.5,3 19.43,3 21,4.57 21,6.5"},null,2)],8,Yr))])):(P(),Q(Qr,{key:1,class:"notifications-button__icon",size:c.size},null,8,["size"]))}},ts={__name:"ActionButton",props:{action:{type:Object,required:!0}},emits:["click"],setup(c,{emit:y}){const o=c,l=y,p=te(()=>o.action.type==="WEB");function b(v){const O={url:o.action.link,type:o.action.type||"GET"};l("click",{event:v,action:O})}return(v,O)=>(P(),Q(ye(tt),{variant:p.value||c.action.primary?"primary":"secondary",href:p.value?c.action.link:void 0,class:"action-button pull-right",onClick:b},{default:J(()=>[Be(G(c.action.label),1)]),_:1},8,["variant","href"]))}},ns={name:"DefaultParameter",props:{type:{type:String,required:!0},id:{type:[Number,String],required:!0},name:{type:String,required:!0},link:{type:String,default:""}},computed:{hasInternalLink(){return this.link&&(this.type==="deck-board"||this.type==="deck-card")}}},os=["href"],is=["href"],rs={key:2};function ss(c,y,o,l,p,b){return b.hasInternalLink?(P(),j("a",{key:0,href:o.link},[X("strong",null,G(o.name),1)],8,os)):o.link?(P(),j("a",{key:1,href:o.link,class:"external",target:"_blank",rel:"noopener noreferrer"},[X("strong",null,G(o.name),1)],8,is)):(P(),j("strong",rs,G(o.name),1))}const as=de(ns,[["render",ss],["__scopeId","data-v-9803ab31"]]),us={name:"FileParameter",props:{type:{type:String,required:!0},id:{type:[Number,String],required:!0},name:{type:String,required:!0},path:{type:String,default:""},link:{type:String,default:""}},computed:{title(){const c=this.path.lastIndexOf("/"),y=this.path.indexOf("/"),o=this.path.substring(y===0?1:0,c);return o.length===0?"":le("notifications","in {path}",{path:o})}}},ls=["title","href"];function cs(c,y,o,l,p,b){return P(),j("a",{title:b.title,class:"filename",href:o.link},G(o.name),9,ls)}const ds=de(us,[["render",cs]]),fs={name:"UserParameter",components:{NcUserBubble:mr},props:{type:{type:String,required:!0},id:{type:String,required:!0},name:{type:String,required:!0},server:{type:String,default:""}},computed:{cloudId(){return this.server?this.id+"@"+this.server:""}}},ps={class:"mention"},_s=["title"];function hs(c,y,o,l,p,b){const v=ee("NcUserBubble");return P(),j("div",ps,[b.cloudId?(P(),j("strong",{key:1,title:b.cloudId},G(o.name),9,_s)):(P(),Q(v,{key:0,"display-name":o.name,user:o.id},null,8,["display-name","user"]))])}const ms=de(fs,[["render",hs],["__scopeId","data-v-85edf4b2"]]),ys={name:"NotificationItem",components:{ActionButton:ts,NcButton:tt,NcDateTime:or,IconClose:Zn,IconMessageOutline:Yn,NcRichText:ji},props:{notification:{type:Object,required:!0}},emits:["remove"],data(){return{showFullMessage:!1}},computed:{timestamp(){return this.notification.datetime==="warning"?0:new Date(this.notification.datetime).valueOf()},useLink(){if(!this.notification.link)return!1;let c=!1;return Object.keys(Object(this.notification.subjectRichParameters)).forEach(y=>{Object(this.notification.subjectRichParameters)[y].link&&(c=!0)}),!c},preparedSubjectParameters(){return this.prepareParameters(this.notification.subjectRichParameters)},preparedMessageParameters(){return this.prepareParameters(this.notification.messageRichParameters)},isCollapsedMessage(){return this.notification.message.length>200&&!this.showFullMessage}},methods:{t:le,prepareParameters(c={}){const y={};return Object.keys(c).forEach(o=>{const l=c[o].type;l==="user"?y[o]={component:ms,props:c[o]}:l==="file"?y[o]={component:ds,props:c[o]}:y[o]={component:as,props:c[o]}}),y},onClickMessage(c){c.target.closest(".rich-text--wrapper")?this.showFullMessage=!this.showFullMessage:!this.notification.messageRich&&this.notification.message&&(this.showFullMessage=!this.showFullMessage)},async onClickAction({event:c,action:y}){try{const o={cancelAction:!1,notification:this.notification,action:y};if(await Ze("notifications:action:execute",o),y.type==="WEB"){o.cancelAction&&c.preventDefault();return}if(o.cancelAction)return;await Qe({method:y.type,url:y.url}),this.$emit("remove"),Ze("notifications:action:executed",c)}catch(o){console.error("Failed to perform action",o),Rt(le("notifications","Failed to perform action"))}},onDismissNotification(){Qe.delete(Ct("apps/notifications/api/v2/notifications/{id}",{id:this.notification.notificationId})).then(()=>{this.$emit("remove")}).catch(()=>{Rt(le("notifications","Failed to dismiss notification"))})}}},gs=["data-id","data-timestamp","data-object-type","data-app"],bs={class:"notification-heading"},ws=["href"],vs={key:0,class:"image"},As=["src"],Ts={class:"subject"},xs=["href"],ks={key:0,class:"image"},Ss=["src"],Os={key:2,class:"subject"},Es={key:2,class:"notification-subject"},Ns={key:0,class:"image"},Rs=["src"],Is={key:2,class:"subject"},Cs={key:1},Ps={key:0,class:"notification-overflow"},Bs={key:4,class:"notification-actions"},Fs={key:5,class:"notification-actions"};function js(c,y,o,l,p,b){const v=ee("NcDateTime"),O=ee("IconClose"),A=ee("NcButton"),T=ee("NcRichText"),B=ee("ActionButton"),e=ee("IconMessageOutline");return P(),j("li",{class:"notification","data-id":o.notification.notificationId,"data-timestamp":b.timestamp,"data-object-type":o.notification.objectType,"data-app":o.notification.app},[X("div",bs,[b.timestamp?(P(),Q(v,{key:0,class:"notification-time","ignore-seconds":"",format:{timeStyle:"short",dateStyle:"long"},timestamp:b.timestamp},null,8,["timestamp"])):z("",!0),b.timestamp?(P(),Q(A,{key:1,class:"notification-dismiss-button",variant:"tertiary","aria-label":b.t("notifications","Dismiss"),onClick:b.onDismissNotification},{icon:J(()=>[ie(O,{size:20})]),_:1},8,["aria-label","onClick"])):z("",!0)]),o.notification.externalLink?(P(),j("a",{key:0,href:o.notification.externalLink,class:"notification-subject full-subject-link external",target:"_blank",rel:"noreferrer noopener"},[o.notification.icon?(P(),j("span",vs,[X("img",{src:o.notification.icon,class:"notification-icon",alt:""},null,8,As)])):z("",!0),X("span",Ts,G(o.notification.subject)+" ↗",1)],8,ws)):b.useLink?(P(),j("a",{key:1,href:o.notification.link,class:"notification-subject full-subject-link"},[o.notification.icon?(P(),j("span",ks,[X("img",{src:o.notification.icon,class:"notification-icon",alt:""},null,8,Ss)])):z("",!0),o.notification.subjectRich?(P(),Q(T,{key:1,text:o.notification.subjectRich,arguments:b.preparedSubjectParameters},null,8,["text","arguments"])):(P(),j("span",Os,G(o.notification.subject),1))],8,xs)):(P(),j("div",Es,[o.notification.icon?(P(),j("span",Ns,[X("img",{src:o.notification.icon,class:"notification-icon",alt:""},null,8,Rs)])):z("",!0),o.notification.subjectRich?(P(),Q(T,{key:1,text:o.notification.subjectRich,arguments:b.preparedSubjectParameters},null,8,["text","arguments"])):(P(),j("span",Is,G(o.notification.subject),1))])),o.notification.message?(P(),j("div",{key:3,class:"notification-message",onClick:y[0]||(y[0]=(...n)=>b.onClickMessage&&b.onClickMessage(...n))},[X("div",{class:Pt(["message-container",{collapsed:b.isCollapsedMessage}])},[o.notification.messageRich?(P(),Q(T,{key:0,text:o.notification.messageRich,arguments:b.preparedMessageParameters,autolink:!0},null,8,["text","arguments"])):(P(),j("span",Cs,G(o.notification.message),1))],2),b.isCollapsedMessage?(P(),j("div",Ps)):z("",!0)])):z("",!0),o.notification.actions.length?(P(),j("div",Bs,[(P(!0),j(Xn,null,Kn(o.notification.actions,(n,r)=>(P(),Q(B,{key:r,action:n,onClick:b.onClickAction,onRemove:y[1]||(y[1]=u=>c.$emit("remove"))},null,8,["action","onClick"]))),128))])):o.notification.externalLink?(P(),j("div",Fs,[ie(A,{variant:"primary",href:"https://nextcloud.com/fairusepolicy",class:"action-button pull-right",target:"_blank",rel:"noreferrer noopener"},{icon:J(()=>[ie(e,{size:20})]),default:J(()=>[Be(" "+G(b.t("notifications","Contact Nextcloud GmbH"))+" ↗ ",1)]),_:1})])):z("",!0)],8,gs)}const Ls=de(ys,[["render",js],["__scopeId","data-v-58882784"]]);async function eo(c,y,o,l){const p=parseInt(K.getItem("lastUpdated"),10),b=K.getItem("tabId"),v=Math.floor(Date.now()/1e3);return(o||b===c&&p+25=0&&e<=1){if(n._volume=e,n._muted)return n;n.usingWebAudio&&n.masterGain.gain.setValueAtTime(e,o.ctx.currentTime);for(var r=0;r=0;n--)e._howls[n].unload();return e.usingWebAudio&&e.ctx&&typeof e.ctx.close<"u"&&(e.ctx.close(),e.ctx=null,B()),e},codecs:function(e){return(this||o)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||o;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if(typeof Audio<"u")try{var n=new Audio;typeof n.oncanplaythrough>"u"&&(e._canPlayEvent="canplay")}catch(r){e.noAudio=!0}else e.noAudio=!0;try{var n=new Audio;n.muted&&(e.noAudio=!0)}catch(r){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||o,n=null;try{n=typeof Audio<"u"?new Audio:null}catch(F){return e}if(!n||typeof n.canPlayType!="function")return e;var r=n.canPlayType("audio/mpeg;").replace(/^no$/,""),u=e._navigator?e._navigator.userAgent:"",_=u.match(/OPR\/(\d+)/g),g=_&&parseInt(_[0].split("/")[1],10)<33,f=u.indexOf("Safari")!==-1&&u.indexOf("Chrome")===-1,x=u.match(/Version\/(.*?) /),C=f&&x&&parseInt(x[1],10)<15;return e._codecs={mp3:!!(!g&&(r||n.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!r,opus:!!n.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!n.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!n.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(n.canPlayType('audio/wav; codecs="1"')||n.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!n.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!n.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(n.canPlayType("audio/x-m4a;")||n.canPlayType("audio/m4a;")||n.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(n.canPlayType("audio/x-m4b;")||n.canPlayType("audio/m4b;")||n.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(n.canPlayType("audio/x-mp4;")||n.canPlayType("audio/mp4;")||n.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!C&&n.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!C&&n.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!n.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(n.canPlayType("audio/x-flac;")||n.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||o;if(!(e._audioUnlocked||!e.ctx)){e._audioUnlocked=!1,e.autoUnlock=!1,!e._mobileUnloaded&&e.ctx.sampleRate!==44100&&(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var n=function(r){for(;e._html5AudioPool.length"u"?C.noteOn(0):C.start(0),typeof e.ctx.resume=="function"&&e.ctx.resume(),C.onended=function(){C.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",n,!0),document.removeEventListener("touchend",n,!0),document.removeEventListener("click",n,!0),document.removeEventListener("keydown",n,!0);for(var F=0;F"u"||!o.usingWebAudio)){for(var n=0;n"u"||!o.usingWebAudio))return e.state==="running"&&e.ctx.state!=="interrupted"&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):e.state==="suspended"||e.state==="running"&&e.ctx.state==="interrupted"?(e.ctx.resume().then(function(){e.state="running";for(var n=0;n"u"&&(e="__default",!r._playLock)){for(var _=0,g=0;g0?f._seek:r._sprite[e][0]/1e3),F=Math.max(0,(r._sprite[e][0]+r._sprite[e][1])/1e3-C),q=F*1e3/Math.abs(f._rate),re=r._sprite[e][0]/1e3,Te=(r._sprite[e][0]+r._sprite[e][1])/1e3;f._sprite=e,f._ended=!1;var Ne=function(){f._paused=!1,f._seek=C,f._start=re,f._stop=Te,f._loop=!!(f._loop||r._sprite[e][2])};if(C>=Te){r._ended(f);return}var D=f._node;if(r._webAudio){var je=function(){r._playLock=!1,Ne(),r._refreshBuffer(f);var fe=f._muted||r._muted?0:f._volume;D.gain.setValueAtTime(fe,o.ctx.currentTime),f._playStart=o.ctx.currentTime,typeof D.bufferSource.start>"u"?f._loop?D.bufferSource.noteGrainOn(0,C,86400):D.bufferSource.noteGrainOn(0,C,F):f._loop?D.bufferSource.start(0,C,86400):D.bufferSource.start(0,C,F),q!==1/0&&(r._endTimers[f._id]=setTimeout(r._ended.bind(r,f),q)),n||setTimeout(function(){r._emit("play",f._id),r._loadQueue()},0)};o.state==="running"&&o.ctx.state!=="interrupted"?je():(r._playLock=!0,r.once("resume",je),r._clearTimer(f._id))}else{var Le=function(){D.currentTime=C,D.muted=f._muted||r._muted||o._muted||D.muted,D.volume=f._volume*o.volume(),D.playbackRate=f._rate;try{var fe=D.play();if(fe&&typeof Promise<"u"&&(fe instanceof Promise||typeof fe.then=="function")?(r._playLock=!0,Ne(),fe.then(function(){r._playLock=!1,D._unlocked=!0,n?r._loadQueue():r._emit("play",f._id)}).catch(function(){r._playLock=!1,r._emit("playerror",f._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),f._ended=!0,f._paused=!0})):n||(r._playLock=!1,Ne(),r._emit("play",f._id)),D.playbackRate=f._rate,D.paused){r._emit("playerror",f._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}e!=="__default"||f._loop?r._endTimers[f._id]=setTimeout(r._ended.bind(r,f),q):(r._endTimers[f._id]=function(){r._ended(f),D.removeEventListener("ended",r._endTimers[f._id],!1)},D.addEventListener("ended",r._endTimers[f._id],!1))}catch(it){r._emit("playerror",f._id,it)}};D.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(D.src=r._src,D.load());var ot=window&&window.ejecta||!D.readyState&&o._navigator.isCocoonJS;if(D.readyState>=3||ot)Le();else{r._playLock=!0,r._state="loading";var Ue=function(){r._state="loaded",Le(),D.removeEventListener(o._canPlayEvent,Ue,!1)};D.addEventListener(o._canPlayEvent,Ue,!1),r._clearTimer(f._id)}}return f._id},pause:function(e){var n=this;if(n._state!=="loaded"||n._playLock)return n._queue.push({event:"pause",action:function(){n.pause(e)}}),n;for(var r=n._getSoundIds(e),u=0;u"u"?_._node.bufferSource.noteOff(0):_._node.bufferSource.stop(0),n._cleanBuffer(_._node)}else(!isNaN(_._node.duration)||_._node.duration===1/0)&&_._node.pause();arguments[1]||n._emit("pause",_?_._id:null)}return n},stop:function(e,n){var r=this;if(r._state!=="loaded"||r._playLock)return r._queue.push({event:"stop",action:function(){r.stop(e)}}),r;for(var u=r._getSoundIds(e),_=0;_"u"?g._node.bufferSource.noteOff(0):g._node.bufferSource.stop(0),r._cleanBuffer(g._node)):(!isNaN(g._node.duration)||g._node.duration===1/0)&&(g._node.currentTime=g._start||0,g._node.pause(),g._node.duration===1/0&&r._clearSound(g._node))),n||r._emit("stop",g._id))}return r},mute:function(e,n){var r=this;if(r._state!=="loaded"||r._playLock)return r._queue.push({event:"mute",action:function(){r.mute(e,n)}}),r;if(typeof n>"u")if(typeof e=="boolean")r._muted=e;else return r._muted;for(var u=r._getSoundIds(n),_=0;_"u"){var _=e._getSoundIds(),g=_.indexOf(n[0]);g>=0?u=parseInt(n[0],10):r=parseFloat(n[0])}else n.length>=2&&(r=parseFloat(n[0]),u=parseInt(n[1],10));var f;if(typeof r<"u"&&r>=0&&r<=1){if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"volume",action:function(){e.volume.apply(e,n)}}),e;typeof u>"u"&&(e._volume=r),u=e._getSoundIds(u);for(var x=0;x"u")}}return _},_startFadeInterval:function(e,n,r,u,_,g){var f=this,x=n,C=r-n,F=Math.abs(C/.01),q=Math.max(4,F>0?u/F:u),re=Date.now();e._fadeTo=r,e._interval=setInterval(function(){var Te=(Date.now()-re)/u;re=Date.now(),x+=C*Te,x=Math.round(x*100)/100,C<0?x=Math.max(r,x):x=Math.min(r,x),f._webAudio?e._volume=x:f.volume(x,e._id,!0),g&&(f._volume=x),(rn&&x>=r)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,f.volume(r,e._id),f._emit("fade",e._id))},q)},_stopFade:function(e){var n=this,r=n._soundById(e);return r&&r._interval&&(n._webAudio&&r._node.gain.cancelScheduledValues(o.ctx.currentTime),clearInterval(r._interval),r._interval=null,n.volume(r._fadeTo,e),r._fadeTo=null,n._emit("fade",e)),n},loop:function(){var e=this,n=arguments,r,u,_;if(n.length===0)return e._loop;if(n.length===1)if(typeof n[0]=="boolean")r=n[0],e._loop=r;else return _=e._soundById(parseInt(n[0],10)),_?_._loop:!1;else n.length===2&&(r=n[0],u=parseInt(n[1],10));for(var g=e._getSoundIds(u),f=0;f=0?u=parseInt(n[0],10):r=parseFloat(n[0])}else n.length===2&&(r=parseFloat(n[0]),u=parseInt(n[1],10));var f;if(typeof r=="number"){if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"rate",action:function(){e.rate.apply(e,n)}}),e;typeof u>"u"&&(e._rate=r),u=e._getSoundIds(u);for(var x=0;x=0?u=parseInt(n[0],10):e._sounds.length&&(u=e._sounds[0]._id,r=parseFloat(n[0]))}else n.length===2&&(r=parseFloat(n[0]),u=parseInt(n[1],10));if(typeof u>"u")return 0;if(typeof r=="number"&&(e._state!=="loaded"||e._playLock))return e._queue.push({event:"seek",action:function(){e.seek.apply(e,n)}}),e;var f=e._soundById(u);if(f)if(typeof r=="number"&&r>=0){var x=e.playing(u);x&&e.pause(u,!0),f._seek=r,f._ended=!1,e._clearTimer(u),!e._webAudio&&f._node&&!isNaN(f._node.duration)&&(f._node.currentTime=r);var C=function(){x&&e.play(u,!0),e._emit("seek",u)};if(x&&!e._webAudio){var F=function(){e._playLock?setTimeout(F,0):C()};setTimeout(F,0)}else C()}else if(e._webAudio){var q=e.playing(u)?o.ctx.currentTime-f._playStart:0,re=f._rateSeek?f._rateSeek-f._seek:0;return f._seek+(re+q*Math.abs(f._rate))}else return f._node.currentTime;return e},playing:function(e){var n=this;if(typeof e=="number"){var r=n._soundById(e);return r?!r._paused:!1}for(var u=0;u=0&&o._howls.splice(u,1);var _=!0;for(r=0;r=0){_=!1;break}return b&&_&&delete b[e._src],o.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,n,r,u){var _=this,g=_["_on"+e];return typeof n=="function"&&g.push(u?{id:r,fn:n,once:u}:{id:r,fn:n}),_},off:function(e,n,r){var u=this,_=u["_on"+e],g=0;if(typeof n=="number"&&(r=n,n=null),n||r)for(g=0;g<_.length;g++){var f=r===_[g].id;if(n===_[g].fn&&f||!n&&f){_.splice(g,1);break}}else if(e)u["_on"+e]=[];else{var x=Object.keys(u);for(g=0;g=0;g--)(!_[g].id||_[g].id===n||e==="load")&&(setTimeout(function(f){f.call(this,n,r)}.bind(u,_[g].fn),0),_[g].once&&u.off(e,_[g].fn,_[g].id));return u._loadQueue(e),u},_loadQueue:function(e){var n=this;if(n._queue.length>0){var r=n._queue[0];r.event===e&&(n._queue.shift(),n._loadQueue()),e||r.action()}return n},_ended:function(e){var n=this,r=e._sprite;if(!n._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime=0;u--){if(r<=n)return;e._sounds[u]._ended&&(e._webAudio&&e._sounds[u]._node&&e._sounds[u]._node.disconnect(0),e._sounds.splice(u,1),r--)}}},_getSoundIds:function(e){var n=this;if(typeof e>"u"){for(var r=[],u=0;u=0;if(!e.bufferSource)return n;if(o._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),r))try{e.bufferSource.buffer=o._scratchBuffer}catch(u){}return e.bufferSource=null,n},_clearSound:function(e){var n=/MSIE |Trident\//.test(o._navigator&&o._navigator.userAgent);n||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var p=function(e){this._parent=e,this.init()};p.prototype={init:function(){var e=this,n=e._parent;return e._muted=n._muted,e._loop=n._loop,e._volume=n._volume,e._rate=n._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++o._counter,n._sounds.push(e),e.create(),e},create:function(){var e=this,n=e._parent,r=o._muted||e._muted||e._parent._muted?0:e._volume;return n._webAudio?(e._node=typeof o.ctx.createGain>"u"?o.ctx.createGainNode():o.ctx.createGain(),e._node.gain.setValueAtTime(r,o.ctx.currentTime),e._node.paused=!0,e._node.connect(o.masterGain)):o.noAudio||(e._node=o._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(o._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=n._src,e._node.preload=n._preload===!0?"auto":n._preload,e._node.volume=r*o.volume(),e._node.load()),e},reset:function(){var e=this,n=e._parent;return e._muted=n._muted,e._loop=n._loop,e._volume=n._volume,e._rate=n._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++o._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,n=e._parent;n._duration=Math.ceil(e._node.duration*10)/10,Object.keys(n._sprite).length===0&&(n._sprite={__default:[0,n._duration*1e3]}),n._state!=="loaded"&&(n._state="loaded",n._emit("load"),n._loadQueue()),e._node.removeEventListener(o._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,n=e._parent;n._duration===1/0&&(n._duration=Math.ceil(e._node.duration*10)/10,n._sprite.__default[1]===1/0&&(n._sprite.__default[1]=n._duration*1e3),n._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var b={},v=function(e){var n=e._src;if(b[n]){e._duration=b[n].duration,T(e);return}if(/^data:[^;]+;base64,/.test(n)){for(var r=atob(n.split(",")[1]),u=new Uint8Array(r.length),_=0;_0?(b[n._src]=_,T(n,_)):r()};typeof Promise<"u"&&o.ctx.decodeAudioData.length===1?o.ctx.decodeAudioData(e).then(u).catch(r):o.ctx.decodeAudioData(e,u,r)},T=function(e,n){n&&!e._duration&&(e._duration=n.duration),Object.keys(e._sprite).length===0&&(e._sprite={__default:[0,e._duration*1e3]}),e._state!=="loaded"&&(e._state="loaded",e._emit("load"),e._loadQueue())},B=function(){if(o.usingWebAudio){try{typeof AudioContext<"u"?o.ctx=new AudioContext:typeof webkitAudioContext<"u"?o.ctx=new webkitAudioContext:o.usingWebAudio=!1}catch(_){o.usingWebAudio=!1}o.ctx||(o.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(o._navigator&&o._navigator.platform),n=o._navigator&&o._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),r=n?parseInt(n[1],10):null;if(e&&r&&r<9){var u=/safari/.test(o._navigator&&o._navigator.userAgent.toLowerCase());o._navigator&&!u&&(o.usingWebAudio=!1)}o.usingWebAudio&&(o.masterGain=typeof o.ctx.createGain>"u"?o.ctx.createGainNode():o.ctx.createGain(),o.masterGain.gain.setValueAtTime(o._muted?0:o._volume,o.ctx.currentTime),o.masterGain.connect(o.ctx.destination)),o._setup()}};c.Howler=o,c.Howl=l,typeof Ee<"u"?(Ee.HowlerGlobal=y,Ee.Howler=o,Ee.Howl=l,Ee.Sound=p):typeof window<"u"&&(window.HowlerGlobal=y,window.Howler=o,window.Howl=l,window.Sound=p)})(),function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(o){var l=this;if(!l.ctx||!l.ctx.listener)return l;for(var p=l._howls.length-1;p>=0;p--)l._howls[p].stereo(o);return l},HowlerGlobal.prototype.pos=function(o,l,p){var b=this;if(!b.ctx||!b.ctx.listener)return b;if(l=typeof l!="number"?b._pos[1]:l,p=typeof p!="number"?b._pos[2]:p,typeof o=="number")b._pos=[o,l,p],typeof b.ctx.listener.positionX<"u"?(b.ctx.listener.positionX.setTargetAtTime(b._pos[0],Howler.ctx.currentTime,.1),b.ctx.listener.positionY.setTargetAtTime(b._pos[1],Howler.ctx.currentTime,.1),b.ctx.listener.positionZ.setTargetAtTime(b._pos[2],Howler.ctx.currentTime,.1)):b.ctx.listener.setPosition(b._pos[0],b._pos[1],b._pos[2]);else return b._pos;return b},HowlerGlobal.prototype.orientation=function(o,l,p,b,v,O){var A=this;if(!A.ctx||!A.ctx.listener)return A;var T=A._orientation;if(l=typeof l!="number"?T[1]:l,p=typeof p!="number"?T[2]:p,b=typeof b!="number"?T[3]:b,v=typeof v!="number"?T[4]:v,O=typeof O!="number"?T[5]:O,typeof o=="number")A._orientation=[o,l,p,b,v,O],typeof A.ctx.listener.forwardX<"u"?(A.ctx.listener.forwardX.setTargetAtTime(o,Howler.ctx.currentTime,.1),A.ctx.listener.forwardY.setTargetAtTime(l,Howler.ctx.currentTime,.1),A.ctx.listener.forwardZ.setTargetAtTime(p,Howler.ctx.currentTime,.1),A.ctx.listener.upX.setTargetAtTime(b,Howler.ctx.currentTime,.1),A.ctx.listener.upY.setTargetAtTime(v,Howler.ctx.currentTime,.1),A.ctx.listener.upZ.setTargetAtTime(O,Howler.ctx.currentTime,.1)):A.ctx.listener.setOrientation(o,l,p,b,v,O);else return T;return A},Howl.prototype.init=function(o){return function(l){var p=this;return p._orientation=l.orientation||[1,0,0],p._stereo=l.stereo||null,p._pos=l.pos||null,p._pannerAttr={coneInnerAngle:typeof l.coneInnerAngle<"u"?l.coneInnerAngle:360,coneOuterAngle:typeof l.coneOuterAngle<"u"?l.coneOuterAngle:360,coneOuterGain:typeof l.coneOuterGain<"u"?l.coneOuterGain:0,distanceModel:typeof l.distanceModel<"u"?l.distanceModel:"inverse",maxDistance:typeof l.maxDistance<"u"?l.maxDistance:1e4,panningModel:typeof l.panningModel<"u"?l.panningModel:"HRTF",refDistance:typeof l.refDistance<"u"?l.refDistance:1,rolloffFactor:typeof l.rolloffFactor<"u"?l.rolloffFactor:1},p._onstereo=l.onstereo?[{fn:l.onstereo}]:[],p._onpos=l.onpos?[{fn:l.onpos}]:[],p._onorientation=l.onorientation?[{fn:l.onorientation}]:[],o.call(this,l)}}(Howl.prototype.init),Howl.prototype.stereo=function(o,l){var p=this;if(!p._webAudio)return p;if(p._state!=="loaded")return p._queue.push({event:"stereo",action:function(){p.stereo(o,l)}}),p;var b=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof l>"u")if(typeof o=="number")p._stereo=o,p._pos=[o,0,0];else return p._stereo;for(var v=p._getSoundIds(l),O=0;O"u")if(typeof o=="number")v._pos=[o,l,p];else return v._pos;for(var O=v._getSoundIds(b),A=0;A"u")if(typeof o=="number")v._orientation=[o,l,p];else return v._orientation;for(var O=v._getSoundIds(b),A=0;A"u"&&(p.pannerAttr||(p.pannerAttr={coneInnerAngle:p.coneInnerAngle,coneOuterAngle:p.coneOuterAngle,coneOuterGain:p.coneOuterGain,distanceModel:p.distanceModel,maxDistance:p.maxDistance,refDistance:p.refDistance,rolloffFactor:p.rolloffFactor,panningModel:p.panningModel}),o._pannerAttr={coneInnerAngle:typeof p.pannerAttr.coneInnerAngle<"u"?p.pannerAttr.coneInnerAngle:o._coneInnerAngle,coneOuterAngle:typeof p.pannerAttr.coneOuterAngle<"u"?p.pannerAttr.coneOuterAngle:o._coneOuterAngle,coneOuterGain:typeof p.pannerAttr.coneOuterGain<"u"?p.pannerAttr.coneOuterGain:o._coneOuterGain,distanceModel:typeof p.pannerAttr.distanceModel<"u"?p.pannerAttr.distanceModel:o._distanceModel,maxDistance:typeof p.pannerAttr.maxDistance<"u"?p.pannerAttr.maxDistance:o._maxDistance,refDistance:typeof p.pannerAttr.refDistance<"u"?p.pannerAttr.refDistance:o._refDistance,rolloffFactor:typeof p.pannerAttr.rolloffFactor<"u"?p.pannerAttr.rolloffFactor:o._rolloffFactor,panningModel:typeof p.pannerAttr.panningModel<"u"?p.pannerAttr.panningModel:o._panningModel});else return v=o._soundById(parseInt(l[0],10)),v?v._pannerAttr:o._pannerAttr;else l.length===2&&(p=l[0],b=parseInt(l[1],10));for(var O=o._getSoundIds(b),A=0;Aconsole.debug("Audio output successfully redirected to secondary speaker")).catch(n=>console.error("Failed to redirect audio output:",n)),e.play()}}}else Ye("notifications","sound_notification")&&new Nt.Howl({src:[On("notifications","img","notification.ogg")],volume:.5}).play()}const Vs=Ye("core","config",{session_keepalive:!0}).session_keepalive,Gs=Ye("notifications","throttled_push_notifications"),zs={notificationId:-1,app:"core",user:"",datetime:"warning",objectId:"",objectType:"",subject:le("notifications","Push notifications might be unreliable"),message:le("notifications","Nextcloud GmbH sponsors a free push notification gateway for private users. To ensure good service, the gateway limits the number of push notifications per server. For enterprise users, a more scalable gateway is available. Contact Nextcloud GmbH for more information."),link:"https://nextcloud.com/fairusepolicy",actions:[],externalLink:"https://nextcloud.com/fairusepolicy",icon:Di("core","actions/alert-outline.svg")},$s={name:"NotificationsApp",components:{IconBellOutline:Cr,IconClose:Zn,IconMessageOutline:Yn,IconNotification:es,NcButton:tt,NcEmptyContent:tr,NcHeaderMenu:lr,NotificationItem:Ls},setup(){return{fairUsePolicyNotification:zs,hasThrottledPushNotifications:Gs}},data(){return{webNotificationsGranted:!1,backgroundFetching:!1,hasNotifyPush:!1,shutdown:!1,notifications:[],lastETag:null,lastTabId:null,userStatus:null,tabId:null,webNotificationsThresholdId:0,pollIntervalBase:3e4,pollIntervalCurrent:3e4,interval:null,pushEndpoints:null,open:!1}},computed:{showBrowserNotifications(){return this.backgroundFetching&&this.webNotificationsGranted&&this.userStatus!=="dnd"&&this.tabId===this.lastTabId},emptyContentMessage(){return this.webNotificationsGranted===null?le("notifications","Requesting browser permissions to show notifications"):this.hasThrottledPushNotifications?this.fairUsePolicyNotification.subject:le("notifications","No notifications")},emptyContentDescription(){return this.hasThrottledPushNotifications?this.fairUsePolicyNotification.message:""}},mounted(){this.tabId=Mi()||""+Math.random(),this._oldcount=0,this.checkWebNotificationPermissions(),this._fetch(),kr.listen("notify_notification",()=>{this._fetchAfterNotifyPush()})&&(console.debug("Has notify_push enabled, slowing polling to 15 minutes"),this.pollIntervalBase=15*60*1e3,this.hasNotifyPush=!0),this._setPollingInterval(this.pollIntervalBase),this._watchTabVisibility(),kt("networkOffline",this.handleNetworkOffline),kt("networkOnline",this.handleNetworkOnline),kt("user_status:status.updated",this.userStatusUpdated)},beforeUnmount(){xt("user_status:status.updated",this.userStatusUpdated),xt("networkOffline",this.handleNetworkOffline),xt("networkOnline",this.handleNetworkOnline)},methods:{t:le,userStatusUpdated(c){Ui().uid===c.userId&&(this.userStatus=c.status)},async onOpen(){this.requestWebNotificationPermissions(),await Et(this.tabId),await this._fetch()},handleNetworkOffline(){console.debug("Network is offline, slowing down pollingInterval to "+this.pollIntervalBase*10),this._setPollingInterval(this.pollIntervalBase*10)},handleNetworkOnline(){this._fetch(),console.debug("Network is online, reseting pollingInterval to "+this.pollIntervalBase),this._setPollingInterval(this.pollIntervalBase)},setupBackgroundFetcher(){Vs?(console.debug("Started background fetcher as session_keepalive is enabled"),this.interval=window.setInterval(this._backgroundFetch.bind(this),this.pollIntervalCurrent)):console.debug("Did not start background fetcher as session_keepalive is off")},onDismissAll(){Qe.delete(Ct("apps/notifications/api/v2/notifications")).then(()=>{this.notifications=[],this.open=!1,Et(this.tabId)}).catch(()=>{Rt(le("notifications","Failed to dismiss all notifications"))})},onRemove(c){this.notifications.splice(c,1),Et(this.tabId)},_updateDocTitleOnNewNotifications(c){c.length>this._oldcount&&(this._oldcount=c.length,this.backgroundFetching&&document.hidden&&(document.title.startsWith("* ")||(document.title="* "+document.title)))},_restoreTitle(){document.title.startsWith("* ")&&(document.title=document.title.substring(2))},_fetchAfterNotifyPush(){this.backgroundFetching=!0,this.hasNotifyPush&&this.tabId!==this.lastTabId?(console.debug("Deferring notification refresh from browser storage are notify_push event to give the last tab the chance to do it"),setTimeout(()=>{this._fetch()},5e3)):(console.debug("Refreshing notifications are notify_push event"),this._fetch())},async _fetch(){this.notifications.length&&this.notifications[0].notificationId>this.webNotificationsThresholdId&&(this.webNotificationsThresholdId=this.notifications[0].notificationId);const c=await eo(this.tabId,this.lastETag,!this.backgroundFetching,this.hasNotifyPush);c.status===204?(console.debug("Fetching notifications but no content, slowing down polling to "+this.pollIntervalBase*10),this._setPollingInterval(this.pollIntervalBase*10)):c.status===200?(this.userStatus=c.headers["x-nextcloud-user-status"],this.lastETag=c.headers.etag,this.lastTabId=c.tabId,this.notifications=c.data,this.processWebNotifications(c.data),console.debug("Got notification data, restoring default polling interval."),this._setPollingInterval(this.pollIntervalBase),this._updateDocTitleOnNewNotifications(this.notifications),!this.backgroundFetching&&this.notifications.length&&(this.webNotificationsThresholdId=this.notifications[0].notificationId)):c.status===304?this._setPollingInterval(this.pollIntervalBase):c.status===503?(console.info("Slowing down notifications: instance is in maintenance mode."),this._setPollingInterval(this.pollIntervalBase*10)):c.status===404?(console.info("Slowing down notifications: app is disabled."),this._setPollingInterval(this.pollIntervalBase*10)):(console.info("Slowing down notifications: Status "+c.status),this._setPollingInterval(this.pollIntervalBase*10))},_backgroundFetch(){this.backgroundFetching=!0,this._fetch()},_watchTabVisibility(){document.addEventListener("visibilitychange",this._visibilityChange,!1)},_visibilityChange(){document.hidden||this._restoreTitle()},_setPollingInterval(c){this.interval&&c===this.pollIntervalCurrent||(console.debug("Polling interval updated to "+c),this.interval&&(window.clearInterval(this.interval),this.interval=null),this.pollIntervalCurrent=c,this.setupBackgroundFetcher())},_shutDownNotifications(c){console.debug("Shutting down notifications "+(c?"temporary":"bye")),this.interval&&(window.clearInterval(this.interval),this.interval=null),this.shutdown=!c},checkWebNotificationPermissions(){if(!("Notification"in window)){console.info("Browser does not support notifications"),this.webNotificationsGranted=!1;return}if(window.Notification.permission==="granted"){console.debug("Notifications permissions granted"),this.webNotificationsGranted=!0;return}if(window.Notification.permission==="denied"){console.debug("Notifications permissions denied"),this.webNotificationsGranted=!1;return}if(window.location.protocol==="http:"){console.debug("Notifications require HTTPS"),this.webNotificationsGranted=!1;return}console.info("Notifications permissions not yet requested"),this.webNotificationsGranted=null},async requestWebNotificationPermissions(){this.webNotificationsGranted===null&&(console.info("Requesting notifications permissions"),window.Notification.requestPermission().then(c=>{this.webNotificationsGranted=c==="granted"}))},processWebNotifications(c){c.forEach(y=>{this.backgroundFetching&&Ze("notifications:notification:received",{notification:y}),this.showBrowserNotifications&&this.webNotificationsThresholdIdp.open=u),class:"notifications-button","exclude-click-outside-selectors":[".popover"],"aria-label":b.t("notifications","Notifications"),title:b.t("notifications","Notifications"),onOpened:b.onOpen},{trigger:J(()=>[ie(v,{size:20,"show-dot":p.notifications.length!==0||p.webNotificationsGranted===null,"show-warning":l.hasThrottledPushNotifications},null,8,["show-dot","show-warning"])]),default:J(()=>[X("div",Ws,[ie($i,{name:"fade",mode:"out-in"},{default:J(()=>[p.notifications.length>0?(P(),Q(Wi,{key:0,class:"notification-wrapper",name:"list",tag:"ul"},{default:J(()=>[l.hasThrottledPushNotifications?(P(),Q(O,{key:-2016,notification:l.fairUsePolicyNotification},null,8,["notification"])):z("",!0),(P(!0),j(Xn,null,Kn(p.notifications,(u,_)=>(P(),Q(O,{key:u.notificationId,notification:u,onRemove:g=>b.onRemove(_)},null,8,["notification","onRemove"]))),128))]),_:1})):(P(),Q(e,{key:1,name:b.emptyContentMessage,description:b.emptyContentDescription},Ji({icon:J(()=>[l.hasThrottledPushNotifications?(P(),j("span",Js)):(P(),Q(A,{key:0}))]),_:2},[l.hasThrottledPushNotifications?{name:"action",fn:J(()=>[ie(B,{variant:"primary",href:"https://nextcloud.com/fairusepolicy",target:"_blank",rel:"noreferrer noopener"},{icon:J(()=>[ie(T,{size:20})]),default:J(()=>[Be(" "+G(b.t("notifications","Contact Nextcloud GmbH"))+" ↗ ",1)]),_:1})]),key:"0"}:void 0]),1032,["name","description"]))]),_:1}),p.notifications.length>0?(P(),j("div",Xs,[ie(B,{variant:"tertiary",wide:"",onClick:b.onDismissAll},{icon:J(()=>[ie(n,{size:20})]),default:J(()=>[Be(" "+G(b.t("notifications","Dismiss all notifications")),1)]),_:1},8,["onClick"])])):z("",!0)])]),_:1},8,["open","aria-label","title","onOpened"]))}const na=de($s,[["render",Ks],["__scopeId","data-v-57714b57"]]);export{na as default}; //# sourceMappingURL=NotificationsApp-Cg368833.chunk.mjs.map