2022-08-20 00:51:18 +00:00
|
|
|
(()=>{var e={22200:(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 o.getCurrentUser}});var r=n(71894),o=n(31618)},71894:(e,t,n)=>{"use strict";var r=n(25108);n(89554),Object.defineProperty(t,"__esModule",{value:!0}),t.getRequestToken=function(){return a},t.onRequestTokenUpdate=function(e){s.push(e)};var o=n(70903),i=document.getElementsByTagName("head")[0],a=i?i.getAttribute("data-requesttoken"):null,s=[];(0,o.subscribe)("csrf-token-update",(function(e){a=e.token,s.forEach((function(t){try{t(e.token)}catch(e){r.error("error updating CSRF token observer",e)}}))}))},31618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentUser=function(){if(null===r)return null;return{uid:r,displayName:i,isAdmin:a}};var n=document.getElementsByTagName("head")[0],r=n?n.getAttribute("data-user"):null,o=document.getElementsByTagName("head")[0],i=o?o.getAttribute("data-user-displayname"):null,a="undefined"!=typeof OC&&OC.isUserAdmin()},70903:(e,t,n)=>{"use strict";n.r(t),n.d(t,{emit:()=>Zo,subscribe:()=>Ho,unsubscribe:()=>Wo});var r=n(34155),o=n(25108),i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function a(e){var t={exports:{}};return e(t,t.exports),t.exports}var s=function(e){return e&&e.Math==Math&&e},l=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof i&&i)||function(){return this}()||Function("return this")(),u=function(e){try{return!!e()}catch(e){return!0}},c=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),p={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,f={f:d&&!p.call({1:2},1)?function(e){var t=d(this,e);return!!t&&t.enumerable}:p},h=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},m={}.toString,g=function(e){return m.call(e).slice(8,-1)},v="".split,y=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==g(e)?v.call(e,""):Object(e)}:Object,b=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},A=function(e){return y(b(e))},C=function(e){return"object"==typeof e?null!==e:"function"==typeof e},w=function(e,t){if(!C(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!C(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!C(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!C(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},k=function(e){return Object(b(e))},x={}.hasOwnProperty,S=function(e,t){return x.call(k(e),t)},E=l.document,_=C(E)&&C(E.createElement),j=function(e){return _?E.createElement(e):{}},D=!c&&!u((function(){return 7!=Object.defineProperty(j("div"),"a",{get:function(){return 7}}).a})),N=Object.getOwnPropertyDescriptor,O={f:c?N:function(e,t){if(e=A(e),t=w(t,!0),D)try{return N(e,t)}catch(e){}if(S(e,t))return h(!f.f.call(e,t),e[t])}},P=function(e){if(!C(e))throw TypeError(String(e)+" is not an object");return e},T=Object.defineProperty,z={f:c?T:function(e,t,n){if(P(e),t=w(t,!0),P(n),D)try{return T(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}},F=c?function(e,t,n){return z.f(e,t,h(1,n))}:function(e,t,n){return e[t]=n,e},B=function(e,t){try{F(l,e,t)}catch(n){l[e]=t}return t},I="__core-js_shared__",R=l[I]||B(I,{}),L=Function.toString;"function"!=typeof R.inspectSource&&(R.inspectSource=function(e){return L.call(e)});var $,M,U,q=R.inspectSource,G=l.WeakMap,V="function"==typeof G&&/native code/.test(q(G)),H=a((function(e){(e.exports=function(e,t){return R[e]||(R[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.11.2",mode:"global",copyright:"© 2021 Denis Push
|