-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[stable28] fix(sharing): Pin @nextcloud/dialogs to a version that doesn't use Nextcloud 29 APIs #47271
[stable28] fix(sharing): Pin @nextcloud/dialogs to a version that doesn't use Nextcloud 29 APIs #47271
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot find the corresponding PR, but I remember that bump fixed 3 other issues.
|
I created the PRs for branching v6.0.0 on the dialogs library and reverted that problematic patch, please review. |
2be0fde
to
c2c04b5
Compare
c2c04b5
to
9178455
Compare
/compile |
d50a525
to
fa21849
Compare
|
It had failed before your rebase and I had restarted it. |
It is related. This is a bug that was fixed but now back with the revert. |
…Nextcloud 29 APIs [skip-ci] Signed-off-by: Joas Schilling <coding@schilljs.com>
fa21849
to
6dbe4e7
Compare
/compile / |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@@ -1,3 +1,3 @@ | |||
/*! For license information please see comments-comments-tab.js.LICENSE.txt */ | |||
(()=>{var e,n,o,r={7041:(e,n,o)=>{"use strict";var r=o(21777),s=o(32981),i=o(19231),a=o(85471),c=o(96689),l=o(44719),u=o(68928);const p={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},f=t=>t.replace(/[[\]\\-]/g,"\\$&"),h=t=>t.join(""),d=(t,e)=>{const n=e;if("["!==t.charAt(n))throw new Error("not in a brace expression");const o=[],r=[];let s=n+1,i=!1,a=!1,c=!1,l=!1,u=n,d="";t:for(;s<t.length;){const e=t.charAt(s);if("!"!==e&&"^"!==e||s!==n+1){if("]"===e&&i&&!c){u=s+1;break}if(i=!0,"\\"!==e||c){if("["===e&&!c)for(const[e,[i,c,l]]of Object.entries(p))if(t.startsWith(e,s)){if(d)return["$.",!1,t.length-n,!0];s+=e.length,l?r.push(i):o.push(i),a=a||c;continue t}c=!1,d?(e>d?o.push(f(d)+"-"+f(e)):e===d&&o.push(f(e)),d="",s++):t.startsWith("-]",s+1)?(o.push(f(e+"-")),s+=2):t.startsWith("-",s+1)?(d=e,s+=2):(o.push(f(e)),s++)}else c=!0,s++}else l=!0,s++}if(u<s)return["",!1,0,!1];if(!o.length&&!r.length)return["$.",!1,t.length-n,!0];if(0===r.length&&1===o.length&&/^\\?.$/.test(o[0])&&!l){return[(g=2===o[0].length?o[0].slice(-1):o[0],g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,u-n,!1]}var g;const m="["+(l?"^":"")+h(o)+"]",b="["+(l?"":"^")+h(r)+"]";return[o.length&&r.length?"("+m+"|"+b+")":o.length?m:b,a,u-n,!0]};var g=o(65606),m=o(96763);const b=(t,e,n={})=>(q(e),!(!n.nocomment&&"#"===e.charAt(0))&&new X(e,n).match(t)),y=/^\*+([^+@!?\*\[\(]*)$/,v=t=>e=>!e.startsWith(".")&&e.endsWith(t),w=t=>e=>e.endsWith(t),O=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),_=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),S=/^\*+\.\*+$/,j=t=>!t.startsWith(".")&&t.includes("."),E=t=>"."!==t&&".."!==t&&t.includes("."),$=/^\.\*+$/,A=t=>"."!==t&&".."!==t&&t.startsWith("."),x=/^\*+$/,P=t=>0!==t.length&&!t.startsWith("."),C=t=>0!==t.length&&"."!==t&&".."!==t,I=/^\?+([^+@!?\*\[\(]*)?$/,L=([t,e=""])=>{const n=R([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},T=([t,e=""])=>{const n=N([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},k=([t,e=""])=>{const n=N([t]);return e?t=>n(t)&&t.endsWith(e):n},M=([t,e=""])=>{const n=R([t]);return e?t=>n(t)&&t.endsWith(e):n},R=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},N=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},W="object"==typeof g&&g?"object"==typeof g.env&&g.env&&g.env.__MINIMATCH_TESTING_PLATFORM__||g.platform:"posix";b.sep="win32"===W?"\\":"/";const V=Symbol("globstar **");b.GLOBSTAR=V;const U={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},D="[^/]",F=D+"*?",z=t=>t.split("").reduce(((t,e)=>(t[e]=!0,t)),{}),H=z("().*{}+?[]^$\\!"),B=z("[.(");b.filter=(t,e={})=>n=>b(n,t,e);const G=(t,e={})=>Object.assign({},t,e);b.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return b;const e=b;return Object.assign(((n,o,r={})=>e(n,o,G(t,r))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,G(t,n))}static defaults(n){return e.defaults(G(t,n)).Minimatch}},unescape:(n,o={})=>e.unescape(n,G(t,o)),escape:(n,o={})=>e.escape(n,G(t,o)),filter:(n,o={})=>e.filter(n,G(t,o)),defaults:n=>e.defaults(G(t,n)),makeRe:(n,o={})=>e.makeRe(n,G(t,o)),braceExpand:(n,o={})=>e.braceExpand(n,G(t,o)),match:(n,o,r={})=>e.match(n,o,G(t,r)),sep:e.sep,GLOBSTAR:V})};const Z=(t,e={})=>(q(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:u(t));b.braceExpand=Z;const q=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};b.makeRe=(t,e={})=>new X(t,e).makeRe(),b.match=(t,e,n={})=>{const o=new X(e,n);return t=t.filter((t=>o.match(t))),o.options.nonull&&!t.length&&t.push(e),t};const J=/[?*]|[+@!]\(.*?\)|\[|\]/,Y=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class X{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){q(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||W,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>m.error(...t)),this.debug(this.pattern,this.globSet);const n=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let o=this.globParts.map(((t,e,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&J.test(t[2])||J.test(t[3])),n=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(n)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,o),this.set=o.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let n=0;n<t[e].length;n++)"**"===t[e][n]&&(t[e][n]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let n=e;for(;"**"===t[n+1];)n++;n!==e&&t.splice(e,n-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const n=t[t.length-1];return"**"===e&&"**"===n?t:".."===e&&n&&".."!==n&&"."!==n&&"**"!==n?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){const o=t[n];1===n&&""===o&&""===t[0]||"."!==o&&""!==o||(e=!0,t.splice(n,1),n--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let n=0;for(;-1!==(n=t.indexOf("..",n+1));){const o=t[n-1];o&&"."!==o&&".."!==o&&"**"!==o&&(e=!0,t.splice(n-1,2),n-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let n of t){let o=-1;for(;-1!==(o=n.indexOf("**",o+1));){let r=o;for(;"**"===n[r+1];)r++;r>o&&n.splice(o+1,r-o);let s=n[o+1];const i=n[o+2],a=n[o+3];if(".."!==s)continue;if(!i||"."===i||".."===i||!a||"."===a||".."===a)continue;e=!0,n.splice(o,1);const c=n.slice(0);c[o]="**",t.push(c),o--}if(!this.preserveMultipleSlashes){for(let t=1;t<n.length-1;t++){const o=n[t];1===t&&""===o&&""===n[0]||"."!==o&&""!==o||(e=!0,n.splice(t,1),t--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(e=!0,n.pop())}let r=0;for(;-1!==(r=n.indexOf("..",r+1));){const t=n[r-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;const t=1===r&&"**"===n[r+1]?["."]:[];n.splice(r-1,2,...t),0===n.length&&n.push(""),r-=2}}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let n=e+1;n<t.length;n++){const o=this.partsMatch(t[e],t[n],!this.preserveMultipleSlashes);o&&(t[e]=o,t[n]=[])}return t.filter((t=>t.length))}partsMatch(t,e,n=!1){let o=0,r=0,s=[],i="";for(;o<t.length&&r<e.length;)if(t[o]===e[r])s.push("b"===i?e[r]:t[o]),o++,r++;else if(n&&"**"===t[o]&&e[r]===t[o+1])s.push(t[o]),o++;else if(n&&"**"===e[r]&&t[o]===e[r+1])s.push(e[r]),r++;else if("*"!==t[o]||!e[r]||!this.options.dot&&e[r].startsWith(".")||"**"===e[r]){if("*"!==e[r]||!t[o]||!this.options.dot&&t[o].startsWith(".")||"**"===t[o])return!1;if("a"===i)return!1;i="b",s.push(e[r]),o++,r++}else{if("b"===i)return!1;i="a",s.push(t[o]),o++,r++}return t.length===e.length&&s}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,n=0;for(let o=0;o<t.length&&"!"===t.charAt(o);o++)e=!e,n++;n&&(this.pattern=t.slice(n)),this.negate=e}matchOne(t,e,n=!1){const o=this.options;if(this.isWindows){const n=""===t[0]&&""===t[1]&&"?"===t[2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3]),o=""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3]);if(n&&o){const n=t[3],o=e[3];n.toLowerCase()===o.toLowerCase()&&(t[3]=o)}else if(o&&"string"==typeof t[0]){const n=e[3],o=t[0];n.toLowerCase()===o.toLowerCase()&&(e[3]=o,e=e.slice(3))}else if(n&&"string"==typeof e[0]){const n=t[3];n.toLowerCase()===e[0].toLowerCase()&&(e[0]=n,t=t.slice(3))}}const{optimizationLevel:r=1}=this.options;r>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,a=t.length,c=e.length;s<a&&i<c;s++,i++){this.debug("matchOne loop");var l=e[i],u=t[s];if(this.debug(e,l,u),!1===l)return!1;if(l===V){this.debug("GLOBSTAR",[e,l,u]);var p=s,f=i+1;if(f===c){for(this.debug("** at the end");s<a;s++)if("."===t[s]||".."===t[s]||!o.dot&&"."===t[s].charAt(0))return!1;return!0}for(;p<a;){var h=t[p];if(this.debug("\nglobstar while",t,p,e,f,h),this.matchOne(t.slice(p),e.slice(f),n))return this.debug("globstar found match!",p,a,h),!0;if("."===h||".."===h||!o.dot&&"."===h.charAt(0)){this.debug("dot detected!",t,p,e,f);break}this.debug("globstar swallow a segment, and continue"),p++}return!(!n||(this.debug("\n>>> no match, partial?",t,p,e,f),p!==a))}let r;if("string"==typeof l?(r=u===l,this.debug("string match",l,u,r)):(r=l.test(u),this.debug("pattern match",l,u,r)),!r)return!1}if(s===a&&i===c)return!0;if(s===a)return n;if(i===c)return s===a-1&&""===t[s];throw new Error("wtf?")}braceExpand(){return Z(this.pattern,this.options)}parse(t){q(t);const e=this.options;if("**"===t)return V;if(""===t)return"";let n,o=null;(n=t.match(x))?o=e.dot?C:P:(n=t.match(y))?o=(e.nocase?e.dot?_:O:e.dot?w:v)(n[1]):(n=t.match(I))?o=(e.nocase?e.dot?T:L:e.dot?k:M)(n):(n=t.match(S))?o=e.dot?E:j:(n=t.match($))&&(o=A);let r="",s=!1,i=!1;const a=[],c=[];let l,u=!1,p=!1,f="."===t.charAt(0),h=e.dot||f;const g=t=>"."===t.charAt(0)?"":e.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=()=>{if(u){switch(u){case"*":r+=F,s=!0;break;case"?":r+=D,s=!0;break;default:r+="\\"+u}this.debug("clearStateChar %j %j",u,r),u=!1}};for(let n,o=0;o<t.length&&(n=t.charAt(o));o++)if(this.debug("%s\t%s %s %j",t,o,r,n),i){if("/"===n)return!1;H[n]&&(r+="\\"),r+=n,i=!1}else switch(n){case"/":return!1;case"\\":m(),i=!0;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",t,o,r,n),this.debug("call clearStateChar %j",u),m(),u=n,e.noext&&m();continue;case"(":{if(!u){r+="\\(";continue}const e={type:u,start:o-1,reStart:r.length,open:U[u].open,close:U[u].close};this.debug(this.pattern,"\t",e),a.push(e),r+=e.open,0===e.start&&"!"!==e.type&&(f=!0,r+=g(t.slice(o+1))),this.debug("plType %j %j",u,r),u=!1;continue}case")":{const t=a[a.length-1];if(!t){r+="\\)";continue}a.pop(),m(),s=!0,l=t,r+=l.close,"!"===l.type&&c.push(Object.assign(l,{reEnd:r.length}));continue}case"|":{const e=a[a.length-1];if(!e){r+="\\|";continue}m(),r+="|",0===e.start&&"!"!==e.type&&(f=!0,r+=g(t.slice(o+1)));continue}case"[":m();const[h,b,y,v]=d(t,o);y?(r+=h,p=p||b,o+=y-1,s=s||v):r+="\\[";continue;case"]":r+="\\"+n;continue;default:m(),r+=Y(n)}for(l=a.pop();l;l=a.pop()){let t;t=r.slice(l.reStart+l.open.length),this.debug(this.pattern,"setting tail",r,l),t=t.replace(/((?:\\{2}){0,64})(\\?)\|/g,((t,e,n)=>(n||(n="\\"),e+e+n+"|"))),this.debug("tail=%j\n %s",t,t,l,r);const e="*"===l.type?F:"?"===l.type?D:"\\"+l.type;s=!0,r=r.slice(0,l.reStart)+e+"\\("+t}m(),i&&(r+="\\\\");const b=B[r.charAt(0)];for(let t=c.length-1;t>-1;t--){const e=c[t],n=r.slice(0,e.reStart),o=r.slice(e.reStart,e.reEnd-8);let s=r.slice(e.reEnd);const i=r.slice(e.reEnd-8,e.reEnd)+s,a=n.split(")").length,l=n.split("(").length-a;let u=s;for(let t=0;t<l;t++)u=u.replace(/\)[+*?]?/,"");s=u,r=n+o+s+(""===s?"(?:$|\\/)":"")+i}if(""!==r&&s&&(r="(?=.)"+r),b&&(r=(f?"":h?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)")+r),!e.nocase||s||e.nocaseMagicOnly||(s=t.toUpperCase()!==t.toLowerCase()),!s)return r.replace(/\\(.)/g,"$1");const R=(e.nocase?"i":"")+(p?"u":"");try{const e=o?{_glob:t,_src:r,test:o}:{_glob:t,_src:r};return Object.assign(new RegExp("^"+r+"$",R),e)}catch(t){return this.debug("invalid regexp",t),new RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,n=e.noglobstar?F:e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",o=e.nocase?"i":"";let r=t.map((t=>{const e=t.map((t=>"string"==typeof t?Y(t):t===V?V:t._src));return e.forEach(((t,o)=>{const r=e[o+1],s=e[o-1];t===V&&s!==V&&(void 0===s?void 0!==r&&r!==V?e[o+1]="(?:\\/|"+n+"\\/)?"+r:e[o]=n:void 0===r?e[o-1]=s+"(?:\\/|"+n+")?":r!==V&&(e[o-1]=s+"(?:\\/|\\/"+n+"\\/)"+r,e[o+1]=V))})),e.filter((t=>t!==V)).join("/")})).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,o)}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const o=this.slashSplit(t);this.debug(this.pattern,"split",o);const r=this.set;this.debug(this.pattern,"set",r);let s=o[o.length-1];if(!s)for(let t=o.length-2;!s&&t>=0;t--)s=o[t];for(let t=0;t<r.length;t++){const i=r[t];let a=o;if(n.matchBase&&1===i.length&&(a=[s]),this.matchOne(a,i,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return b.defaults(t).Minimatch}}function K(t){const e={};for(const n of t.keys())e[n]=t.get(n);return e}b.Minimatch=X,b.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),b.unescape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var Q,tt=o(12692);o(86454),o(26602),Error,function(t){t.Array="array",t.Object="object",t.Original="original"}(Q||(Q={}));var et=o(35550);const nt=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{multistatus:{response:n}}=t;return n.map((t=>{const n=t.propstat.prop;return function(t,e,n=!1){const{getlastmodified:o=null,getcontentlength:r="0",resourcetype:s=null,getcontenttype:i=null,getetag:a=null}=t,c=s&&"object"==typeof s&&void 0!==s.collection?"directory":"file",l={filename:e,basename:tt.basename(e),lastmod:o,size:parseInt(r,10),type:c,etag:"string"==typeof a?a.replace(/"/g,""):null};return"file"===c&&(l.mime=i&&"string"==typeof i?i.split(";")[0]:""),n&&(l.props=t),l}(n,n.id.toString(),e)}))};var ot=o(10810);let rt,st;var it;if(a.Ay.use(ot.R2),o.nc=btoa((0,r.do)()),(0,s.C)("comments","activityEnabled",!1)&&void 0!==(null===(it=OCA)||void 0===it||null===(it=it.Activity)||void 0===it?void 0:it.registerSidebarAction))window.addEventListener("DOMContentLoaded",(function(){window.OCA.Activity.registerSidebarAction({mount:async(t,e)=>{let{context:n,fileInfo:r,reload:s}=e;const i=(0,ot.Ey)();if(!rt){const{default:t}=await Promise.all([o.e(4208),o.e(7462),o.e(2913)]).then(o.bind(o,72913));rt=a.Ay.extend(t)}st=new rt({el:t,parent:n,pinia:i,propsData:{reloadCallback:s,resourceId:r.id}}),c.A.info("Comments plugin mounted in Activity sidebar action",{fileInfo:r})},unmount:()=>{st&&st.$destroy()}}),window.OCA.Activity.registerSidebarEntries((async t=>{let{fileInfo:e,limit:n,offset:r}=t;const{data:s}=await async function(t,e){var n;let{resourceType:o,resourceId:r}=t;const s=["",o,r].join("/"),i=e.datetime?"<oc:datetime>".concat(e.datetime.toISOString(),"</oc:datetime>"):"",a=await et.A.customRequest(s,Object.assign({method:"REPORT",data:'<?xml version="1.0"?>\n\t\t\t<oc:filter-comments\n\t\t\t\txmlns:d="DAV:"\n\t\t\t\txmlns:oc="http://owncloud.org/ns"\n\t\t\t\txmlns:nc="http://nextcloud.org/ns"\n\t\t\t\txmlns:ocs="http://open-collaboration-services.org/ns">\n\t\t\t\t<oc:limit>'.concat(null!==(n=e.limit)&&void 0!==n?n:20,"</oc:limit>\n\t\t\t\t<oc:offset>").concat(e.offset||0,"</oc:offset>\n\t\t\t\t").concat(i,"\n\t\t\t</oc:filter-comments>")},e)),c=await a.text(),u=await(0,l.h4)(c);return function(t,e,n=!1){return n?{data:e,headers:t.headers?K(t.headers):{},status:t.status,statusText:t.statusText}:e}(a,nt(u,!0),!0)}({resourceType:"files",resourceId:e.id},{limit:n,offset:r});c.A.debug("Loaded comments",{fileInfo:e,comments:s});const{default:u}=await Promise.all([o.e(4208),o.e(7462),o.e(1241)]).then(o.bind(o,41241)),p=a.Ay.extend(u);return s.map((t=>{var n;return{_CommentsViewInstance:void 0,timestamp:(0,i.A)(null===(n=t.props)||void 0===n?void 0:n.creationDateTime).toDate().getTime(),mount(n,o){let{context:r,reload:s}=o;this._CommentsViewInstance=new p({el:n,parent:r,propsData:{comment:t,resourceId:e.id,reloadCallback:s}})},unmount(){var t;null===(t=this._CommentsViewInstance)||void 0===t||t.$destroy()}}}))})),window.OCA.Activity.registerSidebarFilter((t=>"comments"!==t.type)),c.A.info("Comments plugin registered for Activity sidebar action")}));else{let e=null;const n=new OCA.Files.Sidebar.Tab({id:"comments",name:t("comments","Comments"),iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-message-reply-text" viewBox="0 0 24 24"><path d="M18,8H6V6H18V8M18,11H6V9H18V11M18,14H6V12H18V14M22,4A2,2 0 0,0 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z" /></svg>',async mount(t,n,o){e&&e.$destroy(),e=new OCA.Comments.View("files",{parent:o,propsData:{resourceId:n.id}}),await e.update(n.id),e.$mount(t)},update(t){e.update(t.id)},destroy(){e.$destroy(),e=null},scrollBottomReached(){e.onScrollBottomReached()}});window.addEventListener("DOMContentLoaded",(function(){OCA.Files&&OCA.Files.Sidebar&&OCA.Files.Sidebar.registerTab(n)}))}},96689:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});const o=(0,n(53529).YK)().setApp("comments").detectUser().build()},35550:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var o=n(44719),r=n(17003),s=n(21777);const i=(0,o.UU)((0,r.e)()),a=t=>{i.setHeaders({"X-Requested-With":"XMLHttpRequest",requesttoken:null!=t?t:""})};(0,s.zo)(a),a((0,s.do)());const c=i},17003:(t,e,n)=>{"use strict";n.d(e,{e:()=>r});var o=n(63814);const r=function(){return(0,o.dC)("dav/comments")}},8505:t=>{"use strict";function e(t,e,r){t instanceof RegExp&&(t=n(t,r)),e instanceof RegExp&&(e=n(e,r));var s=o(t,e,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+t.length,s[1]),post:r.slice(s[1]+e.length)}}function n(t,e){var n=e.match(t);return n?n[0]:null}function o(t,e,n){var o,r,s,i,a,c=n.indexOf(t),l=n.indexOf(e,c+1),u=c;if(c>=0&&l>0){if(t===e)return[c,l];for(o=[],s=n.length;u>=0&&!a;)u==c?(o.push(u),c=n.indexOf(t,u+1)):1==o.length?a=[o.pop(),l]:((r=o.pop())<s&&(s=r,i=l),l=n.indexOf(e,u+1)),u=c<l&&c>=0?c:l;o.length&&(a=[s,i])}return a}t.exports=e,e.range=o},68928:(t,e,n)=>{var o=n(8505);t.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),m(function(t){return t.split("\\\\").join(r).split("\\{").join(s).split("\\}").join(i).split("\\,").join(a).split("\\.").join(c)}(t),!0).map(u)):[]};var r="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function l(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function u(t){return t.split(r).join("\\").split(s).join("{").split(i).join("}").split(a).join(",").split(c).join(".")}function p(t){if(!t)return[""];var e=[],n=o("{","}",t);if(!n)return t.split(",");var r=n.pre,s=n.body,i=n.post,a=r.split(",");a[a.length-1]+="{"+s+"}";var c=p(i);return i.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}function f(t){return"{"+t+"}"}function h(t){return/^-?0\d/.test(t)}function d(t,e){return t<=e}function g(t,e){return t>=e}function m(t,e){var n=[],r=o("{","}",t);if(!r)return[t];var s=r.pre,a=r.post.length?m(r.post,!1):[""];if(/\$$/.test(r.pre))for(var c=0;c<a.length;c++){var u=s+"{"+r.body+"}"+a[c];n.push(u)}else{var b,y,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),O=v||w,_=r.body.indexOf(",")>=0;if(!O&&!_)return r.post.match(/,.*\}/)?m(t=r.pre+"{"+r.body+i+r.post):[t];if(O)b=r.body.split(/\.\./);else if(1===(b=p(r.body)).length&&1===(b=m(b[0],!1).map(f)).length)return a.map((function(t){return r.pre+b[0]+t}));if(O){var S=l(b[0]),j=l(b[1]),E=Math.max(b[0].length,b[1].length),$=3==b.length?Math.abs(l(b[2])):1,A=d;j<S&&($*=-1,A=g);var x=b.some(h);y=[];for(var P=S;A(P,j);P+=$){var C;if(w)"\\"===(C=String.fromCharCode(P))&&(C="");else if(C=String(P),x){var I=E-C.length;if(I>0){var L=new Array(I+1).join("0");C=P<0?"-"+L+C.slice(1):L+C}}y.push(C)}}else{y=[];for(var T=0;T<b.length;T++)y.push.apply(y,m(b[T],!1))}for(T=0;T<y.length;T++)for(c=0;c<a.length;c++)u=s+y[T]+a[c],(!e||O||u)&&n.push(u)}return n}},86454:(t,e,n)=>{"use strict";const o=n(43918),r=n(32923),s=n(8904);t.exports={XMLParser:r,XMLValidator:o,XMLBuilder:s}},26602:t=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t){var e="function"==typeof Map?new Map:void 0;return n=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return o(t,arguments,s(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r(i,t)},n(t)}function o(t,e,n){return o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var s=new(Function.bind.apply(t,o));return n&&r(s,n.prototype),s},o.apply(null,arguments)}function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var i=function(t){function n(t){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(o=function(t,n){return!n||"object"!==e(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}(this,s(n).call(this,t))).name="ObjectPrototypeMutationError",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}(n,t),n}(n(Error));function a(t,n){for(var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=n.split("."),s=r.length,i=function(e){var n=r[e];if(!t)return{v:void 0};if("+"===n){if(Array.isArray(t))return{v:t.map((function(n,s){var i=r.slice(e+1);return i.length>0?a(n,i.join("."),o):o(t,s,r,e)}))};var s=r.slice(0,e).join(".");throw new Error("Object at wildcard (".concat(s,") is not an array"))}t=o(t,n,r,e)},c=0;c<s;c++){var l=i(c);if("object"===e(l))return l.v}return t}function c(t,e){return t.length===e+1}t.exports={set:function(t,n,o){if("object"!=e(t)||null===t)return t;if(void 0===n)return t;if("number"==typeof n)return t[n]=o,t[n];try{return a(t,n,(function(t,e,n,r){if(t===Reflect.getPrototypeOf({}))throw new i("Attempting to mutate Object.prototype");if(!t[e]){var s=Number.isInteger(Number(n[r+1])),a="+"===n[r+1];t[e]=s||a?[]:{}}return c(n,r)&&(t[e]=o),t[e]}))}catch(e){if(e instanceof i)throw e;return t}},get:function(t,n){if("object"!=e(t)||null===t)return t;if(void 0===n)return t;if("number"==typeof n)return t[n];try{return a(t,n,(function(t,e){return t[e]}))}catch(e){return t}},has:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"!=e(t)||null===t)return!1;if(void 0===n)return!1;if("number"==typeof n)return n in t;try{var r=!1;return a(t,n,(function(t,e,n,s){if(!c(n,s))return t&&t[e];r=o.own?t.hasOwnProperty(e):e in t})),r}catch(t){return!1}},hasOwn:function(t,e,n){return this.has(t,e,n||{own:!0})},isIn:function(t,n,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("object"!=e(t)||null===t)return!1;if(void 0===n)return!1;try{var s=!1,i=!1;return a(t,n,(function(t,n,r,a){return s=s||t===o||!!t&&t[n]===o,i=c(r,a)&&"object"===e(t)&&n in t,t&&t[n]})),r.validPath?s&&i:s}catch(t){return!1}},ObjectPrototypeMutationError:i}},12692:(t,e,n)=>{"use strict";var o=n(65606),r=n(40537),s=function(t){return"string"==typeof t};function i(t,e){for(var n=[],o=0;o<t.length;o++){var r=t[o];r&&"."!==r&&(".."===r?n.length&&".."!==n[n.length-1]?n.pop():e&&n.push(".."):n.push(r))}return n}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,c={};function l(t){return a.exec(t).slice(1)}c.resolve=function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:o.cwd();if(!s(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(t=r+"/"+t,e="/"===r.charAt(0))}return(e?"/":"")+(t=i(t.split("/"),!e).join("/"))||"."},c.normalize=function(t){var e=c.isAbsolute(t),n="/"===t.substr(-1);return(t=i(t.split("/"),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},c.isAbsolute=function(t){return"/"===t.charAt(0)},c.join=function(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];if(!s(n))throw new TypeError("Arguments to path.join must be strings");n&&(t+=t?"/"+n:n)}return c.normalize(t)},c.relative=function(t,e){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n+1)}t=c.resolve(t).substr(1),e=c.resolve(e).substr(1);for(var o=n(t.split("/")),r=n(e.split("/")),s=Math.min(o.length,r.length),i=s,a=0;a<s;a++)if(o[a]!==r[a]){i=a;break}var l=[];for(a=i;a<o.length;a++)l.push("..");return(l=l.concat(r.slice(i))).join("/")},c._makeLong=function(t){return t},c.dirname=function(t){var e=l(t),n=e[0],o=e[1];return n||o?(o&&(o=o.substr(0,o.length-1)),n+o):"."},c.basename=function(t,e){var n=l(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},c.extname=function(t){return l(t)[3]},c.format=function(t){if(!r.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!s(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);return(t.dir?t.dir+c.sep:"")+(t.base||"")},c.parse=function(t){if(!s(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=l(t);if(!e||4!==e.length)throw new TypeError("Invalid path '"+t+"'");return e[1]=e[1]||"",e[2]=e[2]||"",e[3]=e[3]||"",{root:e[0],dir:e[0]+e[1].slice(0,e[1].length-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}},c.sep="/",c.delimiter=":",t.exports=c},10810:(t,e,n)=>{"use strict";n.d(e,{Ey:()=>z,R2:()=>nt,n2:()=>et,nY:()=>Q});var o=n(19166),r=n(63757),s=n(96763);let i;const a=t=>i=t,c=Symbol();function l(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var u;!function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"}(u||(u={}));const p="undefined"!=typeof window,f="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&p,h=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function d(t,e,n){const o=new XMLHttpRequest;o.open("GET",t),o.responseType="blob",o.onload=function(){v(o.response,e,n)},o.onerror=function(){s.error("could not download file")},o.send()}function g(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function m(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const b="object"==typeof navigator?navigator:{userAgent:""},y=(()=>/Macintosh/.test(b.userAgent)&&/AppleWebKit/.test(b.userAgent)&&!/Safari/.test(b.userAgent))(),v=p?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!y?function(t,e="download",n){const o=document.createElement("a");o.download=e,o.rel="noopener","string"==typeof t?(o.href=t,o.origin!==location.origin?g(o.href)?d(t,e,n):(o.target="_blank",m(o)):m(o)):(o.href=URL.createObjectURL(t),setTimeout((function(){URL.revokeObjectURL(o.href)}),4e4),setTimeout((function(){m(o)}),0))}:"msSaveOrOpenBlob"in b?function(t,e="download",n){if("string"==typeof t)if(g(t))d(t,e,n);else{const e=document.createElement("a");e.href=t,e.target="_blank",setTimeout((function(){m(e)}))}else navigator.msSaveOrOpenBlob(function(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return d(t,e,n);const r="application/octet-stream"===t.type,s=/constructor/i.test(String(h.HTMLElement))||"safari"in h,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||r&&s||y)&&"undefined"!=typeof FileReader){const e=new FileReader;e.onloadend=function(){let t=e.result;if("string"!=typeof t)throw o=null,new Error("Wrong reader.result type");t=i?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location.assign(t),o=null},e.readAsDataURL(t)}else{const e=URL.createObjectURL(t);o?o.location.assign(e):location.href=e,o=null,setTimeout((function(){URL.revokeObjectURL(e)}),4e4)}}:()=>{};function w(t,e){const n="🍍 "+t;"function"==typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(n,e):"error"===e?s.error(n):"warn"===e?s.warn(n):s.log(n)}function O(t){return"_a"in t&&"install"in t}function _(){if(!("clipboard"in navigator))return w("Your browser doesn't support the Clipboard API","error"),!0}function S(t){return!!(t instanceof Error&&t.message.toLowerCase().includes("document is not focused"))&&(w('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}let j;function E(t,e){for(const n in e){const o=t.state.value[n];o?Object.assign(o,e[n]):t.state.value[n]=e[n]}}function $(t){return{_custom:{display:t}}}const A="🍍 Pinia (root)",x="_root";function P(t){return O(t)?{id:x,label:A}:{id:t.$id,label:t.$id}}function C(t){return t?Array.isArray(t)?t.reduce(((t,e)=>(t.keys.push(e.key),t.operations.push(e.type),t.oldValue[e.key]=e.oldValue,t.newValue[e.key]=e.newValue,t)),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:$(t.type),key:$(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function I(t){switch(t){case u.direct:return"mutation";case u.patchFunction:case u.patchObject:return"$patch";default:return"unknown"}}let L=!0;const T=[],k="pinia:mutations",M="pinia",{assign:R}=Object,N=t=>"🍍 "+t;function W(t,e){(0,r.$q)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:T,app:t},(n=>{"function"!=typeof n.now&&w("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:k,label:"Pinia 🍍",color:15064968}),n.addInspector({id:M,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{!async function(t){if(!_())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),w("Global state copied to clipboard.")}catch(t){if(S(t))return;w("Failed to serialize the state. Check the console for more details.","error"),s.error(t)}}(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await async function(t){if(!_())try{E(t,JSON.parse(await navigator.clipboard.readText())),w("Global state pasted from clipboard.")}catch(t){if(S(t))return;w("Failed to deserialize the state from clipboard. Check the console for more details.","error"),s.error(t)}}(e),n.sendInspectorTree(M),n.sendInspectorState(M)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{!async function(t){try{v(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){w("Failed to export the state as JSON. Check the console for more details.","error"),s.error(t)}}(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await async function(t){try{const e=(j||(j=document.createElement("input"),j.type="file",j.accept=".json"),function(){return new Promise(((t,e)=>{j.onchange=async()=>{const e=j.files;if(!e)return t(null);const n=e.item(0);return t(n?{text:await n.text(),file:n}:null)},j.oncancel=()=>t(null),j.onerror=e,j.click()}))}),n=await e();if(!n)return;const{text:o,file:r}=n;E(t,JSON.parse(o)),w(`Global state imported from "${r.name}".`)}catch(t){w("Failed to import the state from JSON. Check the console for more details.","error"),s.error(t)}}(e),n.sendInspectorTree(M),n.sendInspectorState(M)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:t=>{const n=e._s.get(t);n?"function"!=typeof n.$reset?w(`Cannot reset "${t}" store because it doesn't have a "$reset" method implemented.`,"warn"):(n.$reset(),w(`Store "${t}" reset.`)):w(`Cannot reset "${t}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(((t,e)=>{const n=t.componentInstance&&t.componentInstance.proxy;if(n&&n._pStores){const e=t.componentInstance.proxy._pStores;Object.values(e).forEach((e=>{t.instanceData.state.push({type:N(e.$id),key:"state",editable:!0,value:e._isOptionsAPI?{_custom:{value:(0,o.ux)(e.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>e.$reset()}]}}:Object.keys(e.$state).reduce(((t,n)=>(t[n]=e.$state[n],t)),{})}),e._getters&&e._getters.length&&t.instanceData.state.push({type:N(e.$id),key:"getters",editable:!1,value:e._getters.reduce(((t,n)=>{try{t[n]=e[n]}catch(e){t[n]=e}return t}),{})})}))}})),n.on.getInspectorTree((n=>{if(n.app===t&&n.inspectorId===M){let t=[e];t=t.concat(Array.from(e._s.values())),n.rootNodes=(n.filter?t.filter((t=>"$id"in t?t.$id.toLowerCase().includes(n.filter.toLowerCase()):A.toLowerCase().includes(n.filter.toLowerCase()))):t).map(P)}})),n.on.getInspectorState((n=>{if(n.app===t&&n.inspectorId===M){const t=n.nodeId===x?e:e._s.get(n.nodeId);if(!t)return;t&&(n.state=function(t){if(O(t)){const e=Array.from(t._s.keys()),n=t._s,o={state:e.map((e=>({editable:!0,key:e,value:t.state.value[e]}))),getters:e.filter((t=>n.get(t)._getters)).map((t=>{const e=n.get(t);return{editable:!1,key:t,value:e._getters.reduce(((t,n)=>(t[n]=e[n],t)),{})}}))};return o}const e={state:Object.keys(t.$state).map((e=>({editable:!0,key:e,value:t.$state[e]})))};return t._getters&&t._getters.length&&(e.getters=t._getters.map((e=>({editable:!1,key:e,value:t[e]})))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map((e=>({editable:!0,key:e,value:t[e]})))),e}(t))}})),n.on.editInspectorState(((n,o)=>{if(n.app===t&&n.inspectorId===M){const t=n.nodeId===x?e:e._s.get(n.nodeId);if(!t)return w(`store "${n.nodeId}" not found`,"error");const{path:o}=n;O(t)?o.unshift("state"):1===o.length&&t._customProperties.has(o[0])&&!(o[0]in t.$state)||o.unshift("$state"),L=!1,n.set(t,o,n.state.value),L=!0}})),n.on.editComponentState((t=>{if(t.type.startsWith("🍍")){const n=t.type.replace(/^🍍\s*/,""),o=e._s.get(n);if(!o)return w(`store "${n}" not found`,"error");const{path:r}=t;if("state"!==r[0])return w(`Invalid path for store "${n}":\n${r}\nOnly state can be modified.`);r[0]="$state",L=!1,t.set(o,r,t.state.value),L=!0}}))}))}let V,U=0;function D(t,e,n){const r=e.reduce(((e,n)=>(e[n]=(0,o.ux)(t)[n],e)),{});for(const e in r)t[e]=function(){const o=U,s=n?new Proxy(t,{get:(...t)=>(V=o,Reflect.get(...t)),set:(...t)=>(V=o,Reflect.set(...t))}):t;V=o;const i=r[e].apply(s,arguments);return V=void 0,i}}function F({app:t,store:e,options:n}){if(e.$id.startsWith("__hot:"))return;e._isOptionsAPI=!!n.state,D(e,Object.keys(n.actions),e._isOptionsAPI);const s=e._hotUpdate;(0,o.ux)(e)._hotUpdate=function(t){s.apply(this,arguments),D(e,Object.keys(t._hmrPayload.actions),!!e._isOptionsAPI)},function(t,e){T.includes(N(e.$id))||T.push(N(e.$id)),(0,r.$q)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:T,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},(t=>{const n="function"==typeof t.now?t.now.bind(t):Date.now;e.$onAction((({after:o,onError:r,name:s,args:i})=>{const a=U++;t.addTimelineEvent({layerId:k,event:{time:n(),title:"🛫 "+s,subtitle:"start",data:{store:$(e.$id),action:$(s),args:i},groupId:a}}),o((o=>{V=void 0,t.addTimelineEvent({layerId:k,event:{time:n(),title:"🛬 "+s,subtitle:"end",data:{store:$(e.$id),action:$(s),args:i,result:o},groupId:a}})})),r((o=>{V=void 0,t.addTimelineEvent({layerId:k,event:{time:n(),logType:"error",title:"💥 "+s,subtitle:"end",data:{store:$(e.$id),action:$(s),args:i,error:o},groupId:a}})}))}),!0),e._customProperties.forEach((r=>{(0,o.wB)((()=>(0,o.R1)(e[r])),((e,o)=>{t.notifyComponentUpdate(),t.sendInspectorState(M),L&&t.addTimelineEvent({layerId:k,event:{time:n(),title:"Change",subtitle:r,data:{newValue:e,oldValue:o},groupId:V}})}),{deep:!0})})),e.$subscribe((({events:o,type:r},s)=>{if(t.notifyComponentUpdate(),t.sendInspectorState(M),!L)return;const i={time:n(),title:I(r),data:R({store:$(e.$id)},C(o)),groupId:V};r===u.patchFunction?i.subtitle="⤵️":r===u.patchObject?i.subtitle="🧩":o&&!Array.isArray(o)&&(i.subtitle=o.type),o&&(i.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:o}}),t.addTimelineEvent({layerId:k,event:i})}),{detached:!0,flush:"sync"});const r=e._hotUpdate;e._hotUpdate=(0,o.IG)((o=>{r(o),t.addTimelineEvent({layerId:k,event:{time:n(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:$(e.$id),info:$("HMR update")}}}),t.notifyComponentUpdate(),t.sendInspectorTree(M),t.sendInspectorState(M)}));const{$dispose:s}=e;e.$dispose=()=>{s(),t.notifyComponentUpdate(),t.sendInspectorTree(M),t.sendInspectorState(M),t.getSettings().logStoreChanges&&w(`Disposed "${e.$id}" store 🗑`)},t.notifyComponentUpdate(),t.sendInspectorTree(M),t.sendInspectorState(M),t.getSettings().logStoreChanges&&w(`"${e.$id}" store installed 🆕`)}))}(t,e)}function z(){const t=(0,o.uY)(!0),e=t.run((()=>(0,o.KR)({})));let n=[],r=[];const s=(0,o.IG)({install(t){a(s),o.LE||(s._a=t,t.provide(c,s),t.config.globalProperties.$pinia=s,f&&W(t,s),r.forEach((t=>n.push(t))),r=[])},use(t){return this._a||o.LE?n.push(t):r.push(t),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return f&&"undefined"!=typeof Proxy&&s.use(F),s}const H=()=>{};function B(t,e,n,r=H){t.push(e);const s=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),r())};return!n&&(0,o.o5)()&&(0,o.jr)(s),s}function G(t,...e){t.slice().forEach((t=>{t(...e)}))}const Z=t=>t();function q(t,e){t instanceof Map&&e instanceof Map&&e.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],s=t[n];l(s)&&l(r)&&t.hasOwnProperty(n)&&!(0,o.i9)(r)&&!(0,o.g8)(r)?t[n]=q(s,r):t[n]=r}return t}const J=Symbol(),Y=new WeakMap,{assign:X}=Object;function K(t,e,n={},r,s,i){let c;const p=X({actions:{}},n),h={deep:!0};let d,g,m,b=[],y=[];const v=r.state.value[t];i||v||(o.LE?(0,o.hZ)(r.state.value,t,{}):r.state.value[t]={});const w=(0,o.KR)({});let O;function _(e){let n;d=g=!1,"function"==typeof e?(e(r.state.value[t]),n={type:u.patchFunction,storeId:t,events:m}):(q(r.state.value[t],e),n={type:u.patchObject,payload:e,storeId:t,events:m});const s=O=Symbol();(0,o.dY)().then((()=>{O===s&&(d=!0)})),g=!0,G(b,n,r.state.value[t])}const S=i?function(){const{state:t}=n,e=t?t():{};this.$patch((t=>{X(t,e)}))}:H;function j(e,n){return function(){a(r);const o=Array.from(arguments),s=[],i=[];let c;G(y,{args:o,name:e,store:A,after:function(t){s.push(t)},onError:function(t){i.push(t)}});try{c=n.apply(this&&this.$id===t?this:A,o)}catch(t){throw G(i,t),t}return c instanceof Promise?c.then((t=>(G(s,t),t))).catch((t=>(G(i,t),Promise.reject(t)))):(G(s,c),c)}}const E=(0,o.IG)({actions:{},getters:{},state:[],hotState:w}),$={_p:r,$id:t,$onAction:B.bind(null,y),$patch:_,$reset:S,$subscribe(e,n={}){const s=B(b,e,n.detached,(()=>i())),i=c.run((()=>(0,o.wB)((()=>r.state.value[t]),(o=>{("sync"===n.flush?g:d)&&e({storeId:t,type:u.direct,events:m},o)}),X({},h,n))));return s},$dispose:function(){c.stop(),b=[],y=[],r._s.delete(t)}};o.LE&&($._r=!1);const A=(0,o.Kh)(f?X({_hmrPayload:E,_customProperties:(0,o.IG)(new Set)},$):$);r._s.set(t,A);const x=(r._a&&r._a.runWithContext||Z)((()=>r._e.run((()=>(c=(0,o.uY)()).run(e)))));for(const e in x){const n=x[e];if((0,o.i9)(n)&&(C=n,!(0,o.i9)(C)||!C.effect)||(0,o.g8)(n))i||(!v||(P=n,o.LE?Y.has(P):l(P)&&P.hasOwnProperty(J))||((0,o.i9)(n)?n.value=v[e]:q(n,v[e])),o.LE?(0,o.hZ)(r.state.value[t],e,n):r.state.value[t][e]=n);else if("function"==typeof n){const t=j(e,n);o.LE?(0,o.hZ)(x,e,t):x[e]=t,p.actions[e]=n}}var P,C;if(o.LE?Object.keys(x).forEach((t=>{(0,o.hZ)(A,t,x[t])})):(X(A,x),X((0,o.ux)(A),x)),Object.defineProperty(A,"$state",{get:()=>r.state.value[t],set:t=>{_((e=>{X(e,t)}))}}),f){const t={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((e=>{Object.defineProperty(A,e,X({value:A[e]},t))}))}return o.LE&&(A._r=!0),r._p.forEach((t=>{if(f){const e=c.run((()=>t({store:A,app:r._a,pinia:r,options:p})));Object.keys(e||{}).forEach((t=>A._customProperties.add(t))),X(A,e)}else X(A,c.run((()=>t({store:A,app:r._a,pinia:r,options:p}))))})),v&&i&&n.hydrate&&n.hydrate(A.$state,v),d=!0,g=!0,A}function Q(t,e,n){let r,s;const l="function"==typeof e;function u(t,n){const u=(0,o.PS)();return(t=t||(u?(0,o.WQ)(c,null):null))&&a(t),(t=i)._s.has(r)||(l?K(r,e,s,t):function(t,e,n,r){const{state:s,actions:i,getters:c}=e,l=n.state.value[t];let u;u=K(t,(function(){l||(o.LE?(0,o.hZ)(n.state.value,t,s?s():{}):n.state.value[t]=s?s():{});const e=(0,o.QW)(n.state.value[t]);return X(e,i,Object.keys(c||{}).reduce(((e,r)=>(e[r]=(0,o.IG)((0,o.EW)((()=>{a(n);const e=n._s.get(t);if(!o.LE||e._r)return c[r].call(e,e)}))),e)),{}))}),e,n,0,!0)}(r,s,t)),t._s.get(r)}return"string"==typeof t?(r=t,s=l?n:e):(s=t,r=t.id),u.$id=r,u}let tt="Store";function et(...t){return t.reduce(((t,e)=>(t[e.$id+tt]=function(){return e(this.$pinia)},t)),{})}const nt=function(t){t.mixin({beforeCreate(){const t=this.$options;if(t.pinia){const e=t.pinia;if(!this._provided){const t={};Object.defineProperty(this,"_provided",{get:()=>t,set:e=>Object.assign(t,e)})}this._provided[c]=e,this.$pinia||(this.$pinia=e),e._a=this,p&&a(e),f&&W(e._a,e)}else!this.$pinia&&t.parent&&t.parent.$pinia&&(this.$pinia=t.parent.$pinia)},destroyed(){delete this._pStores}})}}},s={};function i(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={id:t,loaded:!1,exports:{}};return r[t].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=r,e=[],i.O=(t,n,o,r)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){n=e[u][0],o=e[u][1],r=e[u][2];for(var a=!0,c=0;c<n.length;c++)(!1&r||s>=r)&&Object.keys(i.O).every((t=>i.O[t](n[c])))?n.splice(c--,1):(a=!1,r<s&&(s=r));if(a){e.splice(u--,1);var l=o();void 0!==l&&(t=l)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[n,o,r]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.f={},i.e=t=>Promise.all(Object.keys(i.f).reduce(((e,n)=>(i.f[n](t,e),e)),[])),i.u=t=>t+"-"+t+".js?v="+{1241:"a4187792299da984916c",2913:"1ccb2adaaea884424d3c",4065:"ffc3ea4dc0a980727747",4254:"96661b9f421b07ce7189",5528:"231caad2efb966b857ef",7462:"f766d4393558ae668569"}[t],i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},o="nextcloud:",i.l=(t,e,r,s)=>{if(n[t])n[t].push(e);else{var a,c;if(void 0!==r)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==o+r){a=p;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.setAttribute("data-webpack",o+r),a.src=t),n[t]=[e];var f=(e,o)=>{a.onerror=a.onload=null,clearTimeout(h);var r=n[t];if(delete n[t],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((t=>t(o))),e)return e(o)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),c&&document.head.appendChild(a)}},i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),i.j=2122,(()=>{var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!t||!/^http(s?):/.test(t));)t=n[o--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t})(),(()=>{i.b=document.baseURI||self.location.href;var t={2122:0};i.f.j=(e,n)=>{var o=i.o(t,e)?t[e]:void 0;if(0!==o)if(o)n.push(o[2]);else{var r=new Promise(((n,r)=>o=t[e]=[n,r]));n.push(o[2]=r);var s=i.p+i.u(e),a=new Error;i.l(s,(n=>{if(i.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var r=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+r+": "+s+")",a.name="ChunkLoadError",a.type=r,a.request=s,o[1](a)}}),"chunk-"+e,e)}},i.O.j=e=>0===t[e];var e=(e,n)=>{var o,r,s=n[0],a=n[1],c=n[2],l=0;if(s.some((e=>0!==t[e]))){for(o in a)i.o(a,o)&&(i.m[o]=a[o]);if(c)var u=c(i)}for(e&&e(n);l<s.length;l++)r=s[l],i.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return i.O(u)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),i.nc=void 0;var a=i.O(void 0,[4208],(()=>i(7041)));a=i.O(a)})(); | |||
//# sourceMappingURL=comments-comments-tab.js.map?v=d2c402cfd0b3711da7a6 | |||
(()=>{var e,n,r,o={24167:(e,n,r)=>{"use strict";var o=r(21777),s=r(32981),i=r(19231),a=r(85471),c=r(96689),l=r(44719),p=r(68928);const u=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},h={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},f=t=>t.replace(/[[\]\\-]/g,"\\$&"),d=t=>t.join(""),g=(t,e)=>{const n=e;if("["!==t.charAt(n))throw new Error("not in a brace expression");const r=[],o=[];let s=n+1,i=!1,a=!1,c=!1,l=!1,p=n,u="";t:for(;s<t.length;){const e=t.charAt(s);if("!"!==e&&"^"!==e||s!==n+1){if("]"===e&&i&&!c){p=s+1;break}if(i=!0,"\\"!==e||c){if("["===e&&!c)for(const[e,[i,c,l]]of Object.entries(h))if(t.startsWith(e,s)){if(u)return["$.",!1,t.length-n,!0];s+=e.length,l?o.push(i):r.push(i),a=a||c;continue t}c=!1,u?(e>u?r.push(f(u)+"-"+f(e)):e===u&&r.push(f(e)),u="",s++):t.startsWith("-]",s+1)?(r.push(f(e+"-")),s+=2):t.startsWith("-",s+1)?(u=e,s+=2):(r.push(f(e)),s++)}else c=!0,s++}else l=!0,s++}if(p<s)return["",!1,0,!1];if(!r.length&&!o.length)return["$.",!1,t.length-n,!0];if(0===o.length&&1===r.length&&/^\\?.$/.test(r[0])&&!l){return[(g=2===r[0].length?r[0].slice(-1):r[0],g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,p-n,!1]}var g;const m="["+(l?"^":"")+d(r)+"]",y="["+(l?"":"^")+d(o)+"]";return[r.length&&o.length?"("+m+"|"+y+")":r.length?m:y,a,p-n,!0]},m=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),y=new Set(["!","?","+","*","@"]),b=t=>y.has(t),v="(?!\\.)",w=new Set(["[","."]),S=new Set(["..","."]),O=new Set("().*{}+?[]^$\\!"),E="[^/]",_=E+"*?",j=E+"+?";class ${type;#t;#e;#n=!1;#r=[];#o;#s;#i;#a=!1;#c;#l;#p=!1;constructor(t,e,n={}){this.type=t,t&&(this.#e=!0),this.#o=e,this.#t=this.#o?this.#o.#t:this,this.#c=this.#t===this?n:this.#t.#c,this.#i=this.#t===this?[]:this.#t.#i,"!"!==t||this.#t.#a||this.#i.push(this),this.#s=this.#o?this.#o.#r.length:0}get hasMagic(){if(void 0!==this.#e)return this.#e;for(const t of this.#r)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#e=!0;return this.#e}toString(){return void 0!==this.#l?this.#l:this.type?this.#l=this.type+"("+this.#r.map((t=>String(t))).join("|")+")":this.#l=this.#r.map((t=>String(t))).join("")}#u(){if(this!==this.#t)throw new Error("should only call on root");if(this.#a)return this;let t;for(this.toString(),this.#a=!0;t=this.#i.pop();){if("!"!==t.type)continue;let e=t,n=e.#o;for(;n;){for(let r=e.#s+1;!n.type&&r<n.#r.length;r++)for(const e of t.#r){if("string"==typeof e)throw new Error("string part in extglob AST??");e.copyIn(n.#r[r])}e=n,n=e.#o}}return this}push(...t){for(const e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof $&&e.#o===this))throw new Error("invalid part: "+e);this.#r.push(e)}}toJSON(){const t=null===this.type?this.#r.slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...this.#r.map((t=>t.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#a&&"!"===this.#o?.type)&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#o?.isStart())return!1;if(0===this.#s)return!0;const t=this.#o;for(let e=0;e<this.#s;e++){const n=t.#r[e];if(!(n instanceof $&&"!"===n.type))return!1}return!0}isEnd(){if(this.#t===this)return!0;if("!"===this.#o?.type)return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();const t=this.#o?this.#o.#r.length:0;return this.#s===t-1}copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}clone(t){const e=new $(this.type,t);for(const t of this.#r)e.copyIn(t);return e}static#h(t,e,n,r){let o=!1,s=!1,i=-1,a=!1;if(null===e.type){let c=n,l="";for(;c<t.length;){const n=t.charAt(c++);if(o||"\\"===n)o=!o,l+=n;else if(s)c===i+1?"^"!==n&&"!"!==n||(a=!0):"]"!==n||c===i+2&&a||(s=!1),l+=n;else if("["!==n)if(r.noext||!b(n)||"("!==t.charAt(c))l+=n;else{e.push(l),l="";const o=new $(n,e);c=$.#h(t,o,c,r),e.push(o)}else s=!0,i=c,a=!1,l+=n}return e.push(l),c}let c=n+1,l=new $(null,e);const p=[];let u="";for(;c<t.length;){const n=t.charAt(c++);if(o||"\\"===n)o=!o,u+=n;else if(s)c===i+1?"^"!==n&&"!"!==n||(a=!0):"]"!==n||c===i+2&&a||(s=!1),u+=n;else if("["!==n)if(b(n)&&"("===t.charAt(c)){l.push(u),u="";const e=new $(n,l);l.push(e),c=$.#h(t,e,c,r)}else if("|"!==n){if(")"===n)return""===u&&0===e.#r.length&&(e.#p=!0),l.push(u),u="",e.push(...p,l),c;u+=n}else l.push(u),u="",p.push(l),l=new $(null,e);else s=!0,i=c,a=!1,u+=n}return e.type=null,e.#e=void 0,e.#r=[t.substring(n-1)],c}static fromGlob(t,e={}){const n=new $(null,void 0,e);return $.#h(t,n,0,e),n}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();const t=this.toString(),[e,n,r,o]=this.toRegExpSource();if(!(r||this.#e||this.#c.nocase&&!this.#c.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const s=(this.#c.nocase?"i":"")+(o?"u":"");return Object.assign(new RegExp(`^${e}$`,s),{_src:e,_glob:t})}get options(){return this.#c}toRegExpSource(t){const e=t??!!this.#c.dot;if(this.#t===this&&this.#u(),!this.type){const n=this.isStart()&&this.isEnd(),r=this.#r.map((e=>{const[r,o,s,i]="string"==typeof e?$.#f(e,this.#e,n):e.toRegExpSource(t);return this.#e=this.#e||s,this.#n=this.#n||i,r})).join("");let o="";if(this.isStart()&&"string"==typeof this.#r[0]&&(1!==this.#r.length||!S.has(this.#r[0]))){const n=w,s=e&&n.has(r.charAt(0))||r.startsWith("\\.")&&n.has(r.charAt(2))||r.startsWith("\\.\\.")&&n.has(r.charAt(4)),i=!e&&!t&&n.has(r.charAt(0));o=s?"(?!(?:^|/)\\.\\.?(?:$|/))":i?v:""}let s="";return this.isEnd()&&this.#t.#a&&"!"===this.#o?.type&&(s="(?:$|\\/)"),[o+r+s,m(r),this.#e=!!this.#e,this.#n]}const n="*"===this.type||"+"===this.type,r="!"===this.type?"(?:(?!(?:":"(?:";let o=this.#d(e);if(this.isStart()&&this.isEnd()&&!o&&"!"!==this.type){const t=this.toString();return this.#r=[t],this.type=null,this.#e=void 0,[t,m(this.toString()),!1,!1]}let s=!n||t||e?"":this.#d(!0);s===o&&(s=""),s&&(o=`(?:${o})(?:${s})*?`);let i="";return i="!"===this.type&&this.#p?(this.isStart()&&!e?v:"")+j:r+o+("!"===this.type?"))"+(!this.isStart()||e||t?"":v)+_+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&s?")":"*"===this.type&&s?")?":`)${this.type}`),[i,m(o),this.#e=!!this.#e,this.#n]}#d(t){return this.#r.map((e=>{if("string"==typeof e)throw new Error("string type in extglob ast??");const[n,r,o,s]=e.toRegExpSource(t);return this.#n=this.#n||s,n})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")}static#f(t,e,n=!1){let r=!1,o="",s=!1;for(let i=0;i<t.length;i++){const a=t.charAt(i);if(r)r=!1,o+=(O.has(a)?"\\":"")+a;else if("\\"!==a){if("["===a){const[n,r,a,c]=g(t,i);if(a){o+=n,s=s||r,i+=a-1,e=e||c;continue}}"*"!==a?"?"!==a?o+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(o+=E,e=!0):(o+=n&&"*"===t?j:_,e=!0)}else i===t.length-1?o+="\\\\":r=!0}return[o,m(t),!!e,s]}}var x=r(65606),A=r(96763);const P=(t,e,n={})=>(u(e),!(!n.nocomment&&"#"===e.charAt(0))&&new et(e,n).match(t)),M=/^\*+([^+@!?\*\[\(]*)$/,T=t=>e=>!e.startsWith(".")&&e.endsWith(t),I=t=>e=>e.endsWith(t),C=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),L=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),R=/^\*+\.\*+$/,k=t=>!t.startsWith(".")&&t.includes("."),N=t=>"."!==t&&".."!==t&&t.includes("."),W=/^\.\*+$/,V=t=>"."!==t&&".."!==t&&t.startsWith("."),U=/^\*+$/,D=t=>0!==t.length&&!t.startsWith("."),z=t=>0!==t.length&&"."!==t&&".."!==t,F=/^\?+([^+@!?\*\[\(]*)?$/,G=([t,e=""])=>{const n=Z([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},H=([t,e=""])=>{const n=q([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},B=([t,e=""])=>{const n=q([t]);return e?t=>n(t)&&t.endsWith(e):n},J=([t,e=""])=>{const n=Z([t]);return e?t=>n(t)&&t.endsWith(e):n},Z=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},q=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Y="object"==typeof x&&x?"object"==typeof x.env&&x.env&&x.env.__MINIMATCH_TESTING_PLATFORM__||x.platform:"posix";P.sep="win32"===Y?"\\":"/";const X=Symbol("globstar **");P.GLOBSTAR=X,P.filter=(t,e={})=>n=>P(n,t,e);const K=(t,e={})=>Object.assign({},t,e);P.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return P;const e=P;return Object.assign(((n,r,o={})=>e(n,r,K(t,o))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,K(t,n))}static defaults(n){return e.defaults(K(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,r={}){super(e,n,K(t,r))}static fromGlob(n,r={}){return e.AST.fromGlob(n,K(t,r))}},unescape:(n,r={})=>e.unescape(n,K(t,r)),escape:(n,r={})=>e.escape(n,K(t,r)),filter:(n,r={})=>e.filter(n,K(t,r)),defaults:n=>e.defaults(K(t,n)),makeRe:(n,r={})=>e.makeRe(n,K(t,r)),braceExpand:(n,r={})=>e.braceExpand(n,K(t,r)),match:(n,r,o={})=>e.match(n,r,K(t,o)),sep:e.sep,GLOBSTAR:X})};const Q=(t,e={})=>(u(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:p(t));P.braceExpand=Q,P.makeRe=(t,e={})=>new et(t,e).makeRe(),P.match=(t,e,n={})=>{const r=new et(e,n);return t=t.filter((t=>r.match(t))),r.options.nonull&&!t.length&&t.push(e),t};const tt=/[?*]|[+@!]\(.*?\)|\[|\]/;class et{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){u(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||Y,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>A.error(...t)),this.debug(this.pattern,this.globSet);const n=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map(((t,e,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&tt.test(t[2])||tt.test(t[3])),n=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(n)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,r),this.set=r.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let n=0;n<t[e].length;n++)"**"===t[e][n]&&(t[e][n]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let n=e;for(;"**"===t[n+1];)n++;n!==e&&t.splice(e,n-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const n=t[t.length-1];return"**"===e&&"**"===n?t:".."===e&&n&&".."!==n&&"."!==n&&"**"!==n?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){const r=t[n];1===n&&""===r&&""===t[0]||"."!==r&&""!==r||(e=!0,t.splice(n,1),n--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let n=0;for(;-1!==(n=t.indexOf("..",n+1));){const r=t[n-1];r&&"."!==r&&".."!==r&&"**"!==r&&(e=!0,t.splice(n-1,2),n-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let n of t){let r=-1;for(;-1!==(r=n.indexOf("**",r+1));){let o=r;for(;"**"===n[o+1];)o++;o>r&&n.splice(r+1,o-r);let s=n[r+1];const i=n[r+2],a=n[r+3];if(".."!==s)continue;if(!i||"."===i||".."===i||!a||"."===a||".."===a)continue;e=!0,n.splice(r,1);const c=n.slice(0);c[r]="**",t.push(c),r--}if(!this.preserveMultipleSlashes){for(let t=1;t<n.length-1;t++){const r=n[t];1===t&&""===r&&""===n[0]||"."!==r&&""!==r||(e=!0,n.splice(t,1),t--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(e=!0,n.pop())}let o=0;for(;-1!==(o=n.indexOf("..",o+1));){const t=n[o-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;const t=1===o&&"**"===n[o+1]?["."]:[];n.splice(o-1,2,...t),0===n.length&&n.push(""),o-=2}}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let n=e+1;n<t.length;n++){const r=this.partsMatch(t[e],t[n],!this.preserveMultipleSlashes);if(r){t[e]=[],t[n]=r;break}}return t.filter((t=>t.length))}partsMatch(t,e,n=!1){let r=0,o=0,s=[],i="";for(;r<t.length&&o<e.length;)if(t[r]===e[o])s.push("b"===i?e[o]:t[r]),r++,o++;else if(n&&"**"===t[r]&&e[o]===t[r+1])s.push(t[r]),r++;else if(n&&"**"===e[o]&&t[r]===e[o+1])s.push(e[o]),o++;else if("*"!==t[r]||!e[o]||!this.options.dot&&e[o].startsWith(".")||"**"===e[o]){if("*"!==e[o]||!t[r]||!this.options.dot&&t[r].startsWith(".")||"**"===t[r])return!1;if("a"===i)return!1;i="b",s.push(e[o]),r++,o++}else{if("b"===i)return!1;i="a",s.push(t[r]),r++,o++}return t.length===e.length&&s}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,n=0;for(let r=0;r<t.length&&"!"===t.charAt(r);r++)e=!e,n++;n&&(this.pattern=t.slice(n)),this.negate=e}matchOne(t,e,n=!1){const r=this.options;if(this.isWindows){const n="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),r=!n&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),o="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),s=r?3:n?0:void 0,i=!o&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:o?0:void 0;if("number"==typeof s&&"number"==typeof i){const[n,r]=[t[s],e[i]];n.toLowerCase()===r.toLowerCase()&&(e[i]=n,i>s?e=e.slice(i):s>i&&(t=t.slice(s)))}}const{optimizationLevel:o=1}=this.options;o>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,a=t.length,c=e.length;s<a&&i<c;s++,i++){this.debug("matchOne loop");var l=e[i],p=t[s];if(this.debug(e,l,p),!1===l)return!1;if(l===X){this.debug("GLOBSTAR",[e,l,p]);var u=s,h=i+1;if(h===c){for(this.debug("** at the end");s<a;s++)if("."===t[s]||".."===t[s]||!r.dot&&"."===t[s].charAt(0))return!1;return!0}for(;u<a;){var f=t[u];if(this.debug("\nglobstar while",t,u,e,h,f),this.matchOne(t.slice(u),e.slice(h),n))return this.debug("globstar found match!",u,a,f),!0;if("."===f||".."===f||!r.dot&&"."===f.charAt(0)){this.debug("dot detected!",t,u,e,h);break}this.debug("globstar swallow a segment, and continue"),u++}return!(!n||(this.debug("\n>>> no match, partial?",t,u,e,h),u!==a))}let o;if("string"==typeof l?(o=p===l,this.debug("string match",l,p,o)):(o=l.test(p),this.debug("pattern match",l,p,o)),!o)return!1}if(s===a&&i===c)return!0;if(s===a)return n;if(i===c)return s===a-1&&""===t[s];throw new Error("wtf?")}braceExpand(){return Q(this.pattern,this.options)}parse(t){u(t);const e=this.options;if("**"===t)return X;if(""===t)return"";let n,r=null;(n=t.match(U))?r=e.dot?z:D:(n=t.match(M))?r=(e.nocase?e.dot?L:C:e.dot?I:T)(n[1]):(n=t.match(F))?r=(e.nocase?e.dot?H:G:e.dot?B:J)(n):(n=t.match(R))?r=e.dot?N:k:(n=t.match(W))&&(r=V);const o=$.fromGlob(t,this.options).toMMPattern();return r&&"object"==typeof o&&Reflect.defineProperty(o,"test",{value:r}),o}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,n=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=new Set(e.nocase?["i"]:[]);let o=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))r.add(e);return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===X?X:t._src}));return e.forEach(((t,r)=>{const o=e[r+1],s=e[r-1];t===X&&s!==X&&(void 0===s?void 0!==o&&o!==X?e[r+1]="(?:\\/|"+n+"\\/)?"+o:e[r]=n:void 0===o?e[r-1]=s+"(?:\\/|"+n+")?":o!==X&&(e[r-1]=s+"(?:\\/|\\/"+n+"\\/)"+o,e[r+1]=X))})),e.filter((t=>t!==X)).join("/")})).join("|");const[s,i]=t.length>1?["(?:",")"]:["",""];o="^"+s+o+i+"$",this.negate&&(o="^(?!"+o+").+$");try{this.regexp=new RegExp(o,[...r].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const r=this.slashSplit(t);this.debug(this.pattern,"split",r);const o=this.set;this.debug(this.pattern,"set",o);let s=r[r.length-1];if(!s)for(let t=r.length-2;!s&&t>=0;t--)s=r[t];for(let t=0;t<o.length;t++){const i=o[t];let a=r;if(n.matchBase&&1===i.length&&(a=[s]),this.matchOne(a,i,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return P.defaults(t).Minimatch}}function nt(t){const e={};for(const n of t.keys())e[n]=t.get(n);return e}P.AST=$,P.Minimatch=et,P.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),P.unescape=m;var rt,ot=r(12692);r(86454),r(26602),Error,function(t){t.Array="array",t.Object="object",t.Original="original"}(rt||(rt={}));var st=r(35550);const it=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{multistatus:{response:n}}=t;return n.map((t=>{const n=t.propstat.prop;return function(t,e,n=!1){const{getlastmodified:r=null,getcontentlength:o="0",resourcetype:s=null,getcontenttype:i=null,getetag:a=null}=t,c=s&&"object"==typeof s&&void 0!==s.collection?"directory":"file",l={filename:e,basename:ot.basename(e),lastmod:r,size:parseInt(o,10),type:c,etag:"string"==typeof a?a.replace(/"/g,""):null};return"file"===c&&(l.mime=i&&"string"==typeof i?i.split(";")[0]:""),n&&(void 0!==t.displayname&&(t.displayname=String(t.displayname)),l.props=t),l}(n,n.id.toString(),e)}))};var at=r(10810);let ct,lt;var pt;if(a.Ay.use(at.R2),r.nc=btoa((0,o.do)()),(0,s.C)("comments","activityEnabled",!1)&&void 0!==(null===(pt=OCA)||void 0===pt||null===(pt=pt.Activity)||void 0===pt?void 0:pt.registerSidebarAction))window.addEventListener("DOMContentLoaded",(function(){window.OCA.Activity.registerSidebarAction({mount:async(t,e)=>{let{context:n,fileInfo:o,reload:s}=e;const i=(0,at.Ey)();if(!ct){const{default:t}=await Promise.all([r.e(4208),r.e(7462),r.e(2913)]).then(r.bind(r,72913));ct=a.Ay.extend(t)}lt=new ct({el:t,parent:n,pinia:i,propsData:{reloadCallback:s,resourceId:o.id}}),c.A.info("Comments plugin mounted in Activity sidebar action",{fileInfo:o})},unmount:()=>{lt&<.$destroy()}}),window.OCA.Activity.registerSidebarEntries((async t=>{let{fileInfo:e,limit:n,offset:o}=t;const{data:s}=await async function(t,e){var n;let{resourceType:r,resourceId:o}=t;const s=["",r,o].join("/"),i=e.datetime?"<oc:datetime>".concat(e.datetime.toISOString(),"</oc:datetime>"):"",a=await st.A.customRequest(s,Object.assign({method:"REPORT",data:'<?xml version="1.0"?>\n\t\t\t<oc:filter-comments\n\t\t\t\txmlns:d="DAV:"\n\t\t\t\txmlns:oc="http://owncloud.org/ns"\n\t\t\t\txmlns:nc="http://nextcloud.org/ns"\n\t\t\t\txmlns:ocs="http://open-collaboration-services.org/ns">\n\t\t\t\t<oc:limit>'.concat(null!==(n=e.limit)&&void 0!==n?n:20,"</oc:limit>\n\t\t\t\t<oc:offset>").concat(e.offset||0,"</oc:offset>\n\t\t\t\t").concat(i,"\n\t\t\t</oc:filter-comments>")},e)),c=await a.text(),p=await(0,l.h4)(c);return function(t,e,n=!1){return n?{data:e,headers:t.headers?nt(t.headers):{},status:t.status,statusText:t.statusText}:e}(a,it(p,!0),!0)}({resourceType:"files",resourceId:e.id},{limit:n,offset:o});c.A.debug("Loaded comments",{fileInfo:e,comments:s});const{default:p}=await Promise.all([r.e(4208),r.e(7462),r.e(1241)]).then(r.bind(r,41241)),u=a.Ay.extend(p);return s.map((t=>{var n;return{_CommentsViewInstance:void 0,timestamp:(0,i.A)(null===(n=t.props)||void 0===n?void 0:n.creationDateTime).toDate().getTime(),mount(n,r){let{context:o,reload:s}=r;this._CommentsViewInstance=new u({el:n,parent:o,propsData:{comment:t,resourceId:e.id,reloadCallback:s}})},unmount(){var t;null===(t=this._CommentsViewInstance)||void 0===t||t.$destroy()}}}))})),window.OCA.Activity.registerSidebarFilter((t=>"comments"!==t.type)),c.A.info("Comments plugin registered for Activity sidebar action")}));else{let e=null;const n=new OCA.Files.Sidebar.Tab({id:"comments",name:t("comments","Comments"),iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-message-reply-text" viewBox="0 0 24 24"><path d="M18,8H6V6H18V8M18,11H6V9H18V11M18,14H6V12H18V14M22,4A2,2 0 0,0 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z" /></svg>',async mount(t,n,r){e&&e.$destroy(),e=new OCA.Comments.View("files",{parent:r,propsData:{resourceId:n.id}}),await e.update(n.id),e.$mount(t)},update(t){e.update(t.id)},destroy(){e.$destroy(),e=null},scrollBottomReached(){e.onScrollBottomReached()}});window.addEventListener("DOMContentLoaded",(function(){OCA.Files&&OCA.Files.Sidebar&&OCA.Files.Sidebar.registerTab(n)}))}},96689:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=(0,n(53529).YK)().setApp("comments").detectUser().build()},35550:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(44719),o=n(17003),s=n(21777);const i=(0,r.UU)((0,o.e)()),a=t=>{i.setHeaders({"X-Requested-With":"XMLHttpRequest",requesttoken:null!=t?t:""})};(0,s.zo)(a),a((0,s.do)());const c=i},17003:(t,e,n)=>{"use strict";n.d(e,{e:()=>o});var r=n(63814);const o=function(){return(0,r.dC)("dav/comments")}},8505:t=>{"use strict";function e(t,e,o){t instanceof RegExp&&(t=n(t,o)),e instanceof RegExp&&(e=n(e,o));var s=r(t,e,o);return s&&{start:s[0],end:s[1],pre:o.slice(0,s[0]),body:o.slice(s[0]+t.length,s[1]),post:o.slice(s[1]+e.length)}}function n(t,e){var n=e.match(t);return n?n[0]:null}function r(t,e,n){var r,o,s,i,a,c=n.indexOf(t),l=n.indexOf(e,c+1),p=c;if(c>=0&&l>0){if(t===e)return[c,l];for(r=[],s=n.length;p>=0&&!a;)p==c?(r.push(p),c=n.indexOf(t,p+1)):1==r.length?a=[r.pop(),l]:((o=r.pop())<s&&(s=o,i=l),l=n.indexOf(e,p+1)),p=c<l&&c>=0?c:l;r.length&&(a=[s,i])}return a}t.exports=e,e.range=r},68928:(t,e,n)=>{var r=n(8505);t.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),m(function(t){return t.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(i).split("\\,").join(a).split("\\.").join(c)}(t),!0).map(p)):[]};var o="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function l(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function p(t){return t.split(o).join("\\").split(s).join("{").split(i).join("}").split(a).join(",").split(c).join(".")}function u(t){if(!t)return[""];var e=[],n=r("{","}",t);if(!n)return t.split(",");var o=n.pre,s=n.body,i=n.post,a=o.split(",");a[a.length-1]+="{"+s+"}";var c=u(i);return i.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}function h(t){return"{"+t+"}"}function f(t){return/^-?0\d/.test(t)}function d(t,e){return t<=e}function g(t,e){return t>=e}function m(t,e){var n=[],o=r("{","}",t);if(!o)return[t];var s=o.pre,a=o.post.length?m(o.post,!1):[""];if(/\$$/.test(o.pre))for(var c=0;c<a.length;c++){var p=s+"{"+o.body+"}"+a[c];n.push(p)}else{var y,b,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),S=v||w,O=o.body.indexOf(",")>=0;if(!S&&!O)return o.post.match(/,.*\}/)?m(t=o.pre+"{"+o.body+i+o.post):[t];if(S)y=o.body.split(/\.\./);else if(1===(y=u(o.body)).length&&1===(y=m(y[0],!1).map(h)).length)return a.map((function(t){return o.pre+y[0]+t}));if(S){var E=l(y[0]),_=l(y[1]),j=Math.max(y[0].length,y[1].length),$=3==y.length?Math.abs(l(y[2])):1,x=d;_<E&&($*=-1,x=g);var A=y.some(f);b=[];for(var P=E;x(P,_);P+=$){var M;if(w)"\\"===(M=String.fromCharCode(P))&&(M="");else if(M=String(P),A){var T=j-M.length;if(T>0){var I=new Array(T+1).join("0");M=P<0?"-"+I+M.slice(1):I+M}}b.push(M)}}else{b=[];for(var C=0;C<y.length;C++)b.push.apply(b,m(y[C],!1))}for(C=0;C<b.length;C++)for(c=0;c<a.length;c++)p=s+b[C]+a[c],(!e||S||p)&&n.push(p)}return n}},86454:(t,e,n)=>{"use strict";const r=n(43918),o=n(32923),s=n(8904);t.exports={XMLParser:o,XMLValidator:r,XMLBuilder:s}},26602:t=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t){var e="function"==typeof Map?new Map:void 0;return n=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return r(t,arguments,s(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o(i,t)},n(t)}function r(t,e,n){return r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var s=new(Function.bind.apply(t,r));return n&&o(s,n.prototype),s},r.apply(null,arguments)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var i=function(t){function n(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(r=function(t,n){return!n||"object"!==e(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}(this,s(n).call(this,t))).name="ObjectPrototypeMutationError",r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(n,t),n}(n(Error));function a(t,n){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=n.split("."),s=o.length,i=function(e){var n=o[e];if(!t)return{v:void 0};if("+"===n){if(Array.isArray(t))return{v:t.map((function(n,s){var i=o.slice(e+1);return i.length>0?a(n,i.join("."),r):r(t,s,o,e)}))};var s=o.slice(0,e).join(".");throw new Error("Object at wildcard (".concat(s,") is not an array"))}t=r(t,n,o,e)},c=0;c<s;c++){var l=i(c);if("object"===e(l))return l.v}return t}function c(t,e){return t.length===e+1}t.exports={set:function(t,n,r){if("object"!=e(t)||null===t)return t;if(void 0===n)return t;if("number"==typeof n)return t[n]=r,t[n];try{return a(t,n,(function(t,e,n,o){if(t===Reflect.getPrototypeOf({}))throw new i("Attempting to mutate Object.prototype");if(!t[e]){var s=Number.isInteger(Number(n[o+1])),a="+"===n[o+1];t[e]=s||a?[]:{}}return c(n,o)&&(t[e]=r),t[e]}))}catch(e){if(e instanceof i)throw e;return t}},get:function(t,n){if("object"!=e(t)||null===t)return t;if(void 0===n)return t;if("number"==typeof n)return t[n];try{return a(t,n,(function(t,e){return t[e]}))}catch(e){return t}},has:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"!=e(t)||null===t)return!1;if(void 0===n)return!1;if("number"==typeof n)return n in t;try{var o=!1;return a(t,n,(function(t,e,n,s){if(!c(n,s))return t&&t[e];o=r.own?t.hasOwnProperty(e):e in t})),o}catch(t){return!1}},hasOwn:function(t,e,n){return this.has(t,e,n||{own:!0})},isIn:function(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("object"!=e(t)||null===t)return!1;if(void 0===n)return!1;try{var s=!1,i=!1;return a(t,n,(function(t,n,o,a){return s=s||t===r||!!t&&t[n]===r,i=c(o,a)&&"object"===e(t)&&n in t,t&&t[n]})),o.validPath?s&&i:s}catch(t){return!1}},ObjectPrototypeMutationError:i}},12692:(t,e,n)=>{"use strict";var r=n(65606),o=n(40537),s=function(t){return"string"==typeof t};function i(t,e){for(var n=[],r=0;r<t.length;r++){var o=t[r];o&&"."!==o&&(".."===o?n.length&&".."!==n[n.length-1]?n.pop():e&&n.push(".."):n.push(o))}return n}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,c={};function l(t){return a.exec(t).slice(1)}c.resolve=function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var o=n>=0?arguments[n]:r.cwd();if(!s(o))throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,e="/"===o.charAt(0))}return(e?"/":"")+(t=i(t.split("/"),!e).join("/"))||"."},c.normalize=function(t){var e=c.isAbsolute(t),n="/"===t.substr(-1);return(t=i(t.split("/"),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},c.isAbsolute=function(t){return"/"===t.charAt(0)},c.join=function(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];if(!s(n))throw new TypeError("Arguments to path.join must be strings");n&&(t+=t?"/"+n:n)}return c.normalize(t)},c.relative=function(t,e){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n+1)}t=c.resolve(t).substr(1),e=c.resolve(e).substr(1);for(var r=n(t.split("/")),o=n(e.split("/")),s=Math.min(r.length,o.length),i=s,a=0;a<s;a++)if(r[a]!==o[a]){i=a;break}var l=[];for(a=i;a<r.length;a++)l.push("..");return(l=l.concat(o.slice(i))).join("/")},c._makeLong=function(t){return t},c.dirname=function(t){var e=l(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},c.basename=function(t,e){var n=l(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},c.extname=function(t){return l(t)[3]},c.format=function(t){if(!o.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!s(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);return(t.dir?t.dir+c.sep:"")+(t.base||"")},c.parse=function(t){if(!s(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=l(t);if(!e||4!==e.length)throw new TypeError("Invalid path '"+t+"'");return e[1]=e[1]||"",e[2]=e[2]||"",e[3]=e[3]||"",{root:e[0],dir:e[0]+e[1].slice(0,e[1].length-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}},c.sep="/",c.delimiter=":",t.exports=c},10810:(t,e,n)=>{"use strict";n.d(e,{Ey:()=>F,R2:()=>nt,n2:()=>et,nY:()=>Q});var r=n(19166),o=n(63757),s=n(96763);let i;const a=t=>i=t,c=Symbol();function l(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var p;!function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"}(p||(p={}));const u="undefined"!=typeof window,h="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&u,f=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function d(t,e,n){const r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){v(r.response,e,n)},r.onerror=function(){s.error("could not download file")},r.send()}function g(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function m(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const y="object"==typeof navigator?navigator:{userAgent:""},b=(()=>/Macintosh/.test(y.userAgent)&&/AppleWebKit/.test(y.userAgent)&&!/Safari/.test(y.userAgent))(),v=u?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!b?function(t,e="download",n){const r=document.createElement("a");r.download=e,r.rel="noopener","string"==typeof t?(r.href=t,r.origin!==location.origin?g(r.href)?d(t,e,n):(r.target="_blank",m(r)):m(r)):(r.href=URL.createObjectURL(t),setTimeout((function(){URL.revokeObjectURL(r.href)}),4e4),setTimeout((function(){m(r)}),0))}:"msSaveOrOpenBlob"in y?function(t,e="download",n){if("string"==typeof t)if(g(t))d(t,e,n);else{const e=document.createElement("a");e.href=t,e.target="_blank",setTimeout((function(){m(e)}))}else navigator.msSaveOrOpenBlob(function(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return d(t,e,n);const o="application/octet-stream"===t.type,s=/constructor/i.test(String(f.HTMLElement))||"safari"in f,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||o&&s||b)&&"undefined"!=typeof FileReader){const e=new FileReader;e.onloadend=function(){let t=e.result;if("string"!=typeof t)throw r=null,new Error("Wrong reader.result type");t=i?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location.assign(t),r=null},e.readAsDataURL(t)}else{const e=URL.createObjectURL(t);r?r.location.assign(e):location.href=e,r=null,setTimeout((function(){URL.revokeObjectURL(e)}),4e4)}}:()=>{};function w(t,e){const n="🍍 "+t;"function"==typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(n,e):"error"===e?s.error(n):"warn"===e?s.warn(n):s.log(n)}function S(t){return"_a"in t&&"install"in t}function O(){if(!("clipboard"in navigator))return w("Your browser doesn't support the Clipboard API","error"),!0}function E(t){return!!(t instanceof Error&&t.message.toLowerCase().includes("document is not focused"))&&(w('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}let _;function j(t,e){for(const n in e){const r=t.state.value[n];r?Object.assign(r,e[n]):t.state.value[n]=e[n]}}function $(t){return{_custom:{display:t}}}const x="🍍 Pinia (root)",A="_root";function P(t){return S(t)?{id:A,label:x}:{id:t.$id,label:t.$id}}function M(t){return t?Array.isArray(t)?t.reduce(((t,e)=>(t.keys.push(e.key),t.operations.push(e.type),t.oldValue[e.key]=e.oldValue,t.newValue[e.key]=e.newValue,t)),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:$(t.type),key:$(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function T(t){switch(t){case p.direct:return"mutation";case p.patchFunction:case p.patchObject:return"$patch";default:return"unknown"}}let I=!0;const C=[],L="pinia:mutations",R="pinia",{assign:k}=Object,N=t=>"🍍 "+t;function W(t,e){(0,o.$q)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:C,app:t},(n=>{"function"!=typeof n.now&&w("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:L,label:"Pinia 🍍",color:15064968}),n.addInspector({id:R,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{!async function(t){if(!O())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),w("Global state copied to clipboard.")}catch(t){if(E(t))return;w("Failed to serialize the state. Check the console for more details.","error"),s.error(t)}}(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await async function(t){if(!O())try{j(t,JSON.parse(await navigator.clipboard.readText())),w("Global state pasted from clipboard.")}catch(t){if(E(t))return;w("Failed to deserialize the state from clipboard. Check the console for more details.","error"),s.error(t)}}(e),n.sendInspectorTree(R),n.sendInspectorState(R)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{!async function(t){try{v(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){w("Failed to export the state as JSON. Check the console for more details.","error"),s.error(t)}}(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await async function(t){try{const e=(_||(_=document.createElement("input"),_.type="file",_.accept=".json"),function(){return new Promise(((t,e)=>{_.onchange=async()=>{const e=_.files;if(!e)return t(null);const n=e.item(0);return t(n?{text:await n.text(),file:n}:null)},_.oncancel=()=>t(null),_.onerror=e,_.click()}))}),n=await e();if(!n)return;const{text:r,file:o}=n;j(t,JSON.parse(r)),w(`Global state imported from "${o.name}".`)}catch(t){w("Failed to import the state from JSON. Check the console for more details.","error"),s.error(t)}}(e),n.sendInspectorTree(R),n.sendInspectorState(R)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:t=>{const n=e._s.get(t);n?"function"!=typeof n.$reset?w(`Cannot reset "${t}" store because it doesn't have a "$reset" method implemented.`,"warn"):(n.$reset(),w(`Store "${t}" reset.`)):w(`Cannot reset "${t}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(((t,e)=>{const n=t.componentInstance&&t.componentInstance.proxy;if(n&&n._pStores){const e=t.componentInstance.proxy._pStores;Object.values(e).forEach((e=>{t.instanceData.state.push({type:N(e.$id),key:"state",editable:!0,value:e._isOptionsAPI?{_custom:{value:(0,r.ux)(e.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>e.$reset()}]}}:Object.keys(e.$state).reduce(((t,n)=>(t[n]=e.$state[n],t)),{})}),e._getters&&e._getters.length&&t.instanceData.state.push({type:N(e.$id),key:"getters",editable:!1,value:e._getters.reduce(((t,n)=>{try{t[n]=e[n]}catch(e){t[n]=e}return t}),{})})}))}})),n.on.getInspectorTree((n=>{if(n.app===t&&n.inspectorId===R){let t=[e];t=t.concat(Array.from(e._s.values())),n.rootNodes=(n.filter?t.filter((t=>"$id"in t?t.$id.toLowerCase().includes(n.filter.toLowerCase()):x.toLowerCase().includes(n.filter.toLowerCase()))):t).map(P)}})),n.on.getInspectorState((n=>{if(n.app===t&&n.inspectorId===R){const t=n.nodeId===A?e:e._s.get(n.nodeId);if(!t)return;t&&(n.state=function(t){if(S(t)){const e=Array.from(t._s.keys()),n=t._s,r={state:e.map((e=>({editable:!0,key:e,value:t.state.value[e]}))),getters:e.filter((t=>n.get(t)._getters)).map((t=>{const e=n.get(t);return{editable:!1,key:t,value:e._getters.reduce(((t,n)=>(t[n]=e[n],t)),{})}}))};return r}const e={state:Object.keys(t.$state).map((e=>({editable:!0,key:e,value:t.$state[e]})))};return t._getters&&t._getters.length&&(e.getters=t._getters.map((e=>({editable:!1,key:e,value:t[e]})))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map((e=>({editable:!0,key:e,value:t[e]})))),e}(t))}})),n.on.editInspectorState(((n,r)=>{if(n.app===t&&n.inspectorId===R){const t=n.nodeId===A?e:e._s.get(n.nodeId);if(!t)return w(`store "${n.nodeId}" not found`,"error");const{path:r}=n;S(t)?r.unshift("state"):1===r.length&&t._customProperties.has(r[0])&&!(r[0]in t.$state)||r.unshift("$state"),I=!1,n.set(t,r,n.state.value),I=!0}})),n.on.editComponentState((t=>{if(t.type.startsWith("🍍")){const n=t.type.replace(/^🍍\s*/,""),r=e._s.get(n);if(!r)return w(`store "${n}" not found`,"error");const{path:o}=t;if("state"!==o[0])return w(`Invalid path for store "${n}":\n${o}\nOnly state can be modified.`);o[0]="$state",I=!1,t.set(r,o,t.state.value),I=!0}}))}))}let V,U=0;function D(t,e,n){const o=e.reduce(((e,n)=>(e[n]=(0,r.ux)(t)[n],e)),{});for(const e in o)t[e]=function(){const r=U,s=n?new Proxy(t,{get:(...t)=>(V=r,Reflect.get(...t)),set:(...t)=>(V=r,Reflect.set(...t))}):t;V=r;const i=o[e].apply(s,arguments);return V=void 0,i}}function z({app:t,store:e,options:n}){if(e.$id.startsWith("__hot:"))return;e._isOptionsAPI=!!n.state,D(e,Object.keys(n.actions),e._isOptionsAPI);const s=e._hotUpdate;(0,r.ux)(e)._hotUpdate=function(t){s.apply(this,arguments),D(e,Object.keys(t._hmrPayload.actions),!!e._isOptionsAPI)},function(t,e){C.includes(N(e.$id))||C.push(N(e.$id)),(0,o.$q)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:C,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},(t=>{const n="function"==typeof t.now?t.now.bind(t):Date.now;e.$onAction((({after:r,onError:o,name:s,args:i})=>{const a=U++;t.addTimelineEvent({layerId:L,event:{time:n(),title:"🛫 "+s,subtitle:"start",data:{store:$(e.$id),action:$(s),args:i},groupId:a}}),r((r=>{V=void 0,t.addTimelineEvent({layerId:L,event:{time:n(),title:"🛬 "+s,subtitle:"end",data:{store:$(e.$id),action:$(s),args:i,result:r},groupId:a}})})),o((r=>{V=void 0,t.addTimelineEvent({layerId:L,event:{time:n(),logType:"error",title:"💥 "+s,subtitle:"end",data:{store:$(e.$id),action:$(s),args:i,error:r},groupId:a}})}))}),!0),e._customProperties.forEach((o=>{(0,r.wB)((()=>(0,r.R1)(e[o])),((e,r)=>{t.notifyComponentUpdate(),t.sendInspectorState(R),I&&t.addTimelineEvent({layerId:L,event:{time:n(),title:"Change",subtitle:o,data:{newValue:e,oldValue:r},groupId:V}})}),{deep:!0})})),e.$subscribe((({events:r,type:o},s)=>{if(t.notifyComponentUpdate(),t.sendInspectorState(R),!I)return;const i={time:n(),title:T(o),data:k({store:$(e.$id)},M(r)),groupId:V};o===p.patchFunction?i.subtitle="⤵️":o===p.patchObject?i.subtitle="🧩":r&&!Array.isArray(r)&&(i.subtitle=r.type),r&&(i.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:r}}),t.addTimelineEvent({layerId:L,event:i})}),{detached:!0,flush:"sync"});const o=e._hotUpdate;e._hotUpdate=(0,r.IG)((r=>{o(r),t.addTimelineEvent({layerId:L,event:{time:n(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:$(e.$id),info:$("HMR update")}}}),t.notifyComponentUpdate(),t.sendInspectorTree(R),t.sendInspectorState(R)}));const{$dispose:s}=e;e.$dispose=()=>{s(),t.notifyComponentUpdate(),t.sendInspectorTree(R),t.sendInspectorState(R),t.getSettings().logStoreChanges&&w(`Disposed "${e.$id}" store 🗑`)},t.notifyComponentUpdate(),t.sendInspectorTree(R),t.sendInspectorState(R),t.getSettings().logStoreChanges&&w(`"${e.$id}" store installed 🆕`)}))}(t,e)}function F(){const t=(0,r.uY)(!0),e=t.run((()=>(0,r.KR)({})));let n=[],o=[];const s=(0,r.IG)({install(t){a(s),r.LE||(s._a=t,t.provide(c,s),t.config.globalProperties.$pinia=s,h&&W(t,s),o.forEach((t=>n.push(t))),o=[])},use(t){return this._a||r.LE?n.push(t):o.push(t),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return h&&"undefined"!=typeof Proxy&&s.use(z),s}const G=()=>{};function H(t,e,n,o=G){t.push(e);const s=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),o())};return!n&&(0,r.o5)()&&(0,r.jr)(s),s}function B(t,...e){t.slice().forEach((t=>{t(...e)}))}const J=t=>t();function Z(t,e){t instanceof Map&&e instanceof Map&&e.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n],s=t[n];l(s)&&l(o)&&t.hasOwnProperty(n)&&!(0,r.i9)(o)&&!(0,r.g8)(o)?t[n]=Z(s,o):t[n]=o}return t}const q=Symbol(),Y=new WeakMap,{assign:X}=Object;function K(t,e,n={},o,s,i){let c;const u=X({actions:{}},n),f={deep:!0};let d,g,m,y=[],b=[];const v=o.state.value[t];i||v||(r.LE?(0,r.hZ)(o.state.value,t,{}):o.state.value[t]={});const w=(0,r.KR)({});let S;function O(e){let n;d=g=!1,"function"==typeof e?(e(o.state.value[t]),n={type:p.patchFunction,storeId:t,events:m}):(Z(o.state.value[t],e),n={type:p.patchObject,payload:e,storeId:t,events:m});const s=S=Symbol();(0,r.dY)().then((()=>{S===s&&(d=!0)})),g=!0,B(y,n,o.state.value[t])}const E=i?function(){const{state:t}=n,e=t?t():{};this.$patch((t=>{X(t,e)}))}:G;function _(e,n){return function(){a(o);const r=Array.from(arguments),s=[],i=[];let c;B(b,{args:r,name:e,store:x,after:function(t){s.push(t)},onError:function(t){i.push(t)}});try{c=n.apply(this&&this.$id===t?this:x,r)}catch(t){throw B(i,t),t}return c instanceof Promise?c.then((t=>(B(s,t),t))).catch((t=>(B(i,t),Promise.reject(t)))):(B(s,c),c)}}const j=(0,r.IG)({actions:{},getters:{},state:[],hotState:w}),$={_p:o,$id:t,$onAction:H.bind(null,b),$patch:O,$reset:E,$subscribe(e,n={}){const s=H(y,e,n.detached,(()=>i())),i=c.run((()=>(0,r.wB)((()=>o.state.value[t]),(r=>{("sync"===n.flush?g:d)&&e({storeId:t,type:p.direct,events:m},r)}),X({},f,n))));return s},$dispose:function(){c.stop(),y=[],b=[],o._s.delete(t)}};r.LE&&($._r=!1);const x=(0,r.Kh)(h?X({_hmrPayload:j,_customProperties:(0,r.IG)(new Set)},$):$);o._s.set(t,x);const A=(o._a&&o._a.runWithContext||J)((()=>o._e.run((()=>(c=(0,r.uY)()).run(e)))));for(const e in A){const n=A[e];if((0,r.i9)(n)&&(M=n,!(0,r.i9)(M)||!M.effect)||(0,r.g8)(n))i||(!v||(P=n,r.LE?Y.has(P):l(P)&&P.hasOwnProperty(q))||((0,r.i9)(n)?n.value=v[e]:Z(n,v[e])),r.LE?(0,r.hZ)(o.state.value[t],e,n):o.state.value[t][e]=n);else if("function"==typeof n){const t=_(e,n);r.LE?(0,r.hZ)(A,e,t):A[e]=t,u.actions[e]=n}}var P,M;if(r.LE?Object.keys(A).forEach((t=>{(0,r.hZ)(x,t,A[t])})):(X(x,A),X((0,r.ux)(x),A)),Object.defineProperty(x,"$state",{get:()=>o.state.value[t],set:t=>{O((e=>{X(e,t)}))}}),h){const t={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((e=>{Object.defineProperty(x,e,X({value:x[e]},t))}))}return r.LE&&(x._r=!0),o._p.forEach((t=>{if(h){const e=c.run((()=>t({store:x,app:o._a,pinia:o,options:u})));Object.keys(e||{}).forEach((t=>x._customProperties.add(t))),X(x,e)}else X(x,c.run((()=>t({store:x,app:o._a,pinia:o,options:u}))))})),v&&i&&n.hydrate&&n.hydrate(x.$state,v),d=!0,g=!0,x}function Q(t,e,n){let o,s;const l="function"==typeof e;function p(t,n){const p=(0,r.PS)();return(t=t||(p?(0,r.WQ)(c,null):null))&&a(t),(t=i)._s.has(o)||(l?K(o,e,s,t):function(t,e,n,o){const{state:s,actions:i,getters:c}=e,l=n.state.value[t];let p;p=K(t,(function(){l||(r.LE?(0,r.hZ)(n.state.value,t,s?s():{}):n.state.value[t]=s?s():{});const e=(0,r.QW)(n.state.value[t]);return X(e,i,Object.keys(c||{}).reduce(((e,o)=>(e[o]=(0,r.IG)((0,r.EW)((()=>{a(n);const e=n._s.get(t);if(!r.LE||e._r)return c[o].call(e,e)}))),e)),{}))}),e,n,0,!0)}(o,s,t)),t._s.get(o)}return"string"==typeof t?(o=t,s=l?n:e):(s=t,o=t.id),p.$id=o,p}let tt="Store";function et(...t){return t.reduce(((t,e)=>(t[e.$id+tt]=function(){return e(this.$pinia)},t)),{})}const nt=function(t){t.mixin({beforeCreate(){const t=this.$options;if(t.pinia){const e=t.pinia;if(!this._provided){const t={};Object.defineProperty(this,"_provided",{get:()=>t,set:e=>Object.assign(t,e)})}this._provided[c]=e,this.$pinia||(this.$pinia=e),e._a=this,u&&a(e),h&&W(e._a,e)}else!this.$pinia&&t.parent&&t.parent.$pinia&&(this.$pinia=t.parent.$pinia)},destroyed(){delete this._pStores}})}}},s={};function i(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={id:t,loaded:!1,exports:{}};return o[t].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,e=[],i.O=(t,n,r,o)=>{if(!n){var s=1/0;for(p=0;p<e.length;p++){n=e[p][0],r=e[p][1],o=e[p][2];for(var a=!0,c=0;c<n.length;c++)(!1&o||s>=o)&&Object.keys(i.O).every((t=>i.O[t](n[c])))?n.splice(c--,1):(a=!1,o<s&&(s=o));if(a){e.splice(p--,1);var l=r();void 0!==l&&(t=l)}}return t}o=o||0;for(var p=e.length;p>0&&e[p-1][2]>o;p--)e[p]=e[p-1];e[p]=[n,r,o]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.f={},i.e=t=>Promise.all(Object.keys(i.f).reduce(((e,n)=>(i.f[n](t,e),e)),[])),i.u=t=>t+"-"+t+".js?v="+{1165:"390ca4dfc085e9dd8c8c",1241:"a4187792299da984916c",2913:"1ccb2adaaea884424d3c",4473:"ad3e2d3de184247b1fb2",5528:"231caad2efb966b857ef",7462:"f766d4393558ae668569"}[t],i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},r="nextcloud:",i.l=(t,e,o,s)=>{if(n[t])n[t].push(e);else{var a,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),p=0;p<l.length;p++){var u=l[p];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==r+o){a=u;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.setAttribute("data-webpack",r+o),a.src=t),n[t]=[e];var h=(e,r)=>{a.onerror=a.onload=null,clearTimeout(f);var o=n[t];if(delete n[t],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((t=>t(r))),e)return e(r)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),c&&document.head.appendChild(a)}},i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),i.j=2122,(()=>{var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t})(),(()=>{i.b=document.baseURI||self.location.href;var t={2122:0};i.f.j=(e,n)=>{var r=i.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=t[e]=[n,o]));n.push(r[2]=o);var s=i.p+i.u(e),a=new Error;i.l(s,(n=>{if(i.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,r[1](a)}}),"chunk-"+e,e)}},i.O.j=e=>0===t[e];var e=(e,n)=>{var r,o,s=n[0],a=n[1],c=n[2],l=0;if(s.some((e=>0!==t[e]))){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);if(c)var p=c(i)}for(e&&e(n);l<s.length;l++)o=s[l],i.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return i.O(p)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),i.nc=void 0;var a=i.O(void 0,[4208],(()=>i(24167)));a=i.O(a)})(); |
Check warning
Code scanning / CodeQL
Prototype-polluting function Medium
Summary
… Action
Checklist