2022-09-12 19:25:52 +00:00
|
|
|
(()=>{var e={2200:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRequestToken",{enumerable:!0,get:function(){return r.getRequestToken}}),Object.defineProperty(t,"onRequestTokenUpdate",{enumerable:!0,get:function(){return r.onRequestTokenUpdate}}),Object.defineProperty(t,"getCurrentUser",{enumerable:!0,get:function(){return i.getCurrentUser}});var r=n(1894),i=n(1618)},1894:(e,t,n)=>{"use strict";var r=n(5108);n(9554),Object.defineProperty(t,"__esModule",{value:!0}),t.getRequestToken=function(){return o},t.onRequestTokenUpdate=function(e){s.push(e)};var i=n(903),a=document.getElementsByTagName("head")[0],o=a?a.getAttribute("data-requesttoken"):null,s=[];(0,i.subscribe)("csrf-token-update",(function(e){o=e.token,s.forEach((function(t){try{t(e.token)}catch(e){r.error("error updating CSRF token observer",e)}}))}))},1618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentUser=function(){if(null===r)return null;return{uid:r,displayName:a,isAdmin:o}};var n=document.getElementsByTagName("head")[0],r=n?n.getAttribute("data-user"):null,i=document.getElementsByTagName("head")[0],a=i?i.getAttribute("data-user-displayname"):null,o="undefined"!=typeof OC&&OC.isUserAdmin()},903:(e,t,n)=>{"use strict";n.r(t),n.d(t,{emit:()=>Hi,subscribe:()=>zi,unsubscribe:()=>$i});var r=n(4155),i=n(5108),a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function o(e){var t={exports:{}};return e(t,t.exports),t.exports}var s=function(e){return e&&e.Math==Math&&e},u=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof a&&a)||function(){return this}()||Function("return this")(),l=function(e){try{return!!e()}catch(e){return!0}},c=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,h={f:f&&!d.call({1:2},1)?function(e){var t=f(this,e);return!!t&&t.enumerable}:d},p=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},g={}.toString,m=function(e){return g.call(e).slice(8,-1)},_="".split,A=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==m(e)?_.call(e,""):Object(e)}:Object,F=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},b=function(e){return A(F(e))},T=function(e){return"object"==typeof e?null!==e:"function"==typeof e},y=function(e,t){if(!T(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!T(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!T(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!T(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},v=function(e){return Object(F(e))},D={}.hasOwnProperty,E=function(e,t){return D.call(v(e),t)},C=u.document,w=T(C)&&T(C.createElement),k=function(e){return w?C.createElement(e):{}},S=!c&&!l((function(){return 7!=Object.defineProperty(k("div"),"a",{get:function(){return 7}}).a})),x=Object.getOwnPropertyDescriptor,N={f:c?x:function(e,t){if(e=b(e),t=y(t,!0),S)try{return x(e,t)}catch(e){}if(E(e,t))return p(!h.f.call(e,t),e[t])}},R=function(e){if(!T(e))throw TypeError(String(e)+" is not an object");return e},O=Object.defineProperty,B={f:c?O:function(e,t,n){if(R(e),t=y(t,!0),R(n),S)try{return O(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},I=c?function(e,t,n){return B.f(e,t,p(1,n))}:function(e,t,n){return e[t]=n,e},M=function(e,t){try{I(u,e,t)}catch(n){u[e]=t}return t},j="__core-js_shared__",L=u[j]||M(j,{}),Y=Function.toString;"function"!=typeof L.inspectSource&&(L.inspectSource=function(e){return Y.call(e)});var Z,P,G,U=L.inspectSource,q=u.WeakMap,z="function"==typeof q&&/native code/.test(U(q)),$=o((function(e){(e.exports=function(e,t){return L[e]||(L[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.11.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloiro
|