mixit/compiler/dist/nextcloud-news/main.js

1 line
25 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=71)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){t.exports=!n(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(7),o=n(31),i=n(15),u=Object.defineProperty;e.f=n(1)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(17)("wks"),o=n(12),i=n(0).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(2),o=n(16);t.exports=n(1)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(8);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(0),o=n(6),i=n(4),u=n(12)("src"),a=n(44),s=(""+a).split("toString");n(11).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,u)||o(n,u,t[e]?""+t[e]:s.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||a.call(this)})},function(t,e,n){var r=n(49),o=n(21);t.exports=function(t){return r(o(t))}},function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(35),o=n(23);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(0),o=n(11),i=n(6),u=n(9),a=n(33),s=function(t,e,n){var c,f,p,l,v=t&s.F,h=t&s.G,y=t&s.S,d=t&s.P,m=t&s.B,b=h?r:y?r[e]||(r[e]={}):(r[e]||{}).prototype,g=h?o:o[e]||(o[e]={}),w=g.prototype||(g.prototype={});for(c in h&&(n=e),n)p=((f=!v&&b&&void 0!==b[c])?b:n)[c],l=m&&f?a(p,r):d&&"function"==typeof p?a(Function.call,p):p,b&&u(b,c,p,t&s.U),g[c]!=p&&i(g,c,l),d&&w[c]!=p&&(w[c]=p)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(8);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(11),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(18)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(2).f,o=n(4),i=n(3)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(17)("keys"),o=n(12);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(7),o=n(54),i=n(23),u=n(22)("IE_PROTO"),a=function(){},s=function(){var t,e=n(32)("iframe"),r=i.length;for(e.style.display="none",n(55).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[u]=t):n=s(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(35),o=n(23).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(24),o=n(16),i=n(10),u=n(15),a=n(4),s=n(31),c=Object.getOwnPropertyDescriptor;e.f=n(1)?c:function(t,e){if(t=i(t),e=u(e,!0),s)try{return c(t,e)}catch(t){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";var r=n(57),o=n(58),i=n(29),u=n(10);t.exports=n(59)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(0),o=n(4),i=n(1),u=n(14),a=n(9),s=n(46).KEY,c=n(5),f=n(17),p=n(20),l=n(12),v=n(3),h=n(34),y=n(47),d=n(48),m=n(53),b=n(7),g=n(8),w=n(10),S=n(15),_=n(16),O=n(25),x=n(56),j=n(27),E=n(2),k=n(13),P=j.f,N=E.f,T=x.f,C=r.Symbol,M=r.JSON,I=M&&M.stringify,L=v("_hidden"),A=v("toPrimitive"),F={}.propertyIsEnumerable,R=f("symbol-registry"),D=f("symbols"),U=f("op-symbols"),V=Object.prototype,$="function"==typeof C,G=r.QObject,z=!G||!G.prototype||!G.prototype.findChild,B=i&&c(function(){return 7!=O(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(V,e);r&&delete V[e],N(t,e,n),r&&t!==V&&N(V,e,r)}:N,W=function(t){var e=D[t]=O(C.prototype);return e._k=t,e},q=$&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},H=function(t,e,n){return t===V&&H(U,e,n),b(t),e=S(e,!0),b(n),o(D,e)?(n.enumerable?(o(t,L)&&t[L][e]&&(t[L][e]=!1),n=O(n,{enumerable:_(0,!1)})):(o(t,L)||N(t,L,_(1,{})),t[L][e]=!0),B(t,e,n)):N(t,e,n)},J=function(t,e){b(t);for(var n,r=d(e=w(e)),o=0,i=r.length;i>o;)H(t,n=r[o++],e[n]);return t},X=function(t){var e=F.call(this,t=S(t,!0));return!(this===V&&o(D,t)&&!o(U,t))&&(!(e||!o(this,t)||!o(D,t)||o(this,L)&&this[L][t])||e)},Y=function(t,e){if(t=w(t),e=S(e,!0),t!==V||!o(D,e)||o(U,e)){var n=P(t,e);return!n||!o(D,e)||o(t,L)&&t[L][e]||(n.enumerable=!0),n}},K=function(t){for(var e,n=T(w(t)),r=[],i=0;n.length>i;)o(D,e=n[i++])||e==L||e==s||r.push(e);return r},Q=function(t){for(var e,n=t===V,r=T(n?U:w(t)),i=[],u=0;r.length>u;)!o(D,e=r[u++])||n&&!o(V,e)||i.push(D[e]);return i};$||(a((C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),e=function(n){this===V&&e.call(U,n),o(this,L)&&o(this[L],t)&&(this[L][t]=!1),B(this,t,_(1,n))};return i&&z&&B(V,t,{configurable:!0,set:e}),W(t)}).prototype,"toString",function(){return this._k}),j.f=Y,E.f=H,n(26).f=x.f=K,n(24).f=X,n(37).f=Q,i&&!n(18)&&a(V,"propertyIsEnumerable",X,!0),h.f=function(t){return W(v(t))}),u(u.G+u.W+u.F*!$,{Symbol:C});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)v(Z[tt++]);for(var et=k(v.store),nt=0;et.length>nt;)y(et[nt++]);u(u.S+u.F*!$,"Symbol",{for:function(t){return o(R,t+="")?R[t]:R[t]=C(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in R)if(R[e]===t)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!$,"Object",{create:function(t,e){return void 0===e?O(t):J(O(t),e)},defineProperty:H,defineProperties:J,getOwnPropertyDescriptor:Y,getOwnPropertyNames:K,getOwnPropertySymbols:Q}),M&&u(u.S+u.F*(!$||c(function(){var t=C();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(g(e)||void 0!==t)&&!q(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),r[1]=e,I.apply(M,r)}}),C.prototype[A]||n(6)(C.prototype,A,C.prototype.valueOf),p(C,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(t,e,n){t.exports=!n(1)&&!n(5)(function(){return 7!=Object.defineProperty(n(32)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(8),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(45);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){e.f=n(3)},function(t,e,n){var r=n(4),o=n(10),i=n(50)(!1),u=n(22)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),s=0,c=[];for(n in a)n!=u&&r(a,n)&&c.push(n);for(;e.length>s;)r(a,n=e[s++])&&(~i(c,n)||c.push(n));return c}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){for(var r=n(28),o=n(13),i=n(9),u=n(0),a=n(6),s=n(29),c=n(3),f=c("iterator"),p=c("toStringTag"),l=s.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(v),y=0;y<h.length;y++){var d,m=h[y],b=v[m],g=u[m],w=g&&g.prototype;if(w&&(w[f]||a(w,f,l),w[p]||a(w,p,m),s[m]=l,b))for(d in r)w[d]||i(w,d,r[d],!0)}},function(t,e,n){var r=n(21);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";var r=n(62),o={};o[n(3)("toStringTag")]="z",o+""!="[object z]"&&n(9)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(39),o=n(13);n(63)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(4),i=n(19),u=n(64),a=n(15),s=n(5),c=n(26).f,f=n(27).f,p=n(2).f,l=n(66).trim,v=r.Number,h=v,y=v.prototype,d="Number"==i(n(25)(y)),m="trim"in String.prototype,b=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,i=(e=m?e.trim():l(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var u,s=e.slice(2),c=0,f=s.length;c<f;c++)if((u=s.charCodeAt(c))<48||u>o)return NaN;return parseInt(s,r)}}return+e};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof v&&(d?s(function(){y.valueOf.call(n)}):"Number"!=i(n))?u(new h(b(e)),n,v):b(e)};for(var g,w=n(1)?c(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;w.length>S;S++)o(h,g=w[S])&&!o(v,g)&&p(v,g,f(h,g));v.prototype=y,y.constructor=v,n(9)(r,"Number",v)}},function(t,e,n){"use strict";var r=n(7);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){t.exports=n(17)("native-function-to-string",Function.toString)},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(12)("meta"),o=n(8),i=n(4),u=n(2).f,a=0,s=Object.isExtensible||function(){return!0},c=!n(5)(function(){return s(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},p=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[r].w},onFreeze:function(t){return c&&p.NEED&&s(t)&&!i(t,r)&&f(t),t}}},function(t,e,n){var r=n(0),o=n(11),i=n(18),u=n(34),a=n(2).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e,n){var r=n(13),o=n(37),i=n(24);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,a=n(t),s=i.f,c=0;a.length>c;)s.call(t,u=a[c++])&&e.push(u);return e}},function(t,e,n){var r=n(19);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(10),o=n(51),i=n(52);t.exports=function(t){return function(e,n,u){var a,s=r(e),c=o(s.length),f=i(u,c);if(t&&n!=n){for(;c>f;)if((a=s[f++])!=a)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(36),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(36),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(19);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(2),o=n(7),i=n(13);t.exports=n(1)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),a=u.length,s=0;a>s;)r.f(t,n=u[s++],e[n]);return t}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(10),o=n(26).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){var r=n(3)("unscopables"),o=Array.prototype;null==o[r]&&n(6)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(18),o=n(14),i=n(9),u=n(6),a=n(29),s=n(60),c=n(20),f=n(61),p=n(3)("iterator"),l=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,h,y,d,m){s(n,e,h);var b,g,w,S=function(t){if(!l&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",O="values"==y,x=!1,j=t.prototype,E=j[p]||j["@@iterator"]||y&&j[y],k=E||S(y),P=y?O?S("entries"):k:void 0,N="Array"==e&&j.entries||E;if(N&&(w=f(N.call(new t)))!==Object.prototype&&w.next&&(c(w,_,!0),r||"function"==typeof w[p]||u(w,p,v)),O&&E&&"values"!==E.name&&(x=!0,k=function(){return E.call(this)}),r&&!m||!l&&!x&&j[p]||u(j,p,k),a[e]=k,a[_]=v,y)if(b={values:O?k:S("values"),keys:d?k:S("keys"),entries:P},m)for(g in b)g in j||i(j,g,b[g]);else o(o.P+o.F*(l||x),e,b);return b}},function(t,e,n){"use strict";var r=n(25),o=n(16),i=n(20),u={};n(6)(u,n(3)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(4),o=n(39),i=n(22)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(19),o=n(3)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){var r=n(14),o=n(11),i=n(5);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},function(t,e,n){var r=n(8),o=n(65).set;t.exports=function(t,e,n){var i,u=e.constructor;return u!==n&&"function"==typeof u&&(i=u.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},function(t,e,n){var r=n(8),o=n(7),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(33)(Function.call,n(27).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(14),o=n(21),i=n(5),u=n(67),a="["+u+"]",s=RegExp("^"+a+a+"*"),c=RegExp(a+a+"*$"),f=function(t,e,n){var o={},a=i(function(){return!!u[t]()||"…"!="…"[t]()}),s=o[t]=a?e(p):u[t];n&&(o[n]=s),r(r.P+r.F*a,"String",o)},p=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(s,"")),2&e&&(t=t.replace(c,"")),t};t.exports=f},function(t,e){t.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},function(t,e,n){var r=n(2).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(1)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){"use strict";n(70);var r=n(7),o=n(43),i=n(1),u=/./.toString,a=function(t){n(9)(RegExp.prototype,"toString",t,!0)};n(5)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?a(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=u.name&&a(function(){return u.call(this)})},function(t,e,n){n(1)&&"g"!=/./g.flags&&n(2).f(RegExp.prototype,"flags",{configurable:!0,get:n(43)})},function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.unreaded.length>0||!t.server||!t.token||!t.username,expression:"unreaded.length > 0 || !server || !token || !username"}],staticClass:"nextcloud-news"},[n("div",{staticClass:"header",on:{click:function(e){t.showSettings=!t.showSettings}}},[t._v("Nextcloud News")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showSettings,expression:"showSettings"}],staticClass:"settings"},[n("p",[n("label",{attrs:{for:"update"}},[t._v("Update interval:")]),n("input",{attrs:{id:"update",type:"number"},domProps:{value:t.update},on:{keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.setOption("update",parseInt(e.target.value))}}})]),n("p",[n("label",{attrs:{for:"buffer"}},[t._v("Buffer:")]),n("input",{attrs:{id:"buffer",type:"number"},domProps:{value:t.buffer},on:{keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.setOption("buffer",parseInt(e.target.value))}}})])]),n("div",{staticClass:"unreaded"},t._l(t.unreaded,function(e){return n("div",{staticClass:"news"},[n("a",{attrs:{href:e.url,target:"_blank"}},[n("from-now",{staticClass:"date",attrs:{date:1e3*e.pubDate,now:t.now}})],1),n("span",{staticClass:"read",on:{click:function(n){return n.stopPropagation(),t.makeRead(e.id)}}},[t._v("👁")]),n("span",{staticClass:"title",on:{click:function(t){t.stopPropagation(),e.open=!e.open}}},[t._v(t._s(e.author)+" ─ "+t._s(e.title))]),e.open&&e.body?n("div",{staticClass:"content"},[t._v(t._s(e.body))]):t._e()])}),0),t.server?t._e():n("div",{staticClass:"auth"},[n("form",{on:{submit:function(e){return e.preventDefault(),t.setServer(e)}}},[n("p",[n("label",{attrs:{for:"server"}},[t._v("Server:")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.newServer,expression:"newServer"}],attrs:{id:"server",required:""},domProps:{value:t.newServer},on:{input:function(e){e.target.composing||(t.newServer=e.target.value)}}})]),n("p",[n("label",{attrs:{for:"username"}},[t._v("Username:")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.newUsername,expression:"newUsername"}],attrs:{id:"username",required:""},domProps:{value:t.newUsername},on:{input:function(e){e.target.composing||(t.newUsername=e.target.value)}}})]),n("p",[n("label",{attrs:{for:"token"}},[t._v("Token:")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.newToken,expression:"newToken"}],attrs:{id:"token",required:""},domProps:{value:t.newToken},on:{input:function(e){e.target.composing||(t.newToken=e.target.value)}}})]),t._m(0)])])])};r._withStripped=!0;n(30),n(38),n(28),n(40),n(41),n(42),n(68),n(69);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i={methods:{saveOptions:function(t){this.$emit("save",t)},setOption:function(t,e){var n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}({},this.$props);n[t]=e,this.saveOptions(n)}}},u=function(){var t=this.$createElement;return(this._self._c||t)("span",[this._v(this._s(this.timeSince))])};u._withStripped=!0;var a={created:function(){var t=this;setInterval(function(){t.now=Date.now()},3e4)},data:function(){return{now:Date.now()}}};function s(t,e,n,r,o,i,u,a){var s,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),u?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},c._ssrRegister=s):o&&(s=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),s)if(c.functional){c._injectStyles=s;var f=c.render;c.render=function(t,e){return s.call(e),f(t,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,s):[s]}return{exports:t,options:c}}var c=s({mixins:[{props:{now:{type:Number|Date,default:Date.now}}}],props:["date"],computed:{timeSince:function(){var t=Math.floor((this.now-new Date(this.date))/1e3),e=Math.floor(t/31536e3);return e>1?e+" years":(e=Math.floor(t/2592e3))>1?e+" months":(e=Math.floor(t/86400))>1?e+" days":(e=Math.floor(t/3600))>1?e+" hours":(e=Math.floor(t/60))>1?e+" minutes":Math.floor(t)+" seconds"}}},u,[],!1,null,null,null);function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}c.options.__file="src/core/fromNow.vue";var p=s({name:"nextcloud-news",mixins:[{methods:{emitError:function(t){this.$emit("error",t.toString())}}},a,i],components:{fromNow:c.exports},props:{server:String,username:String,token:String,timeout:{default:5e3,type:Number},buffer:{default:-1,type:Number},update:{default:300,type:Number}},data:function(){return{rest:axios.create({baseURL:"https://".concat(this.server,"/index.php/apps/news/api/v1-2/"),timeout:this.timeout,headers:{Authorization:"Basic "+btoa(this.username+":"+this.token)}}),unreaded:[],now:Date.now(),showSettings:!1,newServer:this.server,newUsername:this.username,newToken:this.token}},methods:{loadData:function(){var t=this;this.rest.get("/items",{params:{batchSize:this.buffer,type:3,getRead:!1}}).then(function(e){return t.unreaded=e.data.items.map(function(t){return t.open=!1,t})}).catch(this.emitError)},removeNews:function(t){for(var e=this.unreaded.length-1;e>=0;e--)if(this.unreaded[e].id===t){this.unreaded.splice(e,1);break}},makeRead:function(t){var e=this;this.rest.put("/items/".concat(t,"/read")).then(function(){return e.removeNews(t)}).catch(this.emitError)},setServer:function(){var t=this;axios.get("https://".concat(this.newServer,"/index.php/apps/news/api/v1-2/folders"),{headers:{Authorization:"Basic "+btoa(this.newUsername+":"+this.newToken)},timeout:this.timeout}).then(function(){return t.saveOptions(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){f(t,e,n[e])})}return t}({},t.$props,{server:t.newServer,token:t.newToken,username:t.newUsername}))}).catch(this.emitError)}},created:function(){this.server&&(this.loadData(),this.update>0&&setInterval(this.loadData,1e3*this.update))}},r,[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("input",{attrs:{type:"submit",value:"Connect"}})])}],!1,null,null,null);p.options.__file="src/nextcloud-news/main.vue";var l=p.exports;Vue.component(l.name,l)}]);