2022-09-08 01:15:23 +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))},w=function(e){return"object"==typeof e?null!==e:"function"==typeof e},C=function(e,t){if(!w(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!w(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!w(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!w(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,_=w(E)&&w(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,P={f:c?N:function(e,t){if(e=A(e),t=C(t,!0),D)try{return N(e,t)}catch(e){}if(S(e,t))return h(!f.f.call(e,t),e[t])}},O=function(e){if(!w(e))throw TypeError(String(e)+" is not an object");return e},T=Object.defineProperty,z={f:c?T:function(e,t,n){if(O(e),t=C(t,!0),O(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},I=function(e,t){try{F(l,e,t)}catch(n){l[e]=t}return t},B="__core-js_shared__",R=l[B]||I(B,{}),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
|