mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-11-14 00:07:00 +01:00
73 lines
612 KiB
JavaScript
73 lines
612 KiB
JavaScript
"use strict";(()=>{var kd=Object.defineProperty;var Ed=(e,t)=>{for(var n in t)kd(e,n,{get:t[n],enumerable:!0})};var pe=["abap","abc","actionscript","ada","alda","apache_conf","apex","applescript","aql","asciidoc","asl","assembly_x86","autohotkey","batchfile","c9search","c_cpp","cirru","clojure","cobol","coffee","coldfusion","crystal","csharp","csound_document","csound_orchestra","csound_score","csp","css","curly","d","dart","diff","django","dockerfile","dot","drools","edifact","eiffel","ejs","elixir","elm","erlang","forth","fortran","fsharp","fsl","ftl","gcode","gherkin","gitignore","glsl","gobstones","golang","graphqlschema","groovy","haml","handlebars","haskell","haskell_cabal","haxe","hjson","html","html_elixir","html_ruby","ini","io","jack","jade","java","javascript","json","json5","jsoniq","jsp","jssm","jsx","julia","kotlin","latex","less","liquid","lisp","livescript","logiql","logtalk","lsl","lua","luapage","lucene","makefile","markdown","mask","matlab","maze","mediawiki","mel","mixal","mushcode","mysql","nginx","nim","nix","nsis","nunjucks","objectivec","ocaml","pascal","perl","perl6","pgsql","php","php_laravel_blade","pig","plain_text","powershell","praat","prisma","prolog","properties","protobuf","puppet","python","qml","r","razor","rdoc","red","redshift","rhtml","rst","ruby","rust","sass","scad","scala","scheme","scss","sh","sjs","slim","smarty","snippets","soy_template","space","sparql","sql","sqlserver","stylus","svg","swift","tcl","terraform","tex","text","textile","toml","tsx","turtle","twig","typescript","vala","vbscript","velocity","verilog","vhdl","visualforce","wollok","xml","xquery","yaml","zeek"];var fe={markdown:"/script/markdown.6c8dfb7b1d.min.js",org:"/script/org.f61f262915.min.js",notebook:"/script/notebook.c3144c18ae.min.js",editor:"/script/editor.4f142d3adc.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js"};function br(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let n=new URLSearchParams(t);if([...n.keys()].length!==3||[...n.keys()].some(a=>!["clientId","intentId","token"].includes(a)))return null;let r=n.get("clientId"),s=n.get("intentId"),i=n.get("token");return!/^[a-f0-9]{32}$/.test(r||"")||!/^[a-f0-9]{32}$/.test(s||"")||!/^[a-f0-9]{64}$/.test(i||"")?null:{contract:"4open.artifacts/1",clientId:r,intentId:s,token:i}}function wr(e,t){let{http:n,promises:r,window:s}=t,i=t.takeReviewHandoff(),a=i?{clientId:i.clientId,intentId:i.intentId}:null,u,m,w,g,k,h=!0,E,S=r.defer(),v=()=>[...s.crypto.getRandomValues(new Uint8Array(16))].map(M=>M.toString(16).padStart(2,"0")).join("");Object.assign(e,{repositoryId:"",handoffEnabled:!1,busy:!1,preview:null,acceptAccess:!1,acceptRetention:!1,uncertain:!1,saved:!1,expired:!1,error:i?"":"Open a new artifact link from your submission. This link is missing or invalid."});let _=()=>h&&e.user?.username===k;function N(){h=!1,i=u=m=void 0,S.resolve(),s.clearTimeout(E)}e.on("dispose",N),e.on("routeLeave",N),e.watch(()=>e.user?.username,M=>{!k&&M?k=M:k&&M!==k&&(N(),e.preview=null,e.repositoryId="",e.busy=!1,e.saved=!1,e.handoffEnabled=!1,e.error="Your account changed. Open a new artifact link from your submission.")});let T=()=>({timeout:S.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":m}}),V=M=>M?.status===404?"Artifact linking is not available on this server.":M?.status===401?"Sign in, then open a new artifact link from your submission.":M?.status===403?"This account cannot approve this repository or this link.":"The request could not be completed. You can retry from this page.";e.loadPreview=async()=>{if(!h||!i||e.busy||e.uncertain||e.saved||!e.user?.username)return;k=e.user.username;let M=e.repositoryId.trim();if(!/^[A-Za-z0-9_-]{3,128}$/.test(M)){e.error="Enter the anonymous repository ID from its URL.";return}e.busy=!0,e.error="",e.preview=null,u=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,s.clearTimeout(E),g||(g=v());try{let q=(await n.get("/api/review-consent/csrf",{timeout:S.promise})).data;if(!_())return;if(m=q.csrf,e.handoffEnabled=q.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(m||""))throw new Error("invalid_csrf");let z=(await n.post("/api/review-consent/preview",{repositoryId:M,intent:{...i,requestId:g}},T())).data;if(!_())return;if(!z||typeof z.ticket!="string"||!z.ticket||z.ticket.length>8192||typeof z.repositoryName!="string"||!["restricted-review","anonymous-link"].includes(z.policy?.access)||!Number.isSafeInteger(z.policy.version)||!Number.isFinite(Date.parse(z.policy.retainUntil))||!Number.isFinite(Date.parse(z.expiresAt))||Date.parse(z.expiresAt)<=Date.now()||Date.parse(z.expiresAt)>Date.now()+6e5)throw new Error("invalid_preview");u=z.ticket,w=v(),e.preview={repositoryName:z.repositoryName,policy:{...z.policy},expiresAt:z.expiresAt},E=s.setTimeout(()=>{h&&(e.expired=!0)},Math.max(0,Date.parse(z.expiresAt)-Date.now()))}catch(q){_()&&(e.error=V(q))}finally{_()&&(e.busy=!1)}},e.confirmConsent=async()=>{if(!(!_()||e.busy||e.saved||!u||!e.acceptAccess||!e.acceptRetention)){if(Date.parse(e.preview.expiresAt)<=Date.now()){e.expired=!0;return}e.busy=!0,e.error="";try{let M=(await n.post("/api/review-consent/confirm",{ticket:u,requestId:w,acceptAccess:!0,acceptRetention:!0},T())).data;if(!_())return;if(M?.requestId!==w||!Number.isFinite(Date.parse(M.confirmedAt)))throw new Error("invalid_receipt");e.saved=!0,e.uncertain=!1,i=void 0,e.handoffEnabled||(u=void 0)}catch{_()&&(e.uncertain=!0,e.error="The confirmation was not verified. Retry with the same approval, or return to your submission to check its status.")}finally{_()&&(e.busy=!1)}}},e.continueReview=async()=>{if(!_()||e.busy||!e.saved||!e.handoffEnabled||!u||!a)return;e.busy=!0,e.error="";let M,q=()=>{M?.remove(),s.removeEventListener("securitypolicyviolation",z)},z=ne=>{ne.violatedDirective?.startsWith("form-action")&&(q(),_()&&(e.busy=!1,e.error="The return address was blocked. Return to your submission to check the artifact status."))};try{let ne=(await n.post("/api/review-consent/handoff",{ticket:u},T())).data;if(!_())return;let ee=ne?.completion,C=new URL(ne?.callbackUrl);if(!ee||Object.keys(ee).sort().join(",")!=="clientId,code,contract,expiresAt,intentId"||ee.contract!=="4open.artifacts/1"||ee.clientId!==a.clientId||ee.intentId!==a.intentId||!/^[a-f0-9]{64}$/.test(ee.code||"")||!Number.isFinite(Date.parse(ee.expiresAt))||Date.parse(ee.expiresAt)<=Date.now()||Date.parse(ee.expiresAt)>Date.now()+3e5||C.protocol!=="https:"||C.href!==ne.callbackUrl||C.username||C.password||ne.callbackUrl.includes("?")||ne.callbackUrl.includes("#"))throw new Error("invalid_handoff");M=s.document.createElement("form"),M.method="POST",M.action=C.href;let P=s.document.createElement("input");P.type="hidden",P.name="completion",P.value=JSON.stringify(ee),M.appendChild(P),s.document.body.appendChild(M),s.addEventListener("securitypolicyviolation",z),e.on("dispose",q),M.submit()}catch{q(),_()&&(e.busy=!1,e.error="The return to review could not be prepared. Retry from this page, or return to your submission to check its status.")}}}var gn=new Map,Sd=fe;function oo(e){if(!gn.has(e)){let t=document.createElement("script");t.src=Sd[e];let n=new Promise((r,s)=>{t.onload=r,t.onerror=()=>{gn.delete(e),t.remove(),s(new Error(`Unable to load ${e}. Please retry.`))}});gn.set(e,n),document.head.appendChild(t)}return gn.get(e)}async function kr(){await oo("editor"),ace.config.set("basePath","/script/external/ace/")}function vo(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return n=>n in t}var Ae={},xt=[],it=()=>{},us=()=>!1,yo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),go=e=>e.startsWith("onUpdate:"),je=Object.assign,qo=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},Nd=Object.prototype.hasOwnProperty,Ne=(e,t)=>Nd.call(e,t),me=Array.isArray,Bt=e=>Mo(e)==="[object Map]",Et=e=>Mo(e)==="[object Set]",Er=e=>Mo(e)==="[object Date]";var ge=e=>typeof e=="function",Le=e=>typeof e=="string",ft=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",cs=e=>(De(e)||ge(e))&&ge(e.then)&&ge(e.catch),Nr=Object.prototype.toString,Mo=e=>Nr.call(e),ps=e=>Mo(e).slice(8,-1),bn=e=>Mo(e)==="[object Object]",wn=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bo=vo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var kn=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Rd=/-\w/g,Ye=kn(e=>e.replace(Rd,t=>t.slice(1).toUpperCase())),Dd=/\B([A-Z])/g,At=kn(e=>e.replace(Dd,"-$1").toLowerCase()),no=kn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Uo=kn(e=>e?`on${no(e)}`:""),yt=(e,t)=>!Object.is(e,t),wo=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},En=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ko=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var Cr,$o=()=>Cr||(Cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ie(e){if(me(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],s=Le(r)?Id(r):Ie(r);if(s)for(let i in s)t[i]=s[i]}return t}else if(Le(e)||De(e))return e}var Td=/;(?![^(]*\))/g,Ad=/:([^]+)/,Od=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function Id(e){let t={};return e.replace(Od,n=>n.startsWith("/*")?"":n).split(Td).forEach(n=>{if(n){let r=n.split(Ad);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function A(e){let t="";if(Le(e))t=e;else if(me(e))for(let n=0;n<e.length;n++){let r=A(e[n]);r&&(t+=r+" ")}else if(De(e))for(let n in e)e[n]&&(t+=n+" ");return t.trim()}var Rr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly",Dr=vo(Rr),Pd=vo(Rr+",async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Cn(e){return!!e||e===""}function Vd(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let s=0;r&&s<e.length;s++)r=Ct(e[s],t[s],n);return r}function _r(e,t,n){if(e.size!==t.size)return!1;let r=Array.from(t),s=new Uint8Array(r.length);for(let i of e){let a=-1;for(let u=0;u<r.length;u++)if(!s[u]&&Ct(i,r[u],n)){a=u;break}if(a<0)return!1;s[a]=1}return!0}function qd(e,t,n){let r=Bt(e),s=Bt(t);if(r||s||(r=Et(e),s=Et(t),r||s))return r&&s?_r(e,t,n):!1;let i=Object.keys(e).length,a=Object.keys(t).length;if(i!==a)return!1;for(let u in e){let m=e.hasOwnProperty(u),w=t.hasOwnProperty(u);if(m&&!w||!m&&w||!Ct(e[u],t[u],n))return!1}return String(e)===String(t)}function Sr(e,t,n,r){n||(n=[new Map,new Map]);let[s,i]=n;if(s.has(e)||i.has(t))return s.get(e)===t&&i.get(t)===e;s.set(e,t),i.set(t,e);let a=r(e,t,n);return s.delete(e),i.delete(t),a}function Ct(e,t,n){if(e===t)return!0;let r=Er(e),s=Er(t);return r||s?r&&s?e.getTime()===t.getTime():!1:(r=ft(e),s=ft(t),r||s?e===t:(r=me(e),s=me(t),r||s?r&&s?Sr(e,t,n,Vd):!1:(r=De(e),s=De(t),r||s?!r||!s?!1:Sr(e,t,n,qd):String(e)===String(t))))}function _n(e,t){return e.findIndex(n=>Ct(n,t))}var Tr=e=>!!(e&&e.__v_isRef===!0),c=e=>Le(e)?e:e==null?"":me(e)||De(e)&&(e.toString===Nr||!ge(e.toString))?Tr(e)?c(e.value):JSON.stringify(e,Ar,2):String(e),Ar=(e,t)=>Tr(t)?Ar(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[ds(r,i)+" =>"]=s,n),{})}:Et(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ds(n))}:ft(t)?ds(t):De(t)&&!me(t)&&!bn(t)?String(t):t,ds=(e,t="")=>{var n;return ft(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Md(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Je,Ho=class{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Je&&(Je.active?(this.parent=Je,this.index=(Je.scopes||(Je.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){let r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){let s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}let r=this.effects.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}}run(t){if(this._active){let n=Je;try{return Je=this,t()}finally{Je=n}}}on(){++this._on===1&&(this.prevScope=Je,Je=this)}off(){if(this._on>0&&--this._on===0){if(Je===this)Je=this.prevScope;else{let t=Je;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){let s=this.scopes.slice();for(n=0,r=s.length;n<r;n++)s[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){let s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}};function Vr(){return Je}function Wo(e,t=!1){Je&&Je.cleanups.push(e)}var $e;var fs=new WeakSet,Co=class{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Je&&(Je.active?Je.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,fs.has(this)&&(fs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Mr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Or(this),Ur(this);let t=$e,n=_t;$e=this,_t=!0;try{return this.fn()}finally{$r(this),$e=t,_t=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ns(t);this.deps=this.depsTail=void 0,Or(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?fs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){vs(this)&&this.run()}get dirty(){return vs(this)}},qr=0,Fo,zo;function Mr(e,t=!1){if(e.flags|=8,t){e.next=zo,zo=e;return}e.next=Fo,Fo=e}function _s(){qr++}function Ss(){if(--qr>0)return;if(zo){let t=zo;for(zo=void 0;t;){let n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Fo;){let t=Fo;for(Fo=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ur(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $r(e){let t,n=e.depsTail,r=n;for(;r;){let s=r.prevDep;r.version===-1?(r===n&&(n=s),Ns(r),Ud(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Lr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Lr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bo)||(e.globalVersion=Bo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!vs(e))))return;e.flags|=2;let t=e.dep,n=$e,r=_t;$e=e,_t=!0;try{Ur(e);let s=e.fn(e._value);(t.version===0||yt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{$e=n,_t=r,$r(e),e.flags&=-3}}function Ns(e,t=!1){let{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ns(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ud(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var _t=!0,Fr=[];function St(){Fr.push(_t),_t=!1}function Nt(){let e=Fr.pop();_t=e===void 0?!0:e}function Or(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let n=$e;$e=void 0;try{t()}finally{$e=n}}}var Bo=0,ys=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},jo=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!$e||!_t||$e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$e)n=this.activeLink=new ys($e,this),$e.deps?(n.prevDep=$e.depsTail,$e.depsTail.nextDep=n,$e.depsTail=n):$e.deps=$e.depsTail=n,zr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){let r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=$e.depsTail,n.nextDep=void 0,$e.depsTail.nextDep=n,$e.depsTail=n,$e.deps===n&&($e.deps=r)}return n}trigger(t){this.version++,Bo++,this.notify(t)}notify(t){_s();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ss()}}};function zr(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)zr(r)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var gs=new WeakMap,ro=Symbol(""),bs=Symbol(""),Go=Symbol("");function Ze(e,t,n){if(_t&&$e){let r=gs.get(e);r||gs.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new jo),s.map=r,s.key=n),s.track()}}function It(e,t,n,r,s,i){let a=gs.get(e);if(!a){Bo++;return}let u=m=>{m&&m.trigger()};if(_s(),t==="clear")a.forEach(u);else{let m=me(e),w=m&&wn(n);if(m&&n==="length"){let g=Number(r);a.forEach((k,h)=>{(h==="length"||h===Go||!ft(h)&&h>=g)&&u(k)})}else switch((n!==void 0||a.has(void 0))&&u(a.get(n)),w&&u(a.get(Go)),t){case"add":m?w&&u(a.get("length")):(u(a.get(ro)),Bt(e)&&u(a.get(bs)));break;case"delete":m||(u(a.get(ro)),Bt(e)&&u(a.get(bs)));break;case"set":Bt(e)&&u(a.get(ro));break}}Ss()}function Eo(e){let t=Re(e);return t===e||(Ze(t,"iterate",Go),at(e))?t:gt(e)?Vt(e)?t.map(n=>Gt(mt(n))):t.map(Gt):t.map(mt)}function Ko(e){return Ze(e=Re(e),"iterate",Go),e}function Ot(e,t){return gt(e)?Gt(Vt(e)?mt(t):t):mt(t)}var $d={__proto__:null,[Symbol.iterator](){return ms(this,Symbol.iterator,e=>Ot(this,e))},concat(...e){return Eo(this).concat(...e.map(t=>me(t)?Eo(t):t))},entries(){return ms(this,"entries",e=>(e[1]=Ot(this,e[1]),e))},every(e,t){return jt(this,"every",e,t,void 0,arguments)},filter(e,t){return jt(this,"filter",e,t,n=>n.map(r=>Ot(this,r)),arguments)},find(e,t){return jt(this,"find",e,t,n=>Ot(this,n),arguments)},findIndex(e,t){return jt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jt(this,"findLast",e,t,n=>Ot(this,n),arguments)},findLastIndex(e,t){return jt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jt(this,"forEach",e,t,void 0,arguments)},includes(...e){return hs(this,"includes",e)},indexOf(...e){return hs(this,"indexOf",e)},join(e){return Eo(this).join(e)},lastIndexOf(...e){return hs(this,"lastIndexOf",e)},map(e,t){return jt(this,"map",e,t,void 0,arguments)},pop(){return Lo(this,"pop")},push(...e){return Lo(this,"push",e)},reduce(e,...t){return Pr(this,"reduce",e,t)},reduceRight(e,...t){return Pr(this,"reduceRight",e,t)},shift(){return Lo(this,"shift")},some(e,t){return jt(this,"some",e,t,void 0,arguments)},splice(...e){return Lo(this,"splice",e)},toReversed(){return Eo(this).toReversed()},toSorted(e){return Eo(this).toSorted(e)},toSpliced(...e){return Eo(this).toSpliced(...e)},unshift(...e){return Lo(this,"unshift",e)},values(){return ms(this,"values",e=>Ot(this,e))}};function ms(e,t,n){let r=Ko(e),s=r[t],i=s.call(r);if(r!==e&&!at(e)){if(i[Symbol.toStringTag]==="Array Iterator"){let a=Object.create(Object.getPrototypeOf(i));return a.next=()=>Ir(i.next(),n),s!==Hr[t]&&Object.defineProperties(a,{return:{get(){let u=i.return;return typeof u=="function"?u.bind(i):u}},throw:{get(){let u=i.throw;return typeof u=="function"?u.bind(i):u}}}),a}i._next=i.next,i.next=()=>Ir(i._next(),n)}return i}function Ir(e,t){return e.done||(e.value=t(e.value)),e}var Hr=Array.prototype;function jt(e,t,n,r,s,i){let a=Ko(e),u=a!==e&&!at(e),m=a[t];if(m!==Hr[t]){let k=m.apply(e,i);return u?mt(k):k}let w=n;a!==e&&(u?w=function(k,h){return n.call(this,Ot(e,k),h,e)}:n.length>2&&(w=function(k,h){return n.call(this,k,h,e)}));let g=m.call(a,w,r);return u&&s?s(g):g}function Pr(e,t,n,r){let s=Ko(e),i=s!==e&&!at(e),a=n,u=!1;s!==e&&(i?(u=r.length===0,a=function(w,g,k){return u&&(u=!1,w=Ot(e,w)),n.call(this,w,Ot(e,g),k,e)}):n.length>3&&(a=function(w,g,k){return n.call(this,w,g,k,e)}));let m=s[t](a,...r);return u?Ot(e,m):m}function hs(e,t,n){let r=Re(e);Ze(r,"iterate",Go);let s=r[t](...n);return(s===-1||s===!1)&&Jo(n[0])?(n[0]=Re(n[0]),r[t](...n)):s}function Lo(e,t,n=[]){St(),_s();let r=Re(e)[t].apply(e,n);return Ss(),Nt(),r}var Ld=vo("__proto__,__v_isRef,__isVue"),Br=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ft));function Fd(e){ft(e)||(e=String(e));let t=Re(this);return Ze(t,"has",e),t.hasOwnProperty(e)}var Dn=class{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;let s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Jd:Wr:i?Gr:jr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;let a=me(t);if(!s){let m;if(a&&(m=$d[n]))return m;if(n==="hasOwnProperty")return Fd}let u=Reflect.get(t,n,Xe(t)?t:r);if((ft(n)?Br.has(n):Ld(n))||(s||Ze(t,"get",n),i))return u;if(Xe(u)){let m=a&&wn(n)?u:u.value;return s&&De(m)?An(m):m}return De(u)?s?An(u):Fe(u):u}},Tn=class extends Dn{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n],a=me(t)&&wn(n);if(!this._isShallow){let w=gt(i);if(!at(r)&&!gt(r)&&(i=Re(i),r=Re(r)),!a&&Xe(i)&&!Xe(r))return w||(i.value=r),!0}let u=a?Number(n)<t.length:Ne(t,n),m=Reflect.set(t,n,r,Xe(t)?t:s);return t===Re(s)&&m&&(u?yt(r,i)&&It(t,"set",n,r,i):It(t,"add",n,r)),m}deleteProperty(t,n){let r=Ne(t,n),s=t[n],i=Reflect.deleteProperty(t,n);return i&&r&&It(t,"delete",n,void 0,s),i}has(t,n){let r=Reflect.has(t,n);return(!ft(n)||!Br.has(n))&&Ze(t,"has",n),r}ownKeys(t){return Ze(t,"iterate",me(t)?"length":ro),Reflect.ownKeys(t)}},ws=class extends Dn{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}},zd=new Tn,Hd=new ws,Bd=new Tn(!0);var ks=e=>e,Sn=e=>Reflect.getPrototypeOf(e);function jd(e,t,n){return function(...r){let s=this.__v_raw,i=Re(s),a=Bt(i),u=e==="entries"||e===Symbol.iterator&&a,m=e==="keys"&&a,w=s[e](...r),g=n?ks:t?Gt:mt;return!t&&Ze(i,"iterate",m?bs:ro),je(Object.create(w),{next(){let{value:k,done:h}=w.next();return h?{value:k,done:h}:{value:u?[g(k[0]),g(k[1])]:g(k),done:h}}})}}function Nn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Gd(e,t){let n={get(s){let i=this.__v_raw,a=Re(i),u=Re(s);e||(yt(s,u)&&Ze(a,"get",s),Ze(a,"get",u));let{has:m}=Sn(a),w=t?ks:e?Gt:mt;if(m.call(a,s))return w(i.get(s));if(m.call(a,u))return w(i.get(u));i!==a&&i.get(s)},get size(){let s=this.__v_raw;return!e&&Ze(Re(s),"iterate",ro),s.size},has(s){let i=this.__v_raw,a=Re(i),u=Re(s);return e||(yt(s,u)&&Ze(a,"has",s),Ze(a,"has",u)),s===u?i.has(s):i.has(s)||i.has(u)},forEach(s,i){let a=this,u=a.__v_raw,m=Re(u),w=t?ks:e?Gt:mt;return!e&&Ze(m,"iterate",ro),u.forEach((g,k)=>s.call(i,w(g),w(k),a))}};return je(n,e?{add:Nn("add"),set:Nn("set"),delete:Nn("delete"),clear:Nn("clear")}:{add(s){let i=Re(this),a=Sn(i),u=Re(s),m=!t&&!at(s)&&!gt(s)?u:s;return a.has.call(i,m)||yt(s,m)&&a.has.call(i,s)||yt(u,m)&&a.has.call(i,u)||(i.add(m),It(i,"add",m,m)),this},set(s,i){!t&&!at(i)&&!gt(i)&&(i=Re(i));let a=Re(this),{has:u,get:m}=Sn(a),w=u.call(a,s);w||(s=Re(s),w=u.call(a,s));let g=m.call(a,s);return a.set(s,i),w?yt(i,g)&&It(a,"set",s,i,g):It(a,"add",s,i),this},delete(s){let i=Re(this),{has:a,get:u}=Sn(i),m=a.call(i,s);m||(s=Re(s),m=a.call(i,s));let w=u?u.call(i,s):void 0,g=i.delete(s);return m&&It(i,"delete",s,void 0,w),g},clear(){let s=Re(this),i=s.size!==0,a=void 0,u=s.clear();return i&&It(s,"clear",void 0,void 0,a),u}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=jd(s,e,t)}),n}function Rs(e,t){let n=Gd(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_isShallow"?t:s==="__v_raw"?r:Reflect.get(Ne(n,s)&&s in r?n:r,s,i)}var Wd={get:Rs(!1,!1)},Kd={get:Rs(!1,!0)},Yd={get:Rs(!0,!1)};var jr=new WeakMap,Gr=new WeakMap,Wr=new WeakMap,Jd=new WeakMap;function Qd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fe(e){return gt(e)?e:Ds(e,!1,zd,Wd,jr)}function Yo(e){return Ds(e,!1,Bd,Kd,Gr)}function An(e){return Ds(e,!0,Hd,Yd,Wr)}function Ds(e,t,n,r,s){if(!De(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let i=s.get(e);if(i)return i;let a=Qd(ps(e));if(a===0)return e;let u=new Proxy(e,a===2?r:n);return s.set(e,u),u}function Vt(e){return gt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function gt(e){return!!(e&&e.__v_isReadonly)}function at(e){return!!(e&&e.__v_isShallow)}function Jo(e){return e?!!e.__v_raw:!1}function Re(e){let t=e&&e.__v_raw;return t?Re(t):e}function Ts(e){return!Ne(e,"__v_skip")&&Object.isExtensible(e)&&En(e,"__v_skip",!0),e}var mt=e=>De(e)?Fe(e):e,Gt=e=>De(e)?An(e):e;function Xe(e){return e?e.__v_isRef===!0:!1}function xe(e){return Kr(e,!1)}function In(e){return Kr(e,!0)}function Kr(e,t){return Xe(e)?e:new Es(e,t)}var Es=class{constructor(t,n){this.dep=new jo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Re(t),this._value=n?t:mt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){let n=this._rawValue,r=this.__v_isShallow||at(t)||gt(t);t=r?t:Re(t),yt(t,n)&&(this._rawValue=t,this._value=r?t:mt(t),this.dep.trigger())}};function Wt(e){return Xe(e)?e.value:e}var Xd={get:(e,t,n)=>t==="__v_raw"?e:Wt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let s=e[t];return Xe(s)&&!Xe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Pn(e){return Vt(e)?e:new Proxy(e,Xd)}var Cs=class{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new jo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&$e!==this)return Mr(this,!0),!0}get value(){let t=this.dep.track();return Lr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function Yr(e,t,n=!1){let r,s;return ge(e)?r=e:(r=e.get,s=e.set),new Cs(r,s,n)}var Rn={},On=new WeakMap,so;function Jr(e,t=!1,n=so){if(n){let r=On.get(n);r||On.set(n,r=[]),r.push(e)}}function Qr(e,t,n=Ae){let{immediate:r,deep:s,once:i,scheduler:a,augmentJob:u,call:m}=n,w=q=>{(n.onWarn||Md)("Invalid watch source: ",q,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},g=q=>s?q:at(q)||s===!1||s===0?Pt(q,1):Pt(q),k,h,E,S,v=!1,_=!1;if(Xe(e)?(h=()=>e.value,v=at(e)):Vt(e)?(h=()=>g(e),v=!0):me(e)?(_=!0,v=e.some(q=>Vt(q)||at(q)),h=()=>e.map(q=>{if(Xe(q))return q.value;if(Vt(q))return g(q);if(ge(q))return m?m(q,2):q()})):ge(e)?t?h=m?()=>m(e,2):e:h=()=>{if(E){St();try{E()}finally{Nt()}}let q=so;so=k;try{return m?m(e,3,[S]):e(S)}finally{so=q}}:h=it,t&&s){let q=h,z=s===!0?1/0:s;h=()=>Pt(q(),z)}let N=Vr(),T=()=>{k.stop(),N&&N.active&&qo(N.effects,k)};if(i&&t){let q=t;t=(...z)=>{try{return q(...z)}finally{T()}}}let V=_?new Array(e.length).fill(Rn):Rn,M=q=>{if(!(!(k.flags&1)||!k.dirty&&!q))if(t){let z=k.run();if(q||s||v||(_?z.some((ne,ee)=>yt(ne,V[ee])):yt(z,V))){let ne=so;St();try{E&&E(),so=k;let ee=[z,V===Rn?void 0:_&&V[0]===Rn?[]:V,S];V=z,m?m(t,3,ee):t(...ee)}finally{so=ne,Nt()}}}else k.run()};return u&&u(M),k=new Co(h),k.scheduler=a?()=>a(M,!1):M,S=q=>Jr(q,!1,k),E=k.onStop=()=>{let q=On.get(k);if(q){if(m)m(q,4);else for(let z of q)z();On.delete(k)}},t?r?M(!0):V=k.run():a?a(M.bind(null,!0),!0):k.run(),T.pause=k.pause.bind(k),T.resume=k.resume.bind(k),T.stop=T,T}function Pt(e,t=1/0,n){if(t<=0||!De(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Xe(e))Pt(e.value,t,n);else if(me(e))for(let r=0;r<e.length;r++)Pt(e[r],t,n);else if(Et(e)||Bt(e))e.forEach(r=>{Pt(r,t,n)});else if(bn(e)){for(let r in e)Pt(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Pt(e[r],t,n)}return e}function ln(e,t,n,r){try{return r?e(...r):e()}catch(s){dn(s,t,n)}}function bt(e,t,n,r){if(ge(e)){let s=ln(e,t,n,r);return s&&cs(s)&&s.catch(i=>{dn(i,t,n)}),s}if(me(e)){let s=[];for(let i=0;i<e.length;i++)s.push(bt(e[i],t,n,r));return s}}function dn(e,t,n,r=!0){let s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Ae;if(t){let u=t.parent,m=t.proxy,w=`https://vuejs.org/error-reference/#runtime-${n}`;for(;u;){let g=u.ec;if(g){for(let k=0;k<g.length;k++)if(g[k](e,m,w)===!1)return}u=u.parent}if(i){St(),ln(i,null,10,[e,m,w]),Nt();return}}tu(e,n,s,r,a)}function tu(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}var st=[],Rt=-1,Mt=[],eo=null,_o=0,pi=Promise.resolve(),Mn=null;function ot(e){let t=Mn||pi;return e?t.then(this?e.bind(this):e):t}function ou(e){let t=Rt+1,n=st.length;for(;t<n;){let r=t+n>>>1,s=st[r],i=on(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function zs(e){if(!(e.flags&1)){let t=on(e),n=st[st.length-1];!n||!(e.flags&2)&&t>=on(n)?st.push(e):st.splice(ou(t),0,e),e.flags|=1,fi()}}function fi(){Mn||(Mn=pi.then(yi))}function mi(e){if(!me(e))eo&&e.id===-1?eo.splice(_o+1,0,e):e.flags&1||(Mt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Mt.push(e[t]);fi()}function hi(e,t,n,r=Rt+1){for(;r<st.length;r++){let s=st[r];if(s&&s.flags&2){if(e&&s.id!==e.uid||t!==void 0&&!(s.id>=t))continue;st.splice(r,1),r=e?r-1:Rt,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function vi(e,t,n=0){if(Mt.length){let r=Mt,s=0;if(t){r=[];for(let a=0;a<Mt.length;a++){let u=Mt[a];(u.i!==void 0?!u.i||u.i.uid<n:t.has(u))?Mt[s++]=u:r.push(u)}}let i=[...new Set(r)].sort((a,u)=>on(a)-on(u));if(Mt.length=s,eo){for(let a=0;a<i.length;a++)eo.push(i[a]);return}for(eo=i,_o=0;_o<eo.length;_o++){let a=eo[_o];a.flags&4&&(a.flags&=-2),a.flags&8||a(),a.flags&=-2}eo=null,_o=0}}var As=!1;function nu(e,t){if(As){e();return}let n=t===void 0?void 0:new Set(Mt);e(),As=!0;try{hi(void 0,t),vi(void 0,n,t)}finally{As=!1}}var on=e=>e.id==null?e.flags&2?-1:1/0:e.id;function yi(e){let t=it;try{for(Rt=0;Rt<st.length;Rt++){let n=st[Rt];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),ln(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;Rt<st.length;Rt++){let n=st[Rt];n&&(n.flags&=-2)}Rt=-1,st.length=0,vi(e),Mn=null,(st.length||Mt.length)&&yi(e)}}var ht=null,gi=null;function Un(e){let t=ht;return ht=e,gi=e&&e.type.__scopeId||null,t}function su(e,t=ht,n){if(!t||e._n)return e;let r=(...s)=>{r._d&&Fn(-1);let i=Un(t),a=lo.length,u;try{u=e(...s)}finally{for(let m=lo.length;m>a;m--)Ki();Un(i),r._d&&Fn(1)}return u};return r._n=!0,r._c=!0,r._d=!0,r}function R(e,t){if(ht===null)return e;let n=Yn(ht),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,a,u,m=Ae]=t[s];i&&(ge(i)&&(i={mounted:i,updated:i}),i.deep&&Pt(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:u,modifiers:m}))}return e}function io(e,t,n,r){let s=e.dirs,i=t&&t.dirs;for(let a=0;a<s.length;a++){let u=s[a];i&&(u.oldValue=i[a].value);let m=u.dir[r];m&&(St(),bt(m,n,8,[e.el,u,e,t]),Nt())}}function uo(e,t){if(et){let n=et.provides,r=et.parent&&et.parent.provides;r===n&&(n=et.provides=Object.create(r)),n[e]=t}}function dt(e,t,n=!1){let r=Ws();if(r||So){let s=So?So._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ge(t)?t.call(r&&r.proxy):t}}var ru=Symbol.for("v-scx"),iu=()=>{{let e=dt(ru);return e}};function He(e,t,n){return bi(e,t,n)}function bi(e,t,n=Ae){let{immediate:r,deep:s,flush:i,once:a}=n,u=je({},n),m=t&&r||!t&&i!=="post",w;if(Ro){if(i==="sync"){let E=iu();w=E.__watcherHandles||(E.__watcherHandles=[])}else if(!m){let E=()=>{};return E.stop=it,E.resume=it,E.pause=it,E}}let g=et;u.call=(E,S,v)=>bt(E,g,S,v);let k=!1;i==="post"?u.scheduler=E=>{E.i=g,lt(E,g&&g.suspense)}:i!=="sync"&&(k=!0,u.scheduler=(E,S)=>{S?E():zs(E)}),u.augmentJob=E=>{t&&(E.flags|=4),k&&(E.flags|=2,g&&(E.id=g.uid,E.i=g))};let h=Qr(e,t,u);return Ro&&(w?w.push(h):m&&h()),h}function au(e,t,n){let r=this.proxy,s=Le(e)?e.includes(".")?wi(r,e):()=>r[e]:e.bind(r,r),i;ge(t)?i=t:(i=t.handler,n=t);let a=pn(this),u=bi(s,i.bind(r),n);return a(),u}function wi(e,t){let n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}var lu=Symbol("_vte"),Bn=e=>e.__isTeleport;var Os=Symbol("_leaveCb");function du(e){let t=e[0];if(e.length>1){let n=!1;for(let r of e)if(r.type!==Dt){t=r,n=!0;break}}return t}function ki(e){if(!jn(e))return Bn(e.type)&&e.children?du(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ge(n.default))return n.default()}}function nn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;nn(Bn(n.type)&&ki(n)||n,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===W&&me(e.children)){let n=Pi(e.children,!1);n&&nn(n,t)}}function qs(e){if(e.component)return qs(e.component.subTree);if(e.type===W){let t=me(e.children)&&Pi(e.children,!1);return t?qs(t):void 0}if(e.type!==Dt)return e}function un(e,t){return ge(e)?je({name:e.name},t,{setup:e}):e}function Hs(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Xr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var $n=new WeakMap;function Zo(e,t,n,r,s=!1){if(me(e)){e.forEach((v,_)=>Zo(v,t&&(me(t)?t[_]:t),n,r,s));return}if(xo(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Zo(e,t,n,r.component.subTree);return}let i=r.shapeFlag&4?Yn(r.component):r.el,a=s?null:i,{i:u,r:m}=e,w=t&&t.r,g=u.refs===Ae?u.refs={}:u.refs,k=u.setupState,h=Re(k),E=k===Ae?us:v=>Xr(g,v)?!1:Ne(h,v),S=(v,_)=>!(_&&Xr(g,_));if(w!=null&&w!==m){if(Zr(t),Le(w))g[w]=null,E(w)&&(k[w]=null);else if(Xe(w)){let v=t;S(w,v.k)&&(w.value=null),v.k&&(g[v.k]=null)}}if(ge(m))ln(m,u,12,[a,g]);else{let v=Le(m),_=Xe(m);if(v||_){let N=()=>{if(e.f){let T=v?E(m)?k[m]:g[m]:S(m)||!e.k?m.value:g[e.k];if(s)me(T)&&qo(T,i);else if(me(T))T.includes(i)||T.push(i);else if(v)g[m]=[i],E(m)&&(k[m]=g[m]);else{let V=[i];S(m,e.k)&&(m.value=V),e.k&&(g[e.k]=V)}}else v?(g[m]=a,E(m)&&(k[m]=a)):_&&(S(m,e.k)&&(m.value=a),e.k&&(g[e.k]=a))};if(a){let T=()=>{N(),$n.delete(e)};T.id=-1,$n.set(e,T),lt(T,n)}else Zr(e),N()}}}function Zr(e){let t=$n.get(e);t&&(t.flags|=8,$n.delete(e))}var xr=e=>e.nodeType===8;var NU=$o().requestIdleCallback||(e=>setTimeout(e,1)),RU=$o().cancelIdleCallback||(e=>clearTimeout(e));function uu(e,t){if(xr(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(xr(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}var xo=e=>!!e.type.__asyncLoader;function Ei(e){ge(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:a,suspensible:u=!0,onError:m}=e,w=null,g,k=0,h=()=>(k++,w=null,E()),E=()=>{let S;return w||(S=w=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),m)return new Promise((_,N)=>{m(v,()=>_(h()),()=>N(v),k+1)});throw v}).then(v=>S!==w&&w?w:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),g=v,v)))};return un({name:"AsyncComponentWrapper",__asyncLoader:E,__asyncHydrate(S,v,_){let N=S.isConnected,T=!1;(v.bu||(v.bu=[])).push(()=>T=!0);let V=()=>{T||!S.parentNode||N&&!S.isConnected||_()},M=i?()=>{let q=i(V,z=>uu(S,z));q&&(v.bum||(v.bum=[])).push(q)}:V;g?M():E().then(()=>!v.isUnmounted&&M())},get __asyncResolved(){return g},setup(){let S=et;if(Hs(S),g)return()=>Vn(g,S);let v=q=>{w=null,dn(q,S,13,!r)};if(u&&S.suspense||Ro)return E().then(q=>()=>Vn(q,S)).catch(q=>(v(q),()=>r?Ce(r,{error:q}):null));let _=xe(!1),N=xe(),T=xe(!!s),V,M;return cn(()=>{V!=null&&clearTimeout(V),M!=null&&clearTimeout(M)}),s&&(M=setTimeout(()=>{S.isUnmounted||(T.value=!1)},s)),a!=null&&(V=setTimeout(()=>{if(!S.isUnmounted&&!_.value&&!N.value){let q=new Error(`Async component timed out after ${a}ms.`);v(q),N.value=q}},a)),E().then(()=>{S.isUnmounted||(_.value=!0,S.parent&&jn(S.parent.vnode)&&S.parent.update())}).catch(q=>{if(S.isUnmounted){w=null;return}v(q),N.value=q}),()=>{if(_.value&&g)return Vn(g,S);if(N.value&&r)return Ce(r,{error:N.value});if(n&&!T.value)return Vn(n,S)}}})}function Vn(e,t){let{ref:n,props:r,children:s,ce:i}=t.vnode,a=Ce(e,r,s);return a.ref=n,a.ce=i,delete t.vnode.ce,a}var jn=e=>e.type.__isKeepAlive;function Ci(e,t){Si(e,"a",t)}function _i(e,t){Si(e,"da",t)}function Si(e,t,n=et){let r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Gn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)jn(s.parent.vnode)&&cu(r,t,n,s),s=s.parent}}function cu(e,t,n,r){let s=Gn(t,e,r,!0);cn(()=>{qo(r[t],s)},n)}function Gn(e,t,n=et,r=!1){if(n){let s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{St();let u=pn(n),m=bt(t,n,e,a);return u(),Nt(),m});return r?s.unshift(i):s.push(i),i}}var Yt=e=>(t,n=et)=>{(!Ro||e==="sp")&&Gn(e,(...r)=>t(...r),n)},pu=Yt("bm"),$t=Yt("m"),Ni=Yt("bu"),Ri=Yt("u"),co=Yt("bum"),cn=Yt("um"),fu=Yt("sp"),mu=Yt("rtg"),hu=Yt("rtc");function vu(e,t=et){Gn("ec",e,t)}var Di="components",yu="directives";function Ge(e,t){return Ti(Di,e,!0,t)||e}var gu=Symbol.for("v-ndc");function ve(e){return Ti(yu,e)}function Ti(e,t,n=!0,r=!1){let s=ht||et;if(s){let i=s.type;if(e===Di){let u=tc(i,!1);if(u&&(u===t||u===Ye(t)||u===no(Ye(t))))return i}let a=ei(s[e]||i[e],t)||ei(s.appContext[e],t);return!a&&r?i:a}}function ei(e,t){return e&&(e[t]||e[Ye(t)]||e[no(Ye(t))])}function oe(e,t,n,r){let s,i=n&&n[r],a=me(e);if(a||Le(e)){let u=a&&Vt(e),m=!1,w=!1;u&&(m=!at(e),w=gt(e),e=Ko(e)),s=new Array(e.length);for(let g=0,k=e.length;g<k;g++)s[g]=t(m?w?Gt(mt(e[g])):mt(e[g]):e[g],g,void 0,i&&i[g])}else if(typeof e=="number")if(!Number.isInteger(e)||e<0)s=[];else{s=new Array(e);for(let u=0;u<e;u++)s[u]=t(u+1,u,void 0,i&&i[u])}else if(De(e))if(e[Symbol.iterator])s=Array.from(e,(u,m)=>t(u,m,void 0,i&&i[m]));else{let u=Object.keys(e);s=new Array(u.length);for(let m=0,w=u.length;m<w;m++){let g=u[m];s[m]=t(e[g],g,m,i&&i[m])}}else s=[];return n&&(n[r]=s),s}var Ms=e=>e?Xi(e)?Yn(e):Ms(e.parent):null;var en=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ms(e.parent),$root:e=>Ms(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Bs(e),$forceUpdate:e=>e.f||(e.f=()=>{zs(e.update)}),$nextTick:e=>e.n||(e.n=ot.bind(e.proxy)),$watch:e=>au.bind(e)});var Is=(e,t)=>e!==Ae&&!e.__isScriptSetup&&Ne(e,t),bu={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:n,setupState:r,data:s,props:i,accessCache:a,type:u,appContext:m}=e;if(t[0]!=="$"){let h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Is(r,t))return a[t]=1,r[t];if(s!==Ae&&Ne(s,t))return a[t]=2,s[t];if(Ne(i,t))return a[t]=3,i[t];if(n!==Ae&&Ne(n,t))return a[t]=4,n[t];Us&&(a[t]=0)}}let w=en[t],g,k;if(w)return t==="$attrs"&&Ze(e.attrs,"get",""),w(e);if((g=u.__cssModules)&&(g=g[t]))return g;if(n!==Ae&&Ne(n,t))return a[t]=4,n[t];if(k=m.config.globalProperties,Ne(k,t))return k[t]},set({_:e},t,n){let{data:r,setupState:s,ctx:i}=e;return Is(s,t)?(s[t]=n,!0):r!==Ae&&Ne(r,t)?(r[t]=n,!0):Ne(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:a}},u){let m;return!!(n[u]||e!==Ae&&u[0]!=="$"&&Ne(e,u)||Is(t,u)||Ne(i,u)||Ne(r,u)||Ne(en,u)||Ne(s.config.globalProperties,u)||(m=a.__cssModules)&&m[u])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ne(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ti(e){return me(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}var Us=!0;function wu(e){let t=Bs(e),n=e.proxy,r=e.ctx;Us=!1,t.beforeCreate&&oi(t.beforeCreate,e,"bc");let{data:s,computed:i,methods:a,watch:u,provide:m,inject:w,created:g,beforeMount:k,mounted:h,beforeUpdate:E,updated:S,activated:v,deactivated:_,beforeDestroy:N,beforeUnmount:T,destroyed:V,unmounted:M,render:q,renderTracked:z,renderTriggered:ne,errorCaptured:ee,serverPrefetch:C,expose:P,inheritAttrs:G,components:J,directives:X,filters:K}=t;if(w&&ku(w,r,null),a)for(let ue in a){let re=a[ue];ge(re)&&(r[ue]=re.bind(n))}if(s){let ue=s.call(n,n);De(ue)&&(e.data=Fe(ue))}if(Us=!0,i)for(let ue in i){let re=i[ue],_e=ge(re)?re.bind(n,n):ge(re.get)?re.get.bind(n,n):it,qe=!ge(re)&&ge(re.set)?re.set.bind(n):it,Me=tt({get:_e,set:qe});Object.defineProperty(r,ue,{enumerable:!0,configurable:!0,get:()=>Me.value,set:Pe=>Me.value=Pe})}if(u)for(let ue in u)Ai(u[ue],r,n,ue);if(m){let ue=ge(m)?m.call(n):m;Reflect.ownKeys(ue).forEach(re=>{uo(re,ue[re])})}g&&oi(g,e,"c");function ce(ue,re){me(re)?re.forEach(_e=>ue(_e.bind(n))):re&&ue(re.bind(n))}if(ce(pu,k),ce($t,h),ce(Ni,E),ce(Ri,S),ce(Ci,v),ce(_i,_),ce(vu,ee),ce(hu,z),ce(mu,ne),ce(co,T),ce(cn,M),ce(fu,C),me(P))if(P.length){let ue=e.exposed||(e.exposed={});P.forEach(re=>{Object.defineProperty(ue,re,{get:()=>n[re],set:_e=>n[re]=_e,enumerable:!0})})}else e.exposed||(e.exposed={});q&&e.render===it&&(e.render=q),G!=null&&(e.inheritAttrs=G),J&&(e.components=J),X&&(e.directives=X),C&&Hs(e)}function ku(e,t,n=it){me(e)&&(e=$s(e));for(let r in e){let s=e[r],i;De(s)?"default"in s?i=dt(s.from||r,s.default,!0):i=dt(s.from||r):i=dt(s),Xe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function oi(e,t,n){bt(me(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ai(e,t,n,r){let s=r.includes(".")?wi(n,r):()=>n[r];if(Le(e)){let i=t[e];ge(i)&&He(s,i)}else if(ge(e))He(s,e.bind(n));else if(De(e))if(me(e))e.forEach(i=>Ai(i,t,n,r));else{let i=ge(e.handler)?e.handler.bind(n):t[e.handler];ge(i)&&He(s,i,e)}}function Bs(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,u=i.get(t),m;return u?m=u:!s.length&&!n&&!r?m=t:(m={},s.length&&s.forEach(w=>Ln(m,w,a,!0)),Ln(m,t,a)),De(t)&&i.set(t,m),m}function Ln(e,t,n,r=!1){let{mixins:s,extends:i}=t;i&&Ln(e,i,n,!0),s&&s.forEach(a=>Ln(e,a,n,!0));for(let a in t)if(!(r&&a==="expose")){let u=Eu[a]||n&&n[a];e[a]=u?u(e[a],t[a]):t[a]}return e}var Eu={data:ni,props:si,emits:si,methods:Xo,computed:Xo,beforeCreate:nt,created:nt,beforeMount:nt,mounted:nt,beforeUpdate:nt,updated:nt,beforeDestroy:nt,beforeUnmount:nt,destroyed:nt,unmounted:nt,activated:nt,deactivated:nt,errorCaptured:nt,serverPrefetch:nt,components:Xo,directives:Xo,watch:_u,provide:ni,inject:Cu};function ni(e,t){return t?e?function(){return je(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function Cu(e,t){return Xo($s(e),$s(t))}function $s(e){if(me(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function nt(e,t){return e?[...new Set([].concat(e,t))]:t}function Xo(e,t){return e?je(Object.create(null),e,t):t}function si(e,t){return e?me(e)&&me(t)?[...new Set([...e,...t])]:je(Object.create(null),ti(e),ti(t??{})):t}function _u(e,t){if(!e)return t;if(!t)return e;let n=je(Object.create(null),e);for(let r in t)n[r]=nt(e[r],t[r]);return n}function Oi(){return{app:null,config:{isNativeTag:us,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Su=0;function Nu(e,t){return function(r,s=null){ge(r)||(r=je({},r)),s!=null&&!De(s)&&(s=null);let i=Oi(),a=new WeakSet,u=[],m=!1,w=i.app={_uid:Su++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:nc,get config(){return i.config},set config(g){},use(g,...k){return a.has(g)||(g&&ge(g.install)?(a.add(g),g.install(w,...k)):ge(g)&&(a.add(g),g(w,...k))),w},mixin(g){return i.mixins.includes(g)||i.mixins.push(g),w},component(g,k){return k?(i.components[g]=k,w):i.components[g]},directive(g,k){return k?(i.directives[g]=k,w):i.directives[g]},mount(g,k,h){if(!m){let E=w._ceVNode||Ce(r,s);return E.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),k&&t?t(E,g):e(E,g,h),m=!0,w._container=g,g.__vue_app__=w,Yn(E.component)}},onUnmount(g){u.push(g)},unmount(){m&&(bt(u,w._instance,16),e(null,w._container),delete w._container.__vue_app__)},provide(g,k){return i.provides[g]=k,w},runWithContext(g){let k=So;So=w;try{return g()}finally{So=k}}};return w}}var So=null;var Ru=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ye(t)}Modifiers`]||e[`${At(t)}Modifiers`];function Du(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||Ae,s=n,i=t.startsWith("update:"),a=i&&Ru(r,t.slice(7));a&&(a.trim&&(s=n.map(g=>Le(g)?g.trim():g)),a.number&&(s=s.map(ko)));let u,m=r[u=Uo(t)]||r[u=Uo(Ye(t))];!m&&i&&(m=r[u=Uo(At(t))]),m&&bt(m,e,6,s);let w=r[u+"Once"];if(w){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,bt(w,e,6,s)}}var Tu=new WeakMap;function Ii(e,t,n=!1){let r=n?Tu:t.emitsCache,s=r.get(e);if(s!==void 0)return s;let i=e.emits,a={},u=!1;if(!ge(e)){let m=w=>{let g=Ii(w,t,!0);g&&(u=!0,je(a,g))};!n&&t.mixins.length&&t.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}return!i&&!u?(De(e)&&r.set(e,null),null):(me(i)?i.forEach(m=>a[m]=null):je(a,i),De(e)&&r.set(e,a),a)}function Wn(e,t){return!e||!yo(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Ne(e,t[0].toLowerCase()+t.slice(1))||Ne(e,At(t))||Ne(e,t))}function Ps(e){let{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:a,attrs:u,emit:m,render:w,renderCache:g,props:k,data:h,setupState:E,ctx:S,inheritAttrs:v}=e,_=Un(e),N,T;try{if(n.shapeFlag&4){let q=s||r,z=q;N=Ut(w.call(z,q,g,k,E,h,S)),T=u}else{let q=t;N=Ut(q.length>1?q(k,{attrs:u,slots:a,emit:m}):q(k,null)),T=t.props?u:Au(u)}}catch(q){lo.length=0,dn(q,e,1),N=Ce(Dt)}let V=N,M;if(T&&v!==!1){let q=Object.keys(T),{shapeFlag:z}=V;q.length&&z&7&&(i&&q.some(go)&&(T=Ou(T,i)),V=No(V,T,!1,!0))}if(n.dirs&&(V=No(V,null,!1,!0),V.dirs=V.dirs?V.dirs.concat(n.dirs):n.dirs),n.transition){let q=Bn(V.type)&&ki(V)||V;nn(q,n.transition)}return N=V,Un(_),N}function Pi(e,t=!0){let n;for(let r=0;r<e.length;r++){let s=e[r];if(rn(s)){if(s.type!==Dt||s.children==="v-if"){if(n)return;n=s}}else return}return n}var Au=e=>{let t;for(let n in e)(n==="class"||n==="style"||yo(n))&&((t||(t={}))[n]=e[n]);return t},Ou=(e,t)=>{let n={};for(let r in e)(!go(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Iu(e,t,n){let{props:r,children:s,component:i}=e,{props:a,children:u,patchFlag:m}=t,w=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&m>=0){if(m&1024)return!0;if(m&16)return r?ri(r,a,w):!!a;if(m&8){let g=t.dynamicProps;for(let k=0;k<g.length;k++){let h=g[k];if(Vi(a,r,h)&&!Wn(w,h))return!0}}}else return(s||u)&&(!u||!u.$stable)?!0:r===a?!1:r?a?ri(r,a,w):!0:!!a;return!1}function ri(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){let i=r[s];if(!Ne(e,i)||Vi(t,e,i)&&!Wn(n,i))return!0}return!1}function Vi(e,t,n){let r=e[n],s=t[n];return n==="style"&&De(r)&&De(s)?!Ct(r,s):r!==s}function Pu({vnode:e,parent:t,suspense:n},r){for(;t;){let s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var qi={},Mi=()=>Object.create(qi),Ui=e=>Object.getPrototypeOf(e)===qi;function Vu(e,t,n,r=!1){let s={},i=Mi();e.propsDefaults=Object.create(null),$i(e,t,s,i);for(let a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=r?s:Yo(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function qu(e,t,n,r){let{props:s,attrs:i,vnode:{patchFlag:a}}=e,u=Re(s),[m]=e.propsOptions,w=!1;if((r||a>0)&&!(a&16)){if(a&8){let g=e.vnode.dynamicProps;for(let k=0;k<g.length;k++){let h=g[k];if(Wn(e.emitsOptions,h))continue;let E=t[h];if(m)if(Ne(i,h))E!==i[h]&&(i[h]=E,w=!0);else{let S=Ye(h);s[S]=Ls(m,u,S,E,e,!1)}else E!==i[h]&&(i[h]=E,w=!0)}}}else{$i(e,t,s,i)&&(w=!0);let g;for(let k in u)(!t||!Ne(t,k)&&((g=At(k))===k||!Ne(t,g)))&&(m?n&&(n[k]!==void 0||n[g]!==void 0)&&(s[k]=Ls(m,u,k,void 0,e,!0)):delete s[k]);if(i!==u)for(let k in i)(!t||!Ne(t,k))&&(delete i[k],w=!0)}w&&It(e.attrs,"set","")}function $i(e,t,n,r){let[s,i]=e.propsOptions,a=!1,u;if(t)for(let m in t){if(bo(m))continue;let w=t[m],g;s&&Ne(s,g=Ye(m))?!i||!i.includes(g)?n[g]=w:(u||(u={}))[g]=w:Wn(e.emitsOptions,m)||(!(m in r)||w!==r[m])&&(r[m]=w,a=!0)}if(i){let m=Re(n),w=u||Ae;for(let g=0;g<i.length;g++){let k=i[g];n[k]=Ls(s,m,k,w[k],e,!Ne(w,k))}}return a}function Ls(e,t,n,r,s,i){let a=e[n];if(a!=null){let u=Ne(a,"default");if(u&&r===void 0){let m=a.default;if(a.type!==Function&&!a.skipFactory&&ge(m)){let{propsDefaults:w}=s;if(n in w)r=w[n];else{let g=pn(s);r=w[n]=m.call(null,t),g()}}else r=m;s.ce&&s.ce._setProp(n,r)}a[0]&&(i&&!u?r=!1:a[1]&&(r===""||r===At(n))&&(r=!0))}return r}var Mu=new WeakMap;function Li(e,t,n=!1){let r=n?Mu:t.propsCache,s=r.get(e);if(s)return s;let i=e.props,a={},u=[],m=!1;if(!ge(e)){let g=k=>{m=!0;let[h,E]=Li(k,t,!0);je(a,h),E&&u.push(...E)};!n&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!i&&!m)return De(e)&&r.set(e,xt),xt;if(me(i))for(let g=0;g<i.length;g++){let k=Ye(i[g]);ii(k)&&(a[k]=Ae)}else if(i)for(let g in i){let k=Ye(g);if(ii(k)){let h=i[g],E=a[k]=me(h)||ge(h)?{type:h}:je({},h),S=E.type,v=!1,_=!0;if(me(S))for(let N=0;N<S.length;++N){let T=S[N],V=ge(T)&&T.name;if(V==="Boolean"){v=!0;break}else V==="String"&&(_=!1)}else v=ge(S)&&S.name==="Boolean";E[0]=v,E[1]=_,(v||Ne(E,"default"))&&u.push(k)}}let w=[a,u];return De(e)&&r.set(e,w),w}function ii(e){return e[0]!=="$"&&!bo(e)}var js=e=>e==="_"||e==="_ctx"||e==="$stable",Gs=e=>me(e)?e.map(Ut):[Ut(e)],Uu=(e,t,n)=>{if(t._n)return t;let r=su((...s)=>Gs(t(...s)),n);return r._c=!1,r},Fi=(e,t,n)=>{let r=e._ctx;for(let s in e){if(js(s))continue;let i=e[s];if(ge(i))t[s]=Uu(s,i,r);else if(i!=null){let a=Gs(i);t[s]=()=>a}}},zi=(e,t)=>{let n=Gs(t);e.slots.default=()=>n},Hi=(e,t,n)=>{for(let r in t)(n||!js(r))&&(e[r]=t[r])},$u=(e,t,n)=>{let r=e.slots=Mi();if(e.vnode.shapeFlag&32){let s=t._;s?(Hi(r,t,n),n&&En(r,"_",s,!0)):Fi(t,r)}else t&&zi(e,t)},Lu=(e,t,n)=>{let{vnode:r,slots:s}=e,i=!0,a=Ae;if(r.shapeFlag&32){let u=t._;u?n&&u===1?i=!1:Hi(s,t,n):(i=!t.$stable,Fi(t,s)),a=t}else t&&(zi(e,t),a={default:1});if(i)for(let u in s)!js(u)&&a[u]==null&&delete s[u]};function Fu(){let e=[]}var lt=ju;function Bi(e){return zu(e)}function zu(e,t){Fu();let n=$o();n.__VUE__=!0;let{insert:r,remove:s,patchProp:i,createElement:a,createText:u,createComment:m,setText:w,setElementText:g,parentNode:k,nextSibling:h,setScopeId:E=it,insertStaticContent:S}=e,v=(p,y,D,O=null,I=null,U=null,L=void 0,H=null,Y=!!y.dynamicChildren)=>{if(p===y)return;p&&!Qo(p,y)&&(O=Z(p),Se(p,I,U,!0),p=null),y.patchFlag===-2&&(Y=!1,y.dynamicChildren=null),y.dynamicChildren&&p&&p.dynamicChildren&&p.dynamicChildren.hasOnce&&(y.dynamicChildren===xt&&(y.dynamicChildren=[]),y.dynamicChildren.hasOnce=!0);let{type:B,ref:le,shapeFlag:x}=y;switch(B){case Kn:_(p,y,D,O);break;case Dt:N(p,y,D,O);break;case tn:p==null&&T(y,D,O,L);break;case W:X(p,y,D,O,I,U,L,H,Y);break;default:x&1?z(p,y,D,O,I,U,L,H,Y):x&6?K(p,y,D,O,I,U,L,H,Y):(x&64||x&128)&&B.process(p,y,D,O,I,U,L,H,Y,te)}le!=null&&I?Zo(le,p&&p.ref,U,y||p,!y):le==null&&p&&p.ref!=null&&Zo(p.ref,null,U,p,!0)},_=(p,y,D,O)=>{if(p==null)r(y.el=u(y.children),D,O);else{let I=y.el=p.el;y.children!==p.children&&w(I,y.children)}},N=(p,y,D,O)=>{p==null?r(y.el=m(y.children||""),D,O):y.el=p.el},T=(p,y,D,O)=>{[p.el,p.anchor]=S(p.children,y,D,O,p.el,p.anchor)},V=(p,y,D,O)=>{if(y.children!==p.children){let I=h(p.anchor);q(p),[y.el,y.anchor]=S(y.children,D,I,O)}else y.el=p.el,y.anchor=p.anchor},M=({el:p,anchor:y},D,O)=>{let I;for(;p&&p!==y;)I=h(p),r(p,D,O),p=I;r(y,D,O)},q=({el:p,anchor:y})=>{let D;for(;p&&p!==y;)D=h(p),s(p),p=D;s(y)},z=(p,y,D,O,I,U,L,H,Y)=>{if(y.type==="svg"?L="svg":y.type==="math"&&(L="mathml"),p==null)ne(y,D,O,I,U,L,H,Y);else{let B=p.el&&p.el._isVueCE?p.el:null;try{B&&B._beginPatch(),P(p,y,I,U,L,H,Y)}finally{B&&B._endPatch()}}},ne=(p,y,D,O,I,U,L,H)=>{let Y,B,{props:le,shapeFlag:x,transition:ae,dirs:he}=p;if(Y=p.el=a(p.type,U,le&&le.is,le),x&8?g(Y,p.children):x&16&&C(p.children,Y,null,O,I,Vs(p,U),L,H),he&&io(p,null,O,"created"),ee(Y,p,p.scopeId,L,O),le){for(let Ve in le)Ve!=="value"&&!bo(Ve)&&i(Y,Ve,null,le[Ve],U,O);"value"in le&&i(Y,"value",null,le.value,U),(B=le.onVnodeBeforeMount)&&qt(B,O,p)}he&&io(p,null,O,"beforeMount");let we=Hu(I,ae);we&&ae.beforeEnter(Y),r(Y,y,D),((B=le&&le.onVnodeMounted)||we||he)&<(()=>{let Oe;B&&qt(B,O,p),we&&ae.enter(Y),he&&io(p,null,O,"mounted")},I)},ee=(p,y,D,O,I)=>{if(D&&E(p,D),O)for(let U=0;U<O.length;U++)E(p,O[U]);if(I){let U=I.subTree;if(y===U||Wi(U.type)&&(U.ssContent===y||U.ssFallback===y)){let L=I.vnode;ee(p,L,L.scopeId,L.slotScopeIds,I.parent)}}},C=(p,y,D,O,I,U,L,H,Y=0)=>{for(let B=Y;B<p.length;B++){let le=p[B]=H?Kt(p[B]):Ut(p[B]);v(null,le,y,D,O,I,U,L,H)}},P=(p,y,D,O,I,U,L)=>{let H=y.el=p.el,{patchFlag:Y,dynamicChildren:B,dirs:le}=y;Y|=p.patchFlag&16;let x=p.props||Ae,ae=y.props||Ae,he;if(D&&ao(D,!1),(he=ae.onVnodeBeforeUpdate)&&qt(he,D,y,p),le&&io(y,p,D,"beforeUpdate"),D&&ao(D,!0),B&&(!p.dynamicChildren||p.dynamicChildren.length!==B.length)&&(Y=0,L=!1,B=null),(x.innerHTML&&ae.innerHTML==null||x.textContent&&ae.textContent==null)&&g(H,""),B?G(p.dynamicChildren,B,H,D,O,Vs(y,I),U):L||_e(p,y,H,null,D,O,Vs(y,I),U,!1),Y>0){if(Y&16)J(H,x,ae,D,I);else if(Y&2&&x.class!==ae.class&&i(H,"class",null,ae.class,I),Y&4&&i(H,"style",x.style,ae.style,I),Y&8){let we=y.dynamicProps;for(let Ve=0;Ve<we.length;Ve++){let Oe=we[Ve],We=x[Oe],Ke=ae[Oe];(Ke!==We||Oe==="value")&&i(H,Oe,We,Ke,I,D)}}Y&1&&p.children!==y.children&&g(H,y.children)}else!L&&B==null&&J(H,x,ae,D,I);((he=ae.onVnodeUpdated)||le)&<(()=>{he&&qt(he,D,y,p),le&&io(y,p,D,"updated")},O)},G=(p,y,D,O,I,U,L)=>{for(let H=0;H<y.length;H++){let Y=p[H],B=y[H],le=Y.el||Fs(Y),x=le&&(Y.type===W||!Qo(Y,B)||Y.shapeFlag&198)?k(le):D;v(Y,B,x,null,O,I,U,L,!0)}},J=(p,y,D,O,I)=>{if(y!==D){if(y!==Ae)for(let U in y)!bo(U)&&!(U in D)&&i(p,U,y[U],null,I,O);for(let U in D){if(bo(U))continue;let L=D[U],H=y[U];L!==H&&U!=="value"&&i(p,U,H,L,I,O)}"value"in D&&i(p,"value",y.value,D.value,I)}},X=(p,y,D,O,I,U,L,H,Y)=>{let B=y.el=p?p.el:u(""),le=y.anchor=p?p.anchor:u(""),{patchFlag:x,dynamicChildren:ae,slotScopeIds:he}=y;he&&(H=H?H.concat(he):he),p==null?(r(B,D,O),r(le,D,O),C(y.children||[],D,le,I,U,L,H,Y)):x>0&&x&64&&ae&&p.dynamicChildren&&p.dynamicChildren.length===ae.length?(G(p.dynamicChildren,ae,D,I,U,L,H),(y.key!=null||I&&y===I.subTree)&&ji(p,y,!0)):_e(p,y,D,le,I,U,L,H,Y)},K=(p,y,D,O,I,U,L,H,Y)=>{y.slotScopeIds=H,p==null?y.shapeFlag&512?I.ctx.activate(y,D,O,L,Y):se(y,D,O,I,U,L,Y):ce(p,y,Y)},se=(p,y,D,O,I,U,L)=>{let H=p.component=Qu(p,O,I);if(jn(p)&&(H.ctx.renderer=te),Xu(H,!1,L),H.asyncDep){if(I&&I.registerDep(H,ue,L,U),!p.el){let Y=H.subTree=Ce(Dt);N(null,Y,y,D),p.placeholder=Y.el}}else ue(H,p,y,D,I,U,L)},ce=(p,y,D)=>{let O=y.component=p.component;if(Iu(p,y,D))if(O.asyncDep&&!O.asyncResolved){y.el=p.el,y.placeholder=p.placeholder,re(O,y,D);return}else O.next=y,O.update();else y.el=p.el,y.placeholder=p.placeholder,O.vnode=y},ue=(p,y,D,O,I,U,L)=>{let H=()=>{if(p.isMounted){let{next:x,bu:ae,u:he,parent:we,vnode:Ve}=p;{let ct=Gi(p);if(ct){x&&(x.el=Ve.el,re(p,x,L)),ct.asyncDep.then(()=>{lt(()=>{p.isUnmounted||B()},I)});return}}let Oe=x,We;ao(p,!1),x?(x.el=Ve.el,re(p,x,L)):x=Ve,ae&&wo(ae),(We=x.props&&x.props.onVnodeBeforeUpdate)&&qt(We,we,x,Ve),ao(p,!0);let Ke=Ps(p),kt=p.subTree;p.subTree=Ke,v(kt,Ke,k(kt.el),Z(kt),p,I,U),x.el=Ke.el,Oe===null&&Pu(p,Ke.el),he&<(he,I),(We=x.props&&x.props.onVnodeUpdated)&<(()=>qt(We,we,x,Ve),I)}else{let x,{el:ae,props:he}=y,{bm:we,m:Ve,parent:Oe,root:We,type:Ke}=p,kt=xo(y);if(ao(p,!1),we&&wo(we),!kt&&(x=he&&he.onVnodeBeforeMount)&&qt(x,Oe,y),ao(p,!0),ae&&Ee){let ct=()=>{p.subTree=Ps(p),Ee(ae,p.subTree,p,I,null)};kt&&Ke.__asyncHydrate?Ke.__asyncHydrate(ae,p,ct):ct()}else{We.ce&&We.ce._hasShadowRoot()&&We.ce._injectChildStyle(Ke,p.parent?p.parent.type:void 0);let ct=p.subTree=Ps(p);v(null,ct,D,O,p,I,U),y.el=ct.el}if(Ve&<(Ve,I),!kt&&(x=he&&he.onVnodeMounted)){let ct=y;lt(()=>qt(x,Oe,ct),I)}(y.shapeFlag&256||Oe&&xo(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&p.a&<(p.a,I),p.isMounted=!0,y=D=O=null}};p.scope.on();let Y=p.effect=new Co(H);p.scope.off();let B=p.update=Y.run.bind(Y),le=p.job=Y.runIfDirty.bind(Y);le.i=p,le.id=p.uid,Y.scheduler=()=>zs(le),ao(p,!0),B()},re=(p,y,D)=>{y.component=p;let O=p.vnode.props;p.vnode=y,p.next=null,qu(p,y.props,O,D),Lu(p,y.children,D),St(),hi(p),Nt()},_e=(p,y,D,O,I,U,L,H,Y=!1)=>{let B=p&&p.children,le=p?p.shapeFlag:0,x=y.children,{patchFlag:ae,shapeFlag:he}=y;if(ae>0){if(ae&128){Me(B,x,D,O,I,U,L,H,Y);return}else if(ae&256){qe(B,x,D,O,I,U,L,H,Y);return}}he&8?(le&16&&F(B,I,U),x!==B&&g(D,x)):le&16?he&16?Me(B,x,D,O,I,U,L,H,Y):F(B,I,U,!0):(le&8&&g(D,""),he&16&&C(x,D,O,I,U,L,H,Y))},qe=(p,y,D,O,I,U,L,H,Y)=>{p=p||xt,y=y||xt;let B=p.length,le=y.length,x=Math.min(B,le),ae;for(ae=0;ae<x;ae++){let he=y[ae]=Y?Kt(y[ae]):Ut(y[ae]);v(p[ae],he,D,null,I,U,L,H,Y)}B>le?F(p,I,U,!0,!1,x):C(y,D,O,I,U,L,H,Y,x)},Me=(p,y,D,O,I,U,L,H,Y)=>{let B=0,le=y.length,x=p.length-1,ae=le-1;for(;B<=x&&B<=ae;){let he=p[B],we=y[B]=Y?Kt(y[B]):Ut(y[B]);if(Qo(he,we))v(he,we,D,null,I,U,L,H,Y);else break;B++}for(;B<=x&&B<=ae;){let he=p[x],we=y[ae]=Y?Kt(y[ae]):Ut(y[ae]);if(Qo(he,we))v(he,we,D,null,I,U,L,H,Y);else break;x--,ae--}if(B>x){if(B<=ae){let he=ae+1,we=he<le?y[he].el:O;for(;B<=ae;)v(null,y[B]=Y?Kt(y[B]):Ut(y[B]),D,we,I,U,L,H,Y),B++}}else if(B>ae)for(;B<=x;)Se(p[B],I,U,!0),B++;else{let he=B,we=B,Ve=new Map;for(B=we;B<=ae;B++){let pt=y[B]=Y?Kt(y[B]):Ut(y[B]);pt.key!=null&&Ve.set(pt.key,B)}let Oe,We=0,Ke=ae-we+1,kt=!1,ct=0,Vo=new Array(Ke);for(B=0;B<Ke;B++)Vo[B]=0;for(B=he;B<=x;B++){let pt=p[B];if(We>=Ke){Se(pt,I,U,!0);continue}let Tt;if(pt.key!=null)Tt=Ve.get(pt.key);else for(Oe=we;Oe<=ae;Oe++)if(Vo[Oe-we]===0&&Qo(pt,y[Oe])){Tt=Oe;break}Tt===void 0?Se(pt,I,U,!0):(Vo[Tt-we]=B+1,Tt>=ct?ct=Tt:kt=!0,v(pt,y[Tt],D,null,I,U,L,H,Y),We++)}let vr=kt?Bu(Vo):xt;for(Oe=vr.length-1,B=Ke-1;B>=0;B--){let pt=we+B,Tt=y[pt],yr=y[pt+1],gr=pt+1<le?yr.el||Fs(yr):O;Vo[B]===0?v(null,Tt,D,gr,I,U,L,H,Y):kt&&(Oe<0||B!==vr[Oe]?Pe(Tt,D,gr,2):Oe--)}}},Pe=(p,y,D,O,I=null)=>{let{el:U,type:L,transition:H,children:Y,shapeFlag:B}=p;if(B&6){Pe(p.component.subTree,y,D,O);return}if(B&128){p.suspense.move(y,D,O);return}if(B&64){L.move(p,y,D,te);return}if(L===W){r(U,y,D);for(let x=0;x<Y.length;x++)Pe(Y[x],y,D,O);r(p.anchor,y,D);return}if(L===tn){M(p,y,D);return}if(O!==2&&B&1&&H)if(O===0)H.persisted&&!U[Os]?r(U,y,D):(H.beforeEnter(U),r(U,y,D),lt(()=>H.enter(U),I));else{let{leave:x,delayLeave:ae,afterLeave:he}=H,we=()=>{p.ctx.isUnmounted?s(U):r(U,y,D)},Ve=()=>{let Oe=U._isLeaving||!!U[Os];U._isLeaving&&U[Os](!0),H.persisted&&!Oe?we():x(U,()=>{we(),he&&he()})};ae?ae(U,we,Ve):Ve()}else r(U,y,D)},Se=(p,y,D,O=!1,I=!1)=>{let{type:U,props:L,ref:H,children:Y,dynamicChildren:B,shapeFlag:le,patchFlag:x,dirs:ae,cacheIndex:he,memo:we}=p;if((x===-2||B&&B.hasOnce)&&(I=!1),H!=null&&(St(),Zo(H,null,D,p,!0),Nt()),he!=null&&(!p.ctx||p.ctx===y)&&(y.renderCache[he]=void 0),le&256){y.ctx.deactivate(p);return}let Ve=le&1&&ae,Oe=!xo(p),We;if(Oe&&(We=L&&L.onVnodeBeforeUnmount)&&qt(We,y,p),le&6)ke(p.component,D,O);else{if(le&128){p.suspense.unmount(D,O);return}Ve&&io(p,null,y,"beforeUnmount"),le&64?p.type.remove(p,y,D,te,O):B&&!B.hasOnce&&(U!==W||x>0&&x&64)?F(B,y,D,!1,!0):(U===W&&x&384||!I&&le&16)&&F(Y,y,D),O&&ze(p)}let Ke=we!=null&&he==null;(Oe&&(We=L&&L.onVnodeUnmounted)||Ve||Ke)&<(()=>{We&&qt(We,y,p),Ve&&io(p,null,y,"unmounted"),Ke&&(p.el=null)},D)},ze=p=>{let{type:y,el:D,anchor:O,transition:I}=p,U=y===W;if(U&&!I){Ue(D,O);return}if(y===tn){q(p),I&&!I.persisted&&I.afterLeave&&I.afterLeave();return}let L=U?qs(p):p,H=()=>{U?k(D)&&Ue(D,O):s(D),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(L&&L.shapeFlag&1&&I&&!I.persisted){let{leave:Y,delayLeave:B}=I,le=L.el,x=()=>Y(le,H);B?B(le,H,x):x()}else H()},Ue=(p,y)=>{let D;for(;p!==y;)D=h(p),s(p),p=D;s(y)},ke=(p,y,D)=>{let{bum:O,scope:I,job:U,subTree:L,um:H,m:Y,a:B}=p;ai(Y),ai(B),O&&wo(O),I.stop(),U?(U.flags|=8,Se(L,p,y,D)):p.vnode.el&&L&&(L.transition=p.vnode.transition,Se(L,p,y,D)),H&<(H,y),lt(()=>{p.isUnmounted=!0},y)},F=(p,y,D,O=!1,I=!1,U=0)=>{for(let L=U;L<p.length;L++)Se(p[L],y,D,O,I)},Z=p=>{if(p.shapeFlag&6)return Z(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();let y=h(p.anchor||p.el),D=y&&y[lu];return D?h(D):y},Q=(p,y,D)=>{let O=p&&y._vnode?void 0:p&&p.component?p.component.uid:Ju();nu(()=>{p==null?y._vnode&&Se(y._vnode,null,null,!0):v(y._vnode||null,p,y,null,null,null,D),y._vnode=p},O)},te={p:v,um:Se,m:Pe,r:ze,mt:se,mc:C,pc:_e,pbc:G,n:Z,o:e},ye,Ee;return t&&([ye,Ee]=t(te)),{render:Q,hydrate:ye,createApp:Nu(Q,ye)}}function Vs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ao({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Hu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ji(e,t,n=!1){let r=e.children,s=t.children;if(me(r)&&me(s))for(let i=0;i<r.length;i++){let a=r[i],u=s[i];u.shapeFlag&1&&!u.dynamicChildren&&((u.patchFlag<=0||u.patchFlag===32)&&(u=s[i]=Kt(s[i]),u.el=a.el),!n&&u.patchFlag!==-2&&ji(a,u)),u.type===Kn&&(u.patchFlag===-1&&(u=s[i]=Kt(u)),u.el=a.el),u.type===Dt&&!u.el&&(u.el=a.el)}}function Bu(e){let t=e.slice(),n=[0],r,s,i,a,u,m=e.length;for(r=0;r<m;r++){let w=e[r];if(w!==0){if(s=n[n.length-1],e[s]<w){t[r]=s,n.push(r);continue}for(i=0,a=n.length-1;i<a;)u=i+a>>1,e[n[u]]<w?i=u+1:a=u;w<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function Gi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gi(t)}function ai(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Fs(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Fs(t.subTree):null}var Wi=e=>e.__isSuspense;function ju(e,t){t&&t.pendingBranch?me(e)?t.effects.push(...e):t.effects.push(e):mi(e)}var W=Symbol.for("v-fgt"),Kn=Symbol.for("v-txt"),Dt=Symbol.for("v-cmt"),tn=Symbol.for("v-stc"),lo=[],vt=null;function l(e=!1){lo.push(vt=e?null:[])}function Ki(){lo.pop(),vt=lo[lo.length-1]||null}var sn=1;function Fn(e,t=!1){sn+=e,e<0&&vt&&t&&(vt.hasOnce=!0)}function Yi(e){return e.dynamicChildren=sn>0?vt||xt:null,Ki(),sn>0&&vt&&vt.push(e),e}function d(e,t,n,r,s,i){return Yi(o(e,t,n,r,s,i,!0))}function Lt(e,t,n,r,s){return Yi(Ce(e,t,n,r,s,!0))}function rn(e){return e?e.__v_isVNode===!0:!1}function Qo(e,t){return e.type===t.type&&e.key===t.key}var Ji=({key:e})=>e??null,qn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Le(e)||Xe(e)||ge(e)?{i:ht,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,r=0,s=null,i=e===W?0:1,a=!1,u=!1){let m={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ji(t),ref:t&&qn(t),scopeId:gi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ht};return u?(zn(m,n),i&128&&e.normalize(m)):n&&(m.shapeFlag|=Le(n)?8:16),sn>0&&!a&&vt&&(m.patchFlag>0||i&6)&&m.patchFlag!==32&&vt.push(m),m}var Ce=Gu;function Gu(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===gu)&&(e=Dt),rn(e)){let u=No(e,t,!0);return n&&zn(u,n),sn>0&&!i&&vt&&(u.shapeFlag&6?vt[vt.indexOf(e)]=u:vt.push(u)),u.patchFlag=-2,u}if(oc(e)&&(e=e.__vccOpts),t){t=Wu(t);let{class:u,style:m}=t;u&&!Le(u)&&(t.class=A(u)),De(m)&&(Jo(m)&&!me(m)&&(m=je({},m)),t.style=Ie(m))}let a=Le(e)?1:Wi(e)?128:Bn(e)?64:De(e)?4:ge(e)?2:0;return o(e,t,n,r,s,a,i,!0)}function Wu(e){return e?Jo(e)||Ui(e)?je({},e):e:null}function No(e,t,n=!1,r=!1){let{props:s,ref:i,patchFlag:a,children:u,transition:m}=e,w=t?Ku(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:w,key:w&&Ji(w),ref:t&&t.ref?n&&i?me(i)?i.concat(qn(t)):[i,qn(t)]:qn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==W?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:m,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&No(e.ssContent),ssFallback:e.ssFallback&&No(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return m&&r&&nn(g,m.clone(g)),g}function b(e=" ",t=0){return Ce(Kn,null,e,t)}function de(e,t){let n=Ce(tn,null,e);return n.staticCount=t,n}function f(e="",t=!1){return t?(l(),Lt(Dt,null,e)):Ce(Dt,null,e)}function Ut(e){return e==null||typeof e=="boolean"?Ce(Dt):me(e)?Ce(W,null,e.slice()):rn(e)?Kt(e):Ce(Kn,null,String(e))}function Kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:No(e)}function zn(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(me(t))n=16;else if(typeof t=="object")if(r&65){let s=t.default;s&&(s._c&&(s._d=!1),zn(e,s()),s._c&&(s._d=!0));return}else{n=32;let s=t._;!s&&!Ui(t)?t._ctx=ht:s===3&&ht&&(ht.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ge(t)){if(r&65){zn(e,{default:t});return}t={default:t,_ctx:ht},n=32}else t=String(t),r&64?(n=16,t=[b(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ku(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let s in r)if(s==="class")t.class!==r.class&&(t.class=A([t.class,r.class]));else if(s==="style")t.style=Ie([t.style,r.style]);else if(yo(s)){let i=t[s],a=r[s];a&&i!==a&&!(me(i)&&i.includes(a))?t[s]=i?[].concat(i,a):a:a==null&&i==null&&!go(s)&&(t[s]=a)}else s!==""&&(t[s]=r[s])}return t}function qt(e,t,n,r=null){bt(e,t,7,[n,r])}var Yu=Oi(),Qi=0;function Ju(){return Qi}function Qu(e,t,n){let r=e.type,s=(t?t.appContext:e.appContext)||Yu,i={uid:Qi++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ho(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Li(r,s),emitsOptions:Ii(r,s),emit:null,emitted:null,propsDefaults:Ae,inheritAttrs:r.inheritAttrs,ctx:Ae,data:Ae,props:Ae,attrs:Ae,slots:Ae,refs:Ae,setupState:Ae,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Du.bind(null,i),e.ce&&e.ce(i),i}var et=null,Ws=()=>et||ht,Hn,an;{let e=$o(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(a=>a(i)):s[0](i)}};Hn=t("__VUE_INSTANCE_SETTERS__",n=>et=n),an=t("__VUE_SSR_SETTERS__",n=>Ro=n)}var pn=e=>{let t=et;return Hn(e),e.scope.on(),()=>{e.scope.off(),Hn(t)}},li=()=>{et&&et.scope.off(),Hn(null)};function Xi(e){return e.vnode.shapeFlag&4}var Ro=!1;function Xu(e,t=!1,n=!1){t&&an(t);let{props:r,children:s}=e.vnode,i=Xi(e);Vu(e,r,i,t),$u(e,s,n||t);let a=i?Zu(e,t):void 0;return t&&an(!1),a}function Zu(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bu);let{setup:r}=n;if(r){St();let s=e.setupContext=r.length>1?ec(e):null,i=pn(e),a=ln(r,e,0,[e.props,s]),u=cs(a);if(Nt(),i(),(u||e.sp)&&!xo(e)&&Hs(e),u){if(a.then(li,li),t)return a.then(m=>{an(!0);try{di(e,m,t)}finally{an(!1)}}).catch(m=>{dn(m,e,0)});e.asyncDep=a}else di(e,a,t)}else Zi(e,t)}function di(e,t,n){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:De(t)&&(e.setupState=Pn(t)),Zi(e,n)}var ui,ci;function Zi(e,t,n){let r=e.type;if(!e.render){if(!t&&ui&&!r.render){let s=r.template||Bs(e).template;if(s){let{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:u,compilerOptions:m}=r,w=je(je({isCustomElement:i,delimiters:u},a),m);r.render=ui(s,w)}}e.render=r.render||it,ci&&ci(e)}{let s=pn(e);St();try{wu(e)}finally{Nt(),s()}}}var xu={get(e,t){return Ze(e,"get",""),e[t]}};function ec(e){let t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xu),slots:e.slots,emit:e.emit,expose:t}}function Yn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Pn(Ts(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in en)return en[n](e)},has(t,n){return n in t||n in en}})):e.proxy}function tc(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function oc(e){return ge(e)&&"__vccOpts"in e}var tt=(e,t)=>Yr(e,t,Ro);function be(e,t,n){try{Fn(-1);let r=arguments.length;return r===2?De(t)&&!me(t)?rn(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&rn(n)&&(n=[n]),Ce(e,t,n))}finally{Fn(1)}}var nc="3.5.44";var Qs,xi=typeof window<"u"&&window.trustedTypes;if(xi)try{Qs=xi.createPolicy("vue",{createHTML:e=>e})}catch{}var ca=Qs?e=>Qs.createHTML(e):e=>e,sc="http://www.w3.org/2000/svg",rc="http://www.w3.org/1998/Math/MathML",Jt=typeof document<"u"?document:null,ea=Jt&&Jt.createElement("template"),ic={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let s=t==="svg"?Jt.createElementNS(sc,e):t==="mathml"?Jt.createElementNS(rc,e):n?Jt.createElement(e,{is:n}):Jt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Jt.createTextNode(e),createComment:e=>Jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){let a=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{ea.innerHTML=ca(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);let u=ea.content;if(r==="svg"||r==="mathml"){let m=u.firstChild;for(;m.firstChild;)u.appendChild(m.firstChild);u.removeChild(m)}t.insertBefore(u,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};var ac=Symbol("_vtc");function lc(e,t,n){let r=e[ac];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}var Xn=Symbol("_vod"),pa=Symbol("_vsh"),j={name:"show",beforeMount(e,{value:t},{transition:n}){e[Xn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):fn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),fn(e,!0),r.enter(e)):r.leave(e,()=>{fn(e,!1)}):fn(e,t))},beforeUnmount(e,{value:t}){fn(e,t)}};function fn(e,t){e.style.display=t?e[Xn]:"none",e[pa]=!t}var dc=Symbol("");var uc=/(?:^|;)\s*display\s*:/;function cc(e,t,n){let r=e.style,s=Le(n),i=!1;if(n&&!s){if(t)if(Le(t))for(let a of t.split(";")){let u=a.slice(0,a.indexOf(":")).trim();n[u]==null&&mn(r,u,"")}else for(let a in t)n[a]==null&&mn(r,a,"");for(let a in n){a==="display"&&(i=!0);let u=n[a];u!=null?fc(e,a,!Le(t)&&t?t[a]:void 0,u)||mn(r,a,u):mn(r,a,"")}}else if(s){if(t!==n){let a=r[dc];a&&(n+=";"+a),r.cssText=n,i=uc.test(n)}}else t&&e.removeAttribute("style");Xn in e&&((!s||t!==n)&&(e[Xn]=i?r.display:""),e[pa]&&(r.display="none"))}var Jn=/\s*!important$/;function mn(e,t,n){if(me(n))n.forEach(r=>mn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))Jn.test(n)?e.setProperty(t,n.replace(Jn,""),"important"):e.setProperty(t,n);else{let r=pc(e,t);Jn.test(n)?e.setProperty(At(r),n.replace(Jn,""),"important"):e[r]=n}}var ta=["Webkit","Moz","ms"],Ks={};function pc(e,t){let n=Ks[t];if(n)return n;let r=Ye(t);if(r!=="filter"&&r in e)return Ks[t]=r;r=no(r);for(let s=0;s<ta.length;s++){let i=ta[s]+r;if(i in e)return Ks[t]=i}return t}function fc(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Le(r)&&n===r}var oa="http://www.w3.org/1999/xlink";function na(e,t,n,r,s,i=Dr(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(oa,t.slice(6,t.length)):e.setAttributeNS(oa,t,n):n==null||i&&!Cn(n)?e.removeAttribute(t):e.setAttribute(t,i?"":ft(n)?String(n):n)}function sa(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ca(n):n);return}let i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){let u=i==="OPTION"?e.getAttribute("value")||"":e.value,m=n==null?e.type==="checkbox"?"on":"":String(n);(u!==m||!("_value"in e))&&(e.value=m),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){let u=typeof e[t];u==="boolean"?n=Cn(n):n==null&&u==="string"?(n="",a=!0):u==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(s||t)}function to(e,t,n,r){e.addEventListener(t,n,r)}function mc(e,t,n,r){e.removeEventListener(t,n,r)}var ra=Symbol("_vei");function hc(e,t,n,r,s=null){let i=e[ra]||(e[ra]={}),a=i[t];if(r&&a)a.value=r;else{let[u,m]=gc(t);if(r){let w=i[t]=kc(r,s);to(e,u,w,m)}else a&&(mc(e,u,a,m),i[t]=void 0)}}var vc=/(Once|Passive|Capture)$/,yc=/^on:?(?:Once|Passive|Capture)$/;function gc(e){let t,n;for(;(n=e.match(vc))&&!yc.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):At(e.slice(2)),t]}var Ys=0,bc=Promise.resolve(),wc=()=>Ys||(bc.then(()=>Ys=0),Ys=Date.now());function kc(e,t){let n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;let s=n.value;if(me(s)){let i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};let a=s.slice(),u=[r];for(let m=0;m<a.length&&!r._stopped;m++){let w=a[m];w&&bt(w,t,5,u)}}else bt(s,t,5,[r])};return n.value=e,n.attached=wc(),n}var ia=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ec=(e,t,n,r,s,i)=>{let a=s==="svg";t==="class"?lc(e,r,a):t==="style"?cc(e,n,r):yo(t)?go(t)||hc(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Cc(e,t,r,a))?(sa(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&na(e,t,r,a,i,t!=="value")):e._isVueCE&&(_c(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Le(r)))?sa(e,Ye(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),na(e,t,r,a))};function Cc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ia(t)&&ge(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){let s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return ia(t)&&Le(n)?!1:t in e}function _c(e,t){let n=e._def.props;if(!n)return!1;let r=Ye(t);return Array.isArray(n)?n.some(s=>Ye(s)===r):Object.keys(n).some(s=>Ye(s)===r)}var Do=e=>{let t=e.props["onUpdate:modelValue"]||!1;return me(t)?n=>wo(t,n):t};function Sc(e){e.target.composing=!0}function aa(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var Ft=Symbol("_assign"),Qn=Symbol("_initialValue");function Js(e,t,n){return t&&(e=e.trim()),n&&(e=ko(e)),e}var zt={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e.parentNode&&(e.type==="text"?e[Qn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Qn]=e.defaultValue.replace(/\r\n?/g,`
|
|
`))),e[Ft]=Do(s);let i=r||s.props&&s.props.type==="number";to(e,t?"change":"input",a=>{a.target.composing||e[Ft](Js(e.value,n,i))}),(n||i)&&to(e,"change",()=>{e.value=Js(e.value,n,i)}),t||(to(e,"compositionstart",Sc),to(e,"compositionend",aa),to(e,"change",aa))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let s=t??"",i=e[Qn];delete e[Qn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Ft](Js(e.value,n,r)):e.value=s},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},a){if(e[Ft]=Do(a),e.composing)return;let u=(i||e.type==="number")&&!/^0\d/.test(e.value)?ko(e.value):e.value,m=t??"";if(u===m)return;let w=e.getRootNode();(w instanceof Document||w instanceof ShadowRoot)&&w.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===m)||(e.value=m)}},Xs={deep:!0,created(e,t,n){e[Ft]=Do(n),to(e,"change",()=>{let r=e._modelValue,s=hn(e),i=e.checked,a=e[Ft];if(me(r)){let u=_n(r,s),m=u!==-1;if(i&&!m)a(r.concat(s));else if(!i&&m){let w=[...r];w.splice(u,1),a(w)}}else if(Et(r)){let u=new Set(r);i?u.add(s):u.delete(s),a(u)}else a(fa(e,i))})},mounted:la,beforeUpdate(e,t,n){e[Ft]=Do(n),la(e,t,n)}};function la(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(me(t))s=_n(t,r.props.value)>-1;else if(Et(t))s=t.has(r.props.value);else{if(t===n)return;s=Ct(t,fa(e,!0))}e.checked!==s&&(e.checked=s)}var To={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,to(e,"change",()=>{let s=Array.prototype.filter.call(e.options,m=>m.selected).map(m=>n?ko(hn(m)):hn(m)),i=e.multiple,a=i?Et(e._modelValue)?new Set(s):s:s[0],u=e._pendingValue=[i,i?me(a)?s.slice():s:a];try{e[Ft](a)}finally{ot(()=>{e._pendingValue===u&&(e._pendingValue=void 0)})}}),e[Ft]=Do(r)},mounted(e,{value:t}){da(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Ft]=Do(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Nc(t,n[1],n[0]))&&da(e,t)}};function Nc(e,t,n){if(!n)return Ct(e,t);if(me(e))return Ct(e,t);if(Et(e)){if(e.size!==t.length)return!1;for(let r of t)if(!e.has(r))return!1;return!0}return!1}function da(e,t){let n=e.multiple,r=me(t);if(!(n&&!r&&!Et(t))){for(let s=0,i=e.options.length;s<i;s++){let a=e.options[s],u=hn(a);if(n)if(r){let m=typeof u;m==="string"||m==="number"?a.selected=t.some(w=>String(w)===String(u)):a.selected=_n(t,u)>-1}else a.selected=t.has(u);else if(Ct(hn(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function hn(e){return"_value"in e?e._value:e.value}function fa(e,t){let n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}var Rc=["ctrl","shift","alt","meta"],Dc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Rc.some(n=>e[`${n}Key`]&&!t.includes(n))},ie=(e,t)=>{if(!e)return e;let n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...i)=>{for(let a=0;a<t.length;a++){let u=Dc[t[a]];if(u&&u(s,t))return}return e(s,...i)}))},Tc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ao=(e,t)=>{let n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;let i=At(s.key);if(t.some(a=>a===i||Tc[a]===i))return e(s)}))},Ac=je({patchProp:Ec},ic),ua;function Oc(){return ua||(ua=Bi(Ac))}var ma=((...e)=>{let t=Oc().createApp(...e),{mount:n}=t;return t.mount=r=>{let s=Pc(r);if(!s)return;let i=t._component;!ge(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");let a=n(s,!1,Ic(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t});function Ic(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Pc(e){return Le(e)?document.querySelector(e):e}var mo=typeof document<"u";function va(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Vc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&va(e.default)}var Te=Object.assign;function Zn(e,t){let n={};for(let r in t){let s=t[r];n[r]=wt(s)?s.map(e):e(s)}return n}var Io=()=>{},wt=Array.isArray;function er(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var ya=/#/g,qc=/&/g,Mc=/\//g,Uc=/=/g,$c=/\?/g,ga=/\+/g,Lc=/%5B/g,Fc=/%5D/g,ba=/%5E/g,zc=/%60/g,wa=/%7B/g,Hc=/%7C/g,ka=/%7D/g,Bc=/%20/g;function tr(e){return e==null?"":encodeURI(""+e).replace(Hc,"|").replace(Lc,"[").replace(Fc,"]")}function Ea(e){return tr(e).replace(wa,"{").replace(ka,"}").replace(ba,"^")}function Zs(e){return tr(e).replace(ga,"%2B").replace(Bc,"+").replace(ya,"%23").replace(qc,"%26").replace(zc,"`").replace(wa,"{").replace(ka,"}").replace(ba,"^")}function jc(e){return Zs(e).replace(Uc,"%3D")}function Gc(e){return tr(e).replace(ya,"%23").replace($c,"%3F")}function Ca(e){return Gc(e).replace(Mc,"%2F")}function Oo(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Wc=/\/$/,Kc=e=>e.replace(Wc,"");function xn(e,t,n="/"){let r,s={},i="",a="",u=t.indexOf("#"),m=t.indexOf("?");return m=u>=0&&m>u?-1:m,m>=0&&(r=t.slice(0,m),i=t.slice(m,u>0?u:t.length),s=e(i.slice(1))),u>=0&&(r=r||t.slice(0,u),a=t.slice(u,t.length)),r=Jc(r??t,n),{fullPath:r+i+a,path:r,query:s,hash:Oo(a)}}function _a(e,t){let n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function or(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Sa(e,t,n){let r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&po(t.matched[r],n.matched[s])&&nr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function po(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Yc(e[n],t[n]))return!1;return!0}function Yc(e,t){return wt(e)?ha(e,t):wt(t)?ha(t,e):e?.valueOf()===t?.valueOf()}function ha(e,t){return wt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Jc(e,t){if(e.startsWith("/"))return e;if(!e)return t;let n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,a,u;for(a=0;a<r.length;a++)if(u=r[a],u!==".")if(u==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a).join("/")}var Xt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},es=(function(e){return e.pop="pop",e.push="push",e})({}),ts=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Na(e){if(!e)if(mo){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Kc(e)}var Qc=/^[^#]+#/;function Ra(e,t){return e.replace(Qc,"#")+t}function Xc(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var vn=()=>({left:window.scrollX,top:window.scrollY});function Da(e){let t;if("el"in e){let n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Xc(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function sr(e,t){return(history.state?history.state.position-t:-1)+e}var xs=new Map;function Ta(e,t){xs.set(e,t)}function Aa(e){let t=xs.get(e);return xs.delete(e),t}function Zc(e){return typeof e=="string"||e&&typeof e=="object"}function rr(e){return typeof e=="string"||typeof e=="symbol"}var Be=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({}),Oa=Symbol("");var s$={[Be.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for
|
|
${JSON.stringify(e)}${t?`
|
|
while being at
|
|
`+JSON.stringify(t):""}`},[Be.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${ep(t)}" via a navigation guard.`},[Be.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[Be.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[Be.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function fo(e,t){return Te(new Error,{type:e,[Oa]:!0},t)}function Ht(e,t){return e instanceof Error&&Oa in e&&(t==null||!!(e.type&t))}var xc=["params","query","hash"];function ep(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let n of xc)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Ia(e){let t={};if(e===""||e==="?")return t;let n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){let s=n[r].replace(ga," "),i=s.indexOf("="),a=Oo(i<0?s:s.slice(0,i)),u=i<0?null:Oo(s.slice(i+1));if(a in t){let m=t[a];wt(m)||(m=t[a]=[m]),m.push(u)}else t[a]=u}return t}function ir(e){let t="";for(let n in e){let r=e[n];if(n=jc(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(wt(r)?r.map(s=>s&&Zs(s)):[r&&Zs(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function Pa(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=wt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}var Va=Symbol(""),ar=Symbol(""),os=Symbol(""),ns=Symbol(""),ss=Symbol("");function Po(){let e=[];function t(r){return e.push(r),()=>{let s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Qt(e,t,n,r,s,i=a=>a()){let a=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((u,m)=>{let w=h=>{h===!1?m(fo(Be.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?m(h):Zc(h)?m(fo(Be.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(a&&r.enterCallbacks[s]===a&&typeof h=="function"&&a.push(h),u())},g=i(()=>e.call(r&&r.instances[s],t,n,w)),k=Promise.resolve(g);e.length<3&&(k=k.then(w)),k.catch(h=>m(h))})}function rs(e,t,n,r,s=i=>i()){let i=[];for(let a of e)for(let u in a.components){let m=a.components[u];if(!(t!=="beforeRouteEnter"&&!a.instances[u]))if(va(m)){let w=(m.__vccOpts||m)[t];w&&i.push(Qt(w,n,r,a,u,s))}else{let w=m();i.push(()=>w.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${u}" at "${a.path}"`);let k=Vc(g)?g.default:g;a.mods[u]=g,a.components[u]=k;let h=(k.__vccOpts||k)[t];return h&&Qt(h,n,r,a,u,s)()}))}}return i}function qa(e,t){let n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){let u=t.matched[a];u&&(e.matched.find(w=>po(w,u))?r.push(u):n.push(u));let m=e.matched[a];m&&(t.matched.find(w=>po(w,m))||s.push(m))}return[n,r,s]}var tp=()=>location.protocol+"//"+location.host;function Wa(e,t){let{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,u=s.slice(a);return u[0]!=="/"&&(u="/"+u),or(u,"")}return or(n,e)+r+s}function op(e,t,n,r){let s=[],i=[],a=null,u=({state:h})=>{let E=Wa(e,location),S=n.value,v=t.value,_=0;if(h){if(n.value=E,t.value=h,a&&a===S){a=null;return}_=v?h.position-v.position:0}else r(E);s.forEach(N=>{N(n.value,S,{delta:_,type:es.pop,direction:_?_>0?ts.forward:ts.back:ts.unknown})})};function m(){a=n.value}function w(h){s.push(h);let E=()=>{let S=s.indexOf(h);S>-1&&s.splice(S,1)};return i.push(E),E}function g(){if(document.visibilityState==="hidden"){let{history:h}=window;if(!h.state)return;h.replaceState(Te({},h.state,{scroll:vn()}),"")}}function k(){for(let h of i)h();i=[],window.removeEventListener("popstate",u),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",u),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:m,listen:w,destroy:k}}function Ma(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?vn():null}}function np(e){let{history:t,location:n}=window,r={value:Wa(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(m,w,g){let k=e.indexOf("#"),h=k>-1?(n.host&&document.querySelector("base")?e:e.slice(k))+m:tp()+e+m;try{t[g?"replaceState":"pushState"](w,"",h),s.value=w}catch(E){console.error(E),n[g?"replace":"assign"](h)}}function a(m,w){i(m,Te({},t.state,Ma(s.value.back,m,s.value.forward,!0),w,{position:s.value.position}),!0),r.value=m}function u(m,w){let g=Te({},s.value,t.state,{forward:m,scroll:vn()});i(g.current,g,!0),i(m,Te({},Ma(r.value,m,null),{position:g.position+1},w),!1),r.value=m}return{location:r,state:s,push:u,replace:a}}function Ka(e){e=Na(e);let t=np(e),n=op(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}let s=Te({location:"",base:e,go:r,createHref:Ra.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}var ho=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),Qe=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Qe||{}),sp={type:ho.Static,value:""},rp=/[a-zA-Z0-9_]/;function ip(e){if(!e)return[[]];if(e==="/")return[[sp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(E){throw new Error(`ERR (${n})/"${w}": ${E}`)}let n=Qe.Static,r=n,s=[],i;function a(){i&&s.push(i),i=[]}let u=0,m,w="",g="";function k(){w&&(n===Qe.Static?i.push({type:ho.Static,value:w}):n===Qe.Param||n===Qe.ParamRegExp||n===Qe.ParamRegExpEnd?(i.length>1&&(m==="*"||m==="+")&&t(`A repeatable param (${w}) must be alone in its segment. eg: '/:ids+.`),i.push({type:ho.Param,value:w,regexp:g,repeatable:m==="*"||m==="+",optional:m==="*"||m==="?"})):t("Invalid state to consume buffer"),w="")}function h(){w+=m}for(;u<e.length;){if(m=e[u++],m==="\\"&&n!==Qe.ParamRegExp){r=n,n=Qe.EscapeNext;continue}switch(n){case Qe.Static:m==="/"?(w&&k(),a()):m===":"?(k(),n=Qe.Param):h();break;case Qe.EscapeNext:h(),n=r;break;case Qe.Param:m==="("?n=Qe.ParamRegExp:rp.test(m)?h():(k(),n=Qe.Static,m!=="*"&&m!=="?"&&m!=="+"&&u--);break;case Qe.ParamRegExp:m===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+m:n=Qe.ParamRegExpEnd:g+=m;break;case Qe.ParamRegExpEnd:k(),n=Qe.Static,m!=="*"&&m!=="?"&&m!=="+"&&u--,g="";break;default:t("Unknown state");break}}return n===Qe.ParamRegExp&&t(`Unfinished custom RegExp for param "${w}"`),k(),a(),s}var Ua="[^/]+?",ap={sensitive:!1,strict:!1,start:!0,end:!0},rt=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(rt||{}),lp=/[.+*?^${}()[\]/\\]/g;function dp(e,t){let n=Te({},ap,t),r=[],s=n.start?"^":"",i=[];for(let w of e){let g=w.length?[]:[rt.Root];n.strict&&!w.length&&(s+="/");for(let k=0;k<w.length;k++){let h=w[k],E=rt.Segment+(n.sensitive?rt.BonusCaseSensitive:0);if(h.type===ho.Static)k||(s+="/"),s+=h.value.replace(lp,"\\$&"),E+=rt.Static;else if(h.type===ho.Param){let{value:S,repeatable:v,optional:_,regexp:N}=h;i.push({name:S,repeatable:v,optional:_});let T=N||Ua;if(T!==Ua){E+=rt.BonusCustomRegExp;try{`${T}`}catch(M){throw new Error(`Invalid custom RegExp for param "${S}" (${T}): `+M.message)}}let V=v?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;k||(V=_&&w.length<2?`(?:/${V})`:"/"+V),_&&(V+="?"),s+=V,E+=rt.Dynamic,_&&(E+=rt.BonusOptional),v&&(E+=rt.BonusRepeatable),T===".*"&&(E+=rt.BonusWildcard)}g.push(E)}r.push(g)}if(n.strict&&n.end){let w=r.length-1;r[w][r[w].length-1]+=rt.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");let a=new RegExp(s,n.sensitive?"":"i");function u(w){let g=w.match(a),k={};if(!g)return null;for(let h=1;h<g.length;h++){let E=g[h]||"",S=i[h-1];k[S.name]=E&&S.repeatable?E.split("/"):E}return k}function m(w){let g="",k=!1;for(let h of e){(!k||!g.endsWith("/"))&&(g+="/"),k=!1;for(let E of h)if(E.type===ho.Static)g+=E.value;else if(E.type===ho.Param){let{value:S,repeatable:v,optional:_}=E,N=S in w?w[S]:"";if(wt(N)&&!v)throw new Error(`Provided param "${S}" is an array but it is not repeatable (* or + modifiers)`);let T=wt(N)?N.join("/"):N;if(!T)if(_)h.length<2&&(g.endsWith("/")?g=g.slice(0,-1):k=!0);else throw new Error(`Missing required param "${S}"`);g+=T}}return g||"/"}return{re:a,score:r,keys:i,parse:u,stringify:m}}function up(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===rt.Static+rt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===rt.Static+rt.Segment?1:-1:0}function Ya(e,t){let n=0,r=e.score,s=t.score;for(;n<r.length&&n<s.length;){let i=up(r[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-r.length)===1){if($a(r))return 1;if($a(s))return-1}return s.length-r.length}function $a(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var cp={strict:!1,end:!0,sensitive:!1};function pp(e,t,n){let r=dp(ip(e.path),n),s=Te(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function fp(e,t){let n=[],r=new Map;t=er(cp,t);function s(k){return r.get(k)}function i(k,h,E){let S=!E,v=Fa(k);v.aliasOf=E&&E.record;let _=er(t,k),N=[v];if("alias"in k){let M=typeof k.alias=="string"?[k.alias]:k.alias;for(let q of M)N.push(Fa(Te({},v,{components:E?E.record.components:v.components,path:q,aliasOf:E?E.record:v})))}let T,V;for(let M of N){let{path:q}=M;if(h&&q[0]!=="/"){let z=h.record.path,ne=z[z.length-1]==="/"?"":"/";M.path=h.record.path+(q&&ne+q)}if(T=pp(M,h,_),E?E.alias.push(T):(V=V||T,V!==T&&V.alias.push(T),S&&k.name&&!za(T)&&a(k.name)),Ja(T)&&m(T),v.children){let z=v.children;for(let ne=0;ne<z.length;ne++)i(z[ne],T,E&&E.children[ne])}E=E||T}return V?()=>{a(V)}:Io}function a(k){if(rr(k)){let h=r.get(k);h&&(r.delete(k),n.splice(n.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{let h=n.indexOf(k);h>-1&&(n.splice(h,1),k.record.name&&r.delete(k.record.name),k.children.forEach(a),k.alias.forEach(a))}}function u(){return n}function m(k){let h=vp(k,n);n.splice(h,0,k),k.record.name&&!za(k)&&r.set(k.record.name,k)}function w(k,h){let E,S={},v,_;if("name"in k&&k.name){if(E=r.get(k.name),!E)throw fo(Be.MATCHER_NOT_FOUND,{location:k});_=E.record.name,S=Te(La(h.params,E.keys.filter(V=>!V.optional).concat(E.parent?E.parent.keys.filter(V=>V.optional):[]).map(V=>V.name)),k.params&&La(k.params,E.keys.map(V=>V.name))),v=E.stringify(S)}else if(k.path!=null)v=k.path,E=n.find(V=>V.re.test(v)),E&&(S=E.parse(v),_=E.record.name);else{if(E=h.name?r.get(h.name):n.find(V=>V.re.test(h.path)),!E)throw fo(Be.MATCHER_NOT_FOUND,{location:k,currentLocation:h});_=E.record.name,S=Te({},h.params,k.params),v=E.stringify(S)}let N=[],T=E;for(;T;)N.unshift(T.record),T=T.parent;return{name:_,path:v,params:S,matched:N,meta:hp(N)}}e.forEach(k=>i(k));function g(){n.length=0,r.clear()}return{addRoute:i,resolve:w,removeRoute:a,clearRoutes:g,getRoutes:u,getRecordMatcher:s}}function La(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Fa(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:mp(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function mp(e){let t={},n=e.props||!1;if("component"in e)t.default=n;else for(let r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function za(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hp(e){return e.reduce((t,n)=>Te(t,n.meta),{})}function vp(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ya(e,t[i])<0?r=i:n=i+1}let s=yp(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function yp(e){let t=e;for(;t=t.parent;)if(Ja(t)&&Ya(e,t)===0)return t}function Ja({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ha(e){let t=dt(os),n=dt(ns),r=!1,s=null,i=tt(()=>{let g=Wt(e.to);return t.resolve(g)}),a=tt(()=>{let{matched:g}=i.value,{length:k}=g,h=g[k-1],E=n.matched;if(!h||!E.length)return-1;let S=E.findIndex(po.bind(null,h));if(S>-1)return S;let v=Ba(g[k-2]);return k>1&&Ba(h)===v&&E[E.length-1].path!==v?E.findIndex(po.bind(null,g[k-2])):S}),u=tt(()=>a.value>-1&&Ep(n.params,i.value.params)),m=tt(()=>a.value>-1&&a.value===n.matched.length-1&&nr(n.params,i.value.params));function w(g={}){if(kp(g)){let k=t[Wt(e.replace)?"replace":"push"](Wt(e.to)).catch(Io);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>k),k}return Promise.resolve()}return{route:i,href:tt(()=>i.value.href),isActive:u,isExactActive:m,navigate:w}}function gp(e){return e.length===1?e[0]:e}var bp=un({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Ha,setup(e,{slots:t}){let n=Fe(Ha(e)),{options:r}=dt(os),s=tt(()=>({[ja(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ja(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{let i=t.default&&gp(t.default(n));return e.custom?i:be("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),wp=bp;function kp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ep(e,t){for(let n in t){let r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!wt(s)||s.length!==r.length||r.some((i,a)=>i.valueOf()!==s[a].valueOf()))return!1}return!0}function Ba(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var ja=(e,t,n)=>e??t??n,Cp=un({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=dt(ss),s=tt(()=>e.route||r.value),i=dt(ar,0),a=tt(()=>{let w=Wt(i),{matched:g}=s.value,k;for(;(k=g[w])&&!k.components;)w++;return w}),u=tt(()=>s.value.matched[a.value]);uo(ar,tt(()=>a.value+1)),uo(Va,u),uo(ss,s);let m=xe();return He(()=>[m.value,u.value,e.name],([w,g,k],[h,E,S])=>{g&&(g.instances[k]=w,E&&E!==g&&w&&w===h&&(g.leaveGuards.size||(g.leaveGuards=E.leaveGuards),g.updateGuards.size||(g.updateGuards=E.updateGuards))),w&&g&&(!E||!po(g,E)||!h)&&(g.enterCallbacks[k]||[]).forEach(v=>v(w))},{flush:"post"}),()=>{let w=s.value,g=e.name,k=u.value,h=k&&k.components[g];if(!h)return Ga(n.default,{Component:h,route:w});let E=k.props[g],S=E?E===!0?w.params:typeof E=="function"?E(w):E:null,_=be(h,Te({},S,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(k.instances[g]=null)},ref:m}));return Ga(n.default,{Component:_,route:w})||_}}});function Ga(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var lr=Cp;function Qa(e){let t=fp(e.routes,e),n=e.parseQuery||Ia,r=e.stringifyQuery||ir,s=e.history,i=Po(),a=Po(),u=Po(),m=In(Xt),w=Xt;mo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let g=Zn.bind(null,F=>""+F),k=Zn.bind(null,Ca),h=Zn.bind(null,Oo);function E(F,Z){let Q,te;return rr(F)?(Q=t.getRecordMatcher(F),te=Z):te=F,t.addRoute(te,Q)}function S(F){let Z=t.getRecordMatcher(F);Z&&t.removeRoute(Z)}function v(){return t.getRoutes().map(F=>F.record)}function _(F){return!!t.getRecordMatcher(F)}function N(F,Z){if(Z=Te({},Z||m.value),typeof F=="string"){let y=xn(n,F,Z.path),D=t.resolve({path:y.path},Z),O=s.createHref(y.fullPath);return Te(y,D,{params:h(D.params),hash:Oo(y.hash),redirectedFrom:void 0,href:O})}let Q;if(F.path!=null)Q=Te({},F,{path:xn(n,F.path,Z.path).path});else{let y=Te({},F.params);for(let D in y)y[D]==null&&delete y[D];Q=Te({},F,{params:k(y)}),Z.params=k(Z.params)}let te=t.resolve(Q,Z),ye=F.hash||"";te.params=g(h(te.params));let Ee=_a(r,Te({},F,{hash:Ea(ye),path:te.path})),p=s.createHref(Ee);return Te({fullPath:Ee,hash:ye,query:r===ir?Pa(F.query):F.query||{}},te,{redirectedFrom:void 0,href:p})}function T(F){return typeof F=="string"?xn(n,F,m.value.path):Te({},F)}function V(F,Z){if(w!==F)return fo(Be.NAVIGATION_CANCELLED,{from:Z,to:F})}function M(F){return ne(F)}function q(F){return M(Te(T(F),{replace:!0}))}function z(F,Z){let Q=F.matched[F.matched.length-1];if(Q&&Q.redirect){let{redirect:te}=Q,ye=typeof te=="function"?te(F,Z):te;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=T(ye):{path:ye},ye.params={}),Te({query:F.query,hash:F.hash,params:ye.path!=null?{}:F.params},ye)}}function ne(F,Z){let Q=w=N(F),te=m.value,ye=F.state,Ee=F.force,p=F.replace===!0,y=z(Q,te);if(y)return ne(Te(T(y),{state:typeof y=="object"?Te({},ye,y.state):ye,force:Ee,replace:p}),Z||Q);let D=Q;D.redirectedFrom=Z;let O;return!Ee&&Sa(r,te,Q)&&(O=fo(Be.NAVIGATION_DUPLICATED,{to:D,from:te}),Me(te,te,!0,!1)),(O?Promise.resolve(O):P(D,te)).catch(I=>Ht(I)?Ht(I,Be.NAVIGATION_GUARD_REDIRECT)?I:qe(I):re(I,D,te)).then(I=>{if(I){if(Ht(I,Be.NAVIGATION_GUARD_REDIRECT))return ne(Te({replace:p},T(I.to),{state:typeof I.to=="object"?Te({},ye,I.to.state):ye,force:Ee}),Z||D)}else I=J(D,te,!0,p,ye);return G(D,te,I),I})}function ee(F,Z){let Q=V(F,Z);return Q?Promise.reject(Q):Promise.resolve()}function C(F){let Z=ze.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(F):F()}function P(F,Z){let Q,[te,ye,Ee]=qa(F,Z);Q=rs(te.reverse(),"beforeRouteLeave",F,Z);for(let y of te)y.leaveGuards.forEach(D=>{Q.push(Qt(D,F,Z))});let p=ee.bind(null,F,Z);return Q.push(p),ke(Q).then(()=>{Q=[];for(let y of i.list())Q.push(Qt(y,F,Z));return Q.push(p),ke(Q)}).then(()=>{Q=rs(ye,"beforeRouteUpdate",F,Z);for(let y of ye)y.updateGuards.forEach(D=>{Q.push(Qt(D,F,Z))});return Q.push(p),ke(Q)}).then(()=>{Q=[];for(let y of Ee)if(y.beforeEnter)if(wt(y.beforeEnter))for(let D of y.beforeEnter)Q.push(Qt(D,F,Z));else Q.push(Qt(y.beforeEnter,F,Z));return Q.push(p),ke(Q)}).then(()=>(F.matched.forEach(y=>y.enterCallbacks={}),Q=rs(Ee,"beforeRouteEnter",F,Z,C),Q.push(p),ke(Q))).then(()=>{Q=[];for(let y of a.list())Q.push(Qt(y,F,Z));return Q.push(p),ke(Q)}).catch(y=>Ht(y,Be.NAVIGATION_CANCELLED)?y:Promise.reject(y))}function G(F,Z,Q){u.list().forEach(te=>C(()=>te(F,Z,Q)))}function J(F,Z,Q,te,ye){let Ee=V(F,Z);if(Ee)return Ee;let p=Z===Xt,y=mo?history.state:{};Q&&(te||p?s.replace(F.fullPath,Te({scroll:p&&y&&y.scroll},ye)):s.push(F.fullPath,ye)),m.value=F,Me(F,Z,Q,p),qe()}let X;function K(){X||(X=s.listen((F,Z,Q)=>{if(!Ue.listening)return;let te=N(F),ye=z(te,Ue.currentRoute.value);if(ye){ne(Te(ye,{replace:!0,force:!0}),te).catch(Io);return}w=te;let Ee=m.value;mo&&Ta(sr(Ee.fullPath,Q.delta),vn()),P(te,Ee).catch(p=>Ht(p,Be.NAVIGATION_ABORTED|Be.NAVIGATION_CANCELLED)?p:Ht(p,Be.NAVIGATION_GUARD_REDIRECT)?(ne(Te(T(p.to),{force:!0}),te).then(y=>{Ht(y,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&!Q.delta&&Q.type===es.pop&&s.go(-1,!1)}).catch(Io),Promise.reject()):(Q.delta&&s.go(-Q.delta,!1),re(p,te,Ee))).then(p=>{p=p||J(te,Ee,!1),p&&(Q.delta&&!Ht(p,Be.NAVIGATION_CANCELLED)?s.go(-Q.delta,!1):Q.type===es.pop&&Ht(p,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),G(te,Ee,p)}).catch(Io)}))}let se=Po(),ce=Po(),ue;function re(F,Z,Q){qe(F);let te=ce.list();return te.length?te.forEach(ye=>ye(F,Z,Q)):console.error(F),Promise.reject(F)}function _e(){return ue&&m.value!==Xt?Promise.resolve():new Promise((F,Z)=>{se.add([F,Z])})}function qe(F){return ue||(ue=!F,K(),se.list().forEach(([Z,Q])=>F?Q(F):Z()),se.reset()),F}function Me(F,Z,Q,te){let{scrollBehavior:ye}=e;if(!mo||!ye)return Promise.resolve();let Ee=!Q&&Aa(sr(F.fullPath,0))||(te||!Q)&&history.state&&history.state.scroll||null;return ot().then(()=>ye(F,Z,Ee)).then(p=>p&&Da(p)).catch(p=>re(p,F,Z))}let Pe=F=>s.go(F),Se,ze=new Set,Ue={currentRoute:m,listening:!0,addRoute:E,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:v,resolve:N,options:e,push:M,replace:q,go:Pe,back:()=>Pe(-1),forward:()=>Pe(1),beforeEach:i.add,beforeResolve:a.add,afterEach:u.add,onError:ce.add,isReady:_e,install(F){F.component("RouterLink",wp),F.component("RouterView",lr),F.config.globalProperties.$router=Ue,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>Wt(m)}),mo&&!Se&&m.value===Xt&&(Se=!0,M(s.location).catch(te=>{}));let Z={};for(let te in Xt)Object.defineProperty(Z,te,{get:()=>m.value[te],enumerable:!0});F.provide(os,Ue),F.provide(ns,Yo(Z)),F.provide(ss,m);let Q=F.unmount;ze.add(F),F.unmount=function(){ze.delete(F),ze.size<1&&(w=Xt,X&&X(),X=null,m.value=Xt,Se=!1,ue=!1),Q()}}};function ke(F){return F.reduce((Z,Q)=>Z.then(()=>C(Q)),Promise.resolve())}return Ue}function Xa(e){return dt(ns)}function Za(e,t){return t?.split(".").reduce((n,r)=>n?.[r],e)}function dr(e=null,t=new Map){let n=Fe({}),r=[],s=!1,i=new Proxy(n,{get(a,u){return typeof u=="string"&&u.startsWith("__v_")||Reflect.has(a,u)?Reflect.get(a,u):e?.[u]}});return Object.defineProperty(n,"parent",{value:e,configurable:!0}),Object.defineProperty(n,"viewState",{get:()=>i}),i.watch=(a,u,m=!1,w=!0)=>{let g=typeof a=="function"?()=>a(i):()=>Za(i,a),k=He(g,u,{deep:m,flush:"post"});return r.push(k),w&&ot(()=>{s||u(g(),g())}),k},i.watchGroup=(a,u,m=!0)=>i.watch(()=>a.map(w=>Za(i,w)),u,!0,m),i.on=(a,u)=>{if(a==="dispose")return r.push(u),()=>{};t.has(a)||t.set(a,new Set),t.get(a).add(u);let m=()=>t.get(a)?.delete(u);return r.push(m),m},i.emit=(a,...u)=>{for(let m of[...t.get(a)||[]])m({},...u)},i.dispose=()=>{s=!0,r.splice(0).reverse().forEach(a=>a())},Wo(i.dispose),i}function ut(){let e=new Set,t=new Set,n=!1,r=(i,a=0)=>{if(n)return;let u=setTimeout(()=>{e.delete(u),i()},a);return e.add(u),u};r.cancel=i=>{clearTimeout(i),e.delete(i)};let s=(i,a)=>{if(n)return;let u=setInterval(i,a);return t.add(u),u};return s.cancel=i=>{clearInterval(i),t.delete(i)},Wo(()=>{n=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:r,interval:s}}function Zt(){let e=new Set;return Wo(()=>{e.forEach(t=>t()),e.clear()}),(t,n,r,s)=>{t.addEventListener(n,r,s);let i=()=>{t.removeEventListener(n,r,s),e.delete(i)};return e.add(i),i}}function ur(e,t,n){let r,s=!1,i="form-draft:"+n,a=()=>Object.fromEntries(t.map(h=>[h,e[h]])),u=()=>JSON.stringify(a()),m=h=>{for(let E of t)Object.prototype.hasOwnProperty.call(h,E)&&(e[E]=h[E]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},w=()=>{try{window.sessionStorage.removeItem(i)}catch{}},g=(h=!1)=>{if(r!==void 0){if(h&&document.querySelectorAll("input, select, textarea").forEach(E=>{E._field?.binding.state===e&&E._field.timer&&E._field.commit()}),e.unsavedChanges=u()!==r,e.draftSaved=!1,!e.unsavedChanges){w();return}try{window.sessionStorage.setItem(i,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:a()})),e.draftSaved=!0}catch{}}},k=()=>g(!0);return e.on("routeLeave",k),window.addEventListener("beforeunload",k),e.on("dispose",()=>window.removeEventListener("beforeunload",k)),{restore(){r=u();let h;try{h=JSON.parse(window.sessionStorage.getItem(i)||"null")}catch{}let E=h&&h.account===(e.user?.username||null)&&Date.now()-h.savedAt<30*6e4&&h.values;return E&&(m(h.values),e.draftRestored=!0),s||(s=!0,e.watch(()=>a(),()=>g(),!0)),e.unsavedChanges=u()!==r,!!E},checkpoint(){return JSON.parse(u())},accept(h){r=JSON.stringify(h),e.draftRestored=!1,g()},discard(){document.querySelectorAll("input, select, textarea").forEach(h=>{h._field?.binding.state!==e||!h._field.timer||(clearTimeout(h._field.timer),h._field.timer=null,h.value=h._field.binding.value??"")}),r!==void 0&&m(JSON.parse(r)),e.draftRestored=!1,g()},clear(){r=u(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,w()}}}var yn={VIEWER_ERRORS:{title:"Content could not be loaded",access_title:"GitHub access needs attention",reader_help:"Reading this repository? You do not need to sign in. Try again after the owner restores access, or let them know this anonymous link is unavailable.",owner_help:"Own this repository? If your GitHub account was suspended or recently recovered, sign in to Anonymous GitHub again and check the GitHub connection and repository permissions in your dashboard. Then retry this page. Keep the existing anonymous URL; do not delete the repository to restore access.",retry:"Try again",dashboard:"Open owner dashboard"},ERRORS:{cache_busy:"Downloads are busy. Please try again shortly.",invalid_sort:"The selected sort order is invalid.",invalid_cursor:"This project page is no longer valid. Reload the list.",repository_changed:"The repository changed while processing. Please retry.",repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"We could not load this content. Try again. If it still fails, contact support with the anonymous URL and the time of the error.",unreachable:"The service could not complete this request. Wait a moment and try again.",request_error:"The connection was interrupted. Check your internet connection and try again.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"Anonymous GitHub cannot access the source repository on GitHub. It may be private, unavailable, or require the owner to reconnect GitHub.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_not_ready:"This pull request is still being prepared. Please try again shortly.",pull_request_not_available:"This pull request is currently not available.",invalid_pullRequestId:"The pull request ID is invalid.",pullRequestId_already_used:"This pull request ID is already in use. Please choose a different one.",repository_not_specified:"A repository must be specified for this pull request.",pullRequestId_not_specified:"A pull request ID must be specified.",pullRequestId_is_not_a_number:"The source pull request ID must be a number.",options_not_provided:"Anonymization options are mandatory.",terms_not_specified:"Anonymization terms must be specified.",invalid_terms_format:"Terms are in an invalid format.",missing_content:"No content was provided to the anonymization preview.",unable_to_anonymize:"An error happened during the anonymization process. Please try later or report the issue.",non_supported_mode:"The selected anonymization mode is invalid, only download and stream are supported.",invalid_path:"The provided path is invalid or missing.",path_not_specified:"A file path must be specified.",path_not_defined:"The file path has not been resolved yet.",invalid_file_path:"The requested file path is not valid.",invalid_request:"The request is missing required fields or is malformed.",invalid_project_name:"Use a project name of up to 100 characters without line breaks or control characters.",no_file_selected:"Please select a file.",submodule_not_available:"This public submodule file is no longer available at its recorded commit.",file_not_found:"The requested file is not found.",file_not_accessible:"The requested file is not accessible.",file_not_supported:"The file type is not supported. Anonymous GitHub cannot handle it.",file_too_big:"The file size exceeds the limit of Anonymous GitHub.",is_folder:"The path points to a folder.",folder_not_supported:"The path points to a folder. Please select a file.",unable_to_write_file:"Unable to write file on disk.",download_not_enabled:"Repository downloads are not enabled on this server.",unable_to_download:"The repository could not be downloaded. Please try again later.",s3_config_not_provided:"Object storage has not been configured on this server.",stats_unsupported:"Statistics are only supported in download mode.",branches_not_found:"The requested branch is not found.",readme_not_available:"No README for the repository is found.",page_not_supported_on_different_branch:"GitHub Pages is served from a different branch than the one selected. Pick the branch that GitHub Pages is configured to use.",page_not_activated:"GitHub Pages is not enabled on this repository. Enable it in the repository settings on GitHub before anonymizing.",is_removed:"This resource has been removed and is no longer available.",conf_name_missing:"A conference name is required.",conf_id_missing:"A conference ID is required.",conf_id_used:"This conference ID is already in use. Please choose a different one.",conf_start_date_missing:"A start date is required for the conference.",conf_end_date_missing:"An end date is required for the conference.",conf_start_date_invalid:"The start date must be before the end date.",conf_end_date_invalid:"The end date must be in the future.",invalid_plan:"The selected plan is not valid.",conference_not_found:"The requested conference could not be found.",conf_not_found:"The requested conference could not be found.",conf_not_activated:"The conference is not activated.",billing_missing:"Billing information is required for this plan.",billing_name_missing:"A billing name is required.",billing_email_missing:"A billing email is required.",billing_address_missing:"A billing address is required.",billing_city_missing:"A billing city is required.",billing_zip_missing:"A billing ZIP/postal code is required.",billing_country_missing:"A billing country is required.",queue_not_found:"The specified queue could not be found.",job_not_found:"The specified job could not be found in the queue.",error_retrying_job:"An error occurred while retrying the job.",gist_expired:"The gist is expired.",gist_not_ready:"Anonymous GitHub is still processing the gist, it can take several minutes.",gist_not_found:"The requested gist could not be found.",gist_not_available:"This gist is currently not available.",invalid_gistId:"The format of the gist ID is invalid.",gistId_not_specified:"A gist ID must be provided.",gistId_already_used:"The gist ID is already used.",missing_token:"An authentication token is required.",token_attempts_rate_limited:"Too many token authentication attempts. Wait before trying again.",refresh_rate_limited:"A refresh was already requested for this repository. Wait one minute before trying again.",session_required:"Sign in through your browser to manage maintenance tokens.",invalid_token_options:"Provide a token name, 1 to 20 repository IDs, and an expiration of 1 to 90 days.",token_limit_reached:"You have reached the limit of 50 API tokens. Revoke an unused token before creating another.",invalid_token_id:"The token ID is invalid.",invalid_settings:"Provide supported settings with boolean values, or a list of anonymization terms.",token_scope_forbidden:"This token does not allow this operation or repository.",authentication_unavailable:"Authentication is temporarily unavailable. Try again later.",invalid_token:"The provided authentication token is invalid.",login_failed:"Login failed. Please try again.",server_error:"An unexpected server error occurred. Please try again later.",username_not_defined:"A username must be provided.",github_user_not_found:"The specified GitHub user could not be found.",cannot_coauthor_self:"You cannot add yourself as a co-author.",storage_write_size_mismatch:"The downloaded file was smaller than expected. The upstream source may have returned an incomplete response \u2014 please try again.",storage_read_error:"An error occurred while reading the file from storage \u2014 please try again.",upstream_error:"A temporary error occurred while fetching from GitHub \u2014 please try again.",token_expired:"The repository owner needs to renew their GitHub connection before this content can be loaded.",job_is_active:"This job is currently running \u2014 wait for it to finish or remove it first.",github_app_access_required:"Allow this repository on GitHub using the read-only access button, then retry. Organization access may require administrator approval.",github_app_reconnect_required:"Reconnect your GitHub App account to restore read-only access.",github_app_disabled:"New GitHub App connections are currently unavailable.",github_oauth_required:"Connect legacy GitHub OAuth to use this feature.",github_identity_mismatch:"Use the same GitHub account that you are signed in with here.",github_app_permissions_invalid:"The GitHub App must be configured with read-only permissions.",github_unavailable:"GitHub is temporarily unavailable. Please retry.",connection_changed:"The repository connection changed. Reload and try again.",repository_busy:"Wait for the repository operation to finish before changing its connection.",invalid_connection:"Select a supported GitHub connection.",github_oauth_disabled:"Legacy OAuth sign-in is currently disabled.",invalid_auth_state:"The authorization session expired. Please start again from Anonymous GitHub.",invalid_webhook_signature:"The webhook signature is invalid.",webhook_processing_failed:"Webhook processing failed. Retry the delivery.",github_app_authorization_cancelled:"GitHub authorization was cancelled.",github_account_link_required:"Verify your existing account with your previous GitHub connection. Future sign-ins will use the GitHub App.",github_app_refresh_busy:"GitHub credentials are being renewed. Please retry shortly.",github_grant_revocation_failed:"Unable to revoke the GitHub grant. Please retry.",another_login_required:"Connect and verify another sign-in method before disconnecting OAuth.",oauth_resources_remaining:"Some resources still require OAuth. Migrate or remove them before disconnecting.",invalid_github_path:"The GitHub repository path is invalid."},WARNINGS:{page_not_enabled_on_repo:"GitHub Pages is not enabled on this repository. Enable it in the repository's Settings \u2192 Pages on GitHub, then refresh.",page_branch_mismatch:"GitHub Pages on this repository is served from the '{{pageBranch}}' branch, but you selected '{{selectedBranch}}'. Switch the branch above to '{{pageBranch}}' to anonymize the Pages site.",folder_truncated:"This folder has more than 10,000 entries; only a partial listing is shown.",repo_truncated:"Some folders in this repository have too many files to be fully listed. Affected folders are marked with a warning icon.",submodules_not_included:"Some submodule contents could not be included. Only direct public GitHub submodules within the size limits are supported. Private, external, nested, or unavailable submodules appear as empty folders."}};function cr(e){let t=e?.data;if(typeof t=="string")try{t=JSON.parse(t)}catch{t=null}return typeof t?.error=="string"&&Object.prototype.hasOwnProperty.call(yn.ERRORS,t.error)?t.error:e?.status===-1||e?.status===0?"request_error":[502,503,504].includes(e?.status)?"unreachable":"unknown_error"}var is="XXXX",Sp=e=>{is=e||"XXXX"},xa=(e=is)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},el=(e,t=is)=>{let n=xa(t);if(!n||!e||!e.textContent.includes(t))return;let r=e.ownerDocument,s=r.createTreeWalker(e,NodeFilter.SHOW_TEXT),i=[];for(;s.nextNode();)i.push(s.currentNode);for(let a of i){let u=a.nodeValue,m=a.parentElement;if(!u.includes(t)||!m||m.closest("script, style, mark.redaction, .mermaid"))continue;let w=m.closest('code[class*="language-"]');if(w&&!w.contains(e))continue;let g=r.createDocumentFragment(),k=0;for(let h of u.matchAll(n)){g.append(u.slice(k,h.index));let E=r.createElement("mark");E.className="redaction",E.title="Redacted by Anonymous GitHub",E.textContent=h[0],g.append(E),k=h.index+h[0].length}g.append(u.slice(k)),a.replaceWith(g)}},tl=(e,t=is)=>{if(!e||!t||!e.includes(t))return e;let n=new DOMParser().parseFromString("<body>"+e+"</body>","text/html");return el(n.body,t),n.body.innerHTML};async function ol(e){if(window.navigator.clipboard?.writeText){await window.navigator.clipboard.writeText(e);return}let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0";let n=document.activeElement;document.body.appendChild(t);try{if(t.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{t.remove(),n?.focus()}}function Np(e){if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=[...e.currentTarget.closest('[role="tablist"]').querySelectorAll('[role="tab"]')],n=t.indexOf(e.currentTarget),r=e.key==="Home"?0:e.key==="End"?t.length-1:(n+(e.key==="ArrowRight"?1:-1)+t.length)%t.length;e.preventDefault(),t[r]?.focus(),t[r]?.click()}var nl=function(e,t,n,r){e.previewTabKeydown=Np,e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(g){let k=e.toasts.indexOf(g);k!==-1&&e.toasts.splice(k,1)},e.addToast=function(g){return e.toasts.push(g),r(function(){e.removeToast(g)},8e3),g};let s=/^\/(r|repository|pr|gist)\//;e.path=n.url(),e.paths=n.path().substring(1).split("/"),e.isReviewerRoute=s.test(n.path()),e.darkMode=function(g){localStorage.setItem("darkMode",g),e.isDarkMode=g;let k="/css/prism-okaidia.css",h="/css/prism.css";if(g){$("body").addClass("dark-mode");let S=document.createElement("link");S.href=k,S.rel="stylesheet",document.head.append(S),$(`link[href='${h}']`).remove()}else{$("body").removeClass("dark-mode");let S=document.createElement("link");S.href=h,S.rel="stylesheet",document.head.append(S),$(`link[href='${k}']`).remove()}let E=document.querySelector("[class*='floatingchat-container-wrap'] [class*='floating-chat-kofi-text-container-wrap']");E&&(E.style.backgroundColor=g?"#34312C":"#1A1815",E.style.color="#FAF9F6"),e.emit("dark-mode",g)},e.darkMode(localStorage.getItem("darkMode")=="true"),e.emailPromptOpen=!1,e.emailPromptAddress="",e.emailPromptBusy=!1,e.emailPromptError="";let i;e.respondToEmailPrompt=async g=>{if(!e.emailPromptBusy){e.emailPromptBusy=!0,e.emailPromptError="";try{let k=await t.post("/github/connections/email",{action:g,email:e.emailPromptAddress},{headers:{"X-CSRF-Token":e.user.emailPromptCSRF}});g==="save"&&(e.user.notificationEmail=k.data.notificationEmail),e.emailPromptOpen=!1,e.user.showEmailPrompt=!1,i?.focus()}catch(k){e.emailPromptError=k.data?.error||"Unable to save your preference. Please try again."}finally{e.emailPromptBusy=!1}}};function a(){t.get("/api/user").then(g=>{g&&(e.user=g.data),e.user?.emailNotificationsEnabled&&e.user.showEmailPrompt&&!e.user.notificationEmail&&(i=document.activeElement,e.emailPromptOpen=!0,r(()=>{let k=document.getElementById("email-prompt");k?.showModal?k.showModal():k?.setAttribute("open",""),document.getElementById("email-prompt-address")?.focus()},0))},()=>{e.user=null})}a();function u(){t.get("/api/options").then(g=>{g&&(e.site_options=g.data),Sp(g?.data?.ANONYMIZATION_MASK),e.emit("site-options")},()=>{e.site_options=null})}u();function m(){t.get("/api/message").then(g=>{g&&(e.generalMessage=g.data)},()=>{e.generalMessage=null})}m();function w(g,k){k&&(e.title=k.title),e.path=n.url(),e.paths=n.path().substring(1).split("/"),e.isReviewerRoute=s.test(n.path())}e.on("routeChange",w),e.on("routeUpdate",w)},sl=function(e,t){let n=Zt(),r=ut(),s=()=>{let i=window.location.hash.slice(1),a=document.getElementById(i);if(!a?.classList.contains("panel-collapse"))return;$(a).collapse("show");let u=document.getElementById(a.getAttribute("aria-labelledby"));u?.setAttribute("tabindex","-1"),u?.focus({preventScroll:!0}),u?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>r.timeout(s,0)),n(window,"hashchange",s),r.timeout(s,0)},rl=function(e,t,n,r,s){e.terms="",e.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},e.saving=!1,e.message=null,e.error=null,e.accountEmail="",e.emailLoading=!0,e.emailCSRFReady=!1,e.emailSaving=!1,e.emailSaved=!1,e.emailError="";let i="";e.loadAccountEmail=async()=>{e.emailLoading=!0,e.emailError="";try{let w=await t.get("/github/connections/email");e.accountEmail=w.data.notificationEmail||"",i=w.data.csrf,e.emailCSRFReady=!!i}catch{e.emailError="Unable to load your email address. Please try again."}finally{e.emailLoading=!1}},e.saveAccountEmail=async()=>{if(!(e.emailSaving||e.emailLoading||!i)){e.emailSaving=!0,e.emailSaved=!1,e.emailError="";try{let w=await t.post("/github/connections/email",{email:e.accountEmail},{headers:{"X-CSRF-Token":i}});e.accountEmail=w.data.notificationEmail,e.user&&(e.user.notificationEmail=w.data.notificationEmail),e.emailSaved=!0}catch{e.emailError="Unable to save your email address. Check the address and try again."}finally{e.emailSaving=!1}}},e.loadAccountEmail(),s.load().then(w=>{e.quota=w},console.error);let a=ur(e,["terms","options"],"profile");e.discardDraft=()=>a.discard();function u(){t.get("/api/user/default").then(w=>{let g=w.data||{};g.terms&&(e.terms=g.terms.join(`
|
|
`)),e.options=Object.assign({},e.options,g.options),a.restore()})}u();let m=null;e.saveDefault=w=>{if(w&&w.preventDefault&&w.preventDefault(),e.saving)return;let g=a.checkpoint(),k={terms:e.terms.split(`
|
|
`).map(h=>h.trim()).filter(h=>h.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",k).then(()=>{a.accept(g),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",m&&r.cancel(m),m=r(()=>{e.message=null},2500)},h=>{e.saving=!1;let E=h&&h.data&&h.data.error,S="Unable to save your defaults. Please try again.";Promise.all([n("ERRORS."+E),n("ERRORS.unknown_error")]).then(([v,_])=>{e.error=E&&v!==_?v:S},()=>{e.error=S})})},e.deleteAccount=()=>{confirm("Delete your account? All your anonymized repositories, gists, and pull requests will be removed, and your personal data will be erased. This cannot be undone.")&&(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},il=function(e,t,n){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(r=>{n.url("/dashboard")},r=>{e.error=r.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},al=function(e,t,n,r,s){e.user&&!e.user.status&&n.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&n.url("/dashboard")}),e.features=[{key:"anonymize",num:"01",eyebrow:"Anonymize",title:"Double-anonymous,",accent:"your rules.",text:"Choose what reviewers may see: links, images, PDFs, notebooks, GitHub Pages. Add your own terms, with regex if you need it, and pick the expiration date.",cta:"Start an anonymization",href:"/anonymize",url:"anonymous.4open.science/anonymize",img:"/imgs/anonymize.png",alt:"The anonymize form: source repository, terms to redact, options and a live README preview"},{key:"review",num:"02",eyebrow:"Review",title:"Reviewers browse",accent:"the real thing.",text:"Highlighted source code, rendered PDFs, images, and notebooks, in a familiar file explorer. GitHub Pages is also supported.",cta:"Open the example",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/",target:"_self",url:"anonymous.4open.science/r/840c8c57-\u2026",img:"/imgs/explorer.png",alt:"The repository explorer with a file tree and a rendered README"},{key:"manage",num:"03",eyebrow:"Manage",title:"One dashboard,",accent:"until the decision.",text:"Monitor views, edit configuration, remove or update your repository. Program chairs can group submissions under a conference with one shared expiry.",cta:"Open the dashboard",href:"/dashboard",needsUser:!0,url:"anonymous.4open.science/dashboard",img:"/imgs/dashboard.png",alt:"The dashboard listing anonymized repositories with status, views and expiry"}],e.feature=e.features[0].key,e.selectFeature=function(u){e.feature=u},e.featureHref=function(u){return u.needsUser&&!e.user?"/signin":u.href},e.featureTarget=function(u){return u.needsUser&&!e.user?"_self":u.target||void 0},e.featureKeydown=function(u,m){let w={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[u.key];if(w===void 0)return;u.preventDefault();let g=e.features.length,k=w==="first"?0:w==="last"?g-1:(m+w+g)%g;e.feature=e.features[k].key,s(()=>{let h=r.document.getElementById("feature-tab-"+e.feature);h&&h.focus()})},e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}];function i(){t.get("/api/stat/").then(u=>{e.stat=u.data,e.cards[0].total=u.data.nbRepositories,e.cards[1].total=u.data.nbUsers,e.cards[2].total=u.data.nbPageViews,e.cards[3].total=u.data.nbPullRequests})}i();function a(u){let m={series:u,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!u||u.length<2)return m;let w=new Array(u.length-1);for(let v=1;v<u.length;v++)w[v-1]=u[v]-u[v-1];let g=w.length,k=Math.max.apply(null,w),h=Math.min.apply(null,w),E=Math.min(0,h),S=k-E||1;m.viewW=g*2,m.bars=new Array(g);for(let v=0;v<g;v++){let _=(w[v]-E)/S,N=Math.max(1.5,_*34);m.bars[v]={x:(v*2+.25).toFixed(2),y:(36-N).toFixed(2),w:"1.5",h:N.toFixed(2)}}if(m.deltaToday=w[g-1],g>=2){let v=w[g-2];v&&(m.pctChange=(m.deltaToday-v)/v*100)}return m.pctAbs=Math.round(Math.abs(m.pctChange)),m.isUp=m.pctChange>=0,m}e.history={repositories:a([]),users:a([]),pageViews:a([]),pullRequests:a([])},t.get("/api/stat/history?days=60").then(u=>{let m=u.data||[];e.history={repositories:a(m.map(w=>w.nbRepositories||0)),users:a(m.map(w=>w.nbUsers||0)),pageViews:a(m.map(w=>w.nbPageViews||0)),pullRequests:a(m.map(w=>w.nbPullRequests||0))}})},ll=function(e,t,n,r,s,i){let a=ut();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),a.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,ot(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Zt()(document,"click",C=>{e.quotaExpanded&&!C.target.closest?.(".dashboard-quota")&&(e.quotaExpanded=!1)}),e.filtersExpanded=!1,e.projectView="all",e.selectedProject=null,e.projectName="",e.nameSaving=!1,e.nameError="",e.nameMessage="",e.needsAttention=C=>C.status==="error"||C._broken||m(C.status)==="progress"&&C._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=C=>{e.projectView=C,C==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.projectDetailsId=C=>"project-details-"+encodeURIComponent(C._type+":"+(C._id||C._source||"unknown")),e.showProjectDetails=async C=>{e.selectedProject=C,e.projectName=C.projectName||"",e.nameError="",e.nameMessage="",await ot();let P=document.getElementById(e.projectDetailsId(C));P?.focus(),P?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=C=>{e.selectedProject=null,ot(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(C._type+":"+C._id)}"]`)?.focus())},e.saveProjectName=async C=>{if(e.nameSaving||!C._id)return;let P=e.projectName.trim();if(P.length>100){e.nameError="Use 100 characters or fewer.";return}e.nameSaving=!0,e.nameError="",e.nameMessage="";try{let G=await t.post("/api/user/project-name",{type:C._type,id:C._id,name:P});C.projectName=G.data.name,C._label=C.projectName||C._fallbackLabel,e.selectedProject===C&&(e.nameMessage=P?"Project name saved.":"Default project name restored."),T||(e.dashboardCursor=null,await M(),e.selectedProject===C&&(e.selectedProject=e.items.find(J=>J._type===C._type&&J._id===C._id)||null))}catch{e.selectedProject===C&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async C=>{if(!C._viewUrl||e.copyingId)return;let P=new URL(C._viewUrl,s.location.origin).href;e.copyingId=C._type+":"+C._id;try{await ol(P),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:P})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"In progress",error:"Error",expired:"Expired",removed:"Removed"};let u=["queue","download","downloaded","preparing","anonymizing"];function m(C){return C==="ready"||C==="error"?C:C==="expired"||C==="expiring"?"expired":C==="removed"||C==="removing"?"removed":(u.indexOf(C)>-1,"progress")}let w=7200*1e3,g="dashboard.filterPrefs",k={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},h=loadFilterPrefs(g)||{};e.typeFilter=h.typeFilter||k.typeFilter,e.filters={status:Object.assign({},k.filters.status,h.filters&&h.filters.status||{})},e.orderBy=h.orderBy||k.orderBy;let E={_name:{label:"Anonymous ID",defaultDesc:!1},_label:{label:"Project",defaultDesc:!1},anonymizeDate:{label:"Anonymize date",defaultDesc:!0},status:{label:"Status",defaultDesc:!1},lastView:{label:"Last view",defaultDesc:!0},pageView:{label:"Views",defaultDesc:!0},"options.expirationDate":{label:"Expiration",defaultDesc:!1}};e.sortFields=E,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let C=E[e.sortField()];return C?C.label:"Custom"},e.isSortedBy=C=>e.sortField()===C,e.setSort=(C,P)=>{typeof P!="boolean"&&(P=e.isSortedBy(C)?!e.sortDesc():!!(E[C]&&E[C].defaultDesc)),e.orderBy=(P?"-":"")+C},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(g,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(g,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),i.load().then(C=>{e.quota=C},console.error);function S(C,P,G,J,X,K){C.pageView||(C.pageView=0),C.lastView||(C.lastView=""),C.options=C.options||{},C.options.terms=(C.options.terms||[]).filter(ce=>ce),C._id=P||"",C._source=J,C._broken=!P,C._name=P||J||"(unnamed)",C._fallbackLabel=C._type==="gist"?"Gist "+(P||J||"without an ID"):J||G||C._name,C._label=C.projectName||C._fallbackLabel,C._editUrl=P?X:null,C._viewUrl=P?K:null,C._broken&&(C.status="error",C.statusMessage="incomplete_record"),C._statusKey=m(C.status);let se=C.anonymizeDate||C.lastView;return C._stale=C._statusKey==="progress"&&!!se&&Date.now()-new Date(se).getTime()>w,C.status==="expired"||C.status==="expiring"?C._expiry={kind:"expired",date:C.options.expirationDate}:C.status!=="ready"?C._expiry={kind:"none"}:C.options.expirationMode==="never"||!C.options.expirationDate?C._expiry={kind:"never"}:C._expiry={kind:"date",date:C.options.expirationDate},C}function v(C){return t.get(C).then(P=>P.data||[],P=>(console.error(P),[]))}function _(){return e.loading=!0,r.all([v("/api/user/anonymized_repositories"),v("/api/user/anonymized_pull_requests"),v("/api/user/anonymized_gists")]).then(C=>{let P=C[0],G=C[1],J=C[2],X=[];P.forEach(K=>{K._type="repo";let se=K.source||{};X.push(S(K,K.repoId,K.repoId,se.fullName,"/anonymize/"+K.repoId,"/r/"+K.repoId+"/"))}),G.forEach(K=>{K._type="pr";let se=K.source||{};X.push(S(K,K.pullRequestId,K.pullRequestId,se.repositoryFullName?se.repositoryFullName+"#"+se.pullRequestId:void 0,"/pull-request-anonymize/"+K.pullRequestId,"/pr/"+K.pullRequestId+"/"))}),J.forEach(K=>{K._type="gist";let se=K.source||{};X.push(S(K,K.gistId,K.gistId,se.gistId,"/gist-anonymize/"+K.gistId,"/gist/"+K.gistId+"/"))}),e.items=X,e.loading=!1})}let N=0,T=!1;e.dashboardCursor=null,e.dashboardError="";function V(C){let P=C.source||{};return C._type==="repo"?S(C,C.repoId,C.repoId,P.fullName,"/anonymize/"+C.repoId,"/r/"+C.repoId+"/"):C._type==="pr"?S(C,C.pullRequestId,C.pullRequestId,P.repositoryFullName?P.repositoryFullName+"#"+P.pullRequestId:void 0,"/pull-request-anonymize/"+C.pullRequestId,"/pr/"+C.pullRequestId+"/"):S(C,C.gistId,C.gistId,P.gistId,"/gist-anonymize/"+C.gistId,"/gist/"+C.gistId+"/")}function M(C=!1){if(T)return _();let P=++N;return e.loading=!C,e.loadingMore=C,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(G=>e.filters.status[G]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:C?e.dashboardCursor:void 0}}).then(G=>{if(P===N){if(!Array.isArray(G.data?.items))return T=!0,_();e.items=(C?e.items:[]).concat(G.data.items.map(V)),e.dashboardCursor=G.data.cursor,e.dashboardTotals=G.data}},G=>{if(P===N){if(G.status===404)return T=!0,_();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{P===N&&(e.loading=!1,e.loadingMore=!1)})}e.loadMoreProjects=()=>M(!0);let q;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{T||(q&&a.timeout.cancel(q),q=a.timeout(()=>M(),150))},!1),e.watch("filters",()=>{T||M()},!0,!1),e.on("dispose",()=>{N++}),M(),e.openItem=(C,P)=>{if(!C._viewUrl)return;let G=P&&P.target;G&&G.closest&&G.closest("a, button, .dropdown, input")||(s.location.href=C._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(C=>e.filters.status[C]===!1).length,e.hasHiddenStatus=()=>e.hiddenStatusCount()>0,e.hasActiveFilters=()=>e.projectView!=="all"||e.typeFilter!=="all"||e.search.trim().length>0||Object.keys(e.filters.status).some(C=>e.filters.status[C]===!1),e.showClearFilters=()=>e.search.trim().length>0||e.typeFilter!=="all"||e.hiddenStatusCount()>1,e.clearFilters=()=>{e.projectView="all",e.typeFilter="all",e.search="",Object.keys(e.filters.status).forEach(C=>{e.filters.status[C]=!0})};function z(C,P,G,J){t.get("/api/repo/"+C).then(async X=>{let K=J!==void 0&&J!==X.data.status;for(let se of e.items)if(se._type==="repo"&&se.repoId==C){K=K||se.status!==X.data.status;let ce=e.needsAttention(se);se.status=X.data.status,se.statusMessage=X.data.statusMessage,se._statusKey=m(se.status),se._statusKey!=="progress"&&(se._stale=!1);let ue=e.needsAttention(se);e.dashboardTotals&&ce!==ue&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(ue?1:-1)));break}if(K&&!T){e.dashboardCursor=null;let se=e.selectedProject;await M(),se&&e.selectedProject===se&&(e.selectedProject=e.items.find(ce=>ce._type===se._type&&ce._id===se._id)||null)}if(X.data.status=="ready"||X.data.status=="error"||X.data.status=="removed"||X.data.status=="expired"){P(X.data);return}a.timeout(()=>z(C,P,G,X.data.status),2500)},G)}let ne=C=>C==="repo"?"repository":C==="gist"?"gist":"pull request",ee=C=>C==="repo"?"/api/repo":C==="gist"?"/api/gist":"/api/pr";e.removeItem=C=>{let P=ne(C._type);if(confirm(`Are you sure that you want to remove the ${P} ${C._id}?`)){let G=Fe({title:`Removing ${C._id}...`,date:new Date,body:`The ${P} ${C._id} is going to be removed.`});e.addToast(G);let J=`${ee(C._type)}/${C._id}`;t.delete(J).then(()=>{C._type==="repo"?z(C._id,()=>{G.title=`${C._id} is removed.`,G.body=`The ${P} ${C._id} is removed.`},void 0,C.status):(G.title=`${C._id} is removed.`,G.body=`The ${P} ${C._id} is removed.`,M())},X=>{G.title=`Error during the removal of ${C._id}.`,G.body=X.body,M()})}},e.refreshItem=C=>{let P=ne(C._type),G=Fe({title:`Refreshing ${C._id}...`,date:new Date,body:`The ${P} ${C._id} is going to be refreshed.`});e.addToast(G);let J=K=>{G.title=`Error during the refresh of ${C._id}.`,G.body=K.data?.error||K.body||"The refresh could not be completed. Please try again.",M()},X=`${ee(C._type)}/${C._id}/refresh`;t.post(X).then(()=>{C._type==="repo"?z(C._id,K=>{if(K.status!=="ready"){J({body:K.statusMessage||`The repository is ${K.status}.`});return}G.title=`${C._id} is refreshed.`,G.body=`The ${P} ${C._id} is refreshed.`},J,C.status):(G.title=`${C._id} is refreshed.`,G.body=`The ${P} ${C._id} is refreshed.`,M())},J)},e.extendItem=C=>{let P=ne(C._type),G=Fe({title:`Extending ${C._id}...`,date:new Date,body:`The expiration of ${P} ${C._id} is going to be extended by 6 months.`});e.addToast(G);let J=`${ee(C._type)}/${C._id}/extend`;t.post(J).then(()=>{C._type==="repo"?z(C._id,()=>{G.title=`${C._id} is extended.`,G.body=`The expiration of ${P} ${C._id} is extended by 6 months.`},void 0,C.status):(G.title=`${C._id} is extended.`,G.body=`The expiration of ${P} ${C._id} is extended by 6 months.`,M())},X=>{G.title=`Error during the extension of ${C._id}.`,G.body=X.data&&X.data.error||X.body,M()})},e.itemFilter=C=>{if(e.projectView==="attention"&&!e.needsAttention(C)||e.typeFilter!=="all"&&C._type!==e.typeFilter||e.filters.status[C._statusKey]===!1)return!1;let P=e.search.trim().toLowerCase();return!!(P.length==0||C._label&&String(C._label).toLowerCase().indexOf(P)>-1||C._source&&String(C._source).toLowerCase().indexOf(P)>-1||C._id&&String(C._id).toLowerCase().indexOf(P)>-1||C.conference&&String(C.conference).toLowerCase().indexOf(P)>-1)}};var dl=function(e,t,n){let r=ut();e.repoId=n.repoId,e.repo=null,e.progress=0,e.rateLimitResetAt=0,e.rateLimitCountdown="",e.shareUrl=(window.location?.origin||"")+"/r/"+encodeURIComponent(e.repoId)+"/",e.copied=!1;let s=null;e.copyShareUrl=async()=>{try{await ol(e.shareUrl),e.copied=!0,s&&r.timeout.cancel(s),s=r.timeout(()=>{e.copied=!1},2e3)}catch{e.addToast?.({title:"Copy this anonymous link",body:e.shareUrl})}};var i=null;let a=null,u=!1;function m(g){e.rateLimitResetAt=g,i&&r.interval.cancel(i);function k(){var h=Math.max(0,Math.ceil((g-Date.now())/1e3));if(h<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,r.interval.cancel(i),i=null;else{var E=Math.floor(h/60),S=h%60;e.rateLimitCountdown=E>0?E+"m "+S+"s":S+"s"}}k(),i=r.interval(k,1e3)}e.on("dispose",function(){u=!0,i&&r.interval.cancel(i),a&&r.timeout.cancel(a)});function w(g){if(!g)return g;var k=g.match(/^rate_limited:(\d+)$/);return k?(m(parseInt(k[1],10)),null):(e.rateLimitResetAt=0,g)}e.getStatus=()=>{u||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(g=>{if(!u){e.repo=g.data,g.data.rateLimitResetAt?m(g.data.rateLimitResetAt):e.repo.statusMessage=w(e.repo.statusMessage),e.repo.status=="ready"?e.progress=100:e.repo.status=="queue"?e.progress=10:e.repo.status=="downloaded"?e.progress=50:e.repo.status=="download"||e.repo.status=="preparing"?e.progress=25:e.repo.status=="anonymizing"&&(e.progress=75);var k=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(k=!1),k&&(a=r.timeout(e.getStatus,2e3))}},g=>{e.error=g.data.error})},e.getStatus()},as=function(e,t,n,r,s,i,a){e.sourceUrl="",e.workspaceOpen=!1,e.sourceUrlError="",e.previewStatus="idle",e.sourceLoading=!1,e.mobilePane="settings";let u=window.matchMedia?.("(max-width: 767px)");e.mobileWorkspace=!!u?.matches,u?.addEventListener&&Zt()(u,"change",p=>{e.mobileWorkspace=p.matches}),e.selectMobilePane=p=>{e.mobilePane=p};let m=0,w=!1,g=new Set,k=(p,y=!1)=>!w&&p.generation===m&&p.url===e.sourceUrl.trim()&&p.connection===e.githubConnection&&(!y||p.branch===e.source.branch),h=()=>{let p={generation:m,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return g.add(p),e.sourceLoading=!0,p},E=p=>{g.delete(p),w||(e.sourceLoading=[...g].some(y=>k(y)))};e.on("dispose",()=>{w=!0,m++});let S=null,v=p=>p.gistId&&!p.repo?"gist:"+p.gistId.toLowerCase():(p.owner+"/"+p.repo).toLowerCase()+(p.pullRequestId?"/pull/"+p.pullRequestId:""),_=ur(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(s.path?.()||""));e.discardDraft=async()=>{_.discard(),e.workspaceOpen=!!e.sourceUrl,e.error=null,e.sourceUrl?await e.urlSelected(!0):(m++,e.sourceLoading=!1,e.detectedType=null,e.details=null,e.sourceUrlError="",re.cancel(),Se.cancel(),F.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let N=()=>{let p={};for(let y of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])p[y]=e[y];sessionStorage.setItem("github-access-draft",JSON.stringify({path:s.path(),savedAt:Date.now(),draft:p}))};e.connectGistApp=()=>{N(),window.location.href="/github/app/login?returnTo="+encodeURIComponent(s.path())},e.connectGistOAuth=()=>{N(),window.location.href="/github/login?returnTo="+encodeURIComponent(s.path())},e.grantGitHubAccess=()=>{N();let p=s.path(),y=P(e.sourceUrl)||"",D=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=D+"?returnTo="+encodeURIComponent(p)+"&repository="+encodeURIComponent(y)+"&install=1"},e.chooseGitHubConnection=async p=>{e.githubConnection=p,e.readme="",e.sourceUrl&&await J()},e.detectedType=null,e.repoId="",e.pullRequestId="",e.gistId="",e.terms="",e.defaultTerms="",e.branches=[],e.source={branch:"",commit:""},e.options={expirationMode:"remove",expirationDate:new Date,update:!1,image:!0,pdf:!0,notebook:!0,link:!0,body:!0,title:!0,origin:!1,diff:!0,content:!0,comments:!0,username:!0,date:!0};function T(){let p=new Date;return p.setMonth(p.getMonth()+6),p}e.options.expirationDate=T();function V(p){let y=p.getFullYear(),D=String(p.getMonth()+1).padStart(2,"0"),O=String(p.getDate()).padStart(2,"0");return`${y}-${D}-${O}`}e.minExpirationDate=V(new Date);let M=new Date;M.setFullYear(M.getFullYear()+1),e.maxExpirationDate=V(M),e.anonymize_readme="",e.readme="",e.html_readme="",e.isUpdate=!1,e.previousConfigurations=[],e.previousConfigurationId="";let q,z=p=>String(p||"").replace(/\/$/,"").replace(/\.git$/i,"").toLowerCase();async function ne(){if(e.isUpdate||r.repoId||r.pullRequestId||r.gistId)return;let p={generation:m,url:e.sourceUrl.trim(),connection:e.githubConnection};try{q||(q=t.get("/api/user/anonymized_repositories").then(O=>O.data));let y=await q;if(!k(p))return;let D=z(P(p.url));e.previousConfigurations=y.filter(O=>O.repoId&&O.options&&z(O.source?.fullName)===D).sort((O,I)=>(Date.parse(I.anonymizeDate)||0)-(Date.parse(O.anonymizeDate)||0)),e.previousConfigurationId=e.previousConfigurations[0]?.repoId||""}catch{q=void 0}}e.existingConfigurationUrl=()=>{let p=e.previousConfigurations.find(y=>y.repoId===e.previousConfigurationId);return p?"/anonymize/"+encodeURIComponent(p.repoId):null};function ee(p){t.get("/api/user/default").then(y=>{let D=y.data;D.terms&&(e.defaultTerms=D.terms.join(`
|
|
`)),e.options=Object.assign({},e.options,D.options),e.options.expirationDate=D.options&&D.options.expirationDate?new Date(D.options.expirationDate):T(),!r.repoId&&!r.pullRequestId&&!r.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),p&&p()})}function C(p,y,D){e.anonymize&&e.anonymize[p]&&e.anonymize[p].setValidity(y,D)}function P(p){try{let y=parseGithubUrl(p);if(y&&y.owner&&y.repo)return y.owner+"/"+y.repo}catch{}return null}e.accessRepairAllowed=!1,e.repairingGitHubAccess=!1,e.accessRepairMessage="",e.repairGitHubAccess=async()=>{if(!e.accessRepairAllowed||e.repairingGitHubAccess||!e.githubConnections?.appEnabled||!r.repoId||e.role!=="owner"||e.githubConnection!=="github-app"||P(e.sourceUrl)!==e._originalFullName)return;e.repairingGitHubAccess=!0,e.accessRepairMessage="";let p=h();try{let y=await t.get("/github/connections");if(e.githubConnections=y.data,!y.data.appEnabled)return;let D=await t.post("/github/connections/migrate",{type:"repository",id:r.repoId,connection:"github-app"},{headers:{"X-CSRF-Token":y.data.csrf}});if(!k(p))return;e.error=null,D.data.fullName&&(e._originalFullName=D.data.fullName,e.source.fullName=D.data.fullName,e.sourceUrl="https://github.com/"+D.data.fullName),e.accessRepairMessage="GitHub access repaired. Your anonymous URL and published commit are unchanged.",await e.urlSelected(!0)}catch{k(p)&&(e.accessRepairMessage="Unable to repair GitHub access. Check the App's repository permissions in Manage access, then retry. Your published snapshot has not been replaced.")}finally{e.repairingGitHubAccess=!1,E(p)}},e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,e.reconnectSource=async()=>{if(confirm("Reconnect to the repository currently at this GitHub URL? Review its branch and commit before saving. Saving will replace the published snapshot.")){e.reconnectingSource=!0,e.reconnectRepositoryId=void 0,e.source.commit="",e.source.branch="",e.readme="",e.branches=[];try{await K()}catch{}}};function G(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:P(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function J(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function X(){let p;try{p=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!p||p.path!==s.path()||Date.now()-p.savedAt>=30*6e4)return _.restore()?(e.sourceUrl&&await J(),!0):!1;_.restore();for(let y of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(p.draft,y)&&(e[y]=p.draft[y]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await J(),sessionStorage.removeItem("github-access-draft"),!0}ee(()=>{!r.repoId&&!r.pullRequestId&&!r.gistId&&a(X,0),r.repoId&&r.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=r.repoId,t.get("/api/repo/"+e.repoId).then(async p=>{e.accessRepairAllowed=!["removed","archived","preparing","queue","download","removing","expiring"].includes(p.data.status),e.githubConnection=p.data.connection||"oauth",e.sourceUrl="https://github.com/"+p.data.source.fullName,e._originalFullName=p.data.source.fullName,e.terms=p.data.options.terms.filter(y=>y).join(`
|
|
`),e.source=p.data.source,e.role=p.data.role||"owner",e.coauthors=p.data.coauthors||[],e._originalBranch=p.data.source.branch,e.options=Object.assign({},e.options,p.data.options),e.conference=p.data.conference,e._originalConference=p.data.conference,e.repositoryID=p.data.source.repositoryID,e._originalRepositoryID=p.data.source.repositoryID,p.data.options.expirationDate&&(e.options.expirationDate=new Date(p.data.options.expirationDate)),S=v(parseGithubUrl(e.sourceUrl)),!await X()&&(await Promise.all([K(),se()]),_e())},()=>{s.url("/404")})),r.pullRequestId&&r.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=r.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async p=>{if(e.githubConnection=p.data.connection||"oauth",e.sourceUrl="https://github.com/"+p.data.source.repositoryFullName+"/pull/"+p.data.source.pullRequestId,e.terms=p.data.options.terms.filter(y=>y).join(`
|
|
`),e.source=p.data.source,e.options=Object.assign({},e.options,p.data.options),e.conference=p.data.conference,e._originalConference=p.data.conference,p.data.options.expirationDate&&(e.options.expirationDate=new Date(p.data.options.expirationDate)),S=v(parseGithubUrl(e.sourceUrl)),!await X())try{await qe()}catch{}},()=>{s.url("/404")})),r.gistId&&r.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=r.gistId,t.get("/api/gist/"+e.gistId).then(async p=>{e.sourceUrl="https://gist.github.com/"+p.data.source.gistId,e.terms=p.data.options.terms.filter(y=>y).join(`
|
|
`),e.source=p.data.source,e.options=Object.assign({},e.options,p.data.options),e.conference=p.data.conference,e._originalConference=p.data.conference,p.data.options.expirationDate&&(e.options.expirationDate=new Date(p.data.options.expirationDate)),S=v(parseGithubUrl(e.sourceUrl)),!await X()&&await ze()},()=>{s.url("/404")}))}),t.get("/github/connections").then(p=>{e.githubConnections=p.data,!r.repoId&&!r.pullRequestId&&!r.gistId&&e.githubConnection===void 0&&p.data.appEnabled&&p.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&J())}).catch(()=>{}),e.urlSelected=async(p=!1)=>{let y=++m;e.previousConfigurations=[],e.previousConfigurationId="";let D;try{D=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,re.cancel(),Se.cancel(),F.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",C("sourceUrl","github",!1);return}let O=v(D),I=p||S===O;S=O,e.sourceUrlError="",C("sourceUrl","github",!0);let U=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,U&&a(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!I&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],I||(e.source={type:"GitHubStream",branch:"",commit:""}),re.cancel(),Se.cancel(),F.cancel(),Me.clear(),Ue.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",e.html_readme="",e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=I;try{D.gistId&&!D.repo?(e.detectedType="gist",e.source={gistId:D.gistId},await ze()):D.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:D.owner+"/"+D.repo,pullRequestId:D.pullRequestId},await qe()):(e.detectedType="repo",ne(),await Promise.all([K(),se()]),_e())}catch{}finally{y===m&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let p=e.branches.filter(D=>D.name==e.source.branch)[0];if(!p)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=p.commit),e.readme=p.readme,await se(),_e()}),e.getBranches=async p=>{let y=parseGithubUrl(e.sourceUrl),D=h();try{let O=await t.get(`/api/repo/${y.owner}/${y.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&P(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,force:p===!0||e.reconnectingSource?"1":"0",repositoryID:G()}});if(!k(D))return;e.branches=O.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let I=e.branches.filter(U=>U.name==e.source.branch);I.length>0&&(!(!e.reconnectingSource&&!p&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=I[0].commit),e.readme=I[0].readme,await se(p))}catch(O){if(!k(D))return;e.branches=[],e.sourceUnreachable=O&&(O.status===404||O.data&&O.data.error==="repo_not_found");let I=O&&O.data&&O.data.error||(O&&O.status===404?"repo_not_found":"unknown_error");i("ERRORS."+I).then(U=>{e.toasts=e.toasts||[],e.addToast({title:"Error",date:new Date,body:U}),e.error=U},console.error),typeof C=="function"&&C("sourceUrl","missing",!1)}finally{E(D)}};async function K(){let p=parseGithubUrl(e.sourceUrl),y=h();try{te();let D=await t.get(`/api/repo/${p.owner}/${p.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&P(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,repositoryID:G(),force:"1"}});if(!k(y))return;e.details=D.data,e.reconnectingSource&&(e.reconnectRepositoryId=e.details.externalId),e.details&&e.details.id&&(e.repositoryID=e.details.id),e.repoId||(e.repoId=e.details.repo+"-"+generateRandomId(4)),await e.getBranches(e.reconnectingSource)}catch(D){if(!k(y))return;throw D.data&&(i("ERRORS."+D.data.error).then(O=>{e.addToast({title:"Error",date:new Date,body:O}),e.error=O},console.error),Ee(D.data.error)),C("sourceUrl","missing",!1),D}finally{E(y)}}async function se(p){if(e.readme&&!p)return e.readme;let y=parseGithubUrl(e.sourceUrl),D=h();try{let O=await t.get(`/api/repo/${y.owner}/${y.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&P(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,force:p===!0?"1":"0",branch:e.source.branch,repositoryID:G()}});k(D,!0)&&(e.readme=O.data)}catch{k(D,!0)&&(e.readme="")}finally{E(D)}}function ce(){let p={terms:e.terms?e.terms.split(`
|
|
`):[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(p.branchName=e.source.branch);try{let y=parseGithubUrl(e.sourceUrl);p.repoName=`${y.owner}/${y.repo}`}catch{}return p}function ue(p,y,D){let O=null,I=0,U=()=>{if(e.detectedType!==p)return;O&&a.cancel(O);let L=++I;e.previewStatus="loading",O=a(()=>{O=null;let H=y();if(!H){e.previewStatus="idle";return}t.post("/api/anonymize-preview",H).then(Y=>{L===I&&(D(Y.data,H),e.previewStatus="ready")}).catch(()=>{L===I&&(e.previewStatus="error")})},200)};return U.cancel=()=>{I++,O&&a.cancel(O),O=null},e.on("dispose",U.cancel),U}e.retryPreview=()=>{e.detectedType==="repo"&&re(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()};let re=ue("repo",()=>e.readme?{content:e.readme,options:ce()}:null,p=>{if(typeof p?.content!="string")throw Error("Invalid preview response");e.anonymize_readme=p.content;let y="";try{let O=parseGithubUrl(e.sourceUrl),I=e.source.branch||e.details&&e.details.defaultBranch||"main";y=`https://github.com/${O.owner}/${O.repo}/raw/${I}/`}catch{}let D=renderMD(e.anonymize_readme,y);e.html_readme=D,a(Prism.highlightAll,150)});function _e(){!e.anonymize||!e.anonymize.terms||(e.termsRegexWarning=!!e.terms&&!!e.terms.match(/[-[\]{}()*+?.,\\^$|#]/g),re())}async function qe(){let p=parseGithubUrl(e.sourceUrl),y=h();try{te();let D=await t.get(`/api/pr/${p.owner}/${p.repo}/${p.pullRequestId}`,{params:{connection:e.githubConnection}});if(!k(y))return;e.details=D.data,e.pullRequestId||(e.pullRequestId=p.repo+"-PR"+p.pullRequestId+"-"+generateRandomId(4))}catch(D){if(!k(y))return;throw D.data&&(i("ERRORS."+D.data.error).then(O=>{e.addToast({title:"Error",date:new Date,body:O}),e.error=O},console.error),Ee(D.data.error)),C("sourceUrl","missing",!1),D}finally{E(y)}}let Me=Fe(new Map);function Pe(){let p=new Set,y=e.details&&e.details.pullRequest;if(!y)return p;typeof y.title=="string"&&p.add(y.title),typeof y.body=="string"&&p.add(y.body),typeof y.diff=="string"&&p.add(y.diff);let D=y.comments||[];for(let O of D)typeof O.author=="string"&&p.add(O.author),typeof O.body=="string"&&p.add(O.body);return p}let Se=ue("pr",()=>{let p=Pe(),y=Array.from(p);return y.length===0?null:{contents:y,options:ce()}},(p,y)=>{if(!Array.isArray(p?.contents)||p.contents.length!==y.contents.length||p.contents.some(I=>typeof I!="string"))throw Error("Invalid preview response");let D=y.contents,O=new Map;for(let I=0;I<D.length&&I<p.contents.length;I++)O.set(D[I],p.contents[I]);Me.clear(),O.forEach((I,U)=>Me.set(U,I))});e.anonymizePrContent=function(p){return p&&(Me.has(p)?Me.get(p):"")};async function ze(){let p=parseGithubUrl(e.sourceUrl),y=h();try{te(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let D=await t.get(`/api/gist/source/${p.gistId}`);if(!k(y))return;e.details=D.data,e.gistId||(e.gistId="gist-"+p.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(D){if(!k(y))return;if(D.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,C("sourceUrl","missing",!1);return}if(D.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,C("sourceUrl","missing",!1);return}throw D.data&&(i("ERRORS."+D.data.error).then(O=>{e.addToast({title:"Error",date:new Date,body:O}),e.error=O},console.error),Ee(D.data.error)),C("sourceUrl","missing",!1),D}finally{E(y)}}let Ue=Fe(new Map);function ke(){let p=new Set,y=e.details&&e.details.gist;if(!y)return p;typeof y.description=="string"&&p.add(y.description),typeof y.ownerLogin=="string"&&p.add(y.ownerLogin);let D=y.files||[];for(let I of D)typeof I.filename=="string"&&p.add(I.filename),typeof I.content=="string"&&p.add(I.content);let O=y.comments||[];for(let I of O)typeof I.author=="string"&&p.add(I.author),typeof I.body=="string"&&p.add(I.body);return p}let F=ue("gist",()=>{let p=ke(),y=Array.from(p);return y.length===0?null:{contents:y,options:ce()}},(p,y)=>{if(!Array.isArray(p?.contents)||p.contents.length!==y.contents.length||p.contents.some(I=>typeof I!="string"))throw Error("Invalid preview response");let D=y.contents,O=new Map;for(let I=0;I<D.length&&I<p.contents.length;I++)O.set(D[I],p.contents[I]);Ue.clear(),O.forEach((I,U)=>Ue.set(U,I)),Z()});e.anonymizeGistContent=function(p){return p&&(Ue.has(p)?Ue.get(p):"")},e.previewGistFiles=[];function Z(){let p=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=p.map(y=>({filename:e.anonymizeGistContent(y.filename),content:e.anonymizeGistContent(y.content),language:y.language}))}e.watch("details.gist.files",Z,!0),e.watch("terms",Z);function Q(){let p=e.conference;if(e.conference_data=null,!p)return;let y=e.isUpdate&&p===e._originalConference;t.get("/api/conferences/"+p).then(D=>{e.conference===p&&(e.conference_data=D.data,e.conference_data.startDate=new Date(e.conference_data.startDate),e.conference_data.endDate=new Date(e.conference_data.endDate),!y&&(e.options.expirationDate=new Date(e.conference_data.endDate),e.options.expirationMode="remove",e.options.update=e.conference_data.options.update,e.options.image=e.conference_data.options.image,e.options.pdf=e.conference_data.options.pdf,e.options.notebook=e.conference_data.options.notebook,e.options.link=e.conference_data.options.link))},()=>{e.conference===p&&(e.conference_data=null)})}function te(){C("repoId","used",!0),C("repoId","format",!0),C("pullRequestId","used",!0),C("pullRequestId","format",!0),C("gistId","used",!0),C("gistId","format",!0),C("sourceUrl","used",!0),C("sourceUrl","missing",!0),C("sourceUrl","access",!0),C("sourceUrl","github",!0),C("commit","exists",!0),C("conference","activated",!0),C("terms","format",!0),e.termsRegexWarning=!1}function ye(){let p=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||p&&p.invalid?(p&&p.setDirty&&p.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function Ee(p){let y=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(p){case"repoId_already_used":C(y,"used",!1);break;case"invalid_repoId":C(y,"format",!1);break;case"options_not_provided":C(y,"format",!1);break;case"repo_already_anonymized":C("sourceUrl","used",!1);break;case"invalid_terms_format":C("terms","format",!1);break;case"repo_not_found":C("sourceUrl","missing",!1);break;case"repo_not_accessible":C("sourceUrl","access",!1);break;case"commit_not_found":C("commit","exists",!1);break;case"conf_not_activated":C("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let p=(e.coauthorSearch||"").trim();if(e.coauthorError="",p.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:p}}).then(y=>{let D=new Set((e.coauthors||[]).map(O=>(O.username||"").toLowerCase()));e.coauthorResults=(y.data||[]).filter(O=>!D.has((O.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(p,y)=>{y&&y.preventDefault(),!(!p||!p.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:p.username}).then(D=>{e.coauthors=D.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},D=>{let O=D&&D.data&&D.data.error||"unknown_error";e.coauthorError=O})},e.removeCoauthor=p=>{!p||!p.username||confirm("Remove co-author "+p.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(p.username)).then(y=>{e.coauthors=y.data||[]},y=>{let D=y&&y.data&&y.data.error||"unknown_error";e.coauthorError=D})},e.anonymizeRepo=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId||ye())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let y=p.currentTarget||p.target.closest?.("button")||p.target;y.disabled=!0;let D=parseGithubUrl(e.sourceUrl),O={repoId:e.repoId,terms:e.terms.trim().split(`
|
|
`).filter(U=>U),connection:e.githubConnection,fullName:`${D.owner}/${D.repo}`,repository:e.sourceUrl,reconnectRepositoryId:e.reconnectRepositoryId,options:e.options,source:e.source,conference:e.conference};e.details&&(O.options.pageSource=e.details.pageSource),te();let I=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(I,O,{headers:{"Content-Type":"application/json"}}).then(()=>{_.clear(),window.location.href="/status/"+e.repoId},U=>{U.data&&(i("ERRORS."+U.data.error).then(L=>{e.error=L},console.error),Ee(U.data.error))}).finally(()=>{y.disabled=!1})},e.anonymizeGist=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ye())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let y=p.currentTarget||p.target.closest?.("button")||p.target;y.disabled=!0;let D=parseGithubUrl(e.sourceUrl),O={gistId:e.gistId,terms:e.terms.trim().split(`
|
|
`).filter(U=>U),source:{gistId:D.gistId},options:e.options,conference:e.conference};te();let I=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(I,O,{headers:{"Content-Type":"application/json"}}).then(()=>{_.clear(),window.location.href="/gist/"+e.gistId},U=>{U.data&&(i("ERRORS."+U.data.error).then(L=>{e.error=L},console.error),Ee(U.data.error))}).finally(()=>{y.disabled=!1})},e.anonymizePullRequest=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ye())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let y=p.currentTarget||p.target.closest?.("button")||p.target;y.disabled=!0;let D=parseGithubUrl(e.sourceUrl),O={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(`
|
|
`).filter(U=>U),source:{repositoryFullName:`${D.owner}/${D.repo}`,pullRequestId:D.pullRequestId},options:e.options,conference:e.conference};te();let I=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(I,O,{headers:{"Content-Type":"application/json"}}).then(()=>{_.clear(),window.location.href="/pr/"+e.pullRequestId},U=>{U.data&&(i("ERRORS."+U.data.error).then(L=>{e.error=L},console.error),Ee(U.data.error))}).finally(()=>{y.disabled=!1})},e.watch("conference",()=>{Q()}),e.watch("terms",()=>{e.detectedType==="repo"&&_e(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()}),e.watch("options.image",()=>{e.detectedType==="repo"&&_e(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()}),e.watch("options.link",()=>{e.detectedType==="repo"&&_e(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()}),e.watch("details",()=>{e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()},!0)},pr=function(e,t,n,r,s,i){let a=ut();window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",P=>el(P.element)),window.Prism.redactionHook=!0);let u=Zt();e.on("dark-mode",(P,G)=>{e.aceOption&&(G?e.aceOption.theme="nord_dark":e.aceOption.theme="chrome")});let m=0,w=!1;e.on("dispose",()=>{w=!0,m++,g&&g.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,u(document,"keydown",function(P){if((P.metaKey||P.ctrlKey)&&P.key==="k"){P.preventDefault();var G=document.querySelector(".tree-search-input");G&&(G.focus(),G.select())}});var g=null;e.onFileSearchChange=function(){g&&(g.resolve(),g=null);let P=e.fileSearchQuery;if(!P||P.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let G=i.defer();g=G,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(P)}`,{timeout:G.promise}).then(function(J){if(!(w||g!==G)){g=null,e.fileSearchLoading=!1;var X={};e.files.forEach(function(F){X[(F.path||"")+"/"+F.name]=!0});for(var K=[],se={},ce=0;ce<J.data.length;ce++){var ue=J.data[ce];if(ue.path)for(var re=ue.path.split("/"),_e="",qe=0;qe<re.length;qe++){var Me=_e;_e=_e?_e+"/"+re[qe]:re[qe];var Pe=Me+"/"+re[qe];!X[Pe]&&!se[Pe]&&(se[Pe]=!0,K.push({name:re[qe],path:Me}))}}K.sort(function(F,Z){return(F.path||"").split("/").length-(Z.path||"").split("/").length}),K.length>0&&e.files.push.apply(e.files,K);for(var Se=[],ze=0;ze<J.data.length;ze++){var Ue=J.data[ze],ke=(Ue.path||"")+"/"+Ue.name;!X[ke]&&Ue.size!=null&&(Se.push(Ue),X[ke]=!0)}Se.length>0&&e.files.push.apply(e.files,Se),e.fileSearchResults=J.data}},function(){!w&&g===G&&(g=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})};let k={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},h=["license","txt"],E=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],S=["wav","mp3","ogg","wma","flac","aac","m4a"],v=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.on("routeUpdate",function(P,G){if(e.repoId!=r.repoId)return C();if((r.path||"")!=e.filePath){e.filePath=r.path||"",e.paths=e.filePath.split("/").filter(J=>J&&J.trim().length>0),ee();for(let J=0;J<e.paths.length-1;J++){let X=J>0?e.paths.slice(0,J).join("/"):"";e.files.some(se=>se.path===X)||e.getFiles(X)}}});function _(){if(e.paths[0]!="")return;let P=["readme.md","readme.txt","readme.org","readme.1st","readme"],G={};for(let X of e.files)X.name.toLowerCase().indexOf("readme")>-1&&(G[X.name.toLowerCase()]=X.name);let J=null;for(let X of P)if(G[X]){J=X;break}if(!J&&Object.keys(G).length>0&&(J=Object.keys(G)[0]),J){let X=n.url();X[X.length-1]!="/"&&(X+="/"),n.url(X+encodePathForUrl(G[J]))}}e.fileCounts=null,e.getFiles=function(P){let G=e.repoId;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(P)}&v=${e.options.lastUpdateDate}`).then(function(J){if(w||G!==e.repoId)return[];let X=P||"";return e.files=e.files.filter(K=>K.path!==X),e.files.push(...J.data),J.data},function(J){if(w||G!==e.repoId)return[];e.type="error",e.content=cr(J),e.files=[]})};function N(){let P=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts`).then(function(G){w||P!==e.repoId||(e.fileCounts=G.data)},function(){e.fileCounts={}})}function T(){return e.files.filter(P=>P.name==e.paths[e.paths.length-1]&&P.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var V=null;e.on("dispose",function(){V&&a.interval.cancel(V)});function M(P){if(w)return;let G=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(J=>{if(!(w||G!==e.repoId)){if(e.options=J.data,e.options.url){window.location=e.options.url;return}P&&P(J.data)}},J=>{if(!(w||G!==e.repoId)){var X=J.data||{};if(X.error==="rate_limited"&&X.resetAt){let se=function(){var ce=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(ce<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,V&&(a.interval.cancel(V),V=null),M(P);else{var ue=Math.floor(ce/60),re=ce%60;e.rateLimitCountdown=ue>0?ue+"m "+re+"s":re+"s"}};var K=se;e.type="rate_limited",e.rateLimitResetAt=X.resetAt,V&&a.interval.cancel(V),se(),V=a.interval(se,1e3)}else X.error==="repository_not_ready"?(e.type="loading",a.timeout(function(){M(P)},3e3)):(e.type="error",e.content=cr(J))}})}e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};function q(P){return k[P]?k[P]:P}function z(P){return P=="pdf"?"pdf":P=="html"||P=="htm"?"html-doc":P=="md"?"md":P=="org"?"org":P=="ipynb"?"IPython":h.indexOf(P)>-1?"text":E.indexOf(P)>-1?"image":v.indexOf(P)>-1?"media":S.indexOf(P)>-1?"audio":"code"}function ne(P,G){let J=m;if(!P){e.type="error",e.content="no_file_selected";return}let X=e.type;e.type="loading",e.content="loading";let K=G&&G.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(P)}?v=`+K,{transformResponse:se=>se}).then(se=>{if(!(w||J!==m)){if(e.type=X,e.content=se.data,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(se.data,n.url()+"/../"),e.type="html"),e.type=="org"){let ue=contentAbs2Relative(se.data);var ce=new Org.Parser().parse(ue).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(ce.toString()),e.type="html"}e.type=="code"&&se.headers("content-type")=="application/octet-stream"&&(e.type="binary",e.content="binary"),a.timeout(()=>{Prism.highlightAll()},50)}},se=>{w||J!==m||(e.type="error",e.content=cr(se))})}function ee(){m++,e.content="",e.file=T();let P="0";e.file&&e.file.sha&&(P=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${P}`;let G=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);e.fileBaseUrl=`/api/repo/${e.repoId}/file/${G?encodePathForUrl(G):""}`,e.showSource=!1,e.allowScripts=!1;let J=e.filePath.toLowerCase(),X=J.lastIndexOf(".");if(X>-1&&(J=J.substring(X+1)),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:13,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!0,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:q(J),onLoad:function(K){let se=ace.require("ace/range").Range,ce=null;function ue(ke,F){ce!==null&&(K.session.removeMarker(ce),ce=null),ke!=null&&(ce=K.session.addMarker(new se(ke,0,F,1),"highlighted-line","fullLine"))}function re(ke){let F=window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!F){ue(null);return}let Z=parseInt(F[1])-1,Q=F[2]?parseInt(F[2])-1:Z;ue(Z,Q),ke&&a.timeout(()=>{K.scrollToLine(Z,!0,!0,function(){})},100)}re(!0);let _e=null;K.on("guttermousedown",function(ke){let F=ke.getDocumentPosition().row,Z=ke.domEvent&&ke.domEvent.shiftKey,Q=F,te=F;Z&&_e!==null?(Q=Math.min(_e,F),te=Math.max(_e,F)):_e=F;let ye=Q===te?`#L${Q+1}`:`#L${Q+1}-L${te+1}`,Ee=window.location.pathname+window.location.search+ye;window.history.replaceState(null,"",Ee),ue(Q,te),ke.stop()});let qe=u(window,"hashchange",()=>re(!1));K.setFontSize(e.aceOption.fontSize),K.setReadOnly(e.aceOption.readOnly),K.setKeyboardHandler(e.aceOption.keyBinding),K.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),K.setOption("displayIndentGuides",!0),K.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(K.renderer.$cursorLayer.element.style.display="none"),K.setHighlightGutterLine(e.aceOption.highlightGutterLine),K.setShowInvisibles(e.aceOption.showInvisibles),K.setDisplayIndentGuides(e.aceOption.showIndentGuides),K.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),K.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),K.session.setUseSoftTabs(e.aceOption.useSoftTab),K.session.setTabSize(e.aceOption.tabSize);let Me=window.matchMedia("(max-width: 991px)"),Pe=()=>K.session.setUseWrapMode(e.aceOption.useWrapMode&&Me.matches);Pe(),Me.addEventListener?.("change",Pe),K.setBehavioursEnabled(e.aceOption.enableBehaviours),K.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets);let Se=[],ze=()=>{Se.forEach(Z=>K.session.removeMarker(Z)),Se=[];let ke=xa();if(!ke)return;K.session.getDocument().getAllLines().forEach((Z,Q)=>{for(let te of Z.matchAll(ke))Se.push(K.session.addMarker(new se(Q,te.index,Q,te.index+te[0].length),"ace_redaction","text"))})};ze(),K.session.on("change",()=>a.timeout(ze,0));let Ue=e.on("site-options",ze);return()=>{qe(),Ue(),Me.removeEventListener?.("change",Pe)}}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=z(J),e.type=="pdf"){e.content="pdf";return}ne(e.filePath,e.file)}e.isSourceAccessError=()=>["repo_not_found","token_expired","github_app_access_required","github_app_reconnect_required","repo_saml_enforcement","repo_access_limited"].includes(e.content),e.retryContent=()=>C();function C(){m++,e.files=[],e.content=null,e.fileCounts=null,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=r.repoId,e.type="loading",e.filePath=r.path||"",e.paths=e.filePath.split("/");let P=e.repoId;M(function(G){N();var J=i.resolve();for(let X=0;X<e.paths.length;X++){let K=X>0?e.paths.slice(0,X).join("/"):"";J=J.then(function(){return e.getFiles(K)}).then(function(){if(e.type==="error")return i.reject("error")})}J.then(function(){w||P!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(_(),ee()))})})}C()},ul=function(e,t,n,r,s){async function i(m){t.get(`/api/pr/${e.pullRequestId}/options`).then(w=>{if(e.options=w.data,e.options.url){window.location=e.options.url;return}m&&m(w.data)},w=>{e.type="error",e.content=w.data.error})}async function a(m){t.get(`/api/pr/${e.pullRequestId}/content`).then(w=>{e.details=w.data,e.tabState={active:w.data.diff?"diff":"comments"},m&&m(w.data)},w=>{e.type="error",e.content=w.data.error})}function u(){e.pullRequestId=r.pullRequestId,e.type="loading",i(m=>{a()})}u()},cl=function(e,t,n,r,s){async function i(m){t.get(`/api/gist/${e.gistId}/options`).then(w=>{if(e.options=w.data,e.options.url){window.location=e.options.url;return}m&&m(w.data)},w=>{e.type="error",e.content=w.data.error})}async function a(m){t.get(`/api/gist/${e.gistId}/content`).then(w=>{e.details=w.data;let g=w.data&&w.data.files&&w.data.files.length;e.tabState={active:g?"files":"comments"},m&&m(w.data)},w=>{e.type="error",e.content=w.data.error})}function u(){e.gistId=r.gistId,e.type="loading",i(()=>{a()})}u()},pl=function(e,t,n){e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.conferences=[],e.loading=!0,e.error="",e.search="";let r="conferences.filterPrefs",s={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},i=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},s.filters.status,i.filters&&i.filters.status||{})},e.orderBy=i.orderBy||s.orderBy,e.watch("orderBy",()=>{saveFilterPrefs(r,{filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(r,{filters:e.filters,orderBy:e.orderBy})},!0),e.removeConference=function(a){if(!a.removing&&confirm(`Are you sure that you want to remove the conference ${a.name}? All the repositories linked to this conference will expire.`)){a.removing=!0;let u=Fe({title:`Removing ${a.name}...`,date:new Date,body:`The conference ${a.name} is going to be removed.`});e.addToast(u),t.delete(`/api/conferences/${a.conferenceID}`).then(()=>{u.title=`${a.name} is removed.`,u.body=`The conference ${a.name} is removed.`,e.loadConferences()}).catch(()=>{u.title="Unable to remove conference",u.body="Please try again. The conference has not been removed."}).finally(()=>{a.removing=!1})}},e.loadConferences=()=>(e.loading=!0,e.error="",t.get("/api/conferences/").then(a=>{e.conferences=a.data||[]},a=>{e.error="Unable to load your conferences. Please try again."}).finally(()=>{e.loading=!1})),e.loadConferences(),e.conferenceFilter=a=>{if(e.filters.status[a.status]==!1)return!1;let u=e.search.trim().toLowerCase();return!!(!u||(a.name||"").toLowerCase().includes(u)||(a.conferenceID||"").toLowerCase().includes(u))}},fr=function(e,t,n,r){e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.plans=[],e.editionMode=!1,e.saving=!1,e.error="";function s(){t.get("/api/conferences/"+r.conferenceId).then(g=>{e.options={...e.options,...g.data,billing:g.data.billing||{}},e.options.startDate=new Date(e.options.startDate),e.options.endDate=new Date(e.options.endDate)})}r.conferenceId&&(e.editionMode=!0,s());function i(){t.get("/api/conferences/plans").then(g=>{e.plans=g.data,e.plan=e.plans.filter(k=>k.id==e.options.plan.planID)[0]})}i();let a=new Date;a.setDate(1),a.setMonth(a.getMonth()+1);let u=new Date(a);u.setMonth(a.getMonth()+7,0),e.options={billing:{},startDate:a,endDate:u,plan:{planID:"free_conference"},options:{link:!0,image:!0,pdf:!0,notebook:!0,update:!0,page:!0}},e.plan=null,e.watch("options.plan.planID",()=>{e.plan=e.plans.filter(g=>g.id==e.options.plan.planID)[0]});function m(){e.conference.name.setValidity("required",!0),e.conference.conferenceID.setValidity("pattern",!0),e.conference.conferenceID.setValidity("required",!0),e.conference.conferenceID.setValidity("used",!0),e.conference.startDate.setValidity("required",!0),e.conference.startDate.setValidity("invalid",!0),e.conference.endDate.setValidity("required",!0),e.conference.endDate.setValidity("invalid",!0),e.conference.setValidity("error",!0)}function w(g){switch(g){case"conf_name_missing":e.conference.name.setValidity("required",!1);break;case"conf_id_missing":e.conference.conferenceID.setValidity("required",!1);break;case"conf_id_format":e.conference.conferenceID.setValidity("pattern",!1);break;case"conf_id_used":e.conference.conferenceID.setValidity("used",!1);break;case"conf_start_date_missing":e.conference.startDate.setValidity("required",!1);break;case"conf_end_date_missing":e.conference.endDate.setValidity("required",!1);break;case"conf_start_date_invalid":e.conference.startDate.setValidity("invalid",!1);break;case"conf_end_date_invalid":e.conference.endDate.setValidity("invalid",!1);break;default:e.conference.setValidity("error",!1);break}}e.submit=function(){if(e.saving)return;e.saving=!0,e.error="";let g=JSON.parse(JSON.stringify(e.options)),k=Fe({title:`Creating ${g.name}...`,date:new Date,body:`The conference ${g.conferenceID} is in creation.`});e.editionMode&&(k.title=`Updating ${g.name}...`,k.body=`The conference '${g.conferenceID}' is updating.`),e.addToast(k),m(),t.post("/api/conferences/"+(e.editionMode?g.conferenceID:""),g).then(()=>{e.editionMode?(k.title=`${g.name} updated`,k.body=`The conference '${g.conferenceID}' is updated.`):(k.title=`${g.name} created`,k.body=`The conference '${g.conferenceID}' is created.`),n.url("/conference/"+g.conferenceID)},h=>{w(h.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(k)}).finally(()=>{e.saving=!1})}},fl=function(e,t,n,r){e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,expired:!1,removed:!1}},e.orderBy="-anonymizeDate",e.repoFiler=i=>{if(e.filters.status[i.status]==!1)return!1;let a=e.search.trim().toLowerCase();return!!(!a||(i.source?.fullName||"").toLowerCase().includes(a)||(i.repoId||"").toLowerCase().includes(a))};function s(){t.get("/api/conferences/"+r.conferenceId).then(i=>{e.conference=i.data})}s()},ml=function(e,t){e.notificationEmail="",e.emailSaved=!1,e.saveNotificationEmail=async()=>{e.busy=!0,e.emailSaved=!1,e.connectionError="";try{let n=await t.post("/github/connections/email",{email:e.notificationEmail},{headers:{"X-CSRF-Token":e.connections.csrf}});e.notificationEmail=n.data.notificationEmail,e.user&&(e.user.notificationEmail=n.data.notificationEmail),e.emailSaved=!0}catch(n){e.connectionError=n.data?.error||"Unable to save email address."}finally{e.busy=!1}},e.connections=null,e.connectionError="",e.busy=!1,e.loadConnections=()=>t.get("/github/connections").then(n=>{e.connections=n.data,e.notificationEmail=n.data.notificationEmail||""}).catch(n=>{e.connectionError=n.data?.error||"Unable to load connections."}),e.changeConnection=async(n,r,s)=>{e.busy=!0,e.connectionError="";try{let i=await t.post("/github/connections/migrate",{type:n.type,id:n.id,connection:r,preview:s},{headers:{"X-CSRF-Token":e.connections.csrf}});s?n.eligible=i.data.eligible:await e.loadConnections()}catch(i){e.connectionError=i.data?.error||"Unable to change connection."}finally{e.busy=!1}},e.disconnectOAuth=async()=>{e.busy=!0;try{await t.post("/github/connections/disconnect-oauth",{},{headers:{"X-CSRF-Token":e.connections.csrf}}),await e.loadConnections()}catch(n){e.connectionError=n.data?.error||"Unable to disconnect OAuth."}finally{e.busy=!1}},e.loadConnections()},hl=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(n=>{e.accountRecovery=n.data.required}).catch(()=>{})};var vl=function(e,t,n){let r=ut(),s=Zt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.repositories=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let i=S=>{if(S.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){S.preventDefault();let v=document.querySelector('.admin-filter-toolbar input[type="search"]');v&&v.focus()}};s(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=S=>{S==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[S]="",e.query.page=1},e.chips=[];let a=()=>{let S=[];e.query.owner&&S.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&S.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=S};e.showStatusMessage=S=>{let v=S.statusMessage||"(no message)";window.prompt(`Status message for ${S.repoId} (${S.status}):`,v)},e.fetchGithubInfo=S=>{let v=window.open("","_blank");v&&v.document.write("<pre>Loading GitHub info for "+S.repoId+"...</pre>"),t.get("/api/admin/repos/"+S.repoId+"/github").then(_=>{v&&(v.document.open(),v.document.write('<pre style="font:13px monospace;padding:16px;white-space:pre-wrap">'+JSON.stringify(_.data,null,2).replace(/[<>]/g,N=>N==="<"?"<":">")+"</pre>"),v.document.close())},_=>{let N=_&&_.data?JSON.stringify(_.data,null,2):String(_);v&&(v.document.body.innerHTML='<pre style="color:#B42318;padding:16px">'+N+"</pre>")})},e.statusCountFor=S=>{let v=(e.statusCounts||[]).find(_=>_._id===S);return v?v.count:0},e.statusStorageFor=S=>{let v=(e.statusCounts||[]).find(_=>_._id===S);return v?v.storage:0},e.isErrorsOnly=()=>e.query&&e.query.error&&!e.query.ready&&!e.query.preparing&&!e.query.expired&&!e.query.removed,e.toggleErrorsOnly=()=>{e.isErrorsOnly()?Object.assign(e.query,{ready:!1,preparing:!0,expired:!1,removed:!1,error:!0}):Object.assign(e.query,{ready:!1,preparing:!1,expired:!1,removed:!1,error:!0}),e.query.page=1},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=S=>{e.query.sort===S?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=S,e.query.direction="desc"),e.query.page=1},e.sortIcon=S=>e.query.sort===S?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.repos.filterPrefs",m={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},w=loadFilterPrefs(u)||{};e.query=Object.assign({},m,w,{page:1,search:""});let g=n.search();g.owner&&(e.query.owner=g.owner),g.conference&&(e.query.conference=g.conference),g.search&&(e.query.search=g.search);let k="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(k)||"[]"),e.savePreset=()=>{let S=window.prompt("Preset name:");if(!S)return;let v=Object.assign({},e.query);delete v.page,e.presets=(e.presets||[]).filter(_=>_.name!==S),e.presets.push({name:S,query:v}),localStorage.setItem(k,JSON.stringify(e.presets))},e.applyPreset=S=>{Object.assign(e.query,S.query,{page:1})},e.deletePreset=S=>{e.presets=(e.presets||[]).filter(v=>v.name!==S.name),localStorage.setItem(k,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(S=>{e.selected[S.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(S=>e.selected[S.repoId]),e.bulkRefresh=()=>{let S=e.selectedRepos();S.length&&confirm(`Force refresh ${S.length} repositories?`)&&S.forEach(v=>e.updateRepository(v))},e.bulkRemoveCache=()=>{let S=e.selectedRepos();S.length&&confirm(`Purge cache for ${S.length} repositories?`)&&S.forEach(v=>e.removeCache(v))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let S=new URLSearchParams(Object.entries(e.query).filter(([,v])=>v!==""&&v!==!1&&v!=null));S.set("format","csv"),S.set("limit","10000"),window.open("/api/admin/repos?"+S.toString(),"_blank")},e.removeCache=S=>{confirm("Remove cached files for "+S.repoId+"?")&&t.delete("/api/admin/repos/"+S.repoId).then(()=>h(),v=>console.error(v))},e.removeRepository=S=>{confirm("Remove repository "+S.repoId+"?")&&t.delete("/api/repo/"+S.repoId+"/").then(()=>h(),v=>console.error(v))},e.updateRepository=S=>{let v=Fe({title:`Refreshing ${S.repoId}...`,date:new Date,body:`The repository ${S.repoId} is going to be refreshed.`});e.toasts.push(v),t.post(`/api/repo/${S.repoId}/refresh`).then(_=>{_.data.status=="ready"?v.title=`${S.repoId} is refreshed.`:v.title=`Refreshing of ${S.repoId}.`},_=>{v.title=`Error during the refresh of ${S.repoId}.`,v.body=_.body})},e.fetchError=null;function h(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(S=>{e.total=S.data.total,e.totalPage=Math.ceil(S.data.total/e.query.limit),e.repositories=S.data.results,e.statusCounts=S.data.statusCounts||[],e.totalSize=S.data.totalSize||0,e.allSelected=!1},S=>{e.fetchError=S&&S.data&&S.data.error||"Failed to load repositories",console.error(S)})}h();let E=null;e.watch("query",()=>{r.timeout.cancel(E),E=r.timeout(h,500);let{page:S,search:v,..._}=e.query;saveFilterPrefs(u,_),a()},!0),a()},yl=function(e,t,n){let r=ut(),s=Zt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let i=h=>{if(h.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){h.preventDefault();let E=document.querySelector('.admin-filter-toolbar input[type="search"]');E&&E.focus()}};s(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=h=>{h==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[h]="",e.query.page=1},e.chips=[];let a=()=>{let h=[];e.query.role&&h.push({key:"role",label:"Role",value:e.query.role}),e.chips=h};e.statusCountFor=h=>{let E=(e.statusCounts||[]).find(S=>S._id===h);return E?E.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=h=>{e.query.sort===h?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=h,e.query.direction="desc"),e.query.page=1},e.sortIcon=h=>e.query.sort===h?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.users.filterPrefs",m={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},w=loadFilterPrefs(u)||{};e.query=Object.assign({},m,w,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(h=>{e.selected[h.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(h=>e.selected[h.username]),e.banUser=h=>{confirm(`Ban user ${h.username}?`)&&t.post(`/api/admin/users/${h.username}/ban`).then(g,E=>console.error(E))},e.activateUser=h=>{t.post(`/api/admin/users/${h.username}/activate`).then(g,E=>console.error(E))},e.bulkBan=()=>{let h=e.selectedUsers();h.length&&confirm(`Ban ${h.length} users?`)&&h.forEach(E=>e.banUser(E))},e.exportCsv=()=>{let h=new URLSearchParams(Object.entries(e.query).filter(([,E])=>E!==""&&E!==!1&&E!=null));h.set("format","csv"),h.set("limit","10000"),window.open("/api/admin/users?"+h.toString(),"_blank")},e.fetchError=null;function g(){e.fetchError=null,t.get("/api/admin/users",{params:e.query}).then(h=>{e.total=h.data.total,e.totalPage=Math.ceil(h.data.total/e.query.limit),e.users=h.data.results,e.statusCounts=h.data.statusCounts||[],e.allSelected=!1},h=>{e.fetchError=h&&h.data&&h.data.error||"Failed to load users",console.error(h)})}g();let k=null;e.watch("query",()=>{r.timeout.cancel(k),k=r.timeout(g,500);let{page:h,search:E,...S}=e.query;saveFilterPrefs(u,S),a()},!0),a()},gl=function(e,t,n,r){let s=ut();e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let i="admin.user.filterPrefs",a={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},u=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},a.filters.status,u.filters&&u.filters.status||{})},e.query={sort:u.sort||a.sort,direction:u.direction||a.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,e.sortBy=h=>{e.query.sort===h?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=h,e.query.direction="desc"),e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=h=>e.query.sort===h?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(i,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(i,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=h=>(e.repositories||[]).filter(E=>E.status===h).length,e.repoFiler=h=>e.filters.status[h.status]==!1?!1:!!(e.search.trim().length==0||h.source.fullName.indexOf(e.search)>-1||h.repoId.indexOf(e.search)>-1||h.statusMessage&&h.statusMessage.indexOf(e.search)>-1||h.conference&&h.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||e.repositories).forEach(h=>{e.selected[h.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(h=>e.selected[h.repoId]),e.bulkRefresh=()=>{let h=e.selectedRepos();h.length&&confirm(`Force refresh ${h.length} repositories?`)&&h.forEach(E=>e.updateRepository(E))},e.bulkRemoveCache=()=>{let h=e.selectedRepos();h.length&&confirm(`Purge cache for ${h.length} repositories?`)&&h.forEach(E=>e.removeCache(E))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let h=e.filteredRepositories||e.repositories,S=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),v=h.map(T=>[T.repoId,T.status,T.statusMessage||"",T.pageView||0,T.anonymizeDate||"",T.source&&T.source.fullName||"",T.conference||"",T.size&&T.size.storage||0].map(V=>{let M=String(V??"");return/[",\n\r]/.test(M)?'"'+M.replace(/"/g,'""')+'"':M}).join(",")),_=new Blob([S+`
|
|
`+v.join(`
|
|
`)],{type:"text/csv"}),N=document.createElement("a");N.href=URL.createObjectURL(_),N.download=r.username+"-repositories.csv",N.click()},e.showStatusMessage=h=>{let E=h.statusMessage||"(no message)";window.prompt(`Status message for ${h.repoId} (${h.status}):`,E)},e.fetchGithubInfo=h=>{let E=window.open("","_blank");E&&E.document.write("<pre>Loading GitHub info for "+h.repoId+"...</pre>"),t.get("/api/admin/repos/"+h.repoId+"/github").then(S=>{E&&(E.document.open(),E.document.write('<pre style="font:13px monospace;padding:16px;white-space:pre-wrap">'+JSON.stringify(S.data,null,2).replace(/[<>]/g,v=>v==="<"?"<":">")+"</pre>"),E.document.close())},S=>{let v=S&&S.data?JSON.stringify(S.data,null,2):String(S);E&&(E.document.body.innerHTML='<pre style="color:#B42318;padding:16px">'+v+"</pre>")})};function m(h){t.get("/api/admin/users/"+h+"/repos",{}).then(E=>{e.repositories=E.data},E=>{console.error(E)})}function w(h){t.get("/api/admin/users/"+h,{}).then(E=>{e.userInfo=E.data},E=>{console.error(E)})}w(r.username),m(r.username),e.banUser=()=>{confirm(`Ban user ${r.username}?`)&&t.post(`/api/admin/users/${r.username}/ban`).then(()=>w(r.username),h=>console.error(h))},e.activateUser=()=>{t.post(`/api/admin/users/${r.username}/activate`).then(()=>w(r.username),h=>console.error(h))},e.promoteUser=()=>{confirm(`Promote ${r.username} to admin?`)&&t.post(`/api/admin/users/${r.username}/promote`).then(()=>w(r.username),h=>console.error(h))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${r.username}?`)&&t.post(`/api/admin/users/${r.username}/demote`).then(()=>w(r.username),h=>console.error(h))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function g(){t.get("/api/admin/tokens").then(h=>{e.tokens=h.data||[]},h=>{h.status!==401&&h.status!==403&&console.error(h)})}g(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(h=>{e.tokenForm.plaintext=h.data.token,e.tokenForm.name="",g()},h=>console.error(h))},e.revokeToken=h=>{confirm(`Revoke token "${h.name}"?`)&&t.delete("/api/admin/tokens/"+h.id).then(()=>g(),E=>console.error(E))},e.removeCache=h=>{confirm("Remove cached files for "+h.repoId+"?")&&t.delete("/api/admin/repos/"+h.repoId).then(()=>m(r.username),E=>console.error(E))},e.removeRepository=h=>{confirm("Remove repository "+h.repoId+"?")&&t.delete("/api/repo/"+h.repoId+"/").then(()=>m(r.username),E=>console.error(E))},e.updateRepository=h=>{let E=Fe({title:`Refreshing ${h.repoId}...`,date:new Date,body:`The repository ${h.repoId} is going to be refreshed.`});e.toasts.push(E),t.post(`/api/repo/${h.repoId}/refresh`).then(S=>{S.data.status=="ready"?E.title=`${h.repoId} is refreshed.`:E.title=`Refreshing of ${h.repoId}.`},S=>{E.title=`Error during the refresh of ${h.repoId}.`,E.body=S.body})},e.getGitHubRepositories=h=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(E=>{e.userInfo.repositories=E.data})};let k=null;e.watch("query",()=>{s.timeout.cancel(k),k=s.timeout(()=>{m(r.username)},500)},!0)},bl=function(e,t,n){let r=ut(),s=Zt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];let i=S=>{if(S.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){S.preventDefault();let v=document.querySelector('.admin-filter-toolbar input[type="search"]');v&&v.focus()}};s(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=S=>{S==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[S]="",e.query.page=1},e.chips=[];let a=()=>{let S=[];(e.query.dateFrom||e.query.dateTo)&&S.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=S};e.statusCountFor=S=>{let v=(e.statusCounts||[]).find(_=>_._id===S);return v?v.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=S=>{e.query.sort===S?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=S,e.query.direction="desc"),e.query.page=1},e.sortIcon=S=>e.query.sort===S?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.conferences.filterPrefs",m={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},w=loadFilterPrefs(u)||{};e.query=Object.assign({},m,w,{page:1,search:""});let g=n.search();g.search&&(e.query.search=g.search);let k="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(k)||"[]"),e.savePreset=()=>{let S=window.prompt("Preset name:");if(!S)return;let v=Object.assign({},e.query);delete v.page,e.presets=(e.presets||[]).filter(_=>_.name!==S),e.presets.push({name:S,query:v}),localStorage.setItem(k,JSON.stringify(e.presets))},e.applyPreset=S=>{Object.assign(e.query,S.query,{page:1})},e.deletePreset=S=>{e.presets=(e.presets||[]).filter(v=>v.name!==S.name),localStorage.setItem(k,JSON.stringify(e.presets))},e.removeConference=S=>{confirm("Remove conference "+S.conferenceID+"?")&&t.delete("/api/admin/conferences/"+S.conferenceID).then(()=>h(),v=>console.error(v))},e.exportCsv=()=>{let S=new URLSearchParams(Object.entries(e.query).filter(([,v])=>v!==""&&v!==!1&&v!=null));S.set("format","csv"),S.set("limit","10000"),window.open("/api/admin/conferences?"+S.toString(),"_blank")},e.fetchError=null;function h(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(S=>{e.total=S.data.total,e.totalPage=Math.ceil(S.data.total/e.query.limit),e.conferences=S.data.results,e.statusCounts=S.data.statusCounts||[]},S=>{e.fetchError=S&&S.data&&S.data.error||"Failed to load conferences",console.error(S)})}h();let E=null;e.watch("query",()=>{r.timeout.cancel(E),E=r.timeout(h,500);let{page:S,search:v,..._}=e.query;saveFilterPrefs(u,_),a()},!0),a()},wl=function(e,t,n,r,s){let i=ut();e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.queueList=[],e.jobs=[],e.selectedQueue="download",e.selectedStats=null,e.range="1h",e.allStates=["active","waiting","delayed","failed","completed"],e.stateFilter={active:!0,waiting:!0,delayed:!0,failed:!0,completed:!0},e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(v=>e.stateFilter[v._state]),e.jobProgressPct=v=>v&&v.progress&&typeof v.progress=="object"&&typeof v.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(v.progress.percent))):typeof v.progress=="number"?Math.max(0,Math.min(100,Math.round(v.progress))):null,e.jobDuration=v=>{if(!v.processedOn)return"-";let N=(v.finishedOn||Date.now())-v.processedOn;return N<1e3?N+"ms":(N/1e3).toFixed(1)+"s"},e.metricsPoints=[],e.selectQueue=v=>{e.selectedQueue=v,a(),u()},e.setRange=v=>{e.range=v,u()};function a(){let v={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:v}).then(_=>{e.queueList=_.data.queues||[],e.jobs=_.data.jobs||[],e.selectedStats=e.queueList.find(N=>N.key===e.selectedQueue)||e.queueList[0]||null},_=>console.error(_))}function u(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(v=>{e.metricsPoints=v.data.points||[],s(h,0)},v=>console.error(v))}a(),u();let m=r(()=>{e.query.autoRefresh&&(a(),u())},15e3);e.on("dispose",()=>r.cancel(m)),e.refreshNow=function(){a(),u()};function w(v){let _=v&&v.data&&(v.data.message||v.data.error)||"Request failed";e.actionError=_,s(()=>{e.actionError=null},5e3),console.error(v)}e.actionError=null,e.removeJob=v=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${v.id}`).then(a,w)},e.retryJob=v=>{t.post(`/api/admin/queue/${e.selectedQueue}/${v.id}`).then(a,w)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(a,v=>console.error(v))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(a,v=>console.error(v))},e.togglePause=()=>{let v=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${v}`).then(a,_=>console.error(_))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(a,v=>console.error(v))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(a,v=>console.error(v))};let g=null;e.watch("query.search",()=>{i.timeout.cancel(g),g=i.timeout(a,350)}),e.expanded={},e.toggleJob=v=>{e.expanded[v.id]=!e.expanded[v.id]},e.humanTime=v=>{if(!v)return"";let _=new Date(v);return _.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+_.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=v=>{if(!v)return"";var _=Math.max(0,Math.ceil((v-Date.now())/1e3));if(_<=0)return"resuming soon";var N=Math.floor(_/60),T=_%60;return"in "+(N>0?N+"m "+T+"s":T+"s")};function k(v){if(v<=0)return{ticks:[0],niceMax:1};let _=Math.pow(10,Math.floor(Math.log10(v))),N=_;v/N<2?N=_/2:v/N>5&&(N=_*2);let T=Math.ceil(v/N)*N,V=[];for(let M=0;M<=T;M+=N)V.push(M);return{ticks:V,niceMax:T}}function h(){var v=document.getElementById("q-throughput-chart");if(!v)return;var _=v.getContext("2d"),N=window.devicePixelRatio||1,T=v.parentElement.getBoundingClientRect(),V=44,M=50,q=20,z=T.width-40,ne=180,ee=z-V-M,C=ne-q;v.width=z*N,v.height=ne*N,v.style.width=z+"px",v.style.height=ne+"px",_.setTransform(N,0,0,N,0,0);var P=document.body.classList.contains("dark-mode"),G="#8A857C",J=P?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",X=P?"#A7B2FF":"#3B4AD6",K=P?"rgba(167,178,255,0.12)":"rgba(59,74,214,0.08)",se=P?"#F08A82":"#B42318",ce=P?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",ue=P?"#F5C842":"#B8860B",re=e.metricsPoints||[];if(re.length===0){_.fillStyle=G,_.font="12px monospace",_.textAlign="center",_.fillText("No metrics data yet",z/2,ne/2),E=null;return}var _e=re.map(function(L){return L.completed}),qe=re.map(function(L){return L.failed}),Me=re.map(function(L){return L.avgMs}),Pe=re.length,Se=ee/(Pe-1||1),ze=Math.max(1,Math.max.apply(null,_e),Math.max.apply(null,qe)),Ue=k(ze),ke=Math.max.apply(null,Me),F=ke>0?k(ke):{ticks:[0],niceMax:1},Z=function(L){return C-L/Ue.niceMax*(C-10)},Q=function(L){return C-L/F.niceMax*(C-10)},te=function(L){return V+L*Se};_.textAlign="right",_.textBaseline="middle",_.font="10px monospace",Ue.ticks.forEach(function(L){var H=Z(L);_.strokeStyle=J,_.lineWidth=1,_.beginPath(),_.moveTo(V,H),_.lineTo(z-M,H),_.stroke(),_.fillStyle=G,_.fillText(L>=1e3?(L/1e3).toFixed(1)+"k":String(L),V-6,H)}),ke>0&&(_.textAlign="left",F.ticks.forEach(function(L){var H=Q(L);_.fillStyle=ue,_.fillText(L>=1e3?(L/1e3).toFixed(1)+"s":L+"ms",z-M+6,H)}));var ye=Date.now(),Ee=Math.min(6,Pe);_.textAlign="center",_.textBaseline="top";for(var p=0;p<Ee;p++){var y=Math.round(p/(Ee-1)*(Pe-1)),D=Math.round((ye-re[y].ts)/6e4),O=te(y),I;D<=0?I="now":D<60?I=D+"m":D<1440?I=Math.round(D/60)+"h":I=Math.round(D/1440)+"d",_.fillStyle=G,_.fillText(I,O,C+4)}function U(L,H,Y,B){L.length!==0&&(_.beginPath(),_.moveTo(te(0),C),L.forEach(function(le,x){var ae=te(x),he=H(le);if(x===0)_.lineTo(ae,he);else{var we=(te(x-1)+ae)/2;_.bezierCurveTo(we,H(L[x-1]),we,he,ae,he)}}),_.lineTo(te(L.length-1),C),_.closePath(),_.fillStyle=Y,_.fill(),_.beginPath(),L.forEach(function(le,x){var ae=te(x),he=H(le);if(x===0)_.moveTo(ae,he);else{var we=(te(x-1)+ae)/2;_.bezierCurveTo(we,H(L[x-1]),we,he,ae,he)}}),_.strokeStyle=B,_.lineWidth=1.5,_.stroke())}U(_e,Z,K,X),U(qe,Z,ce,se),ke>0&&(_.beginPath(),Me.forEach(function(L,H){var Y=te(H),B=Q(L);if(H===0)_.moveTo(Y,B);else{var le=(te(H-1)+Y)/2;_.bezierCurveTo(le,Q(Me[H-1]),le,B,Y,B)}}),_.strokeStyle=ue,_.lineWidth=1,_.setLineDash([4,3]),_.stroke(),_.setLineDash([])),E={pts:re,maxLen:Pe,marginLeft:V,step:Se,totalW:z,toX:te}}var E=null;function S(){var v=document.getElementById("q-throughput-chart");if(!(!v||v._tipBound)){v._tipBound=!0;var _=document.getElementById("q-chart-tooltip"),N=document.getElementById("q-chart-crosshair");v.addEventListener("mousemove",function(T){if(!(!E||!_||!N)){var V=E,M=v.getBoundingClientRect(),q=T.clientX-M.left,z=Math.round((q-V.marginLeft)/V.step);if(z<0||z>=V.maxLen){_.style.display="none",N.style.display="none";return}var ne=V.pts[z],ee=Date.now(),C=Math.round((ee-ne.ts)/6e4),P;if(C<=0)P="now";else if(C<60)P=C+"m ago";else if(C<1440){var G=Math.floor(C/60),J=C%60;P=G+"h"+(J?" "+J+"m":"")+" ago"}else P=Math.round(C/1440)+"d ago";var X='<div class="q-tip-time">'+P+'</div><div class="q-tip-completed">● completed: '+ne.completed+'/min</div><div class="q-tip-failed">● failed: '+ne.failed+"/min</div>";if(ne.avgMs>0){var K=ne.avgMs>=1e3?(ne.avgMs/1e3).toFixed(1)+"s":ne.avgMs+"ms";X+='<div class="q-tip-exec">● avg time: '+K+"</div>"}_.innerHTML=X;var se=V.toX(z),ce=_.offsetWidth,ue=se+10;ue+ce>V.totalW&&(ue=se-ce-10),_.style.display="block",_.style.left=ue+"px",_.style.top="8px",N.style.display="block",N.style.left=se+"px"}}),v.addEventListener("mouseleave",function(){_&&(_.style.display="none"),N&&(N.style.display="none")})}}e.watch("metricsPoints",function(){s(S,50)})},kl=function(e,t,n,r){let s=ut();e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.entries=[],e.visible=[],e.available=!0,e.cap=1e3,e.total=0,e.pageSize=250,e.expanded={},e.detailTab={},e.copyHint="",e.parsedFilterCount=0,e.stats={last24h:0,prev24h:0,delta:0,severity:{error:0,warn:0,info:0},unique:{error:0,warn:0,info:0},buckets:[],dropped:0},e.query={search:"",bucket:"",sort:"recent",group:"code",autoRefresh:!0},e.relTime=N=>{if(!N)return"";let T=new Date(N).getTime();if(isNaN(T))return N;let V=Math.max(0,Date.now()-T),M=Math.floor(V/1e3);if(M<5)return"just now";if(M<60)return`${M}s ago`;let q=Math.floor(M/60);if(q<60)return`${q}m ago`;let z=Math.floor(q/60);if(z<24)return`${z}h ago`;let ne=Math.floor(z/24);return ne<7?`${ne}d ago`:new Date(N).toLocaleDateString()},e.absTime=N=>{if(!N)return"";let T=new Date(N);return isNaN(T.getTime())?N:T.toLocaleString()},e.absTimeShort=N=>{if(!N)return"";let T=new Date(N);return isNaN(T.getTime())?N:T.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})};let i=/^[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+$/;function a(N,T){let V=N&&(N.httpStatus||N.status)||null;if(typeof V=="number"){if(V>=500)return"error";if(V===401||V===403||V===404)return"info";if(V>=400)return"warn"}return T==="error"?"error":T==="warn"?"warn":"info"}function u(N){let T=(N.raw||[]).find(z=>z&&typeof z=="object"&&!Array.isArray(z));if(T){T.message&&i.test(T.message)?(N.displayMessage=T.message,N.displayContext=N.message):T.code&&i.test(String(T.code))?(N.displayMessage=String(T.code),N.displayContext=N.message):T.name&&T.name!=="AnonymousError"&&T.name!=="Error"?(N.displayMessage=T.name,N.displayContext=T.message||N.message):N.displayMessage=N.message,N._status=T.httpStatus||T.status||null,N._url=T.url||null,N._method=T.method||null,N._repoId=T.repoId||T.detail||null,N._detail=T.detail&&T.detail!==N._repoId?T.detail:null;let z=typeof T.stack=="string"?T.stack:null;for(var V=[T.cause,T.err].filter(Boolean),M=0;!z&&M<V.length;M++)for(var q=V[M];!z&&q&&typeof q=="object";)typeof q.stack=="string"&&(z=q.stack),q=q.cause;N._stack=z}else N.displayMessage=N.message,N._status=null,N._url=null,N._stack=null;return N._bucket=a(T,N.level),N._detailJson=m(N,T),N}function m(N,T){let V=[],M=(ee,C)=>{C==null||C===""||V.push([ee,C])};M("name",T&&T.name),M("code",N.displayMessage||T&&T.message),N._bucket&&M("kind",N._bucket),M("httpStatus",T&&T.httpStatus),T&&T.status&&!T.httpStatus&&M("status",T.status),M("module",N.module);let q=T&&T.detail;if(typeof q=="string"){let ee=q.trim();if(ee[0]==="{"||ee[0]==="[")try{q=JSON.parse(q)}catch{}}if(M("detail",q),M("repoId",T&&T.repoId),M("filePath",T&&T.filePath),M("upstreamStatus",T&&T.upstreamStatus),M("upstreamBody",T&&T.upstreamBody),M("url",N._url),M("err",T&&T.err),M("cause",T&&!T.err&&T.cause),M("ts",N.ts),!V.length)return JSON.stringify(N,null,2);let z=V.reduce((ee,C)=>Math.max(ee,C[0].length),0),ne=["{"];return V.forEach(([ee,C],P)=>{let J=` ${`"${ee}":`.padEnd(z+3," ")} `,X=P<V.length-1?",":"",K;if(C&&typeof C=="object"){let se=" ".repeat(J.length);K=JSON.stringify(C,null,2).split(`
|
|
`).map((ce,ue)=>ue===0?ce:se+ce).join(`
|
|
`)}else typeof C=="number"||typeof C=="boolean"?K=String(C):K=JSON.stringify(C);ne.push(`${J}${K}${X}`)}),ne.push("}"),ne.join(`
|
|
`)}function w(N){let T=[],V="",M=/(\w+):(>=|<=|!=|>|<|=)?([^\s]+)/g,q=0,z;for(;z=M.exec(N);)V+=N.slice(q,z.index),q=M.lastIndex,T.push({key:z[1],op:z[2]||"=",val:z[3]});return V+=N.slice(q),{filters:T,free:V.trim().toLowerCase()}}function g(N,T){for(let V of T.filters){let M=(z,ne,ee)=>{let C=parseFloat(z),P=parseFloat(ne);return ee==="="?String(z)===String(ne):ee==="!="?String(z)!==String(ne):ee===">="?C>=P:ee==="<="?C<=P:ee===">"?C>P:ee==="<"?C<P:!0},q;if(V.key==="code")q=N.displayMessage;else if(V.key==="module")q=N.module;else if(V.key==="status")q=N._status;else if(V.key==="url")q=N._url;else if(V.key==="repo")q=N._repoId;else if(V.key==="level")q=N.level;else continue;if(q==null||!M(q,V.val,V.op))return!1}return!(T.free&&((N.displayMessage||"")+" "+(N.module||"")+" "+(N._url||"")+" "+JSON.stringify(N.raw||[])).toLowerCase().indexOf(T.free)===-1)}function k(){let N=w(e.query.search||"");e.parsedFilterCount=N.filters.length;let T=e.query.bucket,V=e.entries.filter(q=>T&&q._bucket!==T?!1:g(q,N)),M=e.query.group;if(M){let q=ee=>M==="module"?ee.module:ee.displayMessage||ee.message||"_",z=new Map;for(let ee of V){let C=q(ee);if(z.has(C)){let P=z.get(C);P.count++,P._related.push(ee),new Date(ee.ts)>new Date(P.ts)&&(P.ts=ee.ts,P._url=ee._url,P._status=ee._status),new Date(ee.ts)<new Date(P._firstSeen)&&(P._firstSeen=ee.ts)}else{let P=Object.assign({},ee);P._key=`${M}:${C}`,P._related=[ee],P._firstSeen=ee.ts,P._lastHourCount=0,P.count=1,z.set(C,P)}}let ne=Date.now()-3600*1e3;for(let ee of z.values())ee._lastHourCount=ee._related.filter(C=>new Date(C.ts).getTime()>=ne).length;V=Array.from(z.values())}else V=V.map((q,z)=>(q._key="row:"+z+":"+q.ts,q._related=[q],q._firstSeen=q.ts,q._lastHourCount=0,q.count=1,q));e.query.sort==="count"?V.sort((q,z)=>z.count-q.count||new Date(z.ts)-new Date(q.ts)):V.sort((q,z)=>new Date(z.ts)-new Date(q.ts)),e.visible=V}function h(N){let T=N?e.entries.length:0,V=N?e.pageSize:Math.max(e.pageSize,e.entries.length||e.pageSize);t.get("/api/admin/errors",{params:{offset:T,limit:V}}).then(M=>{let q=(M.data.entries||[]).map(u);e.entries=N?e.entries.concat(q):q,e.available=!!M.data.available,e.cap=M.data.max||e.cap,e.total=M.data.total||e.entries.length,k()},M=>console.error(M))}e.loadMore=()=>h(!0),e.canLoadMore=()=>e.entries.length<e.total;function E(){t.get("/api/admin/errors/stats").then(N=>{let T=N.data||{},V=T.prev24h?Math.round((T.last24h-T.prev24h)/T.prev24h*100):0;e.stats={last24h:T.last24h||0,prev24h:T.prev24h||0,delta:V,severity:T.severity||{error:0,warn:0,info:0},unique:T.unique||{error:0,warn:0,info:0},buckets:T.buckets||[],dropped:T.dropped||0}},N=>console.error(N))}function S(){h(),E()}e.barPx=(N,T)=>{let V=e.stats.buckets||[],M=0;for(let ee of V)M=Math.max(M,(ee.error||0)+(ee.warn||0)+(ee.info||0));if(!M)return 0;let q=(N.error||0)+(N.warn||0)+(N.info||0);if(!q)return 0;let z=Math.round(q/M*60),ne=N[T]||0;return Math.round(ne/q*z)},e.bucketTitle=N=>`${new Date(N.hour).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} \xB7 ${N.error||0} err \xB7 ${N.warn||0} warn \xB7 ${N.info||0} info`,e.toggle=N=>{e.expanded[N._key]=!e.expanded[N._key]},e.setBucket=N=>{e.query.bucket=N},e.refreshNow=S,e.clearAll=()=>{confirm("Clear all captured errors?")&&t.delete("/api/admin/errors").then(S,N=>console.error(N))},e.exportCsv=()=>{let N=["ts","level","module","displayMessage","_status","_url","_repoId"],T=[N.join(",")];for(let z of e.visible)T.push(N.map(ne=>{let ee=z[ne]==null?"":String(z[ne]);return/[",\n]/.test(ee)?`"${ee.replace(/"/g,'""')}"`:ee}).join(","));let V=new Blob([T.join(`
|
|
`)],{type:"text/csv;charset=utf-8"}),M=URL.createObjectURL(V),q=document.createElement("a");q.href=M,q.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(q),q.click(),document.body.removeChild(q),URL.revokeObjectURL(M)};function v(N){e.copyHint=`${N} copied`,s.timeout(()=>{e.copyHint=""},1500)}e.copyJson=N=>{navigator.clipboard.writeText(N._detailJson).then(()=>v("JSON"))},e.copyCurl=N=>{if(!N._url)return;let V=`curl -X ${N._method||"GET"} '${window.location.origin}${N._url}'`;navigator.clipboard.writeText(V).then(()=>v("curl"))},S();let _=r(()=>{e.query.autoRefresh&&S()},15e3);e.on("dispose",()=>r.cancel(_)),e.watch("query.search",k),e.watch("query.bucket",k),e.watch("query.sort",k),e.watch("query.group",k)},El=function(e,t,n,r){if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null){n.url("/");return}e.data=null,e.loading=!0,e.error=null,e.performance=null,e.performanceMinutes=15,e.performanceTab="routes",e.cacheReport=null,e.cacheError=null,e.cacheMinutes=60,e.cacheTraffic="all";var s=!1;e.loadCache=function(){if(!s){s=!0;var v=e.cacheMinutes;t.get("/api/admin/cache",{params:{minutes:v}}).then(function(_){v===e.cacheMinutes&&(e.cacheReport=_.data,e.cacheError=_.data.available?null:_.data.reason||"Cache monitoring is unavailable.")},function(){e.cacheError="Could not refresh cache monitoring. Displayed values may be stale."}).finally(function(){s=!1,v!==e.cacheMinutes&&e.loadCache()})}},e.cacheRows=function(){return(e.cacheReport?.rows||[]).filter(function(v){return e.cacheTraffic==="all"||v.traffic===e.cacheTraffic})},e.cacheRate=function(v,_){var N=e.cacheRows(),T=function(q){return N.filter(function(z){return z.name===q}).reduce(function(z,ne){return z+ne[_]},0)},V=T(v+"_hit"),M=T(v+"_miss");return V+M?(100*V/(V+M)).toFixed(1)+"%":"No samples"},e.cacheEventName=function(v){return v.replaceAll("_"," ")},e.cacheP95=function(v){var _=0,N=e.cacheReport?.latencyBucketsMs||[];if(!v.count)return"No samples";if(!v.ms)return"Not timed";for(var T=0;T<=N.length;T++)if(_+=v["b"+T]||0,_>=Math.ceil(v.count*.95))return T<N.length?"\u2264 "+N[T]+" ms":"> 10 s";return"No samples"},e.performanceError=null,e.formatMs=function(v){return v==null?"":v<1e3?v+" ms":+(v/1e3).toFixed(1)+" s"},e.latencyBound=function(v,_){return v.count?v[_]==null?"> 60 s":"\u2264 "+e.formatMs(v[_]):"No samples"},e.firstByteBound=function(v){return e.latencyBound({count:v.firstByteCount,p95UpperMs:v.firstByteP95UpperMs},"p95UpperMs")},e.sampleAge=function(v){return Math.max(0,Math.round((Date.now()-v.sampledAt)/1e3))},e.peakRss=function(v){return(e.performance.runtimeSeries||[]).filter(function(_){return _.instance===v.instance}).reduce(function(_,N){return Math.max(_,N.rss)},v.memory.rss)},e.performanceWarning=function(v){return e.sampleAge(v)>45||v.droppedBatches||v.droppedMetrics||v.sockets?.closeWait>0||v.eventLoop.p95Ms>100||v.memoryLimitBytes&&v.memory.rss>v.memoryLimitBytes*.8};var i=!1;e.loadPerformance=function(){var v=e.performanceMinutes;e.performance?.windowMinutes&&e.performance.windowMinutes!==v&&(e.performance=null),!i&&(i=!0,t.get("/api/admin/performance",{params:{minutes:v}}).then(function(_){v===e.performanceMinutes&&(e.performance=_.data,e.performanceError=_.data.available?null:"Performance monitoring is unavailable. Request history may be incomplete.")},function(){v===e.performanceMinutes&&(e.performanceError="Could not refresh performance monitoring. Displayed samples may be stale.")}).finally(function(){i=!1,v!==e.performanceMinutes&&e.loadPerformance()}))};function a(v){if(v==null)return"\u2014";for(var _=["B","KB","MB","GB","TB"],N=0,T=v;T>=1024&&N<_.length-1;)T/=1024,N++;return T.toFixed(N>0?1:0)+" "+_[N]}e.humanBytes=a;function u(v){if(!v)return"\u2014";var _=Math.floor(v/86400),N=Math.floor(v%86400/3600),T=Math.floor(v%3600/60);return _>0?_+"d "+(N<10?"0":"")+N+"h":N>0?N+"h "+(T<10?"0":"")+T+"m":T+"m"}e.humanDuration=u;function m(v){return v==null?"\u2014":v>=1e6?(v/1e6).toFixed(1)+"M":v>=1e3?(v/1e3).toFixed(1)+"K":String(v)}e.humanNum=m,e.queueTotal=function(v){return v?(v.waiting||0)+(v.active||0)+(v.delayed||0)+(v.failed||0):0},e.statusCount=function(v){if(!e.data||!e.data.repos)return 0;for(var _=e.data.repos.statusBreakdown||[],N=0;N<_.length;N++)if(_[N]._id===v)return _[N].count;return 0},e.barPct=function(v){var _=e.data&&e.data.repos?e.data.repos.total:0;if(!_)return 0;var N=[v];v==="expired"&&N.push("expiring"),v==="removed"&&N.push("removing"),v==="preparing"&&N.push("download");var T=0;return N.forEach(function(V){T+=e.statusCount(V)}),Math.max(.4,T/_*100)},e.errPct=function(v){if(!e.data||!e.data.errors)return 0;var _=Math.max(e.data.errors.severity.error,e.data.errors.severity.warn,e.data.errors.severity.info,1);return e.data.errors.severity[v]/_*100};function w(v){var _=v||[];return _.map(function(N,T){var V=_[T-1]||{},M=Object.assign({},N);return M.dailyRepositories=T?Math.max(0,(N.nbRepositories||0)-(V.nbRepositories||0)):0,M.dailyUsers=T?Math.max(0,(N.nbUsers||0)-(V.nbUsers||0)):0,M.dailyPageViews=T?Math.max(0,(N.nbPageViews||0)-(V.nbPageViews||0)):0,M})}function g(v){var _=v&&v.length?v[v.length-1]:{};return{repositories:_.dailyRepositories||0,users:_.dailyUsers||0,pageViews:_.dailyPageViews||0}}var k={},h={};e.historyBarH=function(v,_){return!v||!k[_]?0:Math.max(1,Math.round(v[_]/k[_]*140))},e.historyRangeH=function(v,_){if(!v||k[_]==null)return 0;var N=k[_]-h[_];return N?Math.round(8+(v[_]-h[_])/N*132):70},e.historyRange=function(v){return{min:h[v],max:k[v]}},e.historyLabel=function(v){if(!v||!v.date)return"";var _=new Date(v.date);return _.getUTCMonth()+1+"/"+_.getUTCDate()};function E(){e.loadPerformance(),e.loadCache(),t.get("/api/admin/overview").then(function(v){v.data.history=w(v.data.history),v.data.daily={today:g(v.data.history)},e.data=v.data,e.loading=!1,e.error=null,k={},h={},(v.data.history||[]).forEach(function(_){["dailyPageViews","dailyRepositories","dailyUsers","nbUsers"].forEach(function(N){(!k[N]||_[N]>k[N])&&(k[N]=_[N]),(h[N]==null||_[N]<h[N])&&(h[N]=_[N])})})},function(v){e.loading=!1,e.error=v.data&&v.data.error||"Failed to load overview"})}E();var S=r(E,3e4);e.on("dispose",function(){r.cancel(S)})};var Cl=[{path:"/review-link",template:"partials/reviewConsent.htm",title:"Artifact consent \u2013 Anonymous GitHub",setup:(e,t)=>wr(e,t)},{path:"/connections",template:"partials/connections.htm",title:"GitHub connections \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ml(e,t.http)},{path:"/signin",template:"partials/signin.htm",title:"Sign in \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>hl(e,t.http)},{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>al(e,t.http,t.location,t.window,t.timeout)},{path:"/dashboard",template:"partials/dashboard.htm",title:"Your anonymizations \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ll(e,t.http,t.location,t.promises,t.window,t.quotaService)},{path:"/pr-dashboard",redirect:"/dashboard"},{path:"/anonymize/:repoId?",template:"partials/anonymize.htm",title:"New anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>as(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/pull-request-anonymize/:pullRequestId?",template:"partials/anonymize.htm",title:"Anonymize a pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>as(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/gist-anonymize/:gistId?",template:"partials/anonymize.htm",title:"Anonymize a gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>as(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/status/:repoId",template:"partials/status.htm",title:"Repository status \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>dl(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>pl(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>fr(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId/edit",template:"partials/newConference.htm",title:"Edit conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>fr(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>fl(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>sl(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>rl(e,t.http,t.translate,t.timeout,t.quotaService)},{path:"/claim",template:"partials/claim.htm",title:"Claim an anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>il(e,t.http,t.location)},{path:"/pr/:pullRequestId/:path(.*)*",template:"partials/pullRequest.htm",title:"Anonymous pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ul(e,t.http,t.location,t.params,t.html)},{path:"/gist/:gistId/:path(.*)*",template:"partials/gist.htm",title:"Anonymous gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>cl(e,t.http,t.location,t.params,t.html)},{path:"/r/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>pr(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/repository/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>pr(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/admin/",template:"partials/admin/overview.htm",title:"Admin \xB7 Overview \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>El(e,t.http,t.location,t.interval)},{path:"/admin/repositories",template:"partials/admin/repositories.htm",title:"Admin \xB7 Repositories \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>vl(e,t.http,t.location)},{path:"/admin/users",template:"partials/admin/users.htm",title:"Admin \xB7 Users \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>yl(e,t.http,t.location)},{path:"/admin/users/:username",template:"partials/admin/user.htm",title:"Admin \xB7 User details \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>gl(e,t.http,t.location,t.params)},{path:"/admin/conferences",template:"partials/admin/conferences.htm",title:"Admin \xB7 Conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>bl(e,t.http,t.location)},{path:"/admin/queues",template:"partials/admin/queues.htm",title:"Admin \xB7 Queues \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>wl(e,t.http,t.location,t.interval,t.timeout)},{path:"/admin/errors",template:"partials/admin/errors.htm",title:"Admin \xB7 Errors \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>kl(e,t.http,t.location,t.interval)},{path:"/404",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",preserveExplorer:!1,setup:()=>{}},{path:"/:pathMatch(.*)*",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",setup:()=>{}}];var Tp={class:"container py-4",style:{"max-width":"48rem","overflow-wrap":"anywhere"}},Ap={key:0},Op={key:1,role:"alert"},Ip={key:2,role:"status"},Pp={key:0},Vp={key:1},qp=["disabled"],Mp=["disabled"],Up=["disabled"],$p={key:5,class:"mt-4","aria-labelledby":"review-policy-title"},Lp={id:"review-policy-title"},Fp={key:0,role:"alert"},zp=["disabled"],Hp=["disabled"],Bp=["disabled"],jp={key:6,role:"status"};function _l(e,t){return l(),d("section",Tp,[t[12]||(t[12]=o("a",{href:"/"},"Anonymous GitHub",-1)),t[13]||(t[13]=o("h1",{class:"mt-3"},"Approve artifact access",-1)),t[14]||(t[14]=o("p",null,"This records your approval as the repository owner or an authorized coauthor.",-1)),e.user?.username?f("v-if",!0):(l(),d("p",Ap,[...t[6]||(t[6]=[b("Sign in first, then reopen the artifact link from your submission. ",-1),o("a",{href:"/signin"},"Sign in",-1)])])),e.error?(l(),d("p",Op,c(e.error),1)):f("v-if",!0),e.saved?(l(),d("p",Ip,[t[7]||(t[7]=b("Consent recorded. ",-1)),e.handoffEnabled?(l(),d("span",Pp,"Continue to review to finish linking.")):(l(),d("span",Vp,"Artifact linking is not complete. Return to your submission to check its status."))])):f("v-if",!0),e.saved&&e.handoffEnabled?(l(),d("button",{key:3,class:"btn btn-primary",type:"button",onClick:t[0]||(t[0]=(...n)=>e.continueReview&&e.continueReview(...n)),disabled:e.busy},"Continue to review",8,qp)):f("v-if",!0),e.user?.username&&!e.saved?(l(),d("form",{key:4,onSubmit:t[2]||(t[2]=ie((...n)=>e.loadPreview&&e.loadPreview(...n),["prevent"]))},[t[8]||(t[8]=o("label",{for:"review-repository"},"Anonymous repository ID",-1)),R(o("input",{id:"review-repository",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=n=>e.repositoryId=n),maxlength:"128",autocomplete:"off",disabled:e.busy||e.uncertain,"aria-describedby":"review-repository-help"},null,8,Mp),[[zt,e.repositoryId]]),t[9]||(t[9]=o("p",{id:"review-repository-help"},"Use the ID after /r/ in the anonymous repository URL.",-1)),o("button",{type:"submit",class:"btn btn-primary",disabled:e.busy||e.uncertain},"Preview access and retention",8,Up)],32)):f("v-if",!0),e.preview&&!e.saved?(l(),d("section",$p,[o("h2",Lp,c(e.preview.repositoryName),1),o("p",null,"Access: "+c(e.preview.policy.access==="anonymous-link"?"Anyone with the anonymous link":"Restricted review access")+".",1),o("p",null,"Retain until "+c(e.preview.policy.retainUntil)+". Policy version "+c(e.preview.policy.version)+".",1),e.expired?(l(),d("p",Fp,"This preview expired. Open a new artifact link from your submission.")):f("v-if",!0),o("div",null,[o("label",null,[R(o("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=n=>e.acceptAccess=n),disabled:e.busy||e.uncertain||e.expired},null,8,zp),[[Xs,e.acceptAccess]]),t[10]||(t[10]=b(" I approve the access policy above.",-1))])]),o("div",null,[o("label",null,[R(o("input",{type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=n=>e.acceptRetention=n),disabled:e.busy||e.uncertain||e.expired},null,8,Hp),[[Xs,e.acceptRetention]]),t[11]||(t[11]=b(" I approve retention until the date above.",-1))])]),o("button",{class:"btn btn-primary",type:"button",onClick:t[5]||(t[5]=(...n)=>e.confirmConsent&&e.confirmConsent(...n)),disabled:e.busy||e.expired||!e.acceptAccess||!e.acceptRetention},c(e.uncertain?"Retry confirmation":"Confirm consent"),9,Bp)])):f("v-if",!0),e.busy?(l(),d("p",jp,"Waiting for the server\u2026")):f("v-if",!0)])}var Gp={class:"container paper-page connections-page"},Wp={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Kp={key:1,role:"status"},Yp=["disabled"],Jp={key:3},Qp={key:0,class:"connection-resources"},Xp=["disabled"],Zp=["disabled"],xp={key:0,role:"status"},ef={class:"connections-grid"},tf={key:0},of={class:"connection-title"},nf={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},sf={class:"connection-actions"},rf={key:0,class:"btn btn-ink",target:"_self",href:"/github/app/install"},af={key:1,class:"connection-installations"},lf={key:0},df=["href"],uf={class:"sr-only"},cf=["disabled"],pf={class:"connection-title"},ff={key:0,target:"_self",href:"/github/login",class:"btn btn-outline-ink"},mf={key:1,class:"connection-revoke"},hf={key:0},vf=["disabled"],yf={class:"connection-resources"},gf={class:"connection-title"},bf={class:"connection-count"},wf={key:0,class:"connection-empty"},kf={class:"connection-resource-name"},Ef={key:0,class:"connection-resource-actions"},Cf=["disabled","onClick"],_f=["disabled","onClick"],Sf={key:1,class:"connection-help",role:"status"},Nf=["disabled","onClick"];function Sl(e,t){return l(),d("div",Gp,[t[25]||(t[25]=de('<div class="paper-crumbs"><a href="/dashboard">My work</a> / <span class="here">GitHub connections</span></div><header class="connections-heading"><h1 class="paper-page-title">GitHub <em>connections</em></h1><p class="paper-page-lede">Manage how GitHub shares your code. Your anonymizations and URLs stay the same.</p></header>',2)),e.connectionError?(l(),d("p",Wp,c(e.connectionError),1)):f("v-if",!0),!e.connections&&!e.connectionError?(l(),d("p",Kp,"Loading your connections\u2026")):f("v-if",!0),!e.connections&&e.connectionError?(l(),d("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=n=>e.loadConnections())},"Try again",8,Yp)):f("v-if",!0),e.connections?(l(),d("div",Jp,[e.connections.emailNotificationsEnabled?(l(),d("section",Qp,[t[6]||(t[6]=o("h2",null,"Email alerts",-1)),t[7]||(t[7]=o("p",null,"We will email you if your GitHub connection stops working or a repository becomes inaccessible. Your address is never shown on anonymous pages.",-1)),o("form",{onSubmit:t[2]||(t[2]=ie(n=>e.saveNotificationEmail(),["prevent"]))},[t[5]||(t[5]=o("label",{for:"notification-email"},"Email address",-1)),R(o("input",{id:"notification-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[1]||(t[1]=n=>e.notificationEmail=n),disabled:e.busy},null,8,Xp),[[zt,e.notificationEmail]]),o("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.busy},"Save email address",8,Zp),e.emailSaved?(l(),d("p",xp,"Email address saved.")):f("v-if",!0)],32)])):f("v-if",!0),o("div",ef,[e.connections.appEnabled?(l(),d("section",tf,[t[13]||(t[13]=o("div",{class:"connection-top"},[o("i",{class:"fab fa-github","aria-hidden":"true"}),o("span",{class:"connection-badge"},"Recommended")],-1)),o("div",of,[t[8]||(t[8]=o("h2",null,"GitHub App",-1)),o("span",{class:A(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},c(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[14]||(t[14]=o("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(l(),d("p",nf,c(e.connections.appError)+". Reconnect to restore access.",1)):f("v-if",!0),o("div",sf,[e.connections.appConnected&&!e.connections.appError?(l(),d("a",rf,[...t[9]||(t[9]=[b("Manage repository access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),o("a",{class:A(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},c(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3)]),t[15]||(t[15]=o("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(l(),d("ul",af,[(l(!0),d(W,null,oe(e.connections.installations,n=>(l(),d("li",{key:n.id},[o("div",null,[o("strong",null,c(n.account),1),n.suspended?(l(),d("span",lf," \xB7 Suspended")):f("v-if",!0)]),o("a",{target:"_self",href:"/github/app/install?installationId="+n.id},[t[10]||(t[10]=b("Manage access ",-1)),o("span",uf,"for "+c(n.account),1),t[11]||(t[11]=b(" \u2192",-1))],8,df)]))),128))])):f("v-if",!0),o("button",{class:"connection-link",disabled:e.busy,onClick:t[3]||(t[3]=n=>e.loadConnections())},[...t[12]||(t[12]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Refresh access",-1)])],8,cf)])):f("v-if",!0),o("section",null,[t[18]||(t[18]=o("div",{class:"connection-top"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-key"})]),o("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),o("div",pf,[t[16]||(t[16]=o("h2",null,"GitHub OAuth",-1)),o("span",{class:A(["connection-status",{"is-connected":e.connections.oauthConnected}])},c(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[19]||(t[19]=o("p",null,"For existing OAuth anonymizations.",-1)),t[20]||(t[20]=o("p",{class:"connection-help"},"This connection uses GitHub's broader repository permissions. Existing work keeps using it until you switch below.",-1)),e.connections.oauthEnabled?(l(),d("a",ff,c(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):f("v-if",!0),e.connections.oauthConnected?(l(),d("div",mf,[e.connections.gistCount?(l(),d("p",hf,c(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):f("v-if",!0),t[17]||(t[17]=o("p",null,"Switch all dependent repositories before revoking access. Gists can use your GitHub App connection.",-1)),e.connections.appConnected?(l(),d("button",{key:1,class:"connection-link connection-danger",disabled:e.busy||e.connections.resources.some(n=>n.connection==="oauth"),onClick:t[4]||(t[4]=n=>e.disconnectOAuth())},"Revoke OAuth access",8,vf)):f("v-if",!0)])):f("v-if",!0)])]),o("section",yf,[o("div",gf,[t[21]||(t[21]=o("h2",null,"Repository connections",-1)),o("span",bf,c(e.connections.resources?.length||0)+" resources",1)]),t[23]||(t[23]=o("p",null,"Check access, then switch each resource to the GitHub App. After reinstalling the App, reconnect existing resources here to keep their anonymous URLs and published snapshots.",-1)),e.connections.resources?.length?f("v-if",!0):(l(),d("div",wf,[...t[22]||(t[22]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),o("div",null,[o("h3",null,"No repository connections yet"),o("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),o("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(l(!0),d(W,null,oe(e.connections.resources,n=>(l(),d("div",{class:"connection-resource",key:n.type+n.id},[o("div",kf,[o("strong",null,c(n.name||n.id),1),o("small",null,c(n.type)+" \xB7 "+c(n.id),1)]),o("span",{class:A(["connection-badge",{"connection-badge-muted":n.connection==="oauth"}])},c(n.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(n.status)&&(n.status!=="download"||n.type==="pull-request"&&(!n.statusDate||new Date(n.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(l(),d("div",Ef,[o("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:r=>e.changeConnection(n,"github-app",!0)},"Check read-only access",8,Cf),n.eligible?(l(),d("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:r=>e.changeConnection(n,"github-app",!1)},c(n.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,_f)):f("v-if",!0),n.eligible===!1?(l(),d("span",Sf,"Access unavailable. Allow this repository on GitHub, then check again.")):f("v-if",!0)])):f("v-if",!0),!["archived","removed","preparing","queue","removing","expiring"].includes(n.status)&&(n.status!=="download"||n.type==="pull-request"&&(!n.statusDate||new Date(n.statusDate).getTime()<=Date.now()-3e5))&&n.connection==="github-app"&&e.connections.oauthConnected?(l(),d("button",{key:1,class:"connection-link",disabled:e.busy,onClick:r=>e.changeConnection(n,"oauth",!1)},"Use OAuth",8,Nf)):f("v-if",!0)]))),128)),t[24]||(t[24]=o("p",{class:"connection-footnote"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):f("v-if",!0)])}var Rf={class:"container paper-page auth-page"},Df={class:"auth-layout"},Tf={class:"auth-options"},Af={key:0},Of={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},If={key:1},Pf={key:1},Vf={key:2,class:"auth-legacy"},qf={key:3,role:"status"};function Nl(e,t){return l(),d("div",Rf,[t[5]||(t[5]=o("a",{class:"auth-back",href:"/"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-arrow-left"})]),b(" Anonymous GitHub")],-1)),o("div",Df,[t[4]||(t[4]=de('<header class="auth-intro"><div class="paper-eyebrow">Your research, ready for review</div><h1 class="paper-page-title"><span class="auth-title-desktop">Your code.<br>Your identity,<br><em>protected.</em></span><span class="auth-title-mobile">Sign in to <em>GitHub</em></span></h1><p class="paper-page-lede">Sign in to create and manage your anonymizations.</p></header>',1)),o("div",Tf,[e.accountRecovery?(l(),d("section",Af,[t[0]||(t[0]=o("h2",null,"Verify your existing account",-1)),t[1]||(t[1]=o("p",null,"We found an existing account. Verify it with your previous GitHub connection to keep your anonymizations. Future sign-ins will use the GitHub App.",-1)),e.site_options?.GITHUB_OAUTH_ENABLED?(l(),d("a",Of,"Verify with previous GitHub connection")):(l(),d("p",If,"Account verification is currently unavailable. Please try again later."))])):f("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(l(),d("section",Pf,[...t[2]||(t[2]=[de('<div class="connection-top"><i class="fab fa-github" aria-hidden="true"></i><span class="connection-badge">Read-only access</span></div><h2>Continue with GitHub</h2><p>Connect through the GitHub App with read-only repository access.</p><ul class="auth-permissions"><li><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-check"></use></svg> You choose which repositories to share</li><li><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-check"></use></svg> No permission to write to your code</li></ul><a class="btn btn-ink auth-continue" target="_self" href="/github/app/login">Sign in with GitHub <svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-arrow-right"></use></svg></a><small>Your existing anonymizations and connections stay with your account.</small>',6)])])):f("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(l(),d("section",Vf,[...t[3]||(t[3]=[o("div",{class:"connection-title"},[o("h2",null,"Continue with GitHub")],-1),o("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),o("a",{class:"connection-link",target:"_self",href:"/github/login"},[b("Sign in with GitHub "),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-arrow-right"})])],-1)])])):f("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(l(),d("p",qf,"GitHub sign-in is currently unavailable. Please try again later.")):f("v-if",!0)])])])}var Mf={class:"paper-empty"};function Rl(e,t){return l(),d("div",Mf,[...t[0]||(t[0]=[de('<div class="paper-empty-inner"><div class="paper-eyebrow">Error \xB7 404</div><h1 class="paper-empty-title"> This link<br><em>isn\u2019t here.</em></h1><p class="paper-empty-lede"> The anonymous mirror you\u2019re looking for has expired, been removed by its owner, or never existed. If you received this URL from an author, ask them to re-issue it. </p><div class="paper-empty-cta"><a href="/" class="btn-hero">Back to home</a><a href="/faq" class="btn-hero-ghost">Read the FAQ</a></div></div>',1)])])}var Uf={class:"container paper-page admin-page"},$f={class:"admin-summary"},Lf={class:"summary-total"},Ff=["aria-pressed"],zf={class:"count"},Hf=["aria-pressed"],Bf={class:"count"},jf=["aria-pressed"],Gf={class:"count"},Wf=["aria-pressed"],Kf={class:"count"},Yf=["aria-pressed"],Jf={class:"count"},Qf={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},Xf={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},Zf={class:"admin-filter-row"},xf={class:"search-wrap"},em={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},tm={key:0,class:"admin-search-hint"},om={class:"admin-filter-inline","aria-label":"Pagination"},nm=["disabled"],sm={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},rm=["disabled"],im={key:0,class:"admin-filter-row"},am={class:"admin-active-chips"},lm={class:"key"},dm=["onClick"],um={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},cm={class:"paper-table-head",role:"row"},pm={role:"columnheader"},fm={role:"columnheader"},mm={role:"columnheader"},hm={class:"paper-table-row",role:"row"},vm={class:"cell-anon",role:"cell"},ym={class:"anon-text"},gm=["textContent","href"],bm={class:"anon-sub"},wm={class:"cell-status",role:"cell"},km=["textContent"],Em={class:"cell-views num",role:"cell"},Cm=["textContent","href"],_m={class:"cell-expires",role:"cell"},Sm={class:"cell-actions",role:"cell"},Nm={class:"dropdown"},Rm={class:"dropdown-menu dropdown-menu-right"},Dm=["href"],Tm=["href"],Am=["href"],Om=["onClick"],Im={key:0,class:"paper-table-empty"},Pm={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},Vm={style:{"font-size":"12px",color:"var(--ink-muted)"}},qm={key:0,class:"pagination-compact"},Mm=["disabled"],Um=["max"],$m=["disabled"],Lm={class:"admin-filter-inline"},Fm={class:"form-control form-control-sm"};function Dl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",Uf,[t[47]||(t[47]=de('<div class="paper-crumbs">Admin \xA0/\xA0 <span class="here">Conferences</span></div><h1 class="paper-page-title">Conferences</h1><nav class="admin-nav"><a href="/admin/"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-chart"></use></svg> Overview</a><a href="/admin/repositories"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Repositories</a><a href="/admin/users"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-users"></use></svg> Users</a><a href="/admin/conferences" class="active"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-conference"></use></svg> Conferences</a><a href="/admin/queues"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-list"></use></svg> Queues</a><a href="/admin/errors"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Errors</a></nav>',3)),o("div",$f,[o("span",Lf,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=s=>{e.query.ready=!e.query.ready,e.query.page=1}),"aria-pressed":!!e.query?.ready},[t[13]||(t[13]=b("Ready ",-1)),o("span",zf,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,Ff),o("button",{type:"button",class:A(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=s=>{e.query.preparing=!e.query.preparing,e.query.page=1}),"aria-pressed":!!e.query?.preparing},[t[14]||(t[14]=b("Preparing ",-1)),o("span",Bf,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,Hf),o("button",{type:"button",class:A(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=s=>{e.query.error=!e.query.error,e.query.page=1}),"aria-pressed":!!e.query?.error},[t[15]||(t[15]=b("Errored ",-1)),o("span",Gf,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,jf),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=s=>{e.query.expired=!e.query.expired,e.query.page=1}),"aria-pressed":!!e.query?.expired},[t[16]||(t[16]=b("Expired ",-1)),o("span",Kf,c(e.fmt?.number(e.statusCountFor("expired"))),1)],10,Wf),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=s=>{e.query.removed=!e.query.removed,e.query.page=1}),"aria-pressed":!!e.query?.removed},[t[17]||(t[17]=b("Removed ",-1)),o("span",Jf,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,Yf)]),e.fetchError?(l(),d("div",Qf,[t[18]||(t[18]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fetchError),1)])):f("v-if",!0),R((l(),d("form",Xf,[o("div",Zf,[o("div",xf,[R(o("input",em,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(l(),d("span",tm,"/"))]),t[22]||(t[22]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",onClick:t[5]||(t[5]=s=>e.exportCsv())},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])]),o("span",om,[o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,nm),o("span",sm,c(e.query?.page)+"/"+c(e.totalPage||1),1),o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,rm)])]),e.chips?.length?(l(),d("div",im,[o("div",am,[(l(!0),d(W,null,oe(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",lm,c(s?.label),1),o("span",null,c(s?.value),1),o("button",{type:"button",onClick:a=>e.clearFilter(s.key),"aria-label":"Clear filter"},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,dm)]))),128))])])):f("v-if",!0)])),[[r,e.viewState]]),o("div",um,[o("div",cm,[o("div",pm,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="name"}]),onClick:t[8]||(t[8]=s=>e.sortBy("name"))},[t[25]||(t[25]=b("Conference ",-1)),e.sortIcon("name")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("name")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[24]||(t[24]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",fm,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[9]||(t[9]=s=>e.sortBy("status"))},[t[27]||(t[27]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[26]||(t[26]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[30]||(t[30]=o("div",{role:"columnheader",class:"num"},"Repos",-1)),o("div",mm,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[10]||(t[10]=s=>e.sortBy("startDate"))},[t[29]||(t[29]=b("Window ",-1)),e.sortIcon("startDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("startDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[31]||(t[31]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(W,null,oe(e.filteredConferences,(s,i)=>(l(),d("div",hm,[o("div",vm,[t[33]||(t[33]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[o("use",{href:"#project-icon-conference"})],-1)),o("div",ym,[o("a",{class:"repo-name",textContent:c(s?.name),href:e.safeUrl("/conference/"+s?.conferenceID)},null,8,gm),o("div",bm,[o("span",null,c(s?.conferenceID),1),t[32]||(t[32]=b("\xA0\xB7\xA0",-1)),o("span",null,c(e.fmt?.number(s?.price||0))+" \u20AC",1)])])]),o("div",wm,[o("span",{class:A(["status-dot",{"status-removed":s?.status=="removed"||s?.status=="expired","status-ready":s?.status=="ready","status-error":s?.status=="error","status-preparing":s?.status=="preparing"}])},null,2),o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,km)]),o("div",Em,[t[34]||(t[34]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1)),o("a",{title:"Show repositories in this conference",textContent:c(e.fmt?.number(s?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+s?.conferenceID)},null,8,Cm)]),o("div",_m,[t[35]||(t[35]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),b(" "+c(e.fmt?.date(s?.startDate))+" \u2013 "+c(e.fmt?.date(s?.endDate)),1)]),o("div",Sm,[o("div",Nm,[t[41]||(t[41]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",Rm,[o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/edit")},[...t[36]||(t[36]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit",-1)])],8,Dm),o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/")},[...t[37]||(t[37]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View",-1)])],8,Tm),o("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+s?.conferenceID)},[...t[38]||(t[38]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),b(" View repositories",-1)])],8,Am),t[40]||(t[40]=o("div",{class:"dropdown-divider"},null,-1)),R(o("a",{class:"dropdown-item text-danger",href:"#",onClick:ie(a=>e.removeConference(s),["prevent"])},[...t[39]||(t[39]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,Om),[[j,s?.status!="removed"]])])])])]))),256)),e.filteredConferences?.length==0?(l(),d("div",Im,[...t[42]||(t[42]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No conferences match the current filters.",-1)])])):f("v-if",!0)]),o("div",Pm,[o("span",Vm,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",qm,[o("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[43]||(t[43]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),b(" Previous",-1)])],8,Mm),R(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,Um),[[n,{state:e.viewState,set:s=>{e.query.page=s},value:e.query?.page,form:null,options:{}}]]),o("span",null,"of "+c(e.totalPage),1),o("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[44]||(t[44]=[b("Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,$m)])):f("v-if",!0),o("span",Lm,[t[46]||(t[46]=o("label",null,"Per page",-1)),R((l(),d("select",Fm,[...t[45]||(t[45]=[de('<option value="10">10</option><option value="25">25</option><option value="50">50</option><option value="100">100</option><option value="250">250</option>',5)])])),[[n,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var zm={class:"container paper-page admin-page errors-page"},Hm={class:"errors-header"},Bm={class:"errors-actions"},jm={class:"kpi-grid"},Gm={class:"kpi-card"},Wm={class:"kpi-value"},Km={key:0},Ym={key:1},Jm={class:"kpi-card kpi-error"},Qm={class:"kpi-value"},Xm={class:"kpi-sub"},Zm={class:"kpi-card kpi-warn"},xm={class:"kpi-value"},eh={class:"kpi-sub"},th={class:"kpi-card kpi-info"},oh={class:"kpi-value"},nh={class:"kpi-sub"},sh={class:"kpi-value"},rh={class:"kpi-sub"},ih={key:0,class:"dropped-warn"},ah={class:"volume-chart"},lh={class:"volume-bars"},dh=["title"],uh={class:"errors-toolbar","aria-label":"Error filters"},ch={class:"seg-tabs"},ph={class:"search-wrap"},fh={type:"search",class:"form-control",placeholder:"code:repo_not_found module:route status:>=400",autocomplete:"off"},mh={key:0,class:"filter-count"},hh={class:"select-wrap"},vh={class:"form-control form-control-sm"},yh={class:"select-wrap"},gh={class:"form-control form-control-sm"},bh={class:"autoref"},wh={type:"checkbox"},kh={key:0,class:"admin-empty"},Eh={key:1,class:"errors-pager"},Ch={key:2,class:"errors-list"},_h=["onClick"],Sh={class:"col-when"},Nh={class:"when-rel"},Rh={class:"when-abs"},Dh={class:"col-sev"},Th={class:"sev-label"},Ah={class:"col-mod"},Oh={class:"pill pill-module"},Ih={class:"col-msg"},Ph={class:"msg-code"},Vh={key:0,class:"msg-context"},qh={key:1,class:"msg-detail"},Mh={key:2,class:"msg-url"},Uh={class:"col-count"},$h={key:0,class:"count-pill"},Lh={key:1,class:"count-pill count-pill-muted"},Fh={class:"col-status"},zh={key:0,class:"errors-row-detail"},Hh={class:"detail-tabs"},Bh=["onClick"],jh=["onClick"],Gh=["onClick"],Wh={class:"detail-body"},Kh={class:"detail-main"},Yh={key:0},Jh={key:1,class:"stack-pre"},Qh={key:2,class:"related-list"},Xh={class:"when-abs"},Zh={class:"msg-url"},xh={class:"detail-actions"},ev=["onClick"],tv=["onClick"],ov={key:0,class:"copy-hint"},nv={class:"detail-aside"},sv={class:"aside-block"},rv=["title"],iv={class:"aside-block"},av=["title"],lv={class:"aside-block"},dv={class:"aside-value"},uv={key:0,class:"aside-sub"},cv={key:0,class:"aside-block"},pv=["href"],fv={key:1,class:"aside-block"},mv={class:"aside-value mono"};function Tl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",zm,[t[32]||(t[32]=o("div",{class:"paper-crumbs"},[b("Admin \xA0/\xA0 "),o("span",{class:"here"},"Errors")],-1)),o("header",Hm,[t[10]||(t[10]=o("h1",{class:"paper-page-title"},"Errors",-1)),o("div",Bm,[o("button",{class:"btn btn-sm",type:"button",onClick:t[0]||(t[0]=s=>e.exportCsv())},[...t[8]||(t[8]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export CSV",-1)])]),o("button",{class:"btn btn-sm btn-danger-soft",type:"button",onClick:t[1]||(t[1]=s=>e.clearAll())},[...t[9]||(t[9]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Clear all",-1)])])])]),t[33]||(t[33]=de('<nav class="admin-nav"><a href="/admin/"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-chart"></use></svg> Overview</a><a href="/admin/repositories"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Repositories</a><a href="/admin/users"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-users"></use></svg> Users</a><a href="/admin/conferences"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-conference"></use></svg> Conferences</a><a href="/admin/queues"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-list"></use></svg> Queues</a><a href="/admin/errors" class="active"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Errors</a></nav>',1)),o("section",jm,[o("div",Gm,[t[11]||(t[11]=o("div",{class:"kpi-label"},"Last 24h",-1)),o("div",Wm,c(e.stats?.last24h),1),o("div",{class:A(["kpi-sub",{up:e.stats?.delta>0,down:e.stats?.delta<0}])},[e.stats?.prev24h?(l(),d("span",Km,c(e.stats?.delta>0?"+":"")+c(e.stats?.delta)+"% vs yesterday",1)):f("v-if",!0),e.stats?.prev24h?f("v-if",!0):(l(),d("span",Ym,"no prior baseline"))],2)]),o("div",Jm,[t[12]||(t[12]=o("div",{class:"kpi-label"},"Errors (5xx)",-1)),o("div",Qm,c(e.stats?.severity?.error),1),o("div",Xm,c(e.stats?.unique?.error)+" unique",1)]),o("div",Zm,[t[13]||(t[13]=o("div",{class:"kpi-label"},"Warnings (4xx)",-1)),o("div",xm,c(e.stats?.severity?.warn),1),o("div",eh,c(e.stats?.unique?.warn)+" unique",1)]),o("div",th,[t[14]||(t[14]=o("div",{class:"kpi-label"},"Info (auth, 404)",-1)),o("div",oh,c(e.stats?.severity?.info),1),o("div",nh,c(e.stats?.unique?.info)+" unique",1)]),o("div",{class:A(["kpi-card",{"kpi-error":e.stats?.dropped>0}])},[t[15]||(t[15]=o("div",{class:"kpi-label"},"Captured",-1)),o("div",sh,c(e.total),1),o("div",rh,[b(" cap "+c(e.cap)+" \xB7 "+c(e.available?"live":"redis off")+" ",1),e.stats?.dropped>0?(l(),d("span",ih," \xB7 "+c(e.stats?.dropped)+" dropped",1)):f("v-if",!0)])],2)]),o("section",ah,[t[16]||(t[16]=de('<div class="volume-head"><span class="volume-title">Volume \xB7 24h \xB7 1h buckets</span><span class="volume-legend"><span class="dot dot-error"></span>error <span class="dot dot-warn"></span>warn <span class="dot dot-info"></span>info </span></div>',1)),o("div",lh,[(l(!0),d(W,null,oe(e.stats?.buckets,(s,i)=>(l(),d("div",{class:"volume-bar",key:i,title:e.bucketTitle(s)},[o("span",{class:"seg seg-error",style:Ie({height:e.barPx(s,"error")+"px"})},null,4),o("span",{class:"seg seg-warn",style:Ie({height:e.barPx(s,"warn")+"px"})},null,4),o("span",{class:"seg seg-info",style:Ie({height:e.barPx(s,"info")+"px"})},null,4)],8,dh))),128))])]),R((l(),d("form",uh,[o("div",ch,[o("button",{type:"button",class:A({active:e.query?.bucket===""}),onClick:t[2]||(t[2]=s=>e.setBucket(""))},"All",2),o("button",{type:"button",class:A({active:e.query?.bucket==="error"}),onClick:t[3]||(t[3]=s=>e.setBucket("error"))},"5xx",2),o("button",{type:"button",class:A({active:e.query?.bucket==="warn"}),onClick:t[4]||(t[4]=s=>e.setBucket("warn"))},"4xx",2),o("button",{type:"button",class:A({active:e.query?.bucket==="info"}),onClick:t[5]||(t[5]=s=>e.setBucket("info"))},"Info",2)]),o("div",ph,[t[17]||(t[17]=o("svg",{class:"ui-icon search-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-search"})],-1)),R(o("input",fh,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.parsedFilterCount?(l(),d("span",mh,c(e.parsedFilterCount)+" filter"+c(e.parsedFilterCount>1?"s":""),1)):f("v-if",!0)]),o("div",hh,[t[19]||(t[19]=o("label",null,"Sort",-1)),R((l(),d("select",vh,[...t[18]||(t[18]=[o("option",{value:"recent"},"Most recent",-1),o("option",{value:"count"},"Most frequent",-1)])])),[[n,{state:e.viewState,set:s=>{e.query.sort=s},value:e.query?.sort,form:null,options:{}}]])]),o("div",yh,[t[21]||(t[21]=o("label",null,"Group",-1)),R((l(),d("select",gh,[...t[20]||(t[20]=[o("option",{value:""},"Off",-1),o("option",{value:"code"},"By code",-1),o("option",{value:"module"},"By module",-1)])])),[[n,{state:e.viewState,set:s=>{e.query.group=s},value:e.query?.group,form:null,options:{}}]])]),o("label",bh,[R(o("input",wh,null,512),[[n,{state:e.viewState,set:s=>{e.query.autoRefresh=s},value:e.query?.autoRefresh,form:null,options:{}}]]),t[22]||(t[22]=b(" Auto-refresh ",-1))]),o("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[6]||(t[6]=s=>e.refreshNow()),"aria-label":"Refresh"},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])])),[[r,e.viewState]]),e.visible?.length?f("v-if",!0):(l(),d("div",kh,"No errors captured.")),e.canLoadMore()&&e.visible?.length?(l(),d("div",Eh,[o("span",null,"Showing "+c(e.entries?.length)+" of "+c(e.total)+" captured",1),o("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=s=>e.loadMore())},"Load older")])):f("v-if",!0),e.visible?.length?(l(),d("div",Ch,[t[31]||(t[31]=de('<div class="errors-list-head"><span class="col-when">When</span><span class="col-sev">Severity</span><span class="col-mod">Module</span><span class="col-msg">Message</span><span class="col-count">Count</span><span class="col-status">Status</span></div>',1)),(l(!0),d(W,null,oe(e.visible,(s,i)=>(l(),d("div",{class:A(["errors-row",{open:e.expanded[s?._key]}]),key:s?._key},[o("div",{class:"errors-row-main",onClick:a=>e.toggle(s)},[o("div",Sh,[o("div",Nh,c(e.relTime(s?.ts)),1),o("div",Rh,c(e.absTimeShort(s?.ts)),1)]),o("div",Dh,[o("span",{class:A(["sev-dot","sev-"+s?._bucket])},null,2),o("span",Th,c(e.fmt?.title(s?._bucket)),1)]),o("div",Ah,[o("span",Oh,c(s?.module),1)]),o("div",Ih,[o("strong",Ph,c(s?.displayMessage),1),s?.displayContext&&s?.displayContext!==s?.displayMessage?(l(),d("span",Vh,c(s?.displayContext),1)):f("v-if",!0),s?._detail?(l(),d("span",qh,c(s?._detail),1)):f("v-if",!0),s?._url?(l(),d("div",Mh,c(s?._url),1)):f("v-if",!0)]),o("div",Uh,[s?.count>1?(l(),d("span",$h,"\xD7"+c(s?.count),1)):f("v-if",!0),s?.count===1?(l(),d("span",Lh,"\xD71")):f("v-if",!0)]),o("div",Fh,[s?._status?(l(),d("span",{key:0,class:A(["status-pill","status-"+s?._bucket])},c(s?._status),3)):f("v-if",!0)])],8,_h),e.expanded[s?._key]?(l(),d("div",zh,[o("div",Hh,[o("button",{type:"button",class:A({active:e.detailTab[s?._key]==="raw"||!e.detailTab[s?._key]}),onClick:a=>e.detailTab[s._key]="raw"},"Raw",10,Bh),s?._stack?(l(),d("button",{key:0,type:"button",class:A({active:e.detailTab[s?._key]==="stack"}),onClick:a=>e.detailTab[s._key]="stack"},"Stack",10,jh)):f("v-if",!0),s?.count>1?(l(),d("button",{key:1,type:"button",class:A({active:e.detailTab[s?._key]==="related"}),onClick:a=>e.detailTab[s._key]="related"},"Related ("+c(s?.count)+")",11,Gh)):f("v-if",!0)]),o("div",Wh,[o("div",Kh,[(e.detailTab[s?._key]||"raw")==="raw"?(l(),d("pre",Yh,c(s?._detailJson),1)):f("v-if",!0),e.detailTab[s?._key]==="stack"?(l(),d("pre",Jh,c(s?._stack),1)):f("v-if",!0),e.detailTab[s?._key]==="related"?(l(),d("div",Qh,[(l(!0),d(W,null,oe(s?._related,(a,u)=>(l(),d("div",{class:"related-row",key:u},[o("span",Xh,c(e.absTimeShort(a?.ts)),1),o("span",Zh,c(a?._url),1),a?._status?(l(),d("span",{key:0,class:A(["status-pill","status-"+a?._bucket])},c(a?._status),3)):f("v-if",!0)]))),128))])):f("v-if",!0),o("div",xh,[o("button",{class:"btn btn-sm",type:"button",title:"Copy a curl that reproduces the request",onClick:a=>e.copyCurl(s)},[...t[24]||(t[24]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),b(" Copy curl",-1)])],8,ev),o("button",{class:"btn btn-sm",type:"button",onClick:a=>e.copyJson(s)},[...t[25]||(t[25]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-clipboard"})],-1),b(" Copy JSON",-1)])],8,tv),e.copyHint?(l(),d("span",ov,c(e.copyHint),1)):f("v-if",!0)])]),o("aside",nv,[o("div",sv,[t[26]||(t[26]=o("div",{class:"aside-label"},"First seen",-1)),o("div",{class:"aside-value",title:e.absTime(s?._firstSeen)},c(e.relTime(s?._firstSeen)),9,rv)]),o("div",iv,[t[27]||(t[27]=o("div",{class:"aside-label"},"Last seen",-1)),o("div",{class:"aside-value",title:e.absTime(s?.ts)},c(e.relTime(s?.ts)),9,av)]),o("div",lv,[t[28]||(t[28]=o("div",{class:"aside-label"},"Occurrences",-1)),o("div",dv,[b(c(s?.count),1),s?._lastHourCount?(l(),d("span",uv," \xB7 "+c(s?._lastHourCount)+" this hour",1)):f("v-if",!0)])]),s?._repoId?(l(),d("div",cv,[t[29]||(t[29]=o("div",{class:"aside-label"},"Repository",-1)),o("a",{class:"aside-value",href:e.safeUrl("/r/"+s?._repoId)},c(s?._repoId),9,pv)])):f("v-if",!0),s?._url?(l(),d("div",fv,[t[30]||(t[30]=o("div",{class:"aside-label"},"URL",-1)),o("div",mv,c(s?._url),1)])):f("v-if",!0)])])])):f("v-if",!0)],2))),128))])):f("v-if",!0)])}var hv={class:"container paper-page admin-page overview-page"},vv={key:0,class:"admin-empty"},yv={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},gv={key:2},bv={class:"ov-kpi-row"},wv={class:"ov-kpi-card"},kv={class:"ov-kpi-value"},Ev={class:"ov-kpi-sub"},Cv={class:"ov-kpi-card"},_v={class:"ov-kpi-sub"},Sv={class:"ov-kpi-card"},Nv={class:"ov-kpi-sub"},Rv={class:"ov-kpi-card"},Dv={class:"ov-kpi-sub"},Tv={class:"ov-kpi-card"},Av={class:"ov-kpi-value"},Ov={class:"ov-kpi-sub"},Iv={class:"ov-daily-row"},Pv={class:"ov-daily-card"},Vv={class:"ov-daily-value"},qv={class:"ov-daily-card"},Mv={class:"ov-daily-value"},Uv={class:"ov-daily-sub"},$v={class:"ov-daily-card"},Lv={class:"ov-daily-value"},Fv={class:"ov-chart-row"},zv={class:"ov-chart-card"},Hv={key:0,class:"ov-spark-bars"},Bv=["data-tip","aria-label"],jv={key:1,class:"ov-spark-x"},Gv={class:"ov-chart-card"},Wv={key:0,class:"ov-spark-bars"},Kv=["data-tip","aria-label"],Yv={key:1,class:"ov-spark-x"},Jv={class:"ov-chart-card"},Qv={class:"ov-chart-head"},Xv={class:"ov-chart-legend"},Zv={key:0,class:"ov-spark-bars"},xv=["data-tip","aria-label"],ey={key:1,class:"ov-spark-x"},ty={class:"ov-chart-card"},oy={key:0,class:"ov-spark-bars"},ny=["data-tip","aria-label"],sy={key:1,class:"ov-spark-x"},ry={class:"ov-triple-row"},iy={class:"ov-panel-card"},ay={class:"ov-panel-head"},ly={class:"ov-panel-meta"},dy={class:"ov-stacked-bar"},uy={class:"ov-bar-legend"},cy={href:"/admin/repositories",class:"ov-legend-item"},py={class:"ov-legend-n"},fy={href:"/admin/repositories",class:"ov-legend-item"},my={class:"ov-legend-n"},hy={href:"/admin/repositories",class:"ov-legend-item"},vy={class:"ov-legend-n"},yy={href:"/admin/repositories",class:"ov-legend-item"},gy={class:"ov-legend-n"},by={href:"/admin/repositories",class:"ov-legend-item"},wy={class:"ov-legend-n"},ky={class:"ov-panel-card"},Ey={class:"ov-panel-head"},Cy={class:"ov-panel-meta"},_y={class:"ov-error-bars"},Sy={class:"ov-ebar-row"},Ny={class:"ov-ebar-track"},Ry={class:"ov-ebar-n"},Dy={class:"ov-ebar-row"},Ty={class:"ov-ebar-track"},Ay={class:"ov-ebar-n"},Oy={class:"ov-ebar-row"},Iy={class:"ov-ebar-track"},Py={class:"ov-ebar-n"},Vy={key:0,class:"ov-panel-foot"},qy={href:"/admin/errors"},My={class:"ov-panel-card"},Uy={class:"ov-routes-table"},$y={class:"ov-route-row",href:"/admin/queues"},Ly={class:"ov-route-n"},Fy={class:"ov-route-n"},zy={class:"ov-route-row",href:"/admin/queues"},Hy={class:"ov-route-n"},By={class:"ov-route-n"},jy={class:"ov-route-row",href:"/admin/queues"},Gy={class:"ov-route-n"},Wy={class:"ov-route-n"},Ky={class:"ov-services-card"},Yy={class:"ov-services-head"},Jy={class:"ov-panel-meta"},Qy={class:"ov-services-grid"},Xy={class:"ov-svc"},Zy={class:"ov-svc-info"},xy={class:"ov-svc-meta"},eg={class:"ov-svc-detail"},tg={class:"ov-svc"},og={class:"ov-svc-info"},ng={key:0,class:"ov-svc-meta"},sg={key:1,class:"ov-svc-meta"},rg={class:"ov-svc"},ig={class:"ov-svc-info"},ag={key:0,class:"ov-svc-meta"},lg={key:1,class:"ov-svc-meta"},dg={class:"ov-svc"},ug={class:"ov-svc-info"},cg={key:0,class:"ov-svc-meta"},pg={key:1,class:"ov-svc-meta"},fg={class:"ov-svc"},mg={class:"ov-svc-info"},hg={class:"ov-svc-meta"},vg={class:"ov-panel-card ov-cache","aria-labelledby":"cache-heading"},yg={class:"ov-panel-head ov-performance-head"},gg={class:"ov-performance-window"},bg={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},wg={key:1,class:"ov-performance-empty",role:"status"},kg={key:0,class:"ov-performance-note"},Eg={key:1,class:"ov-performance-note"},Cg={key:2,class:"ov-performance-message ov-performance-warning",role:"status"},_g={key:3,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache storage budgets"},Sg={class:"ov-metrics-table"},Ng={scope:"row"},Rg={key:4,class:"ov-performance-note"},Dg={key:5,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache events and processing durations"},Tg={class:"ov-metrics-table"},Ag={scope:"row"},Og={key:6,class:"ov-performance-empty",role:"status"},Ig={class:"ov-performance-note"},Pg={class:"ov-panel-card ov-performance","aria-labelledby":"performance-heading"},Vg={class:"ov-panel-head ov-performance-head"},qg={class:"ov-performance-window"},Mg={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},Ug={key:1,class:"ov-performance-empty",role:"status"},$g={key:2},Lg={class:"paper-tabs ov-performance-tabs",role:"tablist","aria-label":"Performance metrics"},Fg=["aria-selected","tabindex"],zg=["aria-selected","tabindex"],Hg=["aria-selected","tabindex"],Bg={id:"performance-routes",role:"tabpanel","aria-labelledby":"performance-routes-tab"},jg={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Route latency metrics, scroll for more columns"},Gg={class:"ov-metrics-table"},Wg={scope:"row",class:"ov-metric-name"},Kg={class:"num"},Yg={class:"num"},Jg={class:"num"},Qg={class:"num"},Xg={class:"num"},Zg={key:1,class:"ov-performance-empty"},xg={id:"performance-processes",role:"tabpanel","aria-labelledby":"performance-processes-tab"},eb={key:0,class:"ov-performance-message ov-performance-warning",role:"status"},tb={key:1,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Process resource metrics, scroll for more columns"},ob={class:"ov-metrics-table"},sb={scope:"row",class:"ov-metric-name"},rb={key:0,class:"ov-metric-warn"},ib={class:"num"},ab={class:"num"},lb={class:"num"},db={class:"num"},ub={class:"num"},cb={class:"num"},pb={class:"num"},fb={class:"num"},mb={id:"performance-stages",role:"tabpanel","aria-labelledby":"performance-stages-tab"},hb={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Work stage metrics, scroll for more columns"},vb={class:"ov-metrics-table"},yb={scope:"row",class:"ov-metric-name"},gb={class:"num"},bb={class:"num"},wb={class:"num"},kb={key:1,class:"ov-performance-empty"};function Al(e,t){return l(),d("div",hv,[t[79]||(t[79]=de('<div class="paper-crumbs">Admin \xA0/\xA0 <span class="here">Overview</span></div><div class="ov-header"><h1 class="paper-page-title">Overview</h1></div><nav class="admin-nav"><a href="/admin/" class="active"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-chart"></use></svg> Overview</a><a href="/admin/repositories"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Repositories</a><a href="/admin/users"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-users"></use></svg> Users</a><a href="/admin/conferences"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-conference"></use></svg> Conferences</a><a href="/admin/queues"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-list"></use></svg> Queues</a><a href="/admin/errors"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Errors</a></nav>',3)),e.loading?(l(),d("div",vv,"Loading overview\u2026")):f("v-if",!0),e.error?(l(),d("div",yv,[t[13]||(t[13]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.error),1)])):f("v-if",!0),e.data?(l(),d("div",gv,[f(" \u2500\u2500 Top KPI row \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),o("section",bv,[o("div",wv,[t[14]||(t[14]=o("div",{class:"ov-kpi-label"},[b("Repositories "),o("span",{class:"ov-dot ov-dot-ok"})],-1)),o("div",kv,c(e.humanNum(e.data?.repos?.total)),1),o("div",Ev,"+"+c(e.data?.repos?.newRepos24h)+" \xB7 last 24h",1)]),o("div",Cv,[t[15]||(t[15]=o("div",{class:"ov-kpi-label"},"CPU",-1)),o("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.cpuPercent>80}])},c(e.data?.system?.cpuPercent)+"%",3),o("div",_v,c(e.data?.system?.cpuCount)+" cores \xB7 load "+c(e.data?.system?.loadAvg?.[0]?.toFixed(1)),1)]),o("div",Sv,[t[16]||(t[16]=o("div",{class:"ov-kpi-label"},"Memory",-1)),o("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.memPercent>85}])},c(e.data?.system?.memPercent)+"%",3),o("div",Nv,c(e.humanBytes(e.data?.system?.memUsed))+" / "+c(e.humanBytes(e.data?.system?.memTotal)),1)]),o("div",Rv,[t[17]||(t[17]=o("div",{class:"ov-kpi-label"},"Disk",-1)),o("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.diskPercent>85}])},c(e.data?.system?.diskPercent)+"%",3),o("div",Dv,c(e.humanBytes(e.data?.system?.diskUsed))+" / "+c(e.humanBytes(e.data?.system?.diskTotal))+" \xB7 "+c(e.data?.system?.diskMount),1)]),o("div",Tv,[t[18]||(t[18]=o("div",{class:"ov-kpi-label"},"Uptime",-1)),o("div",Av,c(e.humanDuration(e.data?.system?.uptime)),1),o("div",Ov,c(e.data?.system?.nodeVersion)+" \xB7 "+c(e.data?.system?.platform),1)])]),f(" \u2500\u2500 Daily activity highlights \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),o("section",Iv,[o("div",Pv,[t[19]||(t[19]=o("div",{class:"ov-daily-label"},"New repos today",-1)),o("div",Vv,"+"+c(e.fmt?.number(e.data?.daily?.today?.repositories)),1),t[20]||(t[20]=o("div",{class:"ov-daily-sub"},"since yesterday",-1))]),o("div",qv,[t[21]||(t[21]=o("div",{class:"ov-daily-label"},"New users today",-1)),o("div",Mv,"+"+c(e.fmt?.number(e.data?.daily?.today?.users)),1),o("div",Uv,c(e.fmt?.number(e.data?.users?.total))+" total users",1)]),o("div",$v,[t[22]||(t[22]=o("div",{class:"ov-daily-label"},"Page views today",-1)),o("div",Lv,"+"+c(e.fmt?.number(e.data?.daily?.today?.pageViews)),1),t[23]||(t[23]=o("div",{class:"ov-daily-sub"},"since yesterday",-1))])]),f(" \u2500\u2500 Daily charts \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),o("section",Fv,[o("div",zv,[t[24]||(t[24]=o("div",{class:"ov-chart-head"},[o("span",{class:"ov-chart-title"},"Daily page views \xB7 30d"),o("span",{class:"ov-chart-legend"},[o("span",{class:"ov-dot-legend ov-dot-accent"}),b("views/day")])],-1)),e.data?.history?.length?(l(),d("div",Hv,[(l(!0),d(W,null,oe(e.data?.history,(n,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyPageViews)+" views","aria-label":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyPageViews)+" views"},[o("span",{class:"ov-spark-fill",style:Ie({height:e.historyBarH(n,"dailyPageViews")+"px"})},null,4)],8,Bv))),128))])):f("v-if",!0),e.data?.history?.length?(l(),d("div",jv,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),o("div",Gv,[t[25]||(t[25]=o("div",{class:"ov-chart-head"},[o("span",{class:"ov-chart-title"},"New repos \xB7 30d"),o("span",{class:"ov-chart-legend"},[o("span",{class:"ov-dot-legend ov-dot-ok-fill"}),b("repos/day")])],-1)),e.data?.history?.length?(l(),d("div",Wv,[(l(!0),d(W,null,oe(e.data?.history,(n,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyRepositories)+" repos","aria-label":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyRepositories)+" repos"},[o("span",{class:"ov-spark-fill ov-spark-fill-alt",style:Ie({height:e.historyBarH(n,"dailyRepositories")+"px"})},null,4)],8,Kv))),128))])):f("v-if",!0),e.data?.history?.length?(l(),d("div",Yv,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),o("div",Jv,[o("div",Qv,[t[27]||(t[27]=o("span",{class:"ov-chart-title"},"Users \xB7 30d",-1)),o("span",Xv,[t[26]||(t[26]=o("span",{class:"ov-dot-legend ov-dot-user-fill"},null,-1)),b("total users \xB7 "+c(e.fmt?.number(e.historyRange("nbUsers").min))+"\u2013"+c(e.fmt?.number(e.historyRange("nbUsers").max)),1)])]),e.data?.history?.length?(l(),d("div",Zv,[(l(!0),d(W,null,oe(e.data?.history,(n,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(n)+": "+e.fmt?.number(n?.nbUsers)+" users","aria-label":e.historyLabel(n)+": "+e.fmt?.number(n?.nbUsers)+" users"},[o("span",{class:"ov-spark-fill ov-spark-fill-user",style:Ie({height:e.historyRangeH(n,"nbUsers")+"px"})},null,4)],8,xv))),128))])):f("v-if",!0),e.data?.history?.length?(l(),d("div",ey,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),o("div",ty,[t[28]||(t[28]=o("div",{class:"ov-chart-head"},[o("span",{class:"ov-chart-title"},"New users \xB7 30d"),o("span",{class:"ov-chart-legend"},[o("span",{class:"ov-dot-legend ov-dot-new-user-fill"}),b("users/day")])],-1)),e.data?.history?.length?(l(),d("div",oy,[(l(!0),d(W,null,oe(e.data?.history,(n,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyUsers)+" users","aria-label":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyUsers)+" users"},[o("span",{class:"ov-spark-fill ov-spark-fill-new-user",style:Ie({height:e.historyBarH(n,"dailyUsers")+"px"})},null,4)],8,ny))),128))])):f("v-if",!0),e.data?.history?.length?(l(),d("div",sy,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)])]),f(" \u2500\u2500 Three-panel row: Status / Errors / Queues \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),o("section",ry,[f(" Repo status breakdown "),o("div",iy,[o("div",ay,[t[29]||(t[29]=o("span",{class:"ov-panel-title"},"Repo status",-1)),o("span",ly,c(e.fmt?.number(e.data?.repos?.total))+" total",1)]),o("div",dy,[o("span",{class:"ov-bar-seg ov-bar-ready",title:"Ready",style:Ie({width:e.barPct("ready")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-preparing",title:"Preparing",style:Ie({width:e.barPct("preparing")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-error",title:"Error",style:Ie({width:e.barPct("error")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-expired",title:"Expired",style:Ie({width:e.barPct("expired")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-removed",title:"Removed",style:Ie({width:e.barPct("removed")+"%"})},null,4)]),o("div",uy,[o("a",cy,[t[30]||(t[30]=o("span",{class:"ov-swatch ov-bar-ready"},null,-1)),t[31]||(t[31]=b(" ready ",-1)),o("span",py,c(e.fmt?.number(e.statusCount("ready"))),1)]),o("a",fy,[t[32]||(t[32]=o("span",{class:"ov-swatch ov-bar-preparing"},null,-1)),t[33]||(t[33]=b(" preparing ",-1)),o("span",my,c(e.fmt?.number(e.statusCount("preparing")+e.statusCount("download"))),1)]),o("a",hy,[t[34]||(t[34]=o("span",{class:"ov-swatch ov-bar-error"},null,-1)),t[35]||(t[35]=b(" error ",-1)),o("span",vy,c(e.fmt?.number(e.statusCount("error"))),1)]),o("a",yy,[t[36]||(t[36]=o("span",{class:"ov-swatch ov-bar-expired"},null,-1)),t[37]||(t[37]=b(" expired ",-1)),o("span",gy,c(e.fmt?.number(e.statusCount("expired")+e.statusCount("expiring"))),1)]),o("a",by,[t[38]||(t[38]=o("span",{class:"ov-swatch ov-bar-removed"},null,-1)),t[39]||(t[39]=b(" removed ",-1)),o("span",wy,c(e.fmt?.number(e.statusCount("removed")+e.statusCount("removing"))),1)])])]),f(" Error breakdown "),o("div",ky,[o("div",Ey,[t[40]||(t[40]=o("span",{class:"ov-panel-title"},"Errors \xB7 24h",-1)),o("span",Cy,c(e.data?.errors?.last24h)+" total",1)]),o("div",_y,[o("div",Sy,[t[41]||(t[41]=o("span",{class:"ov-ebar-label"},"5xx",-1)),o("span",Ny,[o("span",{class:"ov-ebar-fill ov-ebar-error",style:Ie({width:e.errPct("error")+"%"})},null,4)]),o("span",Ry,c(e.data?.errors?.severity?.error),1)]),o("div",Dy,[t[42]||(t[42]=o("span",{class:"ov-ebar-label"},"4xx",-1)),o("span",Ty,[o("span",{class:"ov-ebar-fill ov-ebar-warn",style:Ie({width:e.errPct("warn")+"%"})},null,4)]),o("span",Ay,c(e.data?.errors?.severity?.warn),1)]),o("div",Oy,[t[43]||(t[43]=o("span",{class:"ov-ebar-label"},"Info",-1)),o("span",Iy,[o("span",{class:"ov-ebar-fill ov-ebar-info",style:Ie({width:e.errPct("info")+"%"})},null,4)]),o("span",Py,c(e.data?.errors?.severity?.info),1)])]),e.data?.repos?.recentErrors24h?(l(),d("div",Vy,[o("a",qy,c(e.data?.repos?.recentErrors24h)+" repos in error state \u2192",1)])):f("v-if",!0)]),f(" Top routes / queues "),o("div",My,[t[48]||(t[48]=o("div",{class:"ov-panel-head"},[o("span",{class:"ov-panel-title"},"Queues"),o("span",{class:"ov-panel-meta"},"by state")],-1)),o("div",Uy,[t[47]||(t[47]=de('<div class="ov-route-row ov-route-head"><span class="ov-route-name">Queue</span><span class="ov-route-n">Active</span><span class="ov-route-n">Wait</span><span class="ov-route-n ov-route-lat">Failed</span></div>',1)),o("a",$y,[t[44]||(t[44]=o("span",{class:"ov-route-name"},"download",-1)),o("span",Ly,c(e.data?.queues?.download?.active),1),o("span",Fy,c(e.data?.queues?.download?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},c(e.data?.queues?.download?.failed),3)]),o("a",zy,[t[45]||(t[45]=o("span",{class:"ov-route-name"},"remove",-1)),o("span",Hy,c(e.data?.queues?.remove?.active),1),o("span",By,c(e.data?.queues?.remove?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},c(e.data?.queues?.remove?.failed),3)]),o("a",jy,[t[46]||(t[46]=o("span",{class:"ov-route-name"},"cache",-1)),o("span",Gy,c(e.data?.queues?.cache?.active),1),o("span",Wy,c(e.data?.queues?.cache?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.cache?.failed>0}])},c(e.data?.queues?.cache?.failed),3)])])])]),f(" \u2500\u2500 Services bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),o("section",Ky,[o("div",Yy,[t[49]||(t[49]=o("span",{class:"ov-panel-title"},"Services",-1)),o("span",Jy,c(e.fmt?.number(e.data?.users?.total))+" users \xB7 "+c(e.data?.conferences?.total)+" conferences",1)]),o("div",Qy,[o("div",Xy,[t[51]||(t[51]=o("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),o("div",Zy,[t[50]||(t[50]=o("span",{class:"ov-svc-name"},"web",-1)),o("span",xy,c(e.data?.system?.nodeVersion),1)]),o("span",eg,"uptime "+c(e.humanDuration(e.data?.system?.uptime)),1)]),o("div",tg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",og,[t[52]||(t[52]=o("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(l(),d("span",ng,c(e.queueTotal(e.data?.queues?.download))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.download)?f("v-if",!0):(l(),d("span",sg,"idle"))])]),o("div",rg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",ig,[t[53]||(t[53]=o("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(l(),d("span",ag,c(e.queueTotal(e.data?.queues?.cache))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.cache)?f("v-if",!0):(l(),d("span",lg,"idle"))])]),o("div",dg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",ug,[t[54]||(t[54]=o("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(l(),d("span",cg,c(e.queueTotal(e.data?.queues?.remove))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.remove)?f("v-if",!0):(l(),d("span",pg,"idle"))])]),o("div",fg,[o("span",{class:A(["ov-svc-dot",e.data?.repos?.recentErrors24h>10?"ov-dot-warn":"ov-dot-ok"])},null,2),o("div",mg,[t[55]||(t[55]=o("span",{class:"ov-svc-name"},"errors",-1)),o("span",hg,c(e.data?.errors?.last24h)+" / 24h",1)])])])])])):f("v-if",!0),o("section",vg,[o("div",yg,[t[60]||(t[60]=o("div",null,[o("h2",{class:"ov-panel-title",id:"cache-heading"},"Cache"),o("p",{class:"ov-performance-note"},"Shared storage, repeated reads and anonymization work \xB7 refreshes every 30 seconds")],-1)),o("div",gg,[t[58]||(t[58]=o("label",{for:"cache-window"},"Time range",-1)),R(o("select",{id:"cache-window",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=n=>e.cacheMinutes=n),onChange:t[1]||(t[1]=n=>e.loadCache())},[...t[56]||(t[56]=[o("option",{value:15},"Last 15 minutes",-1),o("option",{value:60},"Last hour",-1),o("option",{value:1440},"Last 24 hours",-1),o("option",{value:10080},"Last 7 days",-1)])],544),[[To,e.cacheMinutes,void 0,{number:!0}]]),t[59]||(t[59]=o("label",{for:"cache-traffic"},"Traffic",-1)),R(o("select",{id:"cache-traffic",class:"form-control form-control-sm","onUpdate:modelValue":t[2]||(t[2]=n=>e.cacheTraffic=n)},[...t[57]||(t[57]=[de('<option value="all">All traffic</option><option value="file">File reads</option><option value="website">Website rendering</option><option value="zip">ZIP downloads</option><option value="monitor">Known monitors</option><option value="background">Background work</option>',6)])],512),[[To,e.cacheTraffic]])])]),e.cacheError?(l(),d("div",bg,[o("span",null,c(e.cacheError),1),o("button",{type:"button",class:"btn btn-sm",onClick:t[3]||(t[3]=n=>e.loadCache())},"Retry")])):f("v-if",!0),!e.cacheReport&&!e.cacheError?(l(),d("p",wg,"Loading cache monitoring\u2026")):f("v-if",!0),e.cacheReport?.available?(l(),d(W,{key:2},[e.cacheReport.enabled?f("v-if",!0):(l(),d("p",kg,"Shared blob storage is disabled. Inspection and legacy-cache activity are still measured.")),e.cacheReport.filesystemSupported?f("v-if",!0):(l(),d("p",Eg,"Shared blobs require a local filesystem. The configured storage continues to use its existing cache.")),e.cacheReport.dropped?(l(),d("p",Cg,c(e.cacheReport.dropped)+" telemetry events were dropped. Totals may be incomplete.",1)):f("v-if",!0),e.cacheReport.source?(l(),d("div",_g,[o("table",Sg,[t[61]||(t[61]=o("caption",{class:"sr-only"},"Current shared-cache storage and byte budgets",-1)),t[62]||(t[62]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Pool"),o("th",{scope:"col"},"Allocated / budget"),o("th",{scope:"col"},"Reserved for fills"),o("th",{scope:"col"},"Original bytes"),o("th",{scope:"col"},"Blobs"),o("th",{scope:"col"},"Active readers")])],-1)),o("tbody",null,[(l(!0),d(W,null,oe([{name:"Source blobs",data:e.cacheReport.source},{name:"Transformed output",data:e.cacheReport.results}],n=>R((l(),d("tr",{key:n.name},[o("th",Ng,c(n.name),1),o("td",null,c(e.humanBytes(n.data?.allocatedBytes))+" / "+c(e.humanBytes(n.data?.budgetBytes)),1),o("td",null,c(e.humanBytes(n.data?.reservedBytes)),1),o("td",null,c(e.humanBytes(n.data?.originalBytes)),1),o("td",null,c(n.data?.blobs),1),o("td",null,c(n.data?.activeReaders),1)])),[[j,n.data]])),128))])])])):f("v-if",!0),e.cacheReport.source?(l(),d("p",Rg,"Source request hit rate: "+c(e.cacheRate("source","count"))+" \xB7 Source byte hit rate: "+c(e.cacheRate("source","bytes"))+" \xB7 Decision hit rate: "+c(e.cacheRate("decision","count")),1)):f("v-if",!0),t[65]||(t[65]=o("p",{class:"ov-performance-note"},"Reuse counts measure consecutive reads of the same blob within each interval. Codec timings are elapsed stream time, not CPU time; eviction times measure how long a blob was idle. Known monitors are identified by request metadata; other automation may remain in file reads.",-1)),e.cacheRows().length?(l(),d("div",Dg,[o("table",Tg,[t[63]||(t[63]=o("caption",{class:"sr-only"},"Cache events for the selected time range and traffic",-1)),t[64]||(t[64]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Event"),o("th",{scope:"col"},"Traffic"),o("th",{scope:"col"},"Count"),o("th",{scope:"col"},"Bytes"),o("th",{scope:"col"},"Mean measured time"),o("th",{scope:"col"},"p95 bound")])],-1)),o("tbody",null,[(l(!0),d(W,null,oe(e.cacheRows(),n=>(l(),d("tr",{key:n.name+":"+n.traffic},[o("th",Ag,c(e.cacheEventName(n.name)),1),o("td",null,c(n.traffic),1),o("td",null,c(n.count),1),o("td",null,c(e.humanBytes(n.bytes)),1),o("td",null,c(n.ms?(n.ms/n.count).toFixed(2)+" ms":"Not timed"),1),o("td",null,c(e.cacheP95(n)),1)]))),128))])])])):(l(),d("p",Og,"No cache events in this time range for the selected traffic.")),o("p",Ig,"Updated "+c(e.sampleAge(e.cacheReport))+" seconds ago. Minute history is retained for 48 hours; hourly history for 30 days.",1)],64)):f("v-if",!0)]),o("section",Pg,[o("div",Vg,[t[68]||(t[68]=o("div",null,[o("h2",{class:"ov-panel-title",id:"performance-heading"},"Request performance"),o("p",{class:"ov-performance-note"},"Request latency and process health \xB7 refreshes every 30 seconds")],-1)),o("div",qg,[t[67]||(t[67]=o("label",{for:"performance-window"},"Time range",-1)),R(o("select",{id:"performance-window",class:"form-control form-control-sm","onUpdate:modelValue":t[4]||(t[4]=n=>e.performanceMinutes=n),onChange:t[5]||(t[5]=n=>e.loadPerformance()),"aria-label":"Performance time range"},[...t[66]||(t[66]=[o("option",{value:15},"Last 15 minutes",-1),o("option",{value:60},"Last hour",-1)])],544),[[To,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(l(),d("div",Mg,[t[69]||(t[69]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),o("span",null,c(e.performanceError),1),o("button",{type:"button",class:"btn btn-sm",onClick:t[6]||(t[6]=n=>e.loadPerformance())},"Retry")])):f("v-if",!0),!e.performance&&!e.performanceError?(l(),d("p",Ug,"Loading performance monitoring\u2026")):f("v-if",!0),e.performance?.available?(l(),d("div",$g,[o("div",Lg,[o("button",{id:"performance-routes-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="routes"}]),role:"tab","aria-selected":e.performanceTab==="routes",tabindex:e.performanceTab==="routes"?0:-1,"aria-controls":"performance-routes",onClick:t[7]||(t[7]=n=>e.performanceTab="routes"),onKeydown:t[8]||(t[8]=n=>e.previewTabKeydown(n))},"Routes",42,Fg),o("button",{id:"performance-processes-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="processes"}]),role:"tab","aria-selected":e.performanceTab==="processes",tabindex:e.performanceTab==="processes"?0:-1,"aria-controls":"performance-processes",onClick:t[9]||(t[9]=n=>e.performanceTab="processes"),onKeydown:t[10]||(t[10]=n=>e.previewTabKeydown(n))},"Processes",42,zg),o("button",{id:"performance-stages-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="stages"}]),role:"tab","aria-selected":e.performanceTab==="stages",tabindex:e.performanceTab==="stages"?0:-1,"aria-controls":"performance-stages",onClick:t[11]||(t[11]=n=>e.performanceTab="stages"),onKeydown:t[12]||(t[12]=n=>e.previewTabKeydown(n))},"Work stages",42,Hg)]),R(o("div",Bg,[e.performance.routes?.length?(l(),d("div",jg,[o("table",Gg,[t[70]||(t[70]=o("caption",{class:"sr-only"},"Route latency for the selected time range",-1)),t[71]||(t[71]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Route"),o("th",{scope:"col",class:"num"},"Requests"),o("th",{scope:"col",class:"num"},"Average"),o("th",{scope:"col",class:"num"},"First byte p95"),o("th",{scope:"col",class:"num"},"p95"),o("th",{scope:"col",class:"num"},"p99"),o("th",{scope:"col",class:"num"},"Interrupted"),o("th",{scope:"col",class:"num"},"5xx"),o("th",{scope:"col",class:"num"},"Slow")])],-1)),o("tbody",null,[(l(!0),d(W,null,oe(e.performance.routes,n=>(l(),d("tr",{key:n.service+n.method+n.route},[o("th",Wg,[o("span",null,c(n.route),1),o("small",null,c(n.service)+" \xB7 "+c(n.method),1)]),o("td",Kg,c(e.fmt.number(n.count)),1),o("td",Yg,c(e.formatMs(n.avgMs)),1),o("td",Jg,c(e.firstByteBound(n)),1),o("td",Qg,c(e.latencyBound(n,"p95UpperMs")),1),o("td",Xg,c(e.latencyBound(n,"p99UpperMs")),1),o("td",{class:A(["num",{"ov-metric-warn":n.aborted>0}])},c(e.fmt.number(n.aborted)),3),o("td",{class:A(["num",{"ov-metric-warn":n.errors>0}])},c(e.fmt.number(n.errors)),3),o("td",{class:A(["num",{"ov-metric-warn":n.slow>0}])},c(e.fmt.number(n.slow)),3)]))),128))])])])):(l(),d("p",Zg,"No recorded requests in this time range yet."))],512),[[j,e.performanceTab==="routes"]]),R(o("div",xg,[t[75]||(t[75]=o("p",{class:"ov-performance-note"},"API and streamer processes \xB7 latest sample per instance",-1)),e.performance.instances?.length?(l(),d("div",tb,[o("table",ob,[t[73]||(t[73]=o("caption",{class:"sr-only"},"API and streamer process resource usage",-1)),t[74]||(t[74]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Process"),o("th",{scope:"col",class:"num"},"RSS / limit"),o("th",{scope:"col",class:"num"},"CPU"),o("th",{scope:"col",class:"num"},"Event loop p95"),o("th",{scope:"col",class:"num"},"Active requests"),o("th",{scope:"col",class:"num"},"Sockets / CLOSE_WAIT"),o("th",{scope:"col",class:"num"},"Workers / waiting"),o("th",{scope:"col",class:"num"},"Sample age"),o("th",{scope:"col",class:"num"},"Dropped batches / metrics")])],-1)),o("tbody",null,[(l(!0),d(W,null,oe(e.performance.instances,n=>(l(),d("tr",{key:n.instance,class:A({"ov-metric-warning-row":e.performanceWarning(n)})},[o("th",sb,[o("span",null,c(n.instance),1),e.performanceWarning(n)?(l(),d("small",rb,[...t[72]||(t[72]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" Needs attention",-1)])])):f("v-if",!0)]),o("td",ib,[b(c(e.humanBytes(n.memory.rss))+" / "+c(e.humanBytes(n.memoryLimitBytes)),1),o("small",null,"Peak "+c(e.humanBytes(e.peakRss(n))),1)]),o("td",ab,c(n.cpuPercent.toFixed(1))+"%",1),o("td",lb,c(n.eventLoop.p95Ms.toFixed(1))+" ms",1),o("td",db,c(n.activeRequests),1),o("td",ub,c(n.sockets?.descriptors??"Unavailable")+" / "+c(n.sockets?.closeWait??"Unavailable"),1),o("td",cb,c(n.workers?.running??0)+" / "+c(n.workers?.waiting??0),1),o("td",pb,c(e.sampleAge(n))+" s",1),o("td",fb,c(n.droppedBatches)+" / "+c(n.droppedMetrics),1)],2))),128))])])])):(l(),d("div",eb,"No recent process samples. Monitoring coverage is incomplete."))],512),[[j,e.performanceTab==="processes"]]),R(o("div",mb,[e.performance.stages?.some(n=>n.metric!=="first_byte")?(l(),d("div",hb,[o("table",vb,[t[76]||(t[76]=o("caption",{class:"sr-only"},"Work stages and cache results",-1)),t[77]||(t[77]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Work stage"),o("th",{scope:"col",class:"num"},"Samples"),o("th",{scope:"col",class:"num"},"Average"),o("th",{scope:"col",class:"num"},"p95")])],-1)),o("tbody",null,[(l(!0),d(W,null,oe(e.performance.stages.filter(n=>n.metric!=="first_byte"),n=>(l(),d("tr",{key:n.service+n.metric},[o("th",yb,[o("span",null,c(n.metric),1),o("small",null,c(n.service),1)]),o("td",gb,c(e.fmt.number(n.count)),1),o("td",bb,c(e.formatMs(n.avgMs)),1),o("td",wb,c(e.latencyBound(n,"p95UpperMs")),1)]))),128))])])])):(l(),d("p",kb,"No recorded work stages or cache results in this time range yet."))],512),[[j,e.performanceTab==="stages"]]),t[78]||(t[78]=o("details",{class:"ov-performance-help"},[o("summary",null,"How to read these metrics"),o("p",null,"Latency includes upstream waits and response transfer. Percentiles show histogram bucket upper bounds, not exact timings. Process rows marked \u201CNeeds attention\u201D have stale samples, dropped monitoring data, CLOSE_WAIT sockets, high event loop delay, or high memory usage.")],-1))])):f("v-if",!0)])])}var Eb={class:"container paper-page admin-page"},Cb={class:"q-header"},_b={class:"q-header-actions"},Sb={class:"q-range-btns"},Nb={class:"q-cards"},Rb=["aria-pressed","onKeydown","onClick"],Db={class:"q-card-head"},Tb=["textContent"],Ab=["textContent"],Ob={class:"q-card-sub"},Ib={key:0,class:"q-card-bar"},Pb={key:0,class:"q-detail"},Vb={class:"q-throughput"},qb={class:"q-section-label"},Mb={class:"q-section-right"},Ub={class:"q-stats-panel"},$b={class:"q-section-label"},Lb={class:"q-stats-grid"},Fb={class:"q-stat"},zb=["textContent"],Hb={class:"q-stat"},Bb=["textContent"],jb={class:"q-stat"},Gb=["textContent"],Wb={class:"q-stat"},Kb=["textContent"],Yb={class:"q-stat"},Jb=["textContent"],Qb={class:"q-stat"},Xb=["textContent"],Zb={class:"q-stats-actions"},xb=["disabled"],e1={class:"q-jobs"},t1={class:"q-jobs-header"},o1={class:"q-section-label"},n1={class:"q-state-filters"},s1={class:"q-state-toggle"},r1={type:"checkbox"},i1={class:"q-search-row"},a1={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},l1={class:"q-auto-refresh"},d1={type:"checkbox"},u1={key:0,class:"q-table"},c1=["onClick"],p1={class:"q-cell-state"},f1=["textContent"],m1=["textContent"],h1={class:"q-cell-id"},v1=["textContent","href"],y1={class:"q-cell-payload"},g1=["textContent"],b1={key:0,class:"q-payload-detail"},w1=["textContent"],k1=["textContent"],E1={class:"q-cell-progress"},C1={key:0,class:"q-progress-wrap"},_1=["textContent"],S1={class:"q-cell-actions"},N1=["onClick"],R1=["onClick"],D1={key:0,class:"q-detail-row"},T1={colspan:"7"},A1={class:"q-job-detail"},O1={class:"q-job-detail-grid"},I1={class:"q-job-detail-item"},P1={class:"q-job-detail-value"},V1=["textContent","href"],q1={class:"q-job-detail-item"},M1={class:"q-job-detail-value"},U1=["textContent"],$1={key:0,class:"q-job-detail-item"},L1=["textContent"],F1={key:1,class:"q-job-detail-item"},z1=["textContent"],H1={key:2,class:"q-job-detail-item"},B1={class:"q-job-detail-value"},j1={key:3,class:"q-job-detail-item"},G1=["textContent"],W1={key:4,class:"q-job-detail-item"},K1=["textContent"],Y1={key:5,class:"q-job-detail-item"},J1=["textContent"],Q1={key:6,class:"q-job-detail-item"},X1=["textContent"],Z1={key:7,class:"q-job-detail-item"},x1=["textContent"],ew={key:0,class:"q-job-detail-error"},tw=["textContent"],ow={key:1},nw=["textContent"],sw={class:"q-job-detail-actions"},rw=["onClick"],iw=["onClick"],aw=["href"],lw={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},dw={key:0},uw={key:1};function Ol(e,t){let n=ve("field");return l(),d("div",Eb,[t[48]||(t[48]=o("div",{class:"paper-crumbs"},[b("Admin \xA0/\xA0 "),o("span",{class:"here"},"Queues")],-1)),o("div",Cb,[t[12]||(t[12]=o("h1",{class:"paper-page-title"},"Queues",-1)),o("div",_b,[o("div",Sb,[o("button",{class:A(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[0]||(t[0]=r=>e.setRange("1h"))},"1h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[1]||(t[1]=r=>e.setRange("6h"))},"6h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[2]||(t[2]=r=>e.setRange("24h"))},"24h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[3]||(t[3]=r=>e.setRange("7d"))},"7d",2)]),o("button",{class:"btn btn-sm",onClick:t[4]||(t[4]=r=>e.pauseAll())},"Pause all"),o("button",{class:"btn btn-sm btn-danger-soft",onClick:t[5]||(t[5]=r=>e.drainSelected())},"Drain "+c(e.selectedQueue),1)])]),t[49]||(t[49]=de('<nav class="admin-nav"><a href="/admin/"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-chart"></use></svg> Overview</a><a href="/admin/repositories"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Repositories</a><a href="/admin/users"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-users"></use></svg> Users</a><a href="/admin/conferences"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-conference"></use></svg> Conferences</a><a href="/admin/queues" class="active"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-list"></use></svg> Queues</a><a href="/admin/errors"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Errors</a></nav>',1)),f(" Queue overview cards "),o("div",Nb,[(l(!0),d(W,null,oe(e.queueList,(r,s)=>(l(),d("div",{class:A(["q-card",{selected:e.selectedQueue==r?.key,paused:r?.paused}]),role:"button",tabindex:"0","aria-pressed":e.selectedQueue===r.key,onKeydown:[Ao(ie(i=>e.selectQueue(r.key),["prevent"]),["enter"]),Ao(ie(i=>e.selectQueue(r.key),["prevent"]),["space"])],onClick:i=>e.selectQueue(r.key)},[o("div",Db,[o("span",{class:A(["q-dot",{"q-dot-red":r?.paused||r?.counts?.failed>0}])},null,2),o("span",{class:"q-card-name",textContent:c(r?.label)},null,8,Tb)]),o("div",{class:"q-card-count",textContent:c((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0))},null,8,Ab),o("div",Ob,[o("span",null,"waiting \xB7 "+c(r?.counts?.active||0)+" active",1),r?.counts?.active?(l(),d("div",Ib,[o("div",{class:"q-card-bar-fill",style:Ie({width:r?.counts?.active/((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0)||1)*100+"%"})},null,4)])):f("v-if",!0)])],42,Rb))),256))]),f(" Detail: throughput chart + stats panel "),e.selectedStats?(l(),d("div",Pb,[o("div",Vb,[o("div",qb,[b(c(e.selectedQueue)+" \xB7 throughput ",1),o("span",Mb,[t[13]||(t[13]=o("span",{class:"q-legend-completed"},"\u25CF",-1)),t[14]||(t[14]=b(" completed ",-1)),t[15]||(t[15]=o("span",{class:"q-legend-failed"},"\u25CF",-1)),t[16]||(t[16]=b(" failed ",-1)),t[17]||(t[17]=o("span",{class:"q-legend-exec"},"- -",-1)),b(" avg time \xB7 "+c(e.range),1)])]),t[18]||(t[18]=o("div",{class:"q-chart-wrap"},[o("canvas",{id:"q-throughput-chart",height:"180"}),o("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}}),o("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}})],-1))]),o("div",Ub,[o("div",$b,c(e.selectedQueue)+" \xB7 stats",1),o("div",Lb,[o("div",Fb,[t[19]||(t[19]=o("div",{class:"q-stat-label"},"Waiting",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.waiting||0)},null,8,zb)]),o("div",Hb,[t[20]||(t[20]=o("div",{class:"q-stat-label"},"Active",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.active||0)},null,8,Bb)]),o("div",jb,[t[21]||(t[21]=o("div",{class:"q-stat-label"},"Completed (24h)",-1)),o("div",{class:"q-stat-value",textContent:c(e.fmt?.number(e.selectedStats?.completed24h))},null,8,Gb)]),o("div",Wb,[t[22]||(t[22]=o("div",{class:"q-stat-label"},"Failed (24h)",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.failed24h||0)},null,8,Kb)]),o("div",Yb,[t[23]||(t[23]=o("div",{class:"q-stat-label"},"Delayed",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.delayed||0)},null,8,Jb)]),o("div",Qb,[t[24]||(t[24]=o("div",{class:"q-stat-label"},"Workers",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.workers||0)},null,8,Xb)])]),o("div",Zb,[o("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=r=>e.togglePause())},c(e.selectedStats?.paused?"Resume":"Pause"),1),o("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=r=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,xb),o("button",{class:"btn btn-sm",onClick:t[8]||(t[8]=r=>e.emptyQueue())},"Empty")])])])):f("v-if",!0),e.actionError?(l(),d("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=r=>e.actionError=null)},[t[25]||(t[25]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),b(" "+c(e.actionError),1)])):f("v-if",!0),f(" Jobs table "),o("div",e1,[o("div",t1,[o("div",o1,"All jobs \xB7 "+c(e.selectedQueue),1),o("div",n1,[(l(!0),d(W,null,oe(e.allStates,(r,s)=>(l(),d("label",s1,[R(o("input",r1,null,512),[[n,{state:e.viewState,set:i=>{e.stateFilter[r]=i},value:e.stateFilter[r],form:null,options:{}}]]),o("span",{class:A("q-state-chip q-state-"+r)},c(r),3)]))),256))])]),o("div",i1,[R(o("input",a1,null,512),[[n,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]]),o("label",l1,[R(o("input",d1,null,512),[[n,{state:e.viewState,set:r=>{e.query.autoRefresh=r},value:e.query?.autoRefresh,form:null,options:{}}]]),t[26]||(t[26]=b(" Auto-refresh ",-1))]),o("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[10]||(t[10]=r=>e.refreshNow()),"aria-label":"Refresh"},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])]),e.filteredJobs().length>0?(l(),d("table",u1,[t[46]||(t[46]=o("thead",null,[o("tr",null,[o("th",null,"State"),o("th",null,"Job id"),o("th",null,"Payload"),o("th",null,"Attempts"),o("th",null,"Duration"),o("th",null,"Progress"),o("th")])],-1)),(l(!0),d(W,null,oe(e.filteredJobs(),(r,s)=>(l(),d("tbody",null,[o("tr",{style:{cursor:"pointer"},class:A({"q-row-failed":r?._state=="failed","q-row-expanded":e.expanded[r?.id]}),onClick:i=>e.toggleJob(r)},[o("td",p1,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,f1),r?._state=="delayed"&&r?.delayUntil?(l(),d("span",{key:0,class:"q-delay-hint",textContent:c(e.delayCountdown(r?.delayUntil))},null,8,m1)):f("v-if",!0)]),o("td",h1,[(l(),d("svg",{class:A(["ui-icon q-chevron",{"q-chevron-open":e.expanded[r?.id]}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#ui-icon-chevron-right"},null,-1)])],2)),o("a",{target:"_blank",textContent:c("job:"+e.fmt.limitTo(r?.id,6)),onClick:t[11]||(t[11]=i=>i.stopPropagation()),href:e.safeUrl("/r/"+r?.id)},null,8,v1)]),o("td",y1,[o("span",{textContent:c(r?.name||"anonymize")},null,8,g1),r?.data?.repoId&&r?.data?.repoId!==r?.name?(l(),d("span",b1," \xB7 "+c(r?.data?.repoId),1)):f("v-if",!0)]),o("td",{class:"q-cell-num",textContent:c(r?.attemptsMade||1)},null,8,w1),o("td",{class:"q-cell-num",textContent:c(e.jobDuration(r))},null,8,k1),o("td",E1,[e.jobProgressPct(r)!==null?(l(),d("div",C1,[o("div",{class:"q-progress-bar",style:Ie({"--pct":e.jobProgressPct(r)+"%"})},null,4),o("span",{class:"q-progress-label",textContent:c(e.jobProgressPct(r)+"%")},null,8,_1)])):f("v-if",!0)]),o("td",S1,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm btn-icon",title:"Retry",onClick:i=>{e.retryJob(r),i.stopPropagation()},"aria-label":"Retry job"},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])],8,N1)):f("v-if",!0),o("button",{class:"btn btn-sm btn-icon",title:"Remove","aria-label":"Remove job",onClick:i=>{e.removeJob(r),i.stopPropagation()}},[...t[30]||(t[30]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)])],8,R1)])],10,c1),e.expanded[r?.id]?(l(),d("tr",D1,[o("td",T1,[o("div",A1,[o("div",O1,[o("div",I1,[t[31]||(t[31]=o("span",{class:"q-job-detail-label"},"Job id",-1)),o("span",P1,[o("a",{target:"_blank",textContent:c(r?.id),href:e.safeUrl("/r/"+r?.id)},null,8,V1)])]),o("div",q1,[t[32]||(t[32]=o("span",{class:"q-job-detail-label"},"State",-1)),o("span",M1,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,U1)])]),r?.data?.repoId?(l(),d("div",$1,[t[33]||(t[33]=o("span",{class:"q-job-detail-label"},"Repo ID",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.data?.repoId)},null,8,L1)])):f("v-if",!0),r?.timestamp?(l(),d("div",F1,[t[34]||(t[34]=o("span",{class:"q-job-detail-label"},"Created",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.timestamp))},null,8,z1)])):f("v-if",!0),r?._state=="delayed"&&r?.delayUntil?(l(),d("div",H1,[t[35]||(t[35]=o("span",{class:"q-job-detail-label"},"Retry at",-1)),o("span",B1,c(e.humanTime(r?.delayUntil))+" ("+c(e.delayCountdown(r?.delayUntil))+")",1)])):f("v-if",!0),r?.processedOn?(l(),d("div",j1,[t[36]||(t[36]=o("span",{class:"q-job-detail-label"},"Processed",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.processedOn))},null,8,G1)])):f("v-if",!0),r?.finishedOn?(l(),d("div",W1,[t[37]||(t[37]=o("span",{class:"q-job-detail-label"},"Finished",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.finishedOn))},null,8,K1)])):f("v-if",!0),r?.attemptsMade?(l(),d("div",Y1,[t[38]||(t[38]=o("span",{class:"q-job-detail-label"},"Attempts",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.attemptsMade)},null,8,J1)])):f("v-if",!0),r?.progress&&r?.progress?.status?(l(),d("div",Q1,[t[39]||(t[39]=o("span",{class:"q-job-detail-label"},"Status",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.progress?.status)},null,8,X1)])):f("v-if",!0),e.jobProgressPct(r)!==null?(l(),d("div",Z1,[t[40]||(t[40]=o("span",{class:"q-job-detail-label"},"Progress",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.jobProgressPct(r)+"%")},null,8,x1)])):f("v-if",!0)]),r?.failedReason?(l(),d("div",ew,[t[41]||(t[41]=o("span",{class:"q-job-detail-label"},"Error",-1)),o("div",{class:"q-error-reason",textContent:c(r?.failedReason)},null,8,tw)])):f("v-if",!0),r?.stacktrace?.length?(l(),d("div",ow,[t[42]||(t[42]=o("span",{class:"q-job-detail-label"},"Stacktrace",-1)),(l(!0),d(W,null,oe(r?.stacktrace,(i,a)=>(l(),d("pre",{class:"q-error-stack",key:a},[o("code",{textContent:c(i)},null,8,nw)]))),128))])):f("v-if",!0),o("div",sw,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm",onClick:i=>e.retryJob(r)},[...t[43]||(t[43]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Retry",-1)])],8,rw)):f("v-if",!0),o("button",{class:"btn btn-sm",onClick:i=>e.removeJob(r)},[...t[44]||(t[44]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,iw),o("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+r?.id)},[...t[45]||(t[45]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1),b(" View repo",-1)])],8,aw)])])])])):f("v-if",!0)]))),256))])):f("v-if",!0),e.filteredJobs().length==0?(l(),d("div",lw,[t[47]||(t[47]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?f("v-if",!0):(l(),d("span",dw,"No jobs in the "+c(e.selectedQueue)+" queue.",1)),e.query?.search?(l(),d("span",uw,"No jobs match the current filters.")):f("v-if",!0)])):f("v-if",!0)])])}var cw={class:"container paper-page admin-page"},pw={class:"admin-summary"},fw={class:"summary-total"},mw={class:"summary-meta"},hw=["aria-pressed"],vw={class:"count"},yw=["aria-pressed"],gw={class:"count"},bw=["aria-pressed"],ww={class:"count"},kw=["aria-pressed"],Ew={class:"count"},Cw=["aria-pressed"],_w={class:"count"},Sw={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},Nw={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},Rw={class:"admin-filter-row"},Dw={class:"search-wrap"},Tw={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},Aw={key:0,class:"admin-search-hint"},Ow={class:"admin-filter-inline"},Iw={type:"text",class:"form-control form-control-sm",placeholder:"username"},Pw={class:"admin-filter-inline"},Vw={type:"text",class:"form-control form-control-sm",placeholder:"ID"},qw={class:"admin-filter-inline","aria-label":"Pagination"},Mw=["disabled"],Uw={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},$w=["disabled"],Lw={key:0,class:"admin-filter-row"},Fw={class:"admin-active-chips"},zw={class:"key"},Hw=["onClick"],Bw={key:1,class:"bulk-bar"},jw={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},Gw={class:"paper-table-head",role:"row"},Ww={role:"columnheader",style:{width:"28px"}},Kw=["checked"],Yw={role:"columnheader"},Jw={role:"columnheader"},Qw={role:"columnheader",class:"num"},Xw={role:"columnheader"},Zw={role:"cell",style:{width:"28px"}},xw={type:"checkbox","aria-label":"Select repository"},ek={class:"cell-anon",role:"cell"},tk={class:"anon-text"},ok=["textContent","href"],nk={class:"anon-sub"},sk=["textContent","href"],rk={key:0},ik=["textContent","href"],ak={key:1},lk=["textContent","href"],dk={key:2},uk={class:"cell-status",role:"cell"},ck={class:"status-line"},pk=["textContent"],fk=["textContent","title"],mk={class:"cell-views num",role:"cell"},hk=["textContent"],vk={class:"cell-expires",role:"cell"},yk=["textContent"],gk={class:"cell-actions",role:"cell"},bk={class:"dropdown"},wk={class:"dropdown-menu dropdown-menu-right"},kk=["href"],Ek=["href"],Ck=["href"],_k=["onClick"],Sk=["onClick"],Nk=["onClick"],Rk=["onClick"],Dk=["onClick"],Tk=["onClick"],Ak={key:0,class:"paper-table-empty"},Ok={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},Ik={style:{"font-size":"12px",color:"var(--ink-muted)"}},Pk={key:0,class:"pagination-compact"},Vk=["disabled"],qk=["max"],Mk=["disabled"],Uk={class:"admin-filter-inline"},$k={class:"form-control form-control-sm"};function Il(e,t){let n=ve("field"),r=ve("form");return l(),d("div",cw,[t[69]||(t[69]=de('<div class="paper-crumbs">Admin \xA0/\xA0 <span class="here">Repositories</span></div><h1 class="paper-page-title">Repositories</h1><nav class="admin-nav"><a href="/admin/"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-chart"></use></svg> Overview</a><a href="/admin/repositories" class="active"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Repositories</a><a href="/admin/users"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-users"></use></svg> Users</a><a href="/admin/conferences"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-conference"></use></svg> Conferences</a><a href="/admin/queues"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-list"></use></svg> Queues</a><a href="/admin/errors"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Errors</a></nav>',3)),o("div",pw,[o("span",fw,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("span",mw,c(e.fmt?.humanFileSize(e.totalSize))+" on disk",1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=s=>{e.query.ready=!e.query.ready,e.query.page=1}),"aria-pressed":!!e.query?.ready},[t[18]||(t[18]=b("Ready ",-1)),o("span",vw,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,hw),o("button",{type:"button",class:A(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=s=>{e.query.preparing=!e.query.preparing,e.query.page=1}),"aria-pressed":!!e.query?.preparing},[t[19]||(t[19]=b("Preparing ",-1)),o("span",gw,c(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],10,yw),o("button",{type:"button",class:A(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=s=>{e.query.error=!e.query.error,e.query.page=1}),"aria-pressed":!!e.query?.error},[t[20]||(t[20]=b("Errored ",-1)),o("span",ww,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,bw),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=s=>{e.query.expired=!e.query.expired,e.query.page=1}),"aria-pressed":!!e.query?.expired},[t[21]||(t[21]=b("Expired ",-1)),o("span",Ew,c(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],10,kw),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=s=>{e.query.removed=!e.query.removed,e.query.page=1}),"aria-pressed":!!e.query?.removed},[t[22]||(t[22]=b("Removed ",-1)),o("span",_w,c(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],10,Cw)]),e.fetchError?(l(),d("div",Sw,[t[23]||(t[23]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fetchError),1)])):f("v-if",!0),R((l(),d("form",Nw,[f(" Row 1: search + scoped inputs + headline actions "),o("div",Rw,[o("div",Dw,[R(o("input",Tw,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(l(),d("span",Aw,"/"))]),o("span",Ow,[t[24]||(t[24]=o("label",null,"Owner",-1)),R(o("input",Iw,null,512),[[n,{state:e.viewState,set:s=>{e.query.owner=s},value:e.query?.owner,form:null,options:{}}]])]),o("span",Pw,[t[25]||(t[25]=o("label",null,"Conference",-1)),R(o("input",Vw,null,512),[[n,{state:e.viewState,set:s=>{e.query.conference=s},value:e.query?.conference,form:null,options:{}}]])]),t[29]||(t[29]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[5]||(t[5]=s=>e.exportCsv())},[...t[26]||(t[26]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])]),o("span",qw,[o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,Mw),o("span",Uw,c(e.query?.page)+"/"+c(e.totalPage||1),1),o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,$w)])]),f(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",Lw,[o("div",Fw,[(l(!0),d(W,null,oe(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",zw,c(s?.label),1),o("span",null,c(s?.value),1),o("button",{type:"button","aria-label":"Remove filter",onClick:a=>e.clearFilter(s.key)},[...t[30]||(t[30]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,Hw)]))),128))])])):f("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",Bw,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[31]||(t[31]=b(" selected",-1))]),o("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=s=>e.bulkRefresh())},[...t[32]||(t[32]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force refresh",-1)])]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[9]||(t[9]=s=>e.bulkRemoveCache())},[...t[33]||(t[33]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=s=>e.clearSelection())},"Clear")])):f("v-if",!0),o("div",jw,[o("div",Gw,[o("div",Ww,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[11]||(t[11]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,Kw)]),o("div",Yw,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[12]||(t[12]=s=>e.sortBy("source.repositoryName"))},[t[35]||(t[35]=b("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",Jw,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[13]||(t[13]=s=>e.sortBy("status"))},[t[37]||(t[37]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[36]||(t[36]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",Qw,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[14]||(t[14]=s=>e.sortBy("pageView"))},[t[39]||(t[39]=b("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[38]||(t[38]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",Xw,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[15]||(t[15]=s=>e.sortBy("anonymizeDate"))},[t[41]||(t[41]=b("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[40]||(t[40]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[42]||(t[42]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(W,null,oe(e.filteredRepositories,(s,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error","row-selected":e.selected[s?.repoId]}]),role:"row"},[o("div",Zw,[R(o("input",xw,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.repoId]=a},value:e.selected[s?.repoId],form:null,options:{}}]])]),o("div",ek,[t[47]||(t[47]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",tk,[o("a",{class:"repo-name",target:"_blank",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId)},null,8,ok),o("div",nk,[o("a",{textContent:c(s?.source?.repositoryName),href:e.safeUrl("https://github.com/"+s?.source?.repositoryName+"/")},null,8,sk),s?.options?.update?(l(),d("span",rk,[t[43]||(t[43]=b("\xA0\xB7\xA0",-1)),o("a",{textContent:c(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,ik)])):f("v-if",!0),s?.options?.update?f("v-if",!0):(l(),d("span",ak,[t[44]||(t[44]=b("\xA0\xB7\xA0@",-1)),o("a",{textContent:c(s?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},null,8,lk)])),s?.conference?(l(),d("span",dk,[t[45]||(t[45]=b("\xA0\xB7\xA0",-1)),t[46]||(t[46]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),b(" "+c(s?.conference),1)])):f("v-if",!0),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(s?.size?.storage)),1),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(s?.options?.terms?.length))+" "+c(s?.options?.terms?.length===1?"term":"terms"),1)])])]),o("div",uk,[o("span",ck,[o("span",{class:A(["status-dot",{"status-removed":s?.status=="removed"||s?.status=="expired","status-ready":s?.status=="ready","status-error":s?.status=="error","status-preparing":s?.status=="preparing"}])},null,2),o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,pk)]),s?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(s?.statusMessage)),title:s?.statusMessage},null,8,fk)):f("v-if",!0)]),o("div",mk,[t[48]||(t[48]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),t[49]||(t[49]=b()),o("span",{textContent:c(e.fmt?.number(s?.pageView||0))},null,8,hk)]),o("div",vk,[t[50]||(t[50]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[51]||(t[51]=b()),o("span",{textContent:c(e.fmt?.humanTime(s?.anonymizeDate))},null,8,yk)]),o("div",gk,[o("div",bk,[t[63]||(t[63]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",wk,[o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[52]||(t[52]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit",-1)])],8,kk),o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[53]||(t[53]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View repo",-1)])],8,Ek),s?.options?.page&&s?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+s?.repoId+"/")},[...t[54]||(t[54]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" View page",-1)])],8,Ck)):f("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.fetchGithubInfo(s),["prevent"])},[...t[55]||(t[55]=[o("i",{class:"fab fa-github"},null,-1),b(" Live GitHub info",-1)])],8,_k),t[61]||(t[61]=o("div",{class:"dropdown-divider"},null,-1)),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updateRepository(s),["prevent"])},[...t[56]||(t[56]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force update",-1)])],8,Sk),[[j,s?.status=="ready"||s?.status=="error"]]),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updateRepository(s),["prevent"])},[...t[57]||(t[57]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Enable",-1)])],8,Nk),[[j,s?.status=="removed"]]),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.showStatusMessage(s),["prevent"])},[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" View status message",-1)])],8,Rk),[[j,s?.statusMessage]]),t[62]||(t[62]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.removeCache(s),["prevent"])},[...t[59]||(t[59]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])],8,Dk),R(o("a",{class:"dropdown-item text-danger",href:"#",onClick:ie(a=>e.removeRepository(s),["prevent"])},[...t[60]||(t[60]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,Tk),[[j,s?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",Ak,[...t[64]||(t[64]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No repositories match the current filters.",-1)])])):f("v-if",!0)]),o("div",Ok,[o("span",Ik,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",Pk,[o("button",{class:"btn btn-sm",onClick:t[16]||(t[16]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[65]||(t[65]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),b(" Previous ",-1)])],8,Vk),R(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,qk),[[n,{state:e.viewState,set:s=>{e.query.page=s},value:e.query?.page,form:null,options:{}}]]),o("span",null,"of "+c(e.totalPage),1),o("button",{class:"btn btn-sm",onClick:t[17]||(t[17]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[66]||(t[66]=[b(" Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,Mk)])):f("v-if",!0),o("span",Uk,[t[68]||(t[68]=o("label",null,"Per page",-1)),R((l(),d("select",$k,[...t[67]||(t[67]=[de('<option value="10">10</option><option value="25">25</option><option value="50">50</option><option value="100">100</option><option value="250">250</option>',5)])])),[[n,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var Lk={class:"container paper-page admin-page"},Fk={class:"paper-crumbs"},zk={class:"here"},Hk={class:"paper-page-title"},Bk={key:0,class:"user-detail-card"},jk={class:"user-header"},Gk=["src"],Wk={class:"status-dot-wrap"},Kk=["textContent"],Yk={key:0,class:"type-badge type-repo"},Jk={class:"user-actions",style:{"margin-top":"4px"}},Qk={class:"user-detail-grid"},Xk={class:"detail-value"},Zk={class:"detail-value"},xk={key:0,class:"detail-value",style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},e0={key:1,class:"detail-value text-muted"},t0={class:"detail-value"},o0=["href"],n0={class:"detail-value"},s0={class:"detail-value"},r0={key:0},i0={key:1,class:"text-muted"},a0={class:"detail-value"},l0={key:0,style:{"margin-top":"20px"}},d0={class:"paper-table w-100",style:{"margin-top":"10px"}},u0={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},c0={class:"cell-anon",role:"cell"},p0={class:"anon-text"},f0=["textContent"],m0={class:"cell-expires",role:"cell"},h0={key:1,class:"admin-section-header"},v0={class:"section-count"},y0={key:2,class:"user-detail-card"},g0={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},b0={key:0,class:"alert alert-warning",role:"alert"},w0={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},k0={key:1,class:"paper-table w-100"},E0={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},C0=["textContent"],_0=["textContent"],S0={role:"cell"},N0={key:0},R0={key:1,class:"text-muted"},D0={role:"cell"},T0=["onClick"],A0={key:2,class:"paper-table-empty"},O0={class:"admin-section-header"},I0={class:"section-count"},P0={class:"admin-summary"},V0={class:"summary-total"},q0=["aria-pressed"],M0={class:"count"},U0=["aria-pressed"],$0={class:"count"},L0=["aria-pressed"],F0={class:"count"},z0=["aria-pressed"],H0={class:"count"},B0=["aria-pressed"],j0={class:"count"},G0={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},W0={class:"admin-filter-row"},K0={class:"search-wrap"},Y0={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},J0={key:3,class:"bulk-bar"},Q0={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},X0={class:"paper-table-head",role:"row"},Z0={role:"columnheader",style:{width:"28px"}},x0=["checked"],eE={role:"columnheader"},tE={role:"columnheader"},oE={role:"columnheader",class:"num"},nE={role:"columnheader"},sE={role:"cell",style:{width:"28px"}},rE={type:"checkbox","aria-label":"Select repository"},iE={class:"cell-anon",role:"cell"},aE={class:"anon-text"},lE=["textContent","href"],dE={class:"anon-sub"},uE=["textContent","href"],cE={key:0},pE=["textContent","href"],fE={key:1},mE=["textContent","href"],hE={key:2},vE={class:"cell-status",role:"cell"},yE={class:"status-line"},gE=["textContent"],bE=["textContent","title"],wE=["textContent"],kE=["textContent"],EE={class:"cell-actions",role:"cell"},CE={class:"dropdown"},_E={class:"dropdown-menu dropdown-menu-right"},SE=["href"],NE=["href"],RE=["href"],DE=["onClick"],TE=["onClick"],AE=["onClick"],OE=["onClick"],IE=["onClick"],PE=["onClick"],VE={key:0,class:"paper-table-empty"};function Pl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",Lk,[o("div",Fk,[t[22]||(t[22]=o("a",{href:"/admin/"},"Admin",-1)),t[23]||(t[23]=b(" \xA0/\xA0 ",-1)),t[24]||(t[24]=o("a",{href:"/admin/users"},"Users",-1)),t[25]||(t[25]=b(" \xA0/\xA0 ",-1)),o("span",zk,c(e.userInfo?.username||"Profile"),1)]),o("h1",Hk,c(e.userInfo?.username||"User"),1),t[87]||(t[87]=de('<nav class="admin-nav"><a href="/admin/"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-chart"></use></svg> Overview</a><a href="/admin/repositories"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Repositories</a><a href="/admin/users" class="active"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-users"></use></svg> Users</a><a href="/admin/conferences"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-conference"></use></svg> Conferences</a><a href="/admin/queues"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-list"></use></svg> Queues</a><a href="/admin/errors"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Errors</a></nav>',1)),e.userInfo?(l(),d("div",Bk,[o("div",jk,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,Gk)):f("v-if",!0),o("div",null,[o("h2",null,[b(c(e.userInfo?.username)+" ",1),o("span",Wk,[o("span",{class:A(["status-dot",{"status-ready":e.userInfo?.status=="active","status-removed":e.userInfo?.status!="active"}])},null,2),o("span",{textContent:c(e.fmt?.title(e.userInfo?.status))},null,8,Kk)]),e.userInfo?.isAdmin?(l(),d("span",Yk,"Admin")):f("v-if",!0)]),o("div",Jk,[e.userInfo?.status!=="banned"?(l(),d("button",{key:0,class:"btn btn-sm text-danger",onClick:t[0]||(t[0]=s=>e.banUser())},[...t[26]||(t[26]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])])):f("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(l(),d("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=s=>e.activateUser())},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Activate",-1)])])):f("v-if",!0),e.userInfo?.isAdmin?f("v-if",!0):(l(),d("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.promoteUser())},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user-shield"})],-1),b(" Promote to admin",-1)])])),e.userInfo?.isAdmin?(l(),d("button",{key:3,class:"btn btn-sm text-danger",onClick:t[3]||(t[3]=s=>e.demoteUser())},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user-minus"})],-1),b(" Remove admin",-1)])])):f("v-if",!0)])])]),o("div",Qk,[t[32]||(t[32]=o("div",{class:"detail-label"},"ID",-1)),o("div",Xk,c(e.userInfo?._id),1),t[33]||(t[33]=o("div",{class:"detail-label"},"Email",-1)),o("div",Zk,c(e.userInfo?.emails?.[0]?.email),1),t[34]||(t[34]=o("div",{class:"detail-label"},"Access token",-1)),e.userInfo?.accessTokens?.github?(l(),d("div",xk,c(e.userInfo?.accessTokens?.github),1)):f("v-if",!0),e.userInfo?.accessTokens?.github?f("v-if",!0):(l(),d("div",e0,"None stored")),t[35]||(t[35]=o("div",{class:"detail-label"},"GitHub",-1)),o("div",t0,[o("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[30]||(t[30]=o("i",{class:"fab fa-github"},null,-1)),b(" "+c(e.userInfo?.username),1)],8,o0)]),t[36]||(t[36]=o("div",{class:"detail-label"},"Created",-1)),o("div",n0,c(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[37]||(t[37]=o("div",{class:"detail-label"},"Last connection",-1)),o("div",s0,[e.userInfo?.accessTokenDates?.github?(l(),d("span",r0,c(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):f("v-if",!0),e.userInfo?.accessTokenDates?.github?f("v-if",!0):(l(),d("span",i0,"never"))]),t[38]||(t[38]=o("div",{class:"detail-label"},"GitHub repos",-1)),o("div",a0,[b(c(e.userInfo?.repositories?.length)+" repositories ",1),o("button",{class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=s=>e.showRepos=!e.showRepos)},c(e.showRepos?"Hide":"Show"),1),o("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=s=>e.getGitHubRepositories())},[...t[31]||(t[31]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Refresh ",-1)])])])]),e.showRepos?(l(),d("div",l0,[t[41]||(t[41]=o("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),o("div",d0,[(l(!0),d(W,null,oe(e.userInfo?.repositories,(s,i)=>(l(),d("div",u0,[o("div",c0,[t[39]||(t[39]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",p0,[o("span",{class:"repo-name",textContent:c(s?.name)},null,8,f0)])]),o("div",m0,[t[40]||(t[40]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-database"})],-1)),b(" "+c(e.fmt?.humanFileSize(s?.size)),1)])]))),256))])])):f("v-if",!0)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",h0,[t[42]||(t[42]=o("h2",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-key"})]),b(" API tokens")],-1)),o("span",v0,c(e.tokens?.length),1)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",y0,[t[48]||(t[48]=o("p",{class:"paper-page-lede"},[b("Personal API tokens for this admin account. Send as "),o("code",null,"Authorization: Bearer <token>"),b(" to authenticate without GitHub OAuth (useful for development).")],-1)),R((l(),d("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=ie(s=>e.submitForm(s,()=>{e.createToken()}),["prevent"]))},[R(o("input",g0,null,512),[[n,{state:e.viewState,set:s=>{e.tokenForm.name=s},value:e.tokenForm?.name,form:null,options:{}}]]),t[43]||(t[43]=o("button",{type:"submit",class:"btn btn-ink"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})]),b(" Generate")],-1))],32)),[[r,e.viewState]]),e.tokenForm?.plaintext?(l(),d("div",b0,[t[44]||(t[44]=o("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),o("pre",w0,c(e.tokenForm?.plaintext),1),o("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=s=>e.tokenForm.plaintext=null)},"Dismiss")])):f("v-if",!0),e.tokens?.length?(l(),d("div",k0,[t[46]||(t[46]=o("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[o("div",{role:"columnheader"},"Name"),o("div",{role:"columnheader"},"Created"),o("div",{role:"columnheader"},"Last used"),o("div",{role:"columnheader","aria-label":"Actions"})],-1)),(l(!0),d(W,null,oe(e.tokens,(s,i)=>(l(),d("div",E0,[o("div",{role:"cell",textContent:c(s?.name)},null,8,C0),o("div",{role:"cell",textContent:c(e.fmt?.humanTime(s?.createdAt))},null,8,_0),o("div",S0,[s?.lastUsedAt?(l(),d("span",N0,c(e.fmt?.humanTime(s?.lastUsedAt)),1)):f("v-if",!0),s?.lastUsedAt?f("v-if",!0):(l(),d("span",R0,"never"))]),o("div",D0,[o("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:a=>e.revokeToken(s)},[...t[45]||(t[45]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)])],8,T0)])]))),256))])):f("v-if",!0),e.tokens?.length?f("v-if",!0):(l(),d("div",A0,[...t[47]||(t[47]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No tokens yet.",-1)])]))])):f("v-if",!0),o("div",O0,[t[49]||(t[49]=o("h2",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})]),b(" Anonymized repositories")],-1)),o("span",I0,c(e.repositories?.length),1)]),o("div",P0,[o("span",V0,c(e.fmt?.number(e.repositories?.length)),1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.filters?.status?.ready===!1}]),title:"Toggle ready filter",onClick:t[8]||(t[8]=s=>e.filters.status.ready=!e.filters.status.ready),"aria-pressed":e.filters?.status?.ready===!1},[t[50]||(t[50]=b("Ready ",-1)),o("span",M0,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,q0),o("button",{type:"button",class:A(["summary-pill warn",{active:e.filters?.status?.preparing===!1}]),title:"Toggle preparing filter",onClick:t[9]||(t[9]=s=>e.filters.status.preparing=!e.filters.status.preparing),"aria-pressed":e.filters?.status?.preparing===!1},[t[51]||(t[51]=b("Preparing ",-1)),o("span",$0,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,U0),o("button",{type:"button",class:A(["summary-pill error",{active:e.filters?.status?.error===!1}]),title:"Toggle errored filter",onClick:t[10]||(t[10]=s=>e.filters.status.error=!e.filters.status.error),"aria-pressed":e.filters?.status?.error===!1},[t[52]||(t[52]=b("Errored ",-1)),o("span",F0,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,L0),o("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.expired===!1}]),title:"Toggle expired filter",onClick:t[11]||(t[11]=s=>e.filters.status.expired=!e.filters.status.expired),"aria-pressed":e.filters?.status?.expired===!1},[t[53]||(t[53]=b("Expired ",-1)),o("span",H0,c(e.fmt?.number(e.statusCountFor("expired"))),1)],10,z0),o("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.removed===!1}]),title:"Toggle removed filter",onClick:t[12]||(t[12]=s=>e.filters.status.removed=!e.filters.status.removed),"aria-pressed":e.filters?.status?.removed===!1},[t[54]||(t[54]=b("Removed ",-1)),o("span",j0,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,B0)]),R((l(),d("form",G0,[o("div",W0,[o("div",K0,[R(o("input",Y0,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),t[56]||(t[56]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[13]||(t[13]=s=>e.exportCsv())},[...t[55]||(t[55]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])])])])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",J0,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[57]||(t[57]=b(" selected",-1))]),o("button",{class:"btn btn-sm",type:"button",onClick:t[14]||(t[14]=s=>e.bulkRefresh())},[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force refresh",-1)])]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[15]||(t[15]=s=>e.bulkRemoveCache())},[...t[59]||(t[59]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[16]||(t[16]=s=>e.clearSelection())},"Clear")])):f("v-if",!0),o("div",Q0,[o("div",X0,[o("div",Z0,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,x0)]),o("div",eE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[18]||(t[18]=s=>e.sortBy("source.repositoryName"))},[t[61]||(t[61]=b("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[60]||(t[60]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",tE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[19]||(t[19]=s=>e.sortBy("status"))},[t[63]||(t[63]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[62]||(t[62]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",oE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[20]||(t[20]=s=>e.sortBy("pageView"))},[t[65]||(t[65]=b("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[64]||(t[64]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",nE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[21]||(t[21]=s=>e.sortBy("anonymizeDate"))},[t[67]||(t[67]=b("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[66]||(t[66]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[68]||(t[68]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(W,null,oe(e.filteredRepositories,(s,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error","row-selected":e.selected[s?.repoId]}]),role:"row"},[o("div",sE,[R(o("input",rE,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.repoId]=a},value:e.selected[s?.repoId],form:null,options:{}}]])]),o("div",iE,[t[73]||(t[73]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",aE,[o("a",{class:"repo-name",target:"_blank",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId)},null,8,lE),o("div",dE,[o("a",{textContent:c(s?.source?.fullName),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/")},null,8,uE),s?.options?.update?(l(),d("span",cE,[t[69]||(t[69]=b("\xA0\xB7\xA0",-1)),o("a",{textContent:c(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,pE)])):f("v-if",!0),s?.options?.update?f("v-if",!0):(l(),d("span",fE,[t[70]||(t[70]=b("\xA0\xB7\xA0@",-1)),o("a",{textContent:c(s?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},null,8,mE)])),s?.conference?(l(),d("span",hE,[t[71]||(t[71]=b("\xA0\xB7\xA0",-1)),t[72]||(t[72]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),b(" "+c(s?.conference),1)])):f("v-if",!0),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(s?.size?.storage)),1),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(s?.options?.terms?.length))+" "+c(s?.options?.terms?.length===1?"term":"terms"),1)])])]),o("div",vE,[o("span",yE,[o("span",{class:A(["status-dot",{"status-removed":s?.status=="removed"||s?.status=="expired","status-ready":s?.status=="ready","status-error":s?.status=="error","status-preparing":s?.status=="preparing"}])},null,2),o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,gE)]),s?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(s?.statusMessage)),title:s?.statusMessage},null,8,bE)):f("v-if",!0)]),o("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(s?.pageView||0))},null,8,wE),o("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(s?.anonymizeDate))},null,8,kE),o("div",EE,[o("div",CE,[t[85]||(t[85]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",_E,[o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[74]||(t[74]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit",-1)])],8,SE),o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[75]||(t[75]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View repo",-1)])],8,NE),s?.options?.page&&s?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+s?.repoId+"/")},[...t[76]||(t[76]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" View page",-1)])],8,RE)):f("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.fetchGithubInfo(s),["prevent"])},[...t[77]||(t[77]=[o("i",{class:"fab fa-github"},null,-1),b(" Live GitHub info",-1)])],8,DE),t[83]||(t[83]=o("div",{class:"dropdown-divider"},null,-1)),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updateRepository(s),["prevent"])},[...t[78]||(t[78]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force update",-1)])],8,TE),[[j,s?.status=="ready"||s?.status=="error"]]),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updateRepository(s),["prevent"])},[...t[79]||(t[79]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Enable",-1)])],8,AE),[[j,s?.status=="removed"]]),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.showStatusMessage(s),["prevent"])},[...t[80]||(t[80]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" View status message",-1)])],8,OE),[[j,s?.statusMessage]]),t[84]||(t[84]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.removeCache(s),["prevent"])},[...t[81]||(t[81]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])],8,IE),R(o("a",{class:"dropdown-item text-danger",href:"#",onClick:ie(a=>e.removeRepository(s),["prevent"])},[...t[82]||(t[82]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,PE),[[j,s?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",VE,[...t[86]||(t[86]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No repositories match the current filters.",-1)])])):f("v-if",!0)])])}var qE={class:"container paper-page admin-page"},ME={class:"admin-summary"},UE={class:"summary-total"},$E=["aria-pressed"],LE={class:"count"},FE=["aria-pressed"],zE={class:"count"},HE=["aria-pressed"],BE={class:"count"},jE={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},GE={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},WE={class:"admin-filter-row"},KE={class:"search-wrap"},YE={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},JE={key:0,class:"admin-search-hint"},QE={class:"admin-filter-inline"},XE={class:"form-control form-control-sm"},ZE={class:"admin-filter-inline","aria-label":"Pagination"},xE=["disabled"],eC={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},tC=["disabled"],oC={key:0,class:"admin-filter-row"},nC={class:"admin-active-chips"},sC={class:"key"},rC=["onClick"],iC={key:1,class:"bulk-bar"},aC={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},lC={class:"paper-table-head admin-users-row",role:"row"},dC={role:"columnheader",style:{width:"28px"}},uC=["checked"],cC={role:"columnheader"},pC={role:"columnheader"},fC={role:"cell",style:{width:"28px"}},mC={type:"checkbox","aria-label":"Select user"},hC={class:"cell-anon",role:"cell"},vC=["src"],yC={class:"anon-text"},gC=["textContent","href"],bC={class:"anon-sub"},wC={key:0},kC=["href"],EC={key:1},CC={class:"cell-views num",role:"cell"},_C=["textContent","href"],SC={class:"cell-status",role:"cell"},NC=["textContent"],RC={class:"cell-status",role:"cell"},DC={key:0,class:"type-badge type-repo"},TC={key:1,class:"empty-dash"},AC={class:"cell-actions",role:"cell"},OC={class:"dropdown"},IC={class:"dropdown-menu dropdown-menu-right"},PC=["href"],VC=["href"],qC=["onClick"],MC=["onClick"],UC={key:0,class:"paper-table-empty"},$C={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},LC={style:{"font-size":"12px",color:"var(--ink-muted)"}},FC={key:0,class:"pagination-compact"},zC=["disabled"],HC=["max"],BC=["disabled"],jC={class:"admin-filter-inline"},GC={class:"form-control form-control-sm"};function Vl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",qE,[t[46]||(t[46]=de('<div class="paper-crumbs">Admin \xA0/\xA0 <span class="here">Users</span></div><h1 class="paper-page-title">Users</h1><nav class="admin-nav"><a href="/admin/"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-chart"></use></svg> Overview</a><a href="/admin/repositories"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Repositories</a><a href="/admin/users" class="active"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-users"></use></svg> Users</a><a href="/admin/conferences"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-conference"></use></svg> Conferences</a><a href="/admin/queues"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-list"></use></svg> Queues</a><a href="/admin/errors"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Errors</a></nav>',3)),o("div",ME,[o("span",UE,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.status=="active"}]),onClick:t[0]||(t[0]=s=>{e.query.status=e.query.status=="active"?"":"active",e.query.page=1}),"aria-pressed":e.query?.status=="active"},[t[13]||(t[13]=b("Active ",-1)),o("span",LE,c(e.fmt?.number(e.statusCountFor("active"))),1)],10,$E),o("button",{type:"button",class:A(["summary-pill error",{active:e.query?.status=="banned"}]),onClick:t[1]||(t[1]=s=>{e.query.status=e.query.status=="banned"?"":"banned",e.query.page=1}),"aria-pressed":e.query?.status=="banned"},[t[14]||(t[14]=b("Banned ",-1)),o("span",zE,c(e.fmt?.number(e.statusCountFor("banned"))),1)],10,FE),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.status=="removed"}]),onClick:t[2]||(t[2]=s=>{e.query.status=e.query.status=="removed"?"":"removed",e.query.page=1}),"aria-pressed":e.query?.status=="removed"},[t[15]||(t[15]=b("Removed ",-1)),o("span",BE,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,HE)]),e.fetchError?(l(),d("div",jE,[t[16]||(t[16]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fetchError),1)])):f("v-if",!0),R((l(),d("form",GE,[o("div",WE,[o("div",KE,[R(o("input",YE,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(l(),d("span",JE,"/"))]),o("span",QE,[t[18]||(t[18]=o("label",null,"Role",-1)),R((l(),d("select",XE,[...t[17]||(t[17]=[o("option",{value:""},"Any",-1),o("option",{value:"admin"},"Admin",-1)])])),[[n,{state:e.viewState,set:s=>{e.query.role=s},value:e.query?.role,form:null,options:{}}]])]),t[22]||(t[22]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",onClick:t[3]||(t[3]=s=>e.exportCsv())},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])]),o("span",ZE,[o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[4]||(t[4]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,xE),o("span",eC,c(e.query?.page)+"/"+c(e.totalPage||1),1),o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,tC)])]),e.chips?.length?(l(),d("div",oC,[o("div",nC,[(l(!0),d(W,null,oe(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",sC,c(s?.label),1),o("span",null,c(s?.value),1),o("button",{type:"button",onClick:a=>e.clearFilter(s.key),"aria-label":"Clear filter"},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,rC)]))),128))])])):f("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",iC,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[24]||(t[24]=b(" selected",-1))]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[6]||(t[6]=s=>e.bulkBan())},[...t[25]||(t[25]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=s=>{e.selected={},e.allSelected=!1})},"Clear")])):f("v-if",!0),o("div",aC,[o("div",lC,[o("div",dC,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[8]||(t[8]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,uC)]),o("div",cC,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="username"}]),onClick:t[9]||(t[9]=s=>e.sortBy("username"))},[t[27]||(t[27]=b("User ",-1)),e.sortIcon("username")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[26]||(t[26]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[30]||(t[30]=o("div",{role:"columnheader",class:"num"},"Repos",-1)),o("div",pC,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=s=>e.sortBy("status"))},[t[29]||(t[29]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[31]||(t[31]=o("div",{role:"columnheader"},"Role",-1)),t[32]||(t[32]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(W,null,oe(e.filteredUsers,(s,i)=>(l(),d("div",{class:A(["paper-table-row admin-users-row",{"row-selected":e.selected[s?.username]}]),role:"row"},[o("div",fC,[R(o("input",mC,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.username]=a},value:e.selected[s?.username],form:null,options:{}}]])]),o("div",hC,[s?.photo?(l(),d("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(s?.photo)},null,8,vC)):f("v-if",!0),o("div",yC,[o("a",{class:"repo-name",textContent:c(s?.username),href:e.safeUrl("/admin/users/"+s?.username)},null,8,gC),o("div",bC,[s?.emails?.[0]?.email?(l(),d("span",wC,c(s?.emails?.[0]?.email)+" \xB7 ",1)):f("v-if",!0),o("a",{target:"_blank",href:e.safeUrl("https://github.com/"+s?.username)},[t[33]||(t[33]=o("i",{class:"fab fa-github"},null,-1)),b(" "+c(s?.username),1)],8,kC),s?.dateOfEntry?(l(),d("span",EC,"\xA0\xB7\xA0Joined "+c(e.fmt?.humanTime(s?.dateOfEntry)),1)):f("v-if",!0)])])]),o("div",CC,[t[34]||(t[34]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1)),o("a",{title:"Show this user's repositories",textContent:c(e.fmt?.number(s?.repoCount||0)),href:e.safeUrl("/admin/repositories?owner="+s?.username)},null,8,_C)]),o("div",SC,[o("span",{class:A(["status-dot",{"status-ready":s?.status=="active","status-removed":s?.status=="removed"||s?.status=="banned"}])},null,2),o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,NC)]),o("div",RC,[s?.isAdmin?(l(),d("span",DC,"Admin")):f("v-if",!0),s?.isAdmin?f("v-if",!0):(l(),d("span",TC,"\u2014"))]),o("div",AC,[o("div",OC,[t[40]||(t[40]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",IC,[o("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+s?.username)},[...t[35]||(t[35]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View details",-1)])],8,PC),o("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+s?.username)},[...t[36]||(t[36]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),b(" View repositories",-1)])],8,VC),t[39]||(t[39]=o("div",{class:"dropdown-divider"},null,-1)),R(o("a",{class:"dropdown-item text-danger",href:"#",onClick:ie(a=>e.banUser(s),["prevent"])},[...t[37]||(t[37]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])],8,qC),[[j,s?.status=="active"]]),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.activateUser(s),["prevent"])},[...t[38]||(t[38]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Activate",-1)])],8,MC),[[j,s?.status=="removed"||s?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",UC,[...t[41]||(t[41]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No users match the current filters.",-1)])])):f("v-if",!0)]),o("div",$C,[o("span",LC,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",FC,[o("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[42]||(t[42]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),b(" Previous",-1)])],8,zC),R(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,HC),[[n,{state:e.viewState,set:s=>{e.query.page=s},value:e.query?.page,form:null,options:{}}]]),o("span",null,"of "+c(e.totalPage),1),o("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[43]||(t[43]=[b("Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,BC)])):f("v-if",!0),o("span",jC,[t[45]||(t[45]=o("label",null,"Per page",-1)),R((l(),d("select",GC,[...t[44]||(t[44]=[o("option",{value:"10"},"10",-1),o("option",{value:"25"},"25",-1),o("option",{value:"50"},"50",-1),o("option",{value:"100"},"100",-1)])])),[[n,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var WC={class:"anonymize-landing"},KC={class:"anonymize-landing-inner"},YC={class:"form-group mt-4 mb-2"},JC={class:"source-url-label-row"},QC={key:0,class:"repo-access","aria-label":"GitHub access"},XC={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},ZC=["aria-pressed","disabled"],xC=["aria-pressed","disabled"],e2={key:1,class:"connection-badge"},t2={id:"sourceUrl-landing",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},o2={key:0,class:"draft-status",role:"status"},n2={key:1,class:"text-danger",role:"alert"},s2={key:2,class:"repo-access-details","aria-label":"GitHub access"},r2={class:"repo-access-main"},i2={class:"repo-access-controls"},a2={key:1,class:"connection-link",href:"/connections"},l2={class:"repo-access-note"},d2={key:0},u2={class:"anonymize-workspace"},c2={class:"anonymize-topbar"},p2={class:"anonymize-topbar-inner"},f2={class:"paper-crumbs"},m2={class:"here"},h2={class:"anonymize-topbar-head"},v2={class:"paper-page-title anonymize-topbar-title"},y2={key:0},g2={key:1},b2={key:0,class:"alert alert-info",role:"status"},w2={key:1,class:"alert alert-info",role:"status"},k2={key:1},E2={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},C2=["aria-selected","tabindex"],_2=["aria-selected","tabindex"],S2={key:2,class:"anonymize-preview-empty",id:"workspace-preview",role:"status"},N2={class:"anonymize-split"},R2=["role","aria-labelledby"],D2={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},T2={class:"paper-settings-section"},A2={class:"form-group"},O2={class:"source-url-label-row"},I2={key:0,class:"repo-access","aria-label":"GitHub access"},P2={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},V2=["aria-pressed","disabled"],q2=["aria-pressed","disabled"],M2={key:1,class:"connection-badge"},U2=["disabled"],$2={class:"invalid-feedback"},L2={class:"invalid-feedback"},F2={class:"invalid-feedback"},z2={class:"invalid-feedback"},H2={key:0,class:"repo-access-details","aria-label":"Previous repository configuration"},B2={key:0,class:"form-group"},j2=["value"],G2={key:1},W2={class:"repo-access-controls"},K2=["href"],Y2={key:1,class:"repo-access-details","aria-label":"GitHub access"},J2={class:"repo-access-main"},Q2={class:"repo-access-controls"},X2={key:1,class:"connection-link",href:"/connections"},Z2={class:"repo-access-note"},x2={key:0},e_={key:2,class:"repo-access-details"},t_=["disabled"],o_={key:0,role:"status"},n_={key:3,class:"repo-access-details"},s_={key:0,role:"status"},r_={key:4,class:"form-grid-2"},i_={class:"form-group"},a_={class:"input-group"},l_={class:"form-control",id:"branch",name:"branch"},d_=["textContent","value"],u_={class:"input-group-append"},c_={class:"form-group"},p_=["disabled"],f_={class:"invalid-feedback"},m_={class:"invalid-feedback"},h_={class:"form-check"},v_={class:"form-check-input",type:"checkbox",id:"update",name:"update"},y_={class:"paper-settings-section"},g_={class:"form-group"},b_=["disabled"],w_={class:"form-text text-muted"},k_={class:"invalid-feedback"},E_={class:"form-group"},C_=["disabled"],__={class:"form-text text-muted"},S_={class:"invalid-feedback"},N_={class:"form-group"},R_=["disabled"],D_={class:"form-text text-muted"},T_={class:"invalid-feedback"},A_={class:"form-group"},O_={class:"form-text text-muted"},I_=["href"],P_={class:"invalid-feedback"},V_={class:"form-text text-muted"},q_={class:"paper-settings-section"},M_={class:"form-group"},U_={class:"form-text text-muted"},$_={class:"warning-feedback"},L_={class:"invalid-feedback"},F_={class:"paper-settings-section"},z_={class:"form-check"},H_={class:"form-check-input",type:"checkbox",id:"link",name:"link"},B_={class:"form-check"},j_={class:"form-check-input",type:"checkbox",id:"image",name:"image"},G_={class:"form-check"},W_={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},K_={class:"form-check"},Y_={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},J_={class:"form-check"},Q_=["disabled"],X_={key:0,class:"form-text text-muted"},Z_={key:1,class:"form-text text-muted"},x_={class:"form-check"},eS={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},tS={class:"form-check"},oS={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},nS={class:"form-check"},sS={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},rS={class:"form-check"},iS={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},aS={class:"form-check"},lS={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},dS={class:"form-check"},uS={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},cS={class:"form-check"},pS={class:"form-check-input",type:"checkbox",id:"title",name:"title"},fS={class:"form-check"},mS={class:"form-check-input",type:"checkbox",id:"body",name:"body"},hS={class:"form-check"},vS={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},yS={class:"form-check"},gS={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},bS={class:"form-check"},wS={class:"form-check-input",type:"checkbox",id:"username",name:"username"},kS={class:"form-check"},ES={class:"form-check-input",type:"checkbox",id:"date",name:"date"},CS={class:"form-check"},_S={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},SS={class:"paper-settings-section"},NS={class:"form-grid-2"},RS={class:"form-group"},DS={class:"form-control",id:"expiration",name:"expiration"},TS={class:"form-group"},AS=["min","max"],OS={class:"invalid-feedback"},IS={class:"invalid-feedback"},PS={class:"paper-settings-section"},VS={class:"form-group"},qS={style:{position:"relative"}},MS={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},US={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},$S=["onClick"],LS=["src"],FS=["textContent"],zS=["textContent"],HS={class:"coauthor-list"},BS={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},jS=["src"],GS=["textContent","href"],WS=["onClick"],KS={class:"form-text text-muted"},YS=["textContent"],JS={key:1,class:"draft-status",role:"status"},QS={key:2,class:"draft-status"},XS={key:3,class:"anonymize-review-note"},ZS={class:"anonymize-submit-bar"},xS=["disabled"],eN=["disabled"],tN=["disabled"],oN=["disabled"],nN=["disabled"],sN=["disabled"],rN=["role","aria-labelledby"],iN={class:"anonymize-preview-head"},aN={class:"anonymize-preview-sub"},lN={key:0,class:"anonymize-preview-status",role:"status"},dN={key:1,class:"anonymize-preview-status",role:"status"},uN={key:2,class:"anonymize-preview-status",role:"alert"},cN={key:3,class:"anonymize-preview-status"},pN=["innerHTML"],fN=["role","aria-labelledby"],mN={class:"anonymize-preview-head"},hN={class:"anonymize-preview-sub"},vN={key:0,class:"anonymize-preview-status",role:"status"},yN={key:1,class:"anonymize-preview-status",role:"status"},gN={key:2,class:"anonymize-preview-status",role:"alert"},bN={key:3,class:"anonymize-preview-body"},wN={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},kN={class:"pr-title mb-1"},EN={key:0},CN=["textContent"],_N={key:0},SN={key:1},NN={key:2},RN={class:"pr-comments mt-3"},DN={class:"pr-comment"},TN={class:"pr-comment-head"},AN=["textContent"],ON={key:0,class:"pr-comment-date"},IN={key:3},PN={class:"pr-comments"},VN={class:"pr-comment"},qN={class:"pr-comment-head"},MN={key:0,class:"pr-comment-author"},UN=["textContent"],$N=["textContent"],LN={key:0,class:"pr-comment-body"},FN=["role","aria-labelledby"],zN={class:"anonymize-preview-head"},HN={class:"anonymize-preview-sub"},BN={key:0,class:"anonymize-preview-status",role:"status"},jN={key:1,class:"anonymize-preview-status",role:"status"},GN={key:2,class:"anonymize-preview-status",role:"alert"},WN={key:3,class:"anonymize-preview-body"},KN={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},YN={class:"pr-title mb-1"},JN={key:0},QN=["textContent"],XN={key:0},ZN={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},xN={key:2,class:"paper-tabs",role:"tablist"},eR=["aria-selected","tabindex"],tR=["aria-selected","tabindex"],oR=["textContent"],nR={key:3,class:"anonymize-preview-status"},sR={class:"paper-tab-content"},rR={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},iR=["innerHTML"],aR={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},lR={class:"pr-comments"},dR={class:"pr-comment"},uR={class:"pr-comment-head"},cR={key:0,class:"pr-comment-author"},pR=["textContent"],fR=["textContent"],mR={key:0,class:"pr-comment-body"};function ql(e,t){let n=Ge("gist-file"),r=Ge("markdown"),s=ve("field"),i=ve("form");return l(),d("div",{class:A(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview"}])},[f(" ===== STATE 1: No URL \u2014 centered input ===== "),R(o("div",WC,[o("div",KC,[t[40]||(t[40]=o("div",{class:"paper-crumbs"},[b("My work \xA0/\xA0 "),o("span",{class:"here"},"New anonymization")],-1)),t[41]||(t[41]=o("h1",{class:"paper-page-title"},[b("New "),o("em",null,"anonymization")],-1)),t[42]||(t[42]=o("p",{class:"paper-page-lede"}," Paste a GitHub repository, pull-request, or gist URL. We\u2019ll fetch it, redact the terms you choose in text files, and give you a share link. Images and PDFs are served unchanged when enabled. Review them before sharing. ",-1)),o("div",YC,[o("div",JC,[t[36]||(t[36]=o("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",QC,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",XC,[o("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=a=>e.chooseGitHubConnection("github-app"))},[...t[35]||(t[35]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(),o("span",{class:"sr-only"},"Read-only ",-1),b("GitHub App",-1)])],8,ZC),o("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,xC)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",e2,c((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):f("v-if",!0)])):f("v-if",!0)]),R(o("input",t2,null,512),[[s,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]])]),e.draftRestored?(l(),d("div",o2,[t[37]||(t[37]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[2]||(t[2]=a=>e.discardDraft())},"Discard draft")])):f("v-if",!0),e.sourceUrlError?(l(),d("p",n2,c(e.sourceUrlError),1)):f("v-if",!0),t[43]||(t[43]=o("small",{class:"form-text",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected?(l(),d("aside",s2,[o("div",r2,[o("div",i2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=a=>e.grantGitHubAccess())},[...t[38]||(t[38]=[b("Manage access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",a2,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):f("v-if",!0)])]),o("div",l2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",d2,"Signing in does not grant access to private repositories. Use Manage access to install or configure the GitHub App, select this repository, then return here. Organization access may require administrator approval.")):f("v-if",!0),t[39]||(t[39]=o("span",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Selected content will be published, including content from private repositories.")],-1))])])):f("v-if",!0)])],512),[[j,!e.workspaceOpen&&!e.isUpdate]]),f(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),R(o("div",u2,[o("header",c2,[o("div",p2,[o("div",f2,[t[44]||(t[44]=o("a",{href:"/dashboard"},"My work",-1)),t[45]||(t[45]=b(" \xA0/\xA0 ",-1)),o("span",m2,c(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),o("div",h2,[o("h1",v2,[e.isUpdate?f("v-if",!0):(l(),d("span",y2,[...t[46]||(t[46]=[b("New ",-1),o("em",null,"anonymization",-1)])])),e.isUpdate?(l(),d("span",g2,[...t[47]||(t[47]=[b("Edit ",-1),o("em",null,"anonymization",-1)])])):f("v-if",!0)]),R(o("span",{class:A(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},c(e.detectedType==="repo"?"Repo":e.detectedType==="pr"?"PR":"Gist"),3),[[j,e.detectedType]])])])]),e.detectedType==="gist"&&e.gistAppRequired?(l(),d("aside",b2,[t[48]||(t[48]=o("p",null,"Reconnect your GitHub account to read this gist. Your draft will be restored when you return.",-1)),o("button",{type:"button",class:"btn btn-ink",onClick:t[4]||(t[4]=a=>e.connectGistApp())},"Connect GitHub App to access gists")])):f("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(l(),d("aside",w2,[t[49]||(t[49]=o("p",null,"Connect GitHub OAuth to access gists. Your account and existing anonymizations stay the same, and your draft will be restored when you return.",-1)),t[50]||(t[50]=o("p",null,"GitHub's legacy OAuth connection includes write access to private repositories.",-1)),e.githubConnections?.oauthEnabled?(l(),d("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[5]||(t[5]=a=>e.connectGistOAuth())},"Connect GitHub OAuth to access gists")):(l(),d("p",k2,"GitHub OAuth is currently unavailable. Please try again later."))])):f("v-if",!0),o("nav",E2,[o("button",{id:"workspace-settings-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="settings","aria-controls":"workspace-settings",tabindex:e.mobilePane==="settings"?0:-1,onKeydown:t[6]||(t[6]=a=>e.previewTabKeydown(a)),onClick:t[7]||(t[7]=a=>e.selectMobilePane("settings"))},"Settings",40,C2),o("button",{id:"workspace-preview-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="preview","aria-controls":"workspace-preview",tabindex:e.mobilePane==="preview"?0:-1,onKeydown:t[8]||(t[8]=a=>e.previewTabKeydown(a)),onClick:t[9]||(t[9]=a=>e.selectMobilePane("preview"))},"Reviewer preview",40,_2)]),e.detectedType!=="repo"&&!e.details?(l(),d("div",S2,c(e.sourceLoading?"Loading source\u2026":"Choose an accessible source to see its preview."),1)):f("v-if",!0),o("div",N2,[f(" Form column (left) "),o("div",{id:"workspace-settings",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-settings-tab":null,class:"anonymize-form-col overflow-auto"},[R((l(),d("form",D2,[o("section",T2,[t[65]||(t[65]=o("div",{class:"paper-section-eyebrow"},"Source",-1)),o("div",A2,[o("div",O2,[t[52]||(t[52]=o("label",{class:"paper-field-label",for:"sourceUrl"},"GitHub URL",-1)),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",I2,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",P2,[o("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[10]||(t[10]=a=>e.chooseGitHubConnection("github-app"))},[...t[51]||(t[51]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(),o("span",{class:"sr-only"},"Read-only ",-1),b("GitHub App",-1)])],8,V2),o("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[11]||(t[11]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,q2)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",M2,c((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):f("v-if",!0)])):f("v-if",!0)]),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,U2),[[s,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),R(o("div",$2," Please provide a valid GitHub URL. ",512),[[j,e.anonymize?.sourceUrl?.errors?.github]]),R(o("div",L2," Not accessible. The organization may restrict access. ",512),[[j,e.anonymize?.sourceUrl?.errors?.access]]),R(o("div",F2," Does not exist or is not accessible. ",512),[[j,e.anonymize?.sourceUrl?.errors?.missing]]),R(o("div",z2," Already anonymized. ",512),[[j,e.anonymize?.sourceUrl?.errors?.used]])]),!e.isUpdate&&e.previousConfigurations.length?(l(),d("aside",H2,[t[54]||(t[54]=o("p",{role:"status"},"You have already anonymized this repository. Use the existing configuration to keep its anonymous link and avoid creating another repository.",-1)),e.previousConfigurations.length>1?(l(),d("div",B2,[t[53]||(t[53]=o("label",{class:"paper-field-label",for:"previousConfiguration"},"Previous anonymization",-1)),R(o("select",{id:"previousConfiguration",class:"form-control","onUpdate:modelValue":t[12]||(t[12]=a=>e.previousConfigurationId=a)},[(l(!0),d(W,null,oe(e.previousConfigurations,a=>(l(),d("option",{key:a.repoId,value:a.repoId},c(a.repoId),9,j2))),128))],512),[[To,e.previousConfigurationId]])])):(l(),d("p",G2,c(e.previousConfigurationId),1)),t[55]||(t[55]=o("p",null,"You can review and update its settings before saving.",-1)),o("div",W2,[o("a",{class:"btn btn-ink",href:e.existingConfigurationUrl()},"Use existing configuration",8,K2),o("button",{type:"button",class:"btn btn-link",onClick:t[13]||(t[13]=a=>e.previousConfigurations=[])},"Create a separate anonymization")])])):f("v-if",!0),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected?(l(),d("aside",Y2,[o("div",J2,[o("div",Q2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[14]||(t[14]=a=>e.grantGitHubAccess())},[...t[56]||(t[56]=[b("Manage access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",X2,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):f("v-if",!0)])]),o("div",Z2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",x2,"Signing in does not grant access to private repositories. Use Manage access to install or configure the GitHub App, select this repository, then return here. Organization access may require administrator approval.")):f("v-if",!0),t[57]||(t[57]=o("span",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Selected content will be published, including content from private repositories.")],-1))])])):f("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.accessRepairAllowed&&e.githubConnections?.appEnabled&&e.githubConnection==="github-app"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",e_,[t[58]||(t[58]=o("p",null,"If this repository became private or its App installation changed, repair its access here. This keeps the same anonymous URL and published commit.",-1)),o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.repairingGitHubAccess,onClick:t[15]||(t[15]=a=>e.repairGitHubAccess())},"Repair GitHub access",8,t_),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[16]||(t[16]=a=>e.grantGitHubAccess())},"Manage access"),e.accessRepairMessage?(l(),d("p",o_,c(e.accessRepairMessage),1)):f("v-if",!0)])):f("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",n_,[t[59]||(t[59]=o("p",null,"If you deleted and recreated this repository, reconnect it before choosing a branch.",-1)),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[17]||(t[17]=a=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(l(),d("p",s_,"Source reloaded. Review the branch, commit, and anonymization preview, then save to replace the published snapshot.")):f("v-if",!0)])):f("v-if",!0),e.detectedType==="repo"?(l(),d("div",r_,[o("div",i_,[t[61]||(t[61]=o("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),o("div",a_,[R((l(),d("select",l_,[(l(!0),d(W,null,oe(e.branches,(a,u)=>(l(),d("option",{textContent:c(a?.name),value:a?.name},null,8,d_))),256))])),[[s,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),o("div",u_,[o("button",{class:"btn btn-icon",type:"button",title:"Refresh","data-toggle":"tooltip","data-placement":"bottom",onClick:t[18]||(t[18]=a=>e.getBranches(!0)),"aria-label":"Refresh"},[...t[60]||(t[60]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])])])]),o("div",c_,[t[62]||(t[62]=o("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),R(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.commit?.invalid}]),id:"commit",disabled:e.options.update,name:"commit",pattern:"[a-fA-Z0-9]{6,}",required:""},null,10,p_),[[s,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),R(o("div",f_," The commit SHA is not valid. ",512),[[j,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),R(o("div",m_," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[j,e.anonymize?.commit?.errors?.exists]])])])):f("v-if",!0),R(o("div",h_,[R(o("input",v_,null,512),[[s,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[63]||(t[63]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[64]||(t[64]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))],512),[[j,e.detectedType]])]),R(o("section",y_,[t[76]||(t[76]=o("div",{class:"paper-section-eyebrow"},"Identity",-1)),R(o("div",g_,[t[68]||(t[68]=o("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,b_),[[s,{state:e.viewState,set:a=>{e.repoId=a},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",w_,[t[66]||(t[66]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/r/"+c(e.repoId),1),t[67]||(t[67]=b(".",-1))]),R(o("div",k_,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.repoId?.errors?.format]]),R(o("div",{class:"invalid-feedback"},c(e.repoId)+" is already used.",513),[[j,e.anonymize?.repoId?.errors?.used]])],512),[[j,e.detectedType==="repo"]]),R(o("div",E_,[t[71]||(t[71]=o("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,C_),[[s,{state:e.viewState,set:a=>{e.pullRequestId=a},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",__,[t[69]||(t[69]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/pr/"+c(e.pullRequestId),1),t[70]||(t[70]=b(".",-1))]),R(o("div",S_,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.pullRequestId?.errors?.format]]),R(o("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used.",513),[[j,e.anonymize?.pullRequestId?.errors?.used]])],512),[[j,e.detectedType==="pr"]]),R(o("div",N_,[t[74]||(t[74]=o("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,R_),[[s,{state:e.viewState,set:a=>{e.gistId=a},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",D_,[t[72]||(t[72]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/gist/"+c(e.gistId),1),t[73]||(t[73]=b(".",-1))]),R(o("div",T_,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.gistId?.errors?.format]]),R(o("div",{class:"invalid-feedback"},c(e.gistId)+" is already used.",513),[[j,e.anonymize?.gistId?.errors?.used]])],512),[[j,e.detectedType==="gist"]]),o("div",A_,[t[75]||(t[75]=o("label",{class:"paper-field-label",for:"conference"},[b("Conference "),o("span",{class:"paper-optional"},"(optional)")],-1)),R(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[s,{state:e.viewState,set:a=>{e.conference=a},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),R(o("small",O_,[o("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,I_),b(" expires "+c(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[j,e.conference_data]]),R(o("div",P_,"The conference is not activated.",512),[[j,e.anonymize?.conference?.errors?.activated]]),R(o("small",V_,"Link to a conference to apply its shared defaults.",512),[[j,!e.conference_data]])])],512),[[j,e.detectedType]]),R(o("section",q_,[t[84]||(t[84]=o("div",{class:"paper-section-eyebrow"},"Anonymization",-1)),o("div",M_,[t[83]||(t[83]=o("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),R(o("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"4"},null,2),[[s,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"anonymize",options:{debounce:250}}]]),o("small",U_,[t[77]||(t[77]=b("One term per line (regex allowed). Replaced by ",-1)),o("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[78]||(t[78]=b(", or use ",-1)),t[79]||(t[79]=o("code",null,"term=>replacement",-1)),t[80]||(t[80]=b(" to pick your own (e.g. ",-1)),t[81]||(t[81]=o("code",null,"Anonymous=>ABC",-1)),t[82]||(t[82]=b(").",-1))]),R(o("div",$_,"Regex characters detected. Escape them if unintentional.",512),[[j,e.termsRegexWarning]]),R(o("div",L_,"Terms are in an invalid format.",512),[[j,e.anonymize?.terms?.errors?.format]])])],512),[[j,e.detectedType]]),R(o("section",F_,[t[105]||(t[105]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),R(o("div",null,[o("div",z_,[R(o("input",H_,null,512),[[s,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[85]||(t[85]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),o("div",B_,[R(o("input",j_,null,512),[[s,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[86]||(t[86]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[87]||(t[87]=o("small",{class:"form-text text-muted"},"Images are served unchanged and may contain names or affiliations.",-1))]),o("div",G_,[R(o("input",W_,null,512),[[s,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[88]||(t[88]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[89]||(t[89]=o("small",{class:"form-text text-muted"},[b("PDF contents and metadata are served unchanged. "),o("a",{href:"/faq#formats"},"About supported formats")],-1))]),o("div",K_,[R(o("input",Y_,null,512),[[s,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[90]||(t[90]=o("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),o("div",J_,[R(o("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,Q_),[[s,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[91]||(t[91]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?f("v-if",!0):(l(),d("small",X_,c(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),1)),e.details?.hasPage&&e.details?.pageSource?.branch&&e.source?.branch&&e.details.pageSource.branch!==e.source.branch?(l(),d("small",Z_,c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):f("v-if",!0)])],512),[[j,e.detectedType==="repo"]]),R(o("div",null,[o("div",x_,[R(o("input",eS,null,512),[[s,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[92]||(t[92]=o("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),o("div",tS,[R(o("input",oS,null,512),[[s,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[93]||(t[93]=o("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),o("div",nS,[R(o("input",sS,null,512),[[s,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[94]||(t[94]=o("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),o("div",rS,[R(o("input",iS,null,512),[[s,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[95]||(t[95]=o("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),o("div",aS,[R(o("input",lS,null,512),[[s,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[96]||(t[96]=o("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),o("div",dS,[R(o("input",uS,null,512),[[s,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[97]||(t[97]=o("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[j,e.detectedType==="gist"]]),R(o("div",null,[o("div",cS,[R(o("input",pS,null,512),[[s,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[98]||(t[98]=o("label",{class:"form-check-label",for:"title"},"PR title",-1))]),o("div",fS,[R(o("input",mS,null,512),[[s,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[99]||(t[99]=o("label",{class:"form-check-label",for:"body"},"PR body",-1))]),o("div",hS,[R(o("input",vS,null,512),[[s,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[100]||(t[100]=o("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),o("div",yS,[R(o("input",gS,null,512),[[s,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[101]||(t[101]=o("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),o("div",bS,[R(o("input",wS,null,512),[[s,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[102]||(t[102]=o("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),o("div",kS,[R(o("input",ES,null,512),[[s,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[103]||(t[103]=o("label",{class:"form-check-label",for:"date"},"Dates",-1))]),o("div",CS,[R(o("input",_S,null,512),[[s,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[104]||(t[104]=o("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[j,e.detectedType==="pr"]])],512),[[j,e.detectedType]]),R(o("section",SS,[t[109]||(t[109]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",NS,[o("div",RS,[t[107]||(t[107]=o("label",{class:"paper-field-label",for:"expiration"},"Strategy",-1)),R((l(),d("select",DS,[...t[106]||(t[106]=[o("option",{value:"redirect"},"Redirect to GitHub when expired",-1),o("option",{value:"remove",selected:""},"Remove when expired",-1)])])),[[s,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"anonymize",options:{}}]])]),o("div",TS,[t[108]||(t[108]=o("label",{class:"paper-field-label",for:"expirationDate"},"Expiration date",-1)),R(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,AS),[[s,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),R(o("div",OS,"Pick a date in the future.",512),[[j,e.anonymize?.expirationDate?.errors?.min]]),R(o("div",{class:"invalid-feedback"},"Pick a date on or before "+c(e.fmt?.date(e.maxExpirationDate))+".",513),[[j,e.anonymize?.expirationDate?.errors?.max]]),R(o("div",IS,"Enter a valid expiration date.",512),[[j,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])]),R(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the content will be removed.",513),[[j,e.options?.expirationMode=="remove"&&e.options?.expirationDate]]),R(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", visitors will be redirected to GitHub.",513),[[j,e.options?.expirationMode=="redirect"&&e.options?.expirationDate]])],512),[[j,e.detectedType]]),R(o("section",PS,[t[113]||(t[113]=o("div",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[114]||(t[114]=o("p",{class:"form-text text-muted",style:{"margin-bottom":"8px"}}," Co-authors can view and edit these settings. They cannot delete the anonymization or manage co-authors. ",-1)),R(o("div",VS,[t[110]||(t[110]=o("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),o("div",qS,[R(o("input",MS,null,512),[[s,{state:e.viewState,set:a=>{e.coauthorSearch=a},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),R(o("div",US,[(l(!0),d(W,null,oe(e.coauthorResults,(a,u)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:ie(m=>e.addCoauthor(a,m),["prevent"])},[o("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(a?.photo)},null,8,LS),o("span",{textContent:c(a?.username)},null,8,FS)],8,$S))),256))],512),[[j,e.coauthorResults?.length>0]])]),R(o("small",{class:"form-text text-muted",textContent:c(e.coauthorError)},null,8,zS),[[j,e.coauthorError]])],512),[[j,e.role==="owner"||e.role==="admin"]]),o("div",HS,[(l(!0),d(W,null,oe(e.coauthors,(a,u)=>(l(),d("div",BS,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,jS)):f("v-if",!0),o("a",{target:"_blank",textContent:c(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,GS),t[112]||(t[112]=o("span",{class:"type-badge type-coauthor"},"Co-author",-1)),R(o("button",{type:"button",class:"btn btn-sm btn-icon",style:{"margin-left":"auto"},title:"Remove co-author",onClick:m=>e.removeCoauthor(a),"aria-label":"Remove co-author"},[...t[111]||(t[111]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,WS),[[j,e.role==="owner"||e.role==="admin"]])]))),256)),R(o("div",KS," No co-authors yet. ",512),[[j,!e.coauthors||e.coauthors?.length===0]])])],512),[[j,e.isUpdate&&e.detectedType==="repo"]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,YS)):f("v-if",!0),e.draftRestored?(l(),d("div",JS,[t[115]||(t[115]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[19]||(t[19]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",QS,[b(c(e.draftSaved?"Draft saved in this tab for 30 minutes.":"Unsaved changes. Keep this tab open until you save.")+" ",1),o("button",{type:"button",class:"draft-discard",onClick:t[20]||(t[20]=a=>e.discardDraft())},c(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):f("v-if",!0),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(l(),d("p",XS,"Review enabled images and PDFs before sharing. Their contents are not anonymized.")):f("v-if",!0),o("button",{type:"button",class:"btn btn-outline-ink mobile-preview-jump",onClick:t[21]||(t[21]=a=>e.selectMobilePane("preview"))},[...t[116]||(t[116]=[b("Review preview ",-1),o("span",{"aria-hidden":"true"},"\u2192",-1)])]),R(o("div",ZS,[e.detectedType==="repo"&&!e.isUpdate?(l(),d("button",{key:0,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[22]||(t[22]=ie(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[117]||(t[117]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Repository ",-1)])],8,xS)):f("v-if",!0),e.detectedType==="repo"&&e.isUpdate?(l(),d("button",{key:1,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[23]||(t[23]=ie(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[118]||(t[118]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Repository ",-1)])],8,eN)):f("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(l(),d("button",{key:2,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[24]||(t[24]=ie(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[119]||(t[119]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Pull Request ",-1)])],8,tN)):f("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(l(),d("button",{key:3,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[25]||(t[25]=ie(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[120]||(t[120]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Pull Request ",-1)])],8,oN)):f("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(l(),d("button",{key:4,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[26]||(t[26]=ie(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[121]||(t[121]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Gist ",-1)])],8,nN)):f("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(l(),d("button",{key:5,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[27]||(t[27]=ie(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[122]||(t[122]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Gist ",-1)])],8,sN)):f("v-if",!0)],512),[[j,e.detectedType]])])),[[i,e.viewState]])],8,R2),f(" Preview column (right) "),e.detectedType==="repo"?(l(),d("div",{key:0,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",iN,[t[123]||(t[123]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",aN,c(e.previewStatus==="ready"?"README with redactions applied":"README preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",lN,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",dN,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",uN,[t[124]||(t[124]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[28]||(t[28]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),!e.sourceLoading&&!e.readme&&e.previewStatus==="idle"?(l(),d("div",cN,"No README is available to preview. Review the published files before sharing.")):f("v-if",!0),e.previewStatus==="ready"?(l(),d("div",{key:4,class:"anonymize-preview-body markdown-body body",innerHTML:e.sanitize(e.html_readme)},null,8,pN)):f("v-if",!0)],8,rN)):f("v-if",!0),e.detectedType==="gist"&&e.details?(l(),d("div",{key:1,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",mN,[t[125]||(t[125]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",hN,c(e.previewStatus==="ready"?"Gist with redactions applied":"Gist preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",vN,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",yN,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",gN,[t[126]||(t[126]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[29]||(t[29]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),e.previewStatus==="ready"?(l(),d("div",bN,[o("div",wN,[o("h2",kN,[e.options?.title?(l(),d("span",EN,c(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):f("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},c(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,CN)):f("v-if",!0)]),e.options?.origin?(l(),d("small",_N,"Gist ID: "+c(e.details?.source?.gistId),1)):f("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",SN,"By @"+c(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):f("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",NN,[o("ul",RN,[(l(!0),d(W,null,oe(e.previewGistFiles,(a,u)=>(l(),d("li",DN,[o("div",TN,[o("strong",{textContent:c(a?.filename)},null,8,AN),a?.language?(l(),d("span",ON,c(a?.language),1)):f("v-if",!0)]),Ce(n,{file:a,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):f("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(l(),d("div",IN,[t[129]||(t[129]=o("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),o("ul",PN,[(l(!0),d(W,null,oe(e.details?.gist?.comments,(a,u)=>(l(),d("li",VN,[o("div",qN,[e.options?.username?(l(),d("span",MN,[t[127]||(t[127]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[128]||(t[128]=b(" @",-1)),o("span",{textContent:c(e.anonymizeGistContent(a?.author))},null,8,UN)])):f("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,$N)):f("v-if",!0)]),e.options?.body?(l(),d("div",LN,[Ce(r,{content:e.anonymizeGistContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])):f("v-if",!0)],8,fN)):f("v-if",!0),e.detectedType==="pr"&&e.details?(l(),d("div",{key:2,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",zN,[t[130]||(t[130]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",HN,c(e.previewStatus==="ready"?"Pull request with redactions applied":"Pull request preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",BN,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",jN,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",GN,[t[131]||(t[131]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[30]||(t[30]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),e.previewStatus==="ready"?(l(),d("div",WN,[o("div",KN,[o("h2",YN,[e.options?.title?(l(),d("span",JN,c(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):f("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,QN)):f("v-if",!0)]),e.options?.origin?(l(),d("small",XN,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(l(),d("div",ZN,[Ce(r,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),e.options?.diff||e.options?.comments?(l(),d("nav",xN,[e.options?.diff?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.prTabState?.active=="diff"}]),type:"button",role:"tab",id:"preview-pr-diff-tab","aria-selected":e.prTabState?.active==="diff","aria-controls":"preview-pr-diff-panel",tabindex:e.prTabState?.active==="diff"?0:-1,onKeydown:t[31]||(t[31]=a=>e.previewTabKeydown(a)),onClick:t[32]||(t[32]=a=>e.prTabState.active="diff")},[...t[132]||(t[132]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),b(" Diff ",-1)])],42,eR)):f("v-if",!0),e.options?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.prTabState?.active=="comments"}]),type:"button",role:"tab",id:"preview-pr-comments-tab","aria-selected":e.prTabState?.active==="comments","aria-controls":"preview-pr-comments-panel",tabindex:e.prTabState?.active==="comments"?0:-1,onKeydown:t[33]||(t[33]=a=>e.previewTabKeydown(a)),onClick:t[34]||(t[34]=a=>e.prTabState.active="comments")},[t[133]||(t[133]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,oR)],42,tR)):f("v-if",!0)])):f("v-if",!0),!e.options?.diff&&!e.options?.comments?(l(),d("div",nR,"Diff and comments are hidden by your display settings.")):f("v-if",!0),o("div",sR,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",rR,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,iR)])):f("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",aR,[o("ul",lR,[(l(!0),d(W,null,oe(e.details?.pullRequest?.comments,(a,u)=>(l(),d("li",dR,[o("div",uR,[e.options?.username?(l(),d("span",cR,[t[134]||(t[134]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[135]||(t[135]=b(" @",-1)),o("span",{textContent:c(e.anonymizePrContent(a?.author))},null,8,pR)])):f("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,fR)):f("v-if",!0)]),e.options?.body?(l(),d("div",mR,[Ce(r,{content:e.anonymizePrContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])])):f("v-if",!0)],8,FN)):f("v-if",!0)])],512),[[j,e.workspaceOpen||e.isUpdate]])],2)}var hR={class:"container-fluid h-100 anonymize-page"},vR={class:"row h-100 flex-column flex-md-row"},yR={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},gR={class:"form-group"},bR={class:"form-group"},wR={class:"form-check"},kR={class:"form-check-input",type:"checkbox",id:"update",name:"update"},ER={class:"form-group"},CR={class:"form-text text-muted"},_R=["href"],SR={class:"invalid-feedback"},NR={class:"form-text text-muted"},RR={class:"form-group"},DR={id:"idHelp",class:"form-text text-muted"},TR={class:"invalid-feedback"},AR={class:"form-group"},OR={class:"invalid-feedback"},IR={class:"form-group"},PR={class:"form-control",id:"expiration",name:"expiration"},VR={class:"form-group",id:"expiration-date-form"},qR={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},MR={class:"accordion mb-3",id:"options"},UR={class:"card"},$R={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},LR={class:"card-body"},FR={class:"form-group mb-0"},zR={class:"form-check"},HR={class:"form-check-input",type:"checkbox",id:"link",name:"link"},BR={class:"form-check"},jR={class:"form-check-input",type:"checkbox",id:"image",name:"image"},GR={class:"form-check"},WR={class:"form-check-input",type:"checkbox",id:"date",name:"date"},KR={class:"form-check"},YR={class:"form-check-input",type:"checkbox",id:"username",name:"username"},JR={class:"form-check"},QR={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},XR={class:"form-check"},ZR={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},xR={class:"form-check"},eD={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},tD={class:"form-check"},oD={class:"form-check-input",type:"checkbox",id:"title",name:"title"},nD={class:"form-check"},sD={class:"form-check-input",type:"checkbox",id:"body",name:"body"},rD=["textContent"],iD={class:"anonymize-submit-bar"},aD={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},lD={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},dD={class:"pr-title mb-1"},uD={key:0},cD=["textContent"],pD={key:0},fD={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},mD={class:"nav nav-tabs",id:"myTab",role:"tablist"},hD={key:0,class:"nav-item",role:"presentation"},vD={key:1,class:"nav-item",role:"presentation"},yD=["textContent"],gD={class:"tab-content",id:"pills-tabContent"},bD={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},wD={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},kD={style:{"overflow-x":"auto"}},ED=["innerHTML"],CD={key:0,class:"pr-comments list-group"},_D={class:"pr-comment list-group-item"},SD={class:"d-flex w-100 justify-content-between flex-wrap"},ND={key:0,class:"mb-1"},RD=["textContent"],DD={class:"mb-1"};function Ml(e,t){let n=Ge("markdown"),r=ve("field"),s=ve("form");return l(),d("div",hR,[o("div",vR,[o("div",yR,[o("div",{class:A(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[R((l(),d("form",{class:A(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=de('<div class="paper-crumbs">Anonymize \xA0/\xA0 <span class="here">Pull request</span></div><h1 class="paper-page-title">Anonymize a <em>pull request</em></h1><p class="paper-page-lede"> Fill in the details \u2014 it only takes a minute. </p><div class="paper-section-eyebrow anonymize-section-title"><i class="fab fa-github"></i> Source </div>',4)),f(" pullRequestUrl "),o("div",gR,[t[2]||(t[2]=o("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestUrl=i},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),R(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[j,e.anonymize?.pullRequestUrl?.errors?.access]]),R(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[j,e.anonymize?.pullRequestUrl?.errors?.missing]]),R(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is already anonymized ",513),[[j,e.anonymize?.pullRequestUrl?.errors?.used]])]),R(o("div",null,[o("div",bR,[o("div",wR,[R(o("input",kR,null,512),[[r,{state:e.viewState,set:i=>{e.options.update=i},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=o("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=o("small",{id:"updateHelp",class:"form-text text-muted"},"Automatically update the anonymized pull request with the latest updates. The pull request is updated once per day maximum.",-1))])]),t[26]||(t[26]=o("div",{class:"paper-section-eyebrow anonymize-section-title"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})]),b(" Conference ID ")],-1)),f(" Conference "),o("div",ER,[t[5]||(t[5]=o("label",{for:"conference"},[b("Conference ID "),o("span",{class:"text-muted"},"(Optional)")],-1)),R(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[r,{state:e.viewState,set:i=>{e.conference=i},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),R(o("small",CR,[o("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,_R),b(" will expire on "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[j,e.conference_data]]),R(o("div",SR," The conference is not activated. ",512),[[j,e.anonymize?.conference?.errors?.activated]]),R(o("small",NR," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[j,!e.conference_data]])]),t[27]||(t[27]=o("div",{class:"paper-section-eyebrow anonymize-section-title"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})]),b(" Anonymization Options ")],-1)),f(" Pull Request ID "),o("div",RR,[t[6]||(t[6]=o("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestId=i},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",DR,"Id used in the url: https://anonymous.4open.science/r/"+c(e.pullRequestId),1),R(o("div",TR," Repository id can only contain letters and numbers ",512),[[j,e.anonymize?.pullRequestId?.errors?.format]]),R(o("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used ",513),[[j,e.anonymize?.pullRequestId?.errors?.used]])]),f(" Terms "),o("div",AR,[t[7]||(t[7]=o("label",{for:"terms"},"Terms to anonymize",-1)),R(o("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[r,{state:e.viewState,set:i=>{e.terms=i},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=o("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),R(o("div",OR," Terms are in an invalid format ",512),[[j,e.anonymize?.terms?.errors?.format]])]),o("div",IR,[t[10]||(t[10]=o("label",{for:"expiration"},"Expiration strategy",-1)),R((l(),d("select",PR,[...t[9]||(t[9]=[o("option",{value:"never",selected:""},"Never expire",-1),o("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),o("option",{value:"remove"},"Remove when expired",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.expirationMode=i},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=o("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),R(o("div",VR,[t[12]||(t[12]=o("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),R(o("input",qR,null,512),[[r,{state:e.viewState,set:i=>{e.options.expirationDate=i},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),R(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the repository will be removed and the visitor will not be able to see the content of the repository.",513),[[j,e.options?.expirationMode=="remove"]]),R(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+c(e.pullRequestUrl)+".",513),[[j,e.options?.expirationMode=="redirect"]])],512),[[j,e.options?.expirationMode!="never"]]),o("div",MR,[o("div",UR,[t[25]||(t[25]=de('<div class="card-header" id="headingOne"><h2 class="mb-0"><button class="btn btn-block text-left" type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"><svg class="ui-icon mr-1" aria-hidden="true"><use href="#project-icon-filter"></use></svg> Advanced options </button></h2></div>',1)),o("div",$R,[o("div",LR,[o("div",FR,[o("div",zR,[R(o("input",HR,null,512),[[r,{state:e.viewState,set:i=>{e.options.link=i},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=o("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),o("div",BR,[R(o("input",jR,null,512),[[r,{state:e.viewState,set:i=>{e.options.image=i},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),o("div",GR,[R(o("input",WR,null,512),[[r,{state:e.viewState,set:i=>{e.options.date=i},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=o("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=o("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),o("div",KR,[R(o("input",YR,null,512),[[r,{state:e.viewState,set:i=>{e.options.username=i},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=o("label",{class:"form-check-label",for:"username"},"Display username",-1))]),o("div",JR,[R(o("input",QR,null,512),[[r,{state:e.viewState,set:i=>{e.options.comments=i},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=o("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),o("div",XR,[R(o("input",ZR,null,512),[[r,{state:e.viewState,set:i=>{e.options.diff=i},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=o("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),o("div",xR,[R(o("input",eD,null,512),[[r,{state:e.viewState,set:i=>{e.options.origin=i},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=o("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),o("div",tD,[R(o("input",oD,null,512),[[r,{state:e.viewState,set:i=>{e.options.title=i},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=o("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),o("div",nD,[R(o("input",sD,null,512),[[r,{state:e.viewState,set:i=>{e.options.body=i},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=o("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[j,e.pullRequestUrl]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,rD)):f("v-if",!0),R(o("div",iD,[e.isUpdate?f("v-if",!0):(l(),d("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=ie(i=>e.submitForm(i,()=>{e.anonymizePullRequest(i)}),["prevent"]))},[...t[28]||(t[28]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize ",-1)])])),e.isUpdate?(l(),d("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=ie(i=>e.submitForm(i,()=>{e.updatePullRequest(i)}),["prevent"]))},[...t[29]||(t[29]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update ",-1)])])):f("v-if",!0)],512),[[j,e.pullRequestUrl]])],2)),[[s,e.viewState]])],2)]),e.details?(l(),d("div",aD,[o("div",lD,[o("h2",dD,[e.options?.title?(l(),d("span",uD,c(e.anonymize(e.details?.pullRequest?.title)),1)):f("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,cD)):f("v-if",!0)]),e.options?.origin?(l(),d("small",pD,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(l(),d("div",fD,[Ce(n,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),o("ul",mD,[e.options?.diff?(l(),d("li",hD,[...t[31]||(t[31]=[o("button",{class:"nav-link active",id:"pills-diff-tab","data-toggle":"pill","data-target":"#pills-diff",type:"button",role:"tab","aria-controls":"pills-diff","aria-selected":"true"}," Diff ",-1)])])):f("v-if",!0),e.options?.comments?(l(),d("li",vD,[o("button",{class:A(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[o("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,yD)],2)])):f("v-if",!0)]),o("div",gD,[o("div",bD,[e.options?.diff?(l(),d("div",wD,[o("pre",kD,[o("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,ED)])])):f("v-if",!0)]),o("div",{class:A(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(l(),d("ul",CD,[(l(!0),d(W,null,oe(e.details?.pullRequest?.comments,(i,a)=>(l(),d("li",_D,[o("div",SD,[e.options?.username?(l(),d("h5",ND," @"+c(e.anonymize(i?.author)),1)):f("v-if",!0),e.options?.date?(l(),d("small",{key:1,textContent:c(e.fmt?.date(i?.updatedDate))},null,8,RD)):f("v-if",!0)]),o("p",DD,[e.options?.body?(l(),Lt(n,{key:0,class:"pr-comment-body",content:e.anonymize(i?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):f("v-if",!0)])]))),256))])):f("v-if",!0)],2)])])):f("v-if",!0)])])}var TD={class:"container paper-page claim-page"},AD={class:"paper-settings-main claim-form"},OD={class:"form-group"},ID={class:"invalid-feedback"},PD={class:"form-group"};function Ul(e,t){let n=ve("field"),r=ve("form");return l(),d("div",TD,[t[6]||(t[6]=de('<div class="paper-crumbs"><a href="/dashboard">My work</a> \xA0/\xA0 <span class="here">Claim</span></div><h1 class="paper-page-title">Claim an <em>anonymization</em></h1><p class="paper-page-lede"> Take ownership of an existing anonymized repository so it appears on your dashboard. </p>',3)),o("div",AD,[t[5]||(t[5]=o("p",{class:"paper-section-copy"},"Use this when an anonymization was created by a co-author or from another account. You must have access to the GitHub repository it was made from.",-1)),R((l(),d("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=ie(s=>e.submitForm(s,()=>{e.claim()}),["prevent"]))},[o("div",OD,[t[1]||(t[1]=o("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",placeholder:"https://github.com/owner/repository",required:""},null,2),[[n,{state:e.viewState,set:s=>{e.repoUrl=s},value:e.repoUrl,form:"claimForm",options:{}}]]),R(o("div",ID," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[j,e.claimForm?.repoUrl?.errors?.not_found]])]),o("div",PD,[t[2]||(t[2]=o("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",placeholder:"e.g. my-paper-7F2A","aria-describedby":"idHelp",required:""},null,2),[[n,{state:e.viewState,set:s=>{e.repoId=s},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=o("small",{id:"idHelp",class:"form-text text-muted"},[b("The ID is the last part of the anonymized URL: "),o("code",null,"anonymous.4open.science/r/<ID>"),b(".")],-1))]),t[4]||(t[4]=o("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[r,e.viewState]])])])}var VD={class:"container page paper-page conference-page"},qD={class:"paper-crumbs"},MD={class:"here"},UD={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},$D=["textContent"],LD={key:0,class:"paper-page-lede"},FD=["textContent","href"],zD={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},HD=["textContent"],BD=["href"],jD={class:"paper-meta-rule"},GD=["textContent"],WD=["textContent"],KD={key:0},YD={class:"search-wrap"},JD={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},QD={class:"dashboard-filter-controls"},XD={class:"dropdown"},ZD={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},xD={class:"filter-btn-value"},eT={class:"dropdown-menu","aria-labelledby":"dropdownSort"},tT={class:"form-check dropdown-item"},oT={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},nT={class:"form-check dropdown-item"},sT={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},rT={class:"form-check dropdown-item"},iT={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},aT={class:"form-check dropdown-item"},lT={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},dT={class:"dropdown"},uT={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},cT={key:0,class:"filter-btn-value"},pT={key:1,class:"filter-btn-value"},fT={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},mT={class:"form-check dropdown-item"},hT=["id"],vT=["for"],yT={class:"dashboard-meta"},gT={class:"dashboard-count"},bT={key:0},wT={key:0},kT={key:1},ET={key:1},CT={key:0,class:"filter-chip"},_T=["onClick","aria-label"],ST={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},NT={class:"cell-anon",role:"cell"},RT={class:"anon-text"},DT=["textContent","href"],TT={class:"anon-sub"},AT={class:"anon-source"},OT=["textContent","href"],IT={key:0},PT=["textContent","href"],VT={key:1},qT=["href"],MT={class:"cell-status",role:"cell"},UT={class:"status-line"},$T=["textContent"],LT={key:0,class:"status-sub"},FT={class:"cell-views num",role:"cell"},zT=["textContent"],HT={class:"cell-expires",role:"cell"},BT={key:0,class:"expires-never"},jT=["textContent"],GT={key:2,class:"expires-past"},WT={key:0},KT={key:3,class:"empty-dash","aria-label":"Not applicable"},YT={class:"cell-actions",role:"cell"},JT={class:"dropdown"},QT=["aria-label"],XT={class:"dropdown-menu dropdown-menu-right"},ZT=["href"],xT=["href"],eA={key:0,class:"paper-table-empty"},tA={key:0},oA={key:1},nA={key:2,class:"paper-table-empty-actions"};function $l(e,t){let n=ve("field"),r=ve("form");return l(),d("div",VD,[o("div",null,[o("div",qD,[t[2]||(t[2]=o("a",{href:"/dashboard"},"My work",-1)),t[3]||(t[3]=b(" \xA0/\xA0 ",-1)),t[4]||(t[4]=o("a",{href:"/conferences"},"Conferences",-1)),t[5]||(t[5]=b(" \xA0/\xA0 ",-1)),o("span",MD,c(e.conference?.conferenceID),1)]),o("div",UD,[o("div",null,[o("h1",{class:"paper-page-title",textContent:c(e.conference?.name)},null,8,$D),e.conference?.url?(l(),d("p",LD,[o("a",{target:"_blank",rel:"noopener",textContent:c(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,FD)])):f("v-if",!0)]),o("div",zD,[o("span",{class:A(["status-pill",{"status-pill-ready":e.conference?.status=="ready","status-pill-removed":e.conference?.status=="removed"||e.conference?.status=="expired"}])},[o("span",{class:A(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),o("span",{textContent:c(e.fmt?.statusLabel(e.conference?.status))},null,8,HD)],2),o("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[6]||(t[6]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit conference",-1)])],8,BD)])]),o("div",jD,[o("span",null,[t[7]||(t[7]=b("ID ",-1)),o("b",{class:"commit-hash",textContent:c(e.conference?.conferenceID)},null,8,GD)]),o("span",null,[t[8]||(t[8]=b("Review window ",-1)),o("b",null,c(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),o("span",null,[t[9]||(t[9]=b("Repositories ",-1)),o("b",null,c(e.fmt?.number(e.conference?.repositories?.length)),1)]),o("span",null,[t[10]||(t[10]=b("Plan ",-1)),o("b",{textContent:c(e.conference?.plan?.name||e.conference?.plan?.planID||"Free")},null,8,WD)]),e.conference?.price?(l(),d("span",KD,[t[11]||(t[11]=b("Cost so far ",-1)),o("b",null,c(e.fmt?.number(e.conference?.price,2))+" \u20AC",1)])):f("v-if",!0)]),t[32]||(t[32]=o("div",{class:"paper-section-eyebrow"},"Repositories",-1)),R((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=ie(s=>e.submitForm(s,()=>{s.preventDefault()}),["prevent"]))},[o("div",YD,[R(o("input",JD,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),o("div",QD,[o("div",XD,[o("button",ZD,[t[12]||(t[12]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",xD,c({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),o("div",eT,[t[17]||(t[17]=o("h6",{class:"dropdown-header"},"Order by",-1)),o("div",tT,[R(o("input",oT,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[13]||(t[13]=o("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),o("div",nT,[R(o("input",sT,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[14]||(t[14]=o("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),o("div",rT,[R(o("input",iT,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),o("div",aT,[R(o("input",lT,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[16]||(t[16]=o("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])]),o("div",dT,[o("button",uT,[t[18]||(t[18]=o("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",cT,"All")):f("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?f("v-if",!0):(l(),d("span",pT,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),o("div",fT,[t[19]||(t[19]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(W,null,oe(e.statusLabels,(s,i,a)=>(l(),d("div",mT,[R(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,hT),[[n,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+i},c(s),9,vT)]))),256))])])])],32)),[[r,e.viewState]]),o("div",yT,[o("span",gT,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",bT,[b(c(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",wT,"y")):f("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",kT,"ies")):f("v-if",!0)])):f("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",ET,c(e.fmt?.number(e.filteredRepositories?.length))+" of "+c(e.fmt?.number(e.conference?.repositories?.length))+" shown",1)):f("v-if",!0)]),(l(!0),d(W,null,oe(e.filters?.status,(s,i,a)=>(l(),d(W,null,[s===!1?(l(),d("span",CT,[b(" Hiding "+c(e.statusLabels[i])+" ",1),o("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusLabels[i]+" again"},"\xD7",8,_T)])):f("v-if",!0)],64))),256))]),o("div",ST,[t[31]||(t[31]=o("div",{class:"paper-table-head",role:"row"},[o("div",{role:"columnheader"},"Repository"),o("div",{role:"columnheader"},"Status"),o("div",{role:"columnheader",class:"num"},"Views"),o("div",{role:"columnheader"},"Expires"),o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(W,null,oe(e.filteredRepositories,(s,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error"}]),role:"row",key:s?.repoId},[o("div",NT,[t[22]||(t[22]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",RT,[o("a",{class:"repo-name",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId+"/")},null,8,DT),o("div",TT,[o("span",AT,[o("a",{target:"_blank",rel:"noopener",textContent:c(s?.source?.fullName),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/")},null,8,OT),s?.options?.update&&s?.source?.branch?(l(),d("span",IT,[t[20]||(t[20]=b(" \xB7 ",-1)),o("a",{target:"_blank",rel:"noopener",textContent:c(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,PT)])):f("v-if",!0),s?.source?.commit?(l(),d("span",VT,[t[21]||(t[21]=b(" \xB7 ",-1)),o("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},"@"+c(s?.source?.commit?.substring(0,8)),9,qT)])):f("v-if",!0)])])])]),o("div",MT,[o("div",UT,[o("span",{class:A(["status-dot","status-"+(s?.status=="error"?"error":s?.status=="ready"?"ready":s?.status=="expired"||s?.status=="removed"?s?.status:"progress")]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(s?.status))},null,8,$T)]),s?.anonymizeDate?(l(),d("div",LT,"anonymized "+c(e.fmt?.humanTime(s?.anonymizeDate)),1)):f("v-if",!0)]),o("div",FT,[t[23]||(t[23]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),t[24]||(t[24]=b()),o("span",{textContent:c(e.fmt?.number(s?.pageView))},null,8,zT)]),o("div",HT,[t[26]||(t[26]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),s?.status=="ready"&&(s?.options?.expirationMode==="never"||!s?.options?.expirationDate)?(l(),d("span",BT,"Never")):f("v-if",!0),s?.status=="ready"&&s?.options?.expirationMode!=="never"&&s?.options?.expirationDate?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(s?.options?.expirationDate))},null,8,jT)):f("v-if",!0),s?.status=="expired"?(l(),d("span",GT,[t[25]||(t[25]=b("Expired",-1)),s?.options?.expirationDate?(l(),d("span",WT,c(e.fmt?.humanTime(s?.options?.expirationDate)),1)):f("v-if",!0)])):f("v-if",!0),s?.status!="ready"&&s?.status!="expired"?(l(),d("span",KT,"\u2014")):f("v-if",!0)]),o("div",YT,[o("div",JT,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+s?.repoId},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,QT),o("div",XT,[o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View ",-1)])],8,ZT),o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit ",-1)])],8,xT)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",eA,[t[30]||(t[30]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.conference?.repositories?.length?f("v-if",!0):(l(),d("span",tA,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",oA,"Nothing matches the current filters.")):f("v-if",!0),e.conference?.repositories?.length?(l(),d("div",nA,[o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=s=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")])):f("v-if",!0)])):f("v-if",!0)])])])}var sA={class:"container page paper-page conferences-page"},rA={class:"row"},iA={class:"w-100"},aA={class:"search-wrap"},lA={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},dA={class:"dashboard-filter-controls"},uA={class:"dropdown"},cA={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},pA={class:"filter-btn-value"},fA={class:"dropdown-menu","aria-labelledby":"dropdownSort"},mA={class:"form-check dropdown-item"},hA={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},vA={class:"form-check dropdown-item"},yA={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},gA={class:"form-check dropdown-item"},bA={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},wA={class:"dropdown"},kA={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},EA={key:0,class:"filter-btn-value"},CA={key:1,class:"filter-btn-value"},_A={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},SA={class:"form-check dropdown-item"},NA=["id"],RA=["for"],DA={class:"dashboard-meta"},TA={class:"dashboard-count"},AA={key:0},OA={key:0},IA={key:1},PA={key:0,class:"filter-chip"},VA=["onClick","aria-label"],qA={key:0,class:"conference-feedback",role:"alert"},MA={key:1,class:"conference-feedback",role:"status"},UA={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},$A={class:"cell-anon",role:"cell"},LA={class:"anon-text"},FA=["textContent","href"],zA={class:"anon-sub"},HA={class:"anon-source"},BA=["textContent"],jA={key:0},GA=["textContent","href"],WA={class:"cell-status",role:"cell"},KA={class:"status-line"},YA=["textContent"],JA={class:"cell-views num",role:"cell"},QA=["textContent"],XA={class:"cell-expires",role:"cell"},ZA={key:0},xA={key:1,class:"empty-dash","aria-label":"No review window"},eO={class:"cell-actions",role:"cell"},tO={class:"dropdown"},oO=["disabled","aria-label"],nO={class:"dropdown-menu dropdown-menu-right"},sO=["href"],rO=["href"],iO={key:0},aO=["onClick"],lO={key:0,class:"paper-table-empty"},dO={key:0},uO={key:1},cO={class:"paper-table-empty-actions"},pO={key:1,href:"/conference/new",class:"btn btn-ink"};function Ll(e,t){let n=ve("field"),r=ve("form");return l(),d("div",sA,[o("div",rA,[o("div",iA,[t[10]||(t[10]=de('<div class="paper-crumbs"><a href="/dashboard">My work</a> \xA0/\xA0 <span class="here">Conferences</span></div><div class="d-flex align-items-end justify-content-between flex-wrap" style="gap:12px;"><div><h1 class="paper-page-title">Your <em>conferences</em></h1><p class="paper-page-lede">Group anonymizations by venue, give chairs a shared dashboard, and set one expiry for every submission.</p></div><a href="/conference/new" class="btn btn-ink"><svg class="ui-icon mr-1" aria-hidden="true"><use href="#project-icon-plus"></use></svg> New conference </a></div>',2)),R((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter conferences","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=ie(s=>e.submitForm(s,()=>{s.preventDefault()}),["prevent"]))},[o("div",aA,[R(o("input",lA,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),o("div",dA,[o("div",uA,[o("button",cA,[t[3]||(t[3]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",pA,c({name:"Name",conferenceID:"ID","-status":"Status"}[e.orderBy]||"Custom"),1)]),o("div",fA,[t[7]||(t[7]=o("h6",{class:"dropdown-header"},"Order by",-1)),o("div",mA,[R(o("input",hA,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=o("label",{class:"form-check-label",for:"sortName"},"Name",-1))]),o("div",vA,[R(o("input",yA,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[5]||(t[5]=o("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),o("div",gA,[R(o("input",bA,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[6]||(t[6]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))])])]),o("div",wA,[o("button",kA,[t[8]||(t[8]=o("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",EA,"All")):f("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?f("v-if",!0):(l(),d("span",CA,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),o("div",_A,[t[9]||(t[9]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(W,null,oe(e.statusLabels,(s,i,a)=>(l(),d("div",SA,[R(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,NA),[[n,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+i},c(s),9,RA)]))),256))])])])],32)),[[r,e.viewState]]),o("div",DA,[o("span",TA,[e.filteredConferences?.length===e.conferences?.length?(l(),d("span",AA,[b(c(e.fmt?.number(e.conferences?.length))+" conference",1),e.conferences?.length!==1?(l(),d("span",OA,"s")):f("v-if",!0)])):f("v-if",!0),e.filteredConferences?.length!==e.conferences?.length?(l(),d("span",IA,c(e.fmt?.number(e.filteredConferences?.length))+" of "+c(e.fmt?.number(e.conferences?.length))+" shown",1)):f("v-if",!0)]),(l(!0),d(W,null,oe(e.filters?.status,(s,i,a)=>(l(),d(W,null,[s===!1?(l(),d("span",PA,[b(" Hiding "+c(e.statusLabels[i])+" ",1),o("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusLabels[i]+" again"},"\xD7",8,VA)])):f("v-if",!0)],64))),256))])]),e.error?(l(),d("div",qA,[o("span",null,c(e.error),1),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=s=>e.loadConferences())},"Retry")])):f("v-if",!0),e.loading?(l(),d("div",MA,"Loading conferences\u2026")):f("v-if",!0),o("div",UA,[t[24]||(t[24]=o("div",{class:"paper-table-head",role:"row"},[o("div",{role:"columnheader"},"Conference"),o("div",{role:"columnheader"},"Status"),o("div",{role:"columnheader",class:"num"},"Repos"),o("div",{role:"columnheader"},"Review window"),o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(W,null,oe(e.filteredConferences,(s,i)=>(l(),d("div",{class:A(["paper-table-row row-clickable",{"repo-inactive":s?.status=="expired"||s?.status=="removed"}]),role:"row",key:s?.conferenceID},[o("div",$A,[t[13]||(t[13]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[o("use",{href:"#project-icon-conference"})],-1)),o("div",LA,[o("a",{class:"repo-name",textContent:c(s?.name),href:e.safeUrl("/conference/"+s?.conferenceID)},null,8,FA),o("div",zA,[o("span",HA,[t[12]||(t[12]=b("ID ",-1)),o("span",{class:"commit-hash",textContent:c(s?.conferenceID)},null,8,BA),s?.url?(l(),d("span",jA,[t[11]||(t[11]=b(" \xB7 ",-1)),o("a",{target:"_blank",rel:"noopener",textContent:c(e.fmt?.limitTo(s?.url,60)),href:e.safeUrl(s?.url)},null,8,GA)])):f("v-if",!0)])])])]),o("div",WA,[o("div",KA,[o("span",{class:A(["status-dot","status-"+s?.status]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(s?.status))},null,8,YA)])]),o("div",JA,[t[14]||(t[14]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1)),t[15]||(t[15]=b()),o("span",{textContent:c(e.fmt?.number(s?.nbRepositories||0))},null,8,QA)]),o("div",XA,[t[16]||(t[16]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),s?.startDate?(l(),d("span",ZA,c(e.fmt?.date(s?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(s?.endDate,"mediumDate")),1)):f("v-if",!0),s?.startDate?f("v-if",!0):(l(),d("span",xA,"\u2014"))]),o("div",eO,[o("div",tO,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:s?.removing,"aria-label":"Actions for "+s?.name},[...t[17]||(t[17]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,oO),o("div",nO,[o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/")},[...t[18]||(t[18]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View ",-1)])],8,sO),o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/edit")},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit ",-1)])],8,rO),s?.status!="removed"?(l(),d("div",iO,[t[21]||(t[21]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:a=>e.removeConference(s)},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove ",-1)])],8,aO)])):f("v-if",!0)])])])],2))),128)),!e.loading&&!e.error&&e.filteredConferences?.length==0?(l(),d("div",lO,[t[23]||(t[23]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.conferences?.length==0?(l(),d("span",dO,"You have not created a conference yet.")):f("v-if",!0),e.conferences?.length>0?(l(),d("span",uO,"Nothing matches the current filters.")):f("v-if",!0),o("div",cO,[e.conferences?.length>0?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=s=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")):f("v-if",!0),e.conferences?.length==0?(l(),d("a",pO,[...t[22]||(t[22]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})],-1),b(" New conference",-1)])])):f("v-if",!0)])])):f("v-if",!0)])])])}var fO={class:"container page dashboard-page paper-page"},mO={class:"row"},hO={class:"w-100"},vO={class:"dashboard-heading"},yO=["open"],gO=["aria-expanded"],bO=["stroke-dasharray"],wO={key:1,d:"M7 12c0-4 4-4 5 0s5 4 5 0-4-4-5 0-5 4-5 0",class:"quota-ring-unlimited"},kO={key:0,class:"quota-summary-value"},EO={key:0},CO={class:"quota-panel",id:"dashboard-usage"},_O={class:"quota-panel-heading"},SO={key:1,class:"quota-loading",role:"status"},NO={class:"search-wrap"},RO={type:"search",id:"search",class:"form-control","aria-label":"Search anonymizations",placeholder:"Search projects, IDs, or conferences\u2026",autocomplete:"off"},DO=["aria-expanded"],TO={class:"btn-group",role:"group","aria-label":"Type"},AO=["aria-pressed"],OO=["aria-pressed"],IO=["aria-pressed"],PO=["aria-pressed"],VO={class:"dropdown"},qO={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},MO={class:"filter-btn-value"},UO={class:"sr-only"},$O={class:"dropdown-menu","aria-labelledby":"dropdownSort"},LO={class:"form-check dropdown-item"},FO=["onClick","checked","id"],zO=["for"],HO={class:"dropdown"},BO={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},jO={key:0,class:"filter-btn-value"},GO={key:1,class:"filter-btn-value"},WO={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},KO={class:"form-check dropdown-item"},YO=["id"],JO=["for"],QO={key:0,class:"dashboard-meta"},XO={class:"dashboard-view-tabs",role:"group","aria-label":"Project view"},ZO=["aria-pressed"],xO=["aria-pressed","aria-label"],eI={class:"dashboard-count"},tI={key:0},oI={key:0},nI={key:1},sI={class:"dashboard-active-filters"},rI=["onClick","aria-label","title"],iI=["aria-busy"],aI={class:"paper-table-head",role:"row"},lI=["aria-sort"],dI=["aria-sort"],uI=["aria-sort"],cI=["aria-sort"],pI={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},fI=["onClick"],mI={class:"cell-anon",role:"cell"},hI=["aria-label","title"],vI={class:"project-type-svg","aria-hidden":"true"},yI=["href"],gI={class:"anon-text"},bI={class:"anon-title"},wI=["title","textContent","href"],kI=["textContent"],EI={key:2,class:"type-badge type-coauthor",title:"You are a co-author on this anonymization"},CI={class:"anon-sub"},_I=["title"],SI=["title"],NI=["title"],RI=["textContent"],DI={class:"dashboard-row-meta",role:"presentation"},TI={class:"cell-status",role:"cell"},AI={class:"status-line"},OI=["textContent"],II=["textContent","title"],PI=["title"],VI=["href"],qI=["onClick"],MI={key:4,class:"status-sub status-sub-date"},UI=["aria-label"],$I={class:"cell-expires",role:"cell"},LI={key:0,class:"expires-never"},FI=["textContent"],zI={key:2,class:"expires-past"},HI={key:3,class:"expires-past"},BI={key:4,class:"empty-dash","aria-label":"Not applicable"},jI={class:"cell-actions",role:"cell"},GI=["onClick","disabled","title","aria-label"],WI=["onClick","data-project-actions","aria-controls","aria-expanded"],KI={key:2,class:"dropdown"},YI=["data-project-actions","aria-label"],JI={class:"dropdown-menu dropdown-menu-right"},QI=["onClick","aria-controls","aria-expanded"],XI=["href"],ZI=["href"],xI=["onClick","disabled"],e4=["href"],t4=["onClick"],o4=["onClick"],n4=["onClick"],s4={key:5},r4=["onClick"],i4={key:1,class:"project-details-row",role:"row"},a4=["id","onKeydown"],l4={class:"project-details-heading"},d4=["onClick"],u4={class:"project-details-list"},c4={key:0},p4={key:1},f4={key:0},m4={key:2},h4={key:0,class:"project-progress-help"},v4=["href"],y4=["onSubmit"],g4=["for"],b4=["id"],w4={class:"project-name-controls"},k4=["id","aria-describedby","disabled"],E4=["disabled"],C4={key:0,class:"project-name-error",role:"alert"},_4={key:1,role:"status"},S4={key:0,class:"paper-table-empty"},N4={key:0},R4={key:1},D4={class:"paper-table-empty-actions"},T4={key:1,href:"/anonymize",class:"btn btn-ink"},A4={key:0,class:"dashboard-pagination"},O4={key:0,role:"alert"},I4=["disabled"];function Fl(e,t){let n=Ge("quota-usage"),r=ve("field"),s=ve("form");return l(),d("div",fO,[o("div",mO,[o("div",hO,[o("div",vO,[o("div",null,[t[27]||(t[27]=o("h1",{class:"paper-page-title"},"Projects",-1)),t[28]||(t[28]=o("p",{class:"paper-page-lede"},"Manage your anonymous links.",-1)),o("details",{class:"dashboard-quota",open:e.quotaExpanded,onToggle:t[1]||(t[1]=i=>e.quotaExpanded=i.target.open),onKeydown:t[2]||(t[2]=Ao(ie(i=>e.closeQuota(),["prevent","stop"]),["esc"]))},[o("summary",{"aria-controls":"dashboard-usage","aria-expanded":e.quotaExpanded},[(l(),d("svg",{class:A(["quota-summary-ring",e.quota?"quota-"+e.quota.repository.level:""]),viewBox:"0 0 24 24","aria-hidden":"true"},[t[21]||(t[21]=o("circle",{class:"quota-ring-track",cx:"12",cy:"12",r:"9"},null,-1)),e.quota&&!e.quota.repository.unlimited?(l(),d("circle",{key:0,class:"quota-ring-fill",cx:"12",cy:"12",r:"9",pathLength:"100","stroke-dasharray":e.quota.repository.percent+" 100"},null,8,bO)):f("v-if",!0),e.quota?.repository.unlimited?(l(),d("path",wO)):f("v-if",!0)],2)),t[23]||(t[23]=o("span",{class:"quota-summary-label"},"Usage",-1)),e.quota?(l(),d("span",kO,[b(c(e.fmt.number(e.quota.repository.used)),1),e.quota.repository.unlimited?f("v-if",!0):(l(),d("span",EO," / "+c(e.fmt.number(e.quota.repository.total)),1)),t[22]||(t[22]=b(" repos",-1))])):f("v-if",!0),t[24]||(t[24]=o("svg",{class:"project-type-svg quota-summary-chevron","aria-hidden":"true"},[o("use",{href:"#project-icon-chevron"})],-1))],8,gO),o("div",CO,[o("div",_O,[t[26]||(t[26]=o("h2",null,"Account usage",-1)),o("button",{type:"button",class:"project-close","aria-label":"Close usage",onClick:t[0]||(t[0]=i=>e.closeQuota())},[...t[25]||(t[25]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])])]),e.quota?(l(),Lt(n,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(l(),d("p",SO,"Loading usage\u2026"))])],40,yO)]),t[29]||(t[29]=de('<div class="dashboard-heading-actions"><a href="/anonymize" class="btn btn-ink" aria-label="New anonymization"><svg class="project-type-svg" aria-hidden="true"><use href="#project-icon-plus"></use></svg><span class="dashboard-new-label">New link</span><span class="dashboard-new-mobile" aria-hidden="true">New</span></a></div>',1))]),f(" Search + filters "),R((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=ie(i=>e.submitForm(i,()=>{i.preventDefault()}),["prevent"]))},[o("div",NO,[R(o("input",RO,null,512),[[r,{state:e.viewState,set:i=>{e.search=i},value:e.search,form:null,options:{}}]])]),o("button",{class:"btn dashboard-filters-toggle",type:"button","aria-expanded":e.filtersExpanded,"aria-controls":"dashboard-filter-controls",onClick:t[3]||(t[3]=i=>e.filtersExpanded=!e.filtersExpanded)},[...t[30]||(t[30]=[b("Filters",-1),o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})],-1)])],8,DO),o("div",{id:"dashboard-filter-controls",class:A(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[o("div",TO,[o("button",{type:"button",class:A(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[4]||(t[4]=i=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,AO),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="repo"}]),title:"Repositories",onClick:t[5]||(t[5]=i=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},[...t[31]||(t[31]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),o("span",{class:"type-filter-label"},"Repos",-1)])],10,OO),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="pr"}]),title:"Pull requests",onClick:t[6]||(t[6]=i=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},[...t[32]||(t[32]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-pr"})],-1),o("span",{class:"type-filter-label"},"PRs",-1)])],10,IO),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="gist"}]),title:"Gists",onClick:t[7]||(t[7]=i=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},[...t[33]||(t[33]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-gist"})],-1),o("span",{class:"type-filter-label"},"Gists",-1)])],10,PO)]),o("div",{id:"dashboard-extra-filters",class:A(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[o("div",VO,[o("button",qO,[t[35]||(t[35]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",MO,c(e.sortLabel()),1),(l(),d("svg",{class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[34]||(t[34]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)),o("span",UO,c(e.sortDesc()?"descending":"ascending"),1)]),o("div",$O,[t[36]||(t[36]=o("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(W,null,oe(e.sortFields,(i,a,u)=>(l(),d("div",LO,[o("input",{class:"form-check-input",type:"radio",name:"sort",onClick:m=>e.setSort(a,i.defaultDesc),checked:e.isSortedBy(a),id:"sort-"+u},null,8,FO),o("label",{class:"form-check-label",for:"sort-"+u},c(i?.label),9,zO)]))),256)),t[37]||(t[37]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item",onClick:t[8]||(t[8]=i=>e.toggleSortDirection())},c(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])]),o("div",HO,[o("button",BO,[t[38]||(t[38]=o("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?f("v-if",!0):(l(),d("span",jO,"All")),e.hasHiddenStatus()?(l(),d("span",GO,c(e.hiddenStatusCount())+" hidden",1)):f("v-if",!0)]),o("div",WO,[t[39]||(t[39]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(W,null,oe(e.statusKeyLabels,(i,a,u)=>(l(),d("div",KO,[R(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+a},null,8,YO),[[r,{state:e.viewState,set:m=>{e.filters.status[a]=m},value:e.filters?.status[a],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+a},c(i),9,JO)]))),256))])])],2)],2)],32)),[[s,e.viewState]]),f(" Result count + active filter chips "),e.loading?f("v-if",!0):(l(),d("div",QO,[o("div",XO,[o("button",{type:"button","aria-pressed":e.projectView==="all",onClick:t[10]||(t[10]=i=>e.setProjectView("all")),"aria-label":"All projects"},[...t[40]||(t[40]=[o("span",{class:"dashboard-view-long"},"All projects",-1),o("span",{class:"dashboard-view-short","aria-hidden":"true"},"All",-1)])],8,ZO),o("button",{type:"button","aria-pressed":e.projectView==="attention",onClick:t[11]||(t[11]=i=>e.setProjectView("attention")),"aria-label":"Needs attention "+e.attentionCount()},[t[41]||(t[41]=o("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[42]||(t[42]=o("span",null,"attention",-1)),t[43]||(t[43]=b()),o("span",{class:A(["attention-count",{"has-attention":e.attentionCount()>0}])},c(e.attentionCount()),3)],8,xO)]),o("span",eI,[(e.dashboardTotals?.filtered??e.filteredItems?.length)===(e.dashboardTotals?.total??e.items?.length)?(l(),d("span",tI,[b(c(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" project",1),(e.dashboardTotals?.total??e.items?.length)!==1?(l(),d("span",oI,"s")):f("v-if",!0)])):(l(),d("span",nI,c(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" of "+c(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" shown",1))]),o("div",sI,[(l(!0),d(W,null,oe(e.filters?.status,(i,a,u)=>(l(),d(W,null,[i===!1?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:m=>e.filters.status[a]=!0,"aria-label":"Show "+e.statusKeyLabels[a]+" again",title:"Show "+e.statusKeyLabels[a]+" again"},[b(c(e.statusKeyLabels[a])+" hidden",1),t[44]||(t[44]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1))],8,rI)):f("v-if",!0)],64))),256)),e.typeFilter!=="all"?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:t[12]||(t[12]=i=>e.typeFilter="all"),"aria-label":"Show all project types"},[b(c(e.typeFilter==="repo"?"Repositories":e.typeFilter==="pr"?"Pull requests":"Gists"),1),t[45]||(t[45]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1))])):f("v-if",!0),e.showClearFilters()?(l(),d("button",{key:1,type:"button",class:"btn-link-inline",onClick:t[13]||(t[13]=i=>e.clearFilters())},"Clear filters")):f("v-if",!0)])]))]),f(" Table "),o("div",{class:"paper-table paper-table-dashboard",role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[o("div",aI,[o("div",{role:"columnheader","aria-sort":e.isSortedBy("_label")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("_label")}]),onClick:t[14]||(t[14]=i=>e.setSort("_label"))},[t[47]||(t[47]=b(" Project ",-1)),e.isSortedBy("_label")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[46]||(t[46]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,lI),o("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("status")}]),onClick:t[15]||(t[15]=i=>e.setSort("status"))},[t[49]||(t[49]=b(" Status ",-1)),e.isSortedBy("status")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[48]||(t[48]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,dI),o("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[16]||(t[16]=i=>e.setSort("pageView"))},[t[51]||(t[51]=b(" Views ",-1)),e.isSortedBy("pageView")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[50]||(t[50]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,uI),o("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[17]||(t[17]=i=>e.setSort("options.expirationDate"))},[t[53]||(t[53]=b(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[52]||(t[52]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,cI),t[54]||(t[54]=o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")],-1))]),f(" Loading skeleton: keeps the layout stable while the three lists load "),(l(),d(W,null,oe([1,2,3,4],(i,a)=>(l(),d(W,null,[e.loading?(l(),d("div",pI,[...t[55]||(t[55]=[o("div",{class:"cell-anon",role:"cell"},[o("span",{class:"skeleton skeleton-badge"}),o("div",{class:"anon-text"},[o("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),o("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),o("div",{class:"cell-status",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),o("div",{class:"cell-views num",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),o("div",{class:"cell-expires",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),o("div",{class:"cell-actions",role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),(l(!0),d(W,null,oe(e.filteredItems,(i,a)=>(l(),d(W,{key:i?._type+":"+(i?._id||a)},[e.loading?f("v-if",!0):(l(),d("div",{key:0,class:A(["paper-table-row",{"repo-inactive":i?._statusKey=="expired"||i?._statusKey=="removed","repo-error":i?.status=="error","row-clickable":!!i?._viewUrl}]),role:"row",onClick:u=>e.openItem(i,u)},[o("div",mI,[o("span",{class:"project-type-icon",role:"img","aria-label":i?._type==="repo"?"Repository":i?._type==="pr"?"Pull request":"Gist",title:i?._type==="repo"?"Repository":i?._type==="pr"?"Pull request":"Gist"},[(l(),d("svg",vI,[o("use",{href:"#project-type-"+i._type},null,8,yI)]))],8,hI),o("div",gI,[o("div",bI,[i?._viewUrl?(l(),d("a",{key:0,class:"repo-name",title:i._label,textContent:c(i?._label),href:e.safeUrl(i?._viewUrl)},null,8,wI)):f("v-if",!0),i?._viewUrl?f("v-if",!0):(l(),d("span",{key:1,class:"repo-name repo-name-static",textContent:c(i?._label)},null,8,kI)),i?.role==="coauthor"?(l(),d("span",EI,"Co-author")):f("v-if",!0)]),o("div",CI,[i?._id?(l(),d("code",{key:0,class:"anonymous-id",title:i._id},c(i._id),9,_I)):f("v-if",!0),i?._type==="repo"&&i?.source?.commit?(l(),d("span",{key:1,class:"commit-hash",title:i.source.commit},c(i.source.commit.substring(0,8)),9,SI)):f("v-if",!0),i?.conference?(l(),d("span",{key:2,class:"cell-conf conf-tag",title:i?.conference},[t[56]||(t[56]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),t[57]||(t[57]=b()),o("span",{textContent:c(i?.conference)},null,8,RI)],8,NI)):f("v-if",!0)])])]),o("div",DI,[o("div",TI,[o("div",AI,[o("span",{class:A(["status-dot","status-"+i?._statusKey]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(i?.status))},null,8,OI)]),i?.status=="error"&&i?.statusMessage?(l(),d("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(i?.statusMessage)),title:i?.statusMessage},null,8,II)):f("v-if",!0),i?._stale?(l(),d("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(i?.anonymizeDate||i?.lastView)}," Last activity "+c(e.fmt?.humanTime(i?.anonymizeDate||i?.lastView))+" \xB7 may be stuck ",9,PI)):f("v-if",!0),i.status==="error"&&i._editUrl?(l(),d("a",{key:2,class:"project-attention-action",href:e.safeUrl(i._editUrl)},"Fix source",8,VI)):f("v-if",!0),i._stale||i._broken?(l(),d("button",{key:3,type:"button",class:"project-attention-action",onClick:ie(u=>e.showProjectDetails(i),["stop"])},c(i._broken?"Review details":"Check progress"),9,qI)):f("v-if",!0),i?.status!="error"&&!i?._stale&&i?.anonymizeDate?(l(),d("div",MI," anonymized "+c(e.fmt?.humanTime(i?.anonymizeDate)),1)):f("v-if",!0)]),o("div",{class:"cell-views num",role:"cell","aria-label":e.fmt.number(i.pageView)+" views"},[t[58]||(t[58]=o("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),o("span",null,c(e.fmt.number(i.pageView)),1)],8,UI),o("div",$I,[t[59]||(t[59]=o("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),i?._expiry?.kind==="never"?(l(),d("span",LI,"Never")):f("v-if",!0),i?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(i?._expiry?.date))},null,8,FI)):f("v-if",!0),i?._expiry?.kind==="expired"&&i?._expiry?.date?(l(),d("span",zI,"Expired "+c(e.fmt?.humanTime(i?._expiry?.date)),1)):f("v-if",!0),i?._expiry?.kind==="expired"&&!i?._expiry?.date?(l(),d("span",HI,"Expired")):f("v-if",!0),i?._expiry?.kind==="none"?(l(),d("span",BI,"\u2014")):f("v-if",!0)])]),o("div",jI,[i._viewUrl?(l(),d("button",{key:0,type:"button",class:"copy-link-inline",onClick:ie(u=>e.copyLink(i),["stop"]),disabled:!!e.copyingId,title:"Copy anonymous link for "+i._label,"aria-label":"Copy anonymous link for "+i._label},[...t[60]||(t[60]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-copy"})],-1)])],8,GI)):f("v-if",!0),i._broken?(l(),d("button",{key:1,type:"button",class:"project-details-button",onClick:ie(u=>e.showProjectDetails(i),["stop"]),"data-project-actions":encodeURIComponent(i._type+":"+i._id),"aria-controls":e.projectDetailsId(i),"aria-expanded":e.selectedProject===i},"Details",8,WI)):f("v-if",!0),i?._broken?f("v-if",!0):(l(),d("div",KI,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","data-project-actions":encodeURIComponent(i._type+":"+i._id),"aria-label":"Actions for "+i?._name},[...t[61]||(t[61]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,YI),o("div",JI,[o("button",{type:"button",class:"dropdown-item",onClick:u=>e.showProjectDetails(i),"aria-controls":e.projectDetailsId(i),"aria-expanded":e.selectedProject===i},"Project details & name",8,QI),o("a",{class:"dropdown-item",href:e.safeUrl(i?._viewUrl)}," View ",8,XI),i?._type==="repo"&&i?.options?.page&&i?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+i?.repoId+"/")}," View page ",8,ZI)):f("v-if",!0),i?._viewUrl?(l(),d("button",{key:1,type:"button",class:"dropdown-item",onClick:u=>e.copyLink(i),disabled:!!e.copyingId}," Copy anonymous link ",8,xI)):f("v-if",!0),o("a",{class:"dropdown-item",href:e.safeUrl(i?._editUrl)}," Edit ",8,e4),i?.status=="ready"||i?.status=="error"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Force update ",8,t4)):f("v-if",!0),i?.status=="removed"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Enable ",8,o4)):f("v-if",!0),i?.status=="expired"?(l(),d("button",{key:4,type:"button",class:"dropdown-item",onClick:u=>e.extendItem(i)}," Extend 6 months ",8,n4)):f("v-if",!0),(i?.status=="ready"||i?.status=="expired"||i?.status=="error")&&i?.role!=="coauthor"?(l(),d("div",s4,[t[62]||(t[62]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:u=>e.removeItem(i)}," Remove ",8,r4)])):f("v-if",!0)])]))])],10,fI)),!e.loading&&e.selectedProject===i?(l(),d("div",i4,[o("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(i),tabindex:"-1",onKeydown:Ao(ie(u=>e.closeProjectDetails(i),["stop"]),["esc"])},[o("div",l4,[t[64]||(t[64]=o("h2",null,"Project details",-1)),o("button",{type:"button",class:"project-close",onClick:u=>e.closeProjectDetails(i),"aria-label":"Close project details"},[...t[63]||(t[63]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,d4)]),o("dl",u4,[o("div",null,[t[65]||(t[65]=o("dt",null,"Source",-1)),o("dd",null,c(i._source||"Not available"),1)]),o("div",null,[t[66]||(t[66]=o("dt",null,"Anonymous ID",-1)),o("dd",null,[o("code",null,c(i._id||"Missing identifier"),1)])]),i.source?.commit?(l(),d("div",c4,[t[67]||(t[67]=o("dt",null,"Commit",-1)),o("dd",null,[o("code",null,c(i.source.commit),1)])])):f("v-if",!0),i.conference?(l(),d("div",p4,[t[68]||(t[68]=o("dt",null,"Conference",-1)),o("dd",null,c(i.conference),1)])):f("v-if",!0),o("div",null,[t[69]||(t[69]=o("dt",null,"Status",-1)),o("dd",null,[b(c(e.fmt.statusLabel(i.status)),1),i.statusMessage?(l(),d("span",f4," \xB7 "+c(e.fmt.statusMsg(i.statusMessage)),1)):f("v-if",!0)])]),i.anonymizeDate?(l(),d("div",m4,[t[70]||(t[70]=o("dt",null,"Last anonymized",-1)),o("dd",null,c(e.fmt.humanTime(i.anonymizeDate)),1)])):f("v-if",!0)]),i._stale?(l(),d("p",h4,"This download has not progressed recently. Check the source access and selected branch before retrying.")):f("v-if",!0),i._editUrl?(l(),d("a",{key:1,class:"project-attention-action",href:e.safeUrl(i._editUrl)},c(e.needsAttention(i)?"Check source settings":"Edit anonymization settings"),9,v4)):f("v-if",!0),i._id?(l(),d("form",{key:2,class:"project-name-form",onSubmit:ie(u=>e.saveProjectName(i),["prevent"])},[o("label",{for:"project-name-"+i._type+"-"+i._id},"Project name",8,g4),o("p",{id:"project-name-help-"+i._type+"-"+i._id},"Only you see this name. Leave it blank to use the default.",8,b4),o("div",w4,[R(o("input",{class:"form-control",type:"text",id:"project-name-"+i._type+"-"+i._id,"aria-describedby":"project-name-help-"+i._type+"-"+i._id,maxlength:"100","onUpdate:modelValue":t[18]||(t[18]=u=>e.projectName=u),disabled:e.nameSaving},null,8,k4),[[zt,e.projectName]]),o("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},c(e.nameSaving?"Saving\u2026":"Save name"),9,E4)]),e.nameError?(l(),d("p",C4,c(e.nameError),1)):f("v-if",!0),e.nameMessage?(l(),d("p",_4,c(e.nameMessage),1)):f("v-if",!0)],40,y4)):f("v-if",!0)],40,a4)])):f("v-if",!0)],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",S4,[t[72]||(t[72]=o("svg",{class:"project-type-svg project-empty-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.hasProjects()?f("v-if",!0):(l(),d("span",N4,"You have no anonymizations yet.")),e.hasProjects()?(l(),d("span",R4,"Nothing matches the current filters.")):f("v-if",!0),o("div",D4,[e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[19]||(t[19]=i=>e.clearFilters())},"Clear filters")):f("v-if",!0),e.hasProjects()?f("v-if",!0):(l(),d("a",T4,[...t[71]||(t[71]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})],-1),b(" New anonymization",-1)])]))])])):f("v-if",!0)],8,iI)]),e.dashboardCursor||e.dashboardError?(l(),d("div",A4,[e.dashboardError?(l(),d("p",O4,c(e.dashboardError),1)):f("v-if",!0),e.dashboardCursor?(l(),d("button",{key:1,type:"button",class:"btn",onClick:t[20]||(t[20]=i=>e.loadMoreProjects()),disabled:e.loadingMore},c(e.loadingMore?"Loading\u2026":"Load more projects"),9,I4)):f("v-if",!0)])):f("v-if",!0)])}var P4={class:"explorer-page"},V4=["aria-label"],q4={class:"ui-icon","aria-hidden":"true"},M4=["href"],U4=["textContent"],$4={class:"leftCol-head"},L4={class:"leftCol-search"},F4={class:"tree-search-box"},z4=["href"],H4={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},B4={class:"leftCol-project-header"},j4=["textContent","title"],G4={class:"project-file-count"},W4=["title"],K4={class:"leftCol-body"},Y4={key:0,class:"paper-inline-warning",role:"alert"},J4={key:1,class:"paper-inline-warning",role:"alert"},Q4={class:"leftCol-foot"},X4=["title"],Z4=["title"],x4=["title"],e3={key:2,class:"last-update",title:"Older repositories have no recorded publication date. The source commit date does not establish when files became available here."},t3={class:"explorer-main"},o3={class:"status-bar"},n3={class:"breadcrumb paths","aria-label":"Path"},s3=["textContent"],r3={class:"status-bar-actions"},i3=["href"],a3={class:"d-none d-md-inline"},l3={class:"ui-icon","aria-hidden":"true"},d3=["href"],u3={class:"d-none d-md-inline"},c3=["href"],p3=["href"],f3=["href"],m3=["href"],h3={class:"explorer-content"};function zl(e,t){let n=Ge("tree"),r=Ge("partial-view"),s=ve("field");return l(),d("div",P4,[R(o("button",{class:"sidebar-toggle",onClick:t[0]||(t[0]=i=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[(l(),d("svg",q4,[o("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,M4)])),o("span",{textContent:c(e.sidebarCollapsed?"Files":"Close")},null,8,U4)],8,V4),[[j,e.files?.length]]),R(o("div",{class:A(["leftCol",{collapsed:e.sidebarCollapsed}])},[o("div",$4,[t[7]||(t[7]=o("span",{class:"leftCol-eyebrow"},"Files",-1)),o("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[1]||(t[1]=i=>e.sidebarCollapsed=!0)},[...t[6]||(t[6]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])])]),o("div",L4,[o("div",F4,[(l(),d("svg",{class:A(["ui-icon tree-search-icon",{"fa-spin":e.fileSearchLoading}]),"aria-hidden":"true"},[o("use",{href:e.fileSearchLoading?"#ui-icon-spinner":"#ui-icon-search"},null,8,z4)],2)),R(o("input",H4,null,512),[[s,{state:e.viewState,set:i=>{e.fileSearchQuery=i},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),R(o("kbd",{class:"tree-search-kbd"},c(e.isMac?"\u2318":"Ctrl+")+"K",513),[[j,!e.fileSearchQuery]]),R(o("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[2]||(t[2]=i=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[j,e.fileSearchQuery]])])]),o("div",B4,[o("span",{class:"project-name",textContent:c(e.repoId),title:e.repoId},null,8,j4),o("span",G4,c(e.fileCounts?.[""]||e.files?.length)+" files",1),e.options?.expirationDate?(l(),d("span",{key:0,class:"project-expiry",title:e.options.expirationDate},[t[8]||(t[8]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),b(" Available until "+c(e.fmt?.date(e.options.expirationDate)),1)],8,W4)):f("v-if",!0)]),o("div",K4,[e.options?.truncatedFolders?.length>0?(l(),d("div",Y4,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):f("v-if",!0),e.options?.hasSubmodules?(l(),d("div",J4,[t[10]||(t[10]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):f("v-if",!0),Ce(n,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])]),o("div",Q4,[o("span",{class:"last-update",title:e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate},c(e.options?.sourceCommitDate?"Source commit":e.options?.anonymizedAt?"Anonymized":"Updated")+" "+c(e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),9,X4),e.options?.settingsSavedAt?(l(),d("span",{key:0,class:"last-update",title:e.options.settingsSavedAt}," Settings saved "+c(e.fmt?.date(e.options.settingsSavedAt)),9,Z4)):f("v-if",!0),e.options?.publishedAt?(l(),d("span",{key:1,class:"last-update",title:e.options.publishedAt}," Snapshot ready "+c(e.fmt?.date(e.options.publishedAt)),9,x4)):f("v-if",!0),e.options?.anonymizedAt&&!e.options?.publishedAt?(l(),d("span",e3," Snapshot ready date not recorded ")):f("v-if",!0)])],2),[[j,e.files?.length]]),R(o("div",{class:"leftCol-backdrop",onClick:t[3]||(t[3]=i=>e.sidebarCollapsed=!0)},null,512),[[j,e.files?.length&&!e.sidebarCollapsed]]),o("div",t3,[R(o("div",o3,[o("ol",n3,[(l(!0),d(W,null,oe(e.paths,(i,a)=>(l(),d("li",{class:"breadcrumb-item",textContent:c(i)},null,8,s3))),256))]),o("div",r3,[e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[11]||(t[11]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,i3)):f("v-if",!0),e.type=="html-doc"&&!e.showSource?(l(),d("button",{key:1,class:A(["btn btn-sm",{"btn-active":e.allowScripts}]),"aria-label":"Allow this document to run JavaScript",title:"Scripts in this file are blocked by default. Enable them only if you trust the repository \u2014 the document stays isolated from your session either way.",onClick:t[4]||(t[4]=i=>e.toggleAllowScripts())},[t[12]||(t[12]=o("i",{class:"fab fa-js"},null,-1)),o("span",a3,c(e.allowScripts?"JS on":"JS off"),1)],2)):f("v-if",!0),e.type=="html-doc"?(l(),d("button",{key:2,class:"btn btn-sm","aria-label":"Toggle between the rendered document and its source",title:"Toggle between the rendered document and its source",onClick:t[5]||(t[5]=i=>e.toggleSource())},[(l(),d("svg",l3,[o("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,d3)])),o("span",u3,c(e.showSource?"Rendered":"Source"),1)])):f("v-if",!0),R(o("a",{target:"_self",class:"btn btn-sm btn-icon-only","aria-label":"View raw current file",title:"View raw file",href:e.safeUrl(e.url)},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-file"})],-1)])],8,c3),[[j,e.content!=null&&e.type!="error"&&e.type!="rate_limited"]]),R(o("a",{target:"_self",class:"btn btn-sm btn-icon-only","aria-label":"Download current file",title:"Download this file",href:e.safeUrl(e.url+"&download=true")},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-download"})],-1)])],8,p3),[[j,e.content!=null&&e.type!="error"&&e.type!="rate_limited"]]),e.options?.download?(l(),d("a",{key:3,target:"_self",class:"btn btn-sm btn-ink","aria-label":"Download repository as ZIP",title:"Download the whole repository as a ZIP archive",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[15]||(t[15]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-archive"})],-1),o("span",{class:"d-none d-md-inline"}," Download repository",-1)])],8,f3)):f("v-if",!0),e.options?.hasWebsite?(l(),d("a",{key:4,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),o("span",{class:"d-none d-md-inline"}," Website",-1)])],8,m3)):f("v-if",!0)])],512),[[j,e.type!="error"||e.files?.length]]),o("div",h3,[Ce(r,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])])}var v3={class:"paper-faq"};function Hl(e,t){return l(),d("div",v3,[...t[0]||(t[0]=[de('<div class="paper-faq-hero"><div class="paper-faq-eyebrow">Help</div><h1 class="paper-faq-title">Answers to the <em>questions</em> that come up most.</h1><p class="paper-faq-lede"> If something's missing, write to us \u2014 <a href="https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml" target="_blank" rel="noopener">report a bug on GitHub</a>. </p></div>',1),o("div",{class:"paper-faq-body"},[o("aside",{class:"paper-faq-toc"},[o("div",{class:"paper-faq-toc-head"},"Contents"),o("nav",null,[o("a",{href:"#faq-general"},"General"),o("a",{href:"#faq-features"},"Features"),o("a",{href:"#faq-limitations"},"Limitations"),o("a",{href:"#faq-privacy"},"Privacy & Security"),o("a",{href:"#faq-hosting"},"Self-Hosting")])]),o("section",{class:"faq-section","aria-label":"FAQs"},[o("div",null,[f(" General "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b("General ")]),o("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"false","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),o("div",{id:"whatIs",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingWhatIs"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub is a free, open-source tool that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information \u2014 such as the repository owner, organization name, and custom terms \u2014 so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#howWork","aria-expanded":"false","aria-controls":"howWork"}," How does Anonymous GitHub work? ")])]),o("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub either downloads the complete repository and anonymizes the content, or proxies requests to GitHub on the fly. In both cases, the original and anonymized versions of files are cached on the server. The system automatically detects and replaces the repository owner, organization name, and repository name. You can also specify additional custom terms to anonymize using one-per-line regex patterns. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#scope","aria-expanded":"false","aria-controls":"scope"}," What is the scope of anonymization? ")])]),o("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[o("div",{class:"panel-body p-3"},[o("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix \u2014 not the entire internet. Searching for any part of the paper or the online appendix can be considered a deliberate attempt to break anonymity. Anonymous GitHub anonymizes the repository owner, organization, repository name, file and directory names, and file contents across all text-based file types. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#cost","aria-expanded":"false","aria-controls":"cost"}," How much does it cost? ")])]),o("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[o("div",{class:"panel-body p-3"},[o("p",null,[b(" Anonymous GitHub is completely free to use. However, the server costs hundreds of dollars per year to maintain. If you find the service useful, a small donation would be greatly appreciated. You can support the project by "),o("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank"},"sponsoring on GitHub"),b(", donating through "),o("a",{href:"https://ko-fi.com/tdurieux",target:"_blank"},"Ko-fi"),b(', or by clicking the "Support me" button on the site. ')])])])])]),f(" Features "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})]),b("Features ")]),o("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#formats","aria-expanded":"false","aria-controls":"formats"}," Which file formats are supported? ")])]),o("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub can display and render a wide variety of file types: "),o("ul",null,[o("li",null,[o("strong",null,"Text and source code"),b(" \u2014 displayed with syntax highlighting")]),o("li",null,[o("strong",null,"Markdown"),b(" \u2014 rendered as formatted HTML")]),o("li",null,[o("strong",null,"Images"),b(" (PNG, JPG, SVG, etc.) \u2014 displayed inline")]),o("li",null,[o("strong",null,"PDFs"),b(" \u2014 rendered directly in the browser")]),o("li",null,[o("strong",null,"Jupyter Notebooks"),b(" \u2014 rendered with code cells and outputs")])]),o("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#pullRequests","aria-expanded":"false","aria-controls":"pullRequests"}," Can I anonymize pull requests? ")])]),o("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. In addition to full repositories, Anonymous GitHub supports anonymizing individual pull requests. Simply paste the URL of a GitHub pull request when creating a new anonymized repository, and the system will automatically detect that it is a pull request and anonymize it accordingly. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#conference","aria-expanded":"false","aria-controls":"conference"}," What is the Conference ID feature? ")])]),o("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[o("div",{class:"panel-body p-3"},[o("p",null," When creating an anonymized repository, you can associate it with a Conference ID. This allows conferences to define default anonymization settings (such as expiration dates) that are automatically applied to repositories submitted under that conference. If your conference provides a Conference ID, enter it during the anonymization setup. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#expiration","aria-expanded":"false","aria-controls":"expiration"}," What happens when an anonymized repository expires? ")])]),o("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[o("div",{class:"panel-body p-3"},[o("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),o("ul",null,[o("li",null,[o("strong",null,"Never expire"),b(" \u2014 the anonymized repository remains accessible indefinitely.")]),o("li",null,[o("strong",null,"Redirect to GitHub"),b(" \u2014 after expiration, visitors are redirected to the original GitHub repository.")]),o("li",null,[o("strong",null,"Remove content"),b(" \u2014 after expiration, the anonymized content is deleted from the server.")])])])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#download","aria-expanded":"false","aria-controls":"download"}," Can I download an anonymized repository? ")])]),o("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. Anonymized repositories can be downloaded as a ZIP file. This is useful if reviewers want to build or test the code locally. The downloaded archive contains the fully anonymized version of the repository. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#updates","aria-expanded":"false","aria-controls":"updates"}," Are updates to the original repository reflected in the anonymized version? ")])]),o("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. The anonymized repository tracks the source on GitHub: when you push new commits to the original repository, the anonymized view picks up those changes (cached files are refreshed against GitHub). This means you can keep iterating on the code while reviewers have the link, and you do not need to recreate the anonymized repository every time you update the source. "),o("p",null," A few practical implications worth keeping in mind: "),o("ul",null,[o("li",null," You can safely create the anonymized repository early in the writing process \u2014 later commits will be visible to reviewers without any additional action. "),o("li",null," If you rename files, add new identifiers, or introduce new contributor names after creation, revisit the anonymization options (custom terms, file filters) to make sure the new content is still properly anonymized. "),o("li",null," If the original repository is made private or deleted, the anonymized repository will no longer be able to fetch updated content. ")])])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#cli","aria-expanded":"false","aria-controls":"cli"}," Is there a command-line tool? ")])]),o("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. Anonymous GitHub provides a CLI tool that lets you anonymize repositories locally, generating an anonymized ZIP file on your machine. Install it via npm: "),o("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[o("code",null,`npm install -g @tdurieux/anonymous_github
|
|
anonymous_github`)])])])])]),f(" Limitations "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})]),b("Limitations ")]),o("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),o("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[o("div",{class:"panel-body p-3"},[o("ul",null,[o("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),o("li",null," Files larger than 8 MB are not supported. "),o("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),o("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),f(" Privacy & Security "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})]),b("Privacy & Security ")]),o("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),o("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[o("div",{class:"panel-body p-3"},[o("p",null," Data stored on Anonymous GitHub is never shared or used for any purpose beyond providing the anonymization service. When a repository is removed or expires, only its configuration is retained \u2014 this makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),o("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[o("div",{class:"panel-body p-3"},[o("p",null,[b("The GitHub App has read-only access to the repositories you choose. You can change repository access on your "),o("a",{href:"/connections"},"GitHub connections"),b(" page.")]),o("p",null,"Legacy GitHub OAuth includes write access to private repositories because GitHub's OAuth scopes do not offer a read-only option for them. Existing OAuth anonymizations and gists can still use this connection."),o("p",null,"Anonymous GitHub reads repository content. It never pushes, modifies, or deletes files on GitHub.")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),o("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[o("div",{class:"panel-body p-3"},[o("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),f(" Self-Hosting "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#project-icon-storage"})]),b("Self-Hosting ")]),o("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),o("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[o("div",{class:"panel-body p-3"},[o("p",null,[b(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),o("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),b(". ")]),o("p",null," The basic steps are: "),o("ol",null,[o("li",null,"Clone the repository and install dependencies"),o("li",null,[b("Create a "),o("code",null,".env"),b(" file with your GitHub token, OAuth client ID, and client secret")]),o("li",null,[b("Run "),o("code",null,"docker-compose up -d")])])])])])]),o("div",{class:"text-center mt-5 mb-5 p-4",style:{"background-color":"var(--hover-bg-color)","border-radius":"8px"}},[o("p",{class:"mb-2",style:{"font-size":"1.1rem"}}," Still have questions? "),o("p",{class:"text-muted mb-0"},[b(" Open an issue on the "),o("a",{href:"https://github.com/tdurieux/anonymous_github/issues",target:"_blank"},"GitHub repository"),b(" and we'll be happy to help. ")])])])])],-1)])])}var y3={class:"pr-page"},g3={class:"container paper-page pr-page-inner"},b3={class:"pr-header"},w3={class:"pr-title-row"},k3={class:"paper-page-title pr-title"},E3=["textContent"],C3={key:1,class:"text-muted"},_3=["href"],S3={class:"pr-header-meta"},N3={key:0,class:"pr-meta-item"},R3=["textContent"],D3={key:1,class:"pr-meta-item"},T3=["textContent"],A3={key:2,class:"pr-meta-item"},O3=["textContent"],I3={key:0,class:"paper-tabs",role:"tablist"},P3=["aria-selected","tabindex"],V3=["textContent"],q3=["aria-selected","tabindex"],M3=["textContent"],U3={class:"paper-tab-content"},$3={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},L3={class:"pr-comments"},F3={class:"pr-comment"},z3={class:"pr-comment-head"},H3=["textContent"],B3={key:0,class:"pr-comment-date"},j3={key:0,class:"paper-table-empty"},G3={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},W3={class:"pr-comments"},K3={class:"pr-comment"},Y3={class:"pr-comment-head"},J3={key:0,class:"pr-comment-author"},Q3=["textContent"],X3=["textContent"],Z3={key:0,class:"pr-comment-body"},x3={key:0,class:"paper-table-empty"};function Bl(e,t){let n=Ge("gist-file"),r=Ge("markdown");return l(),d("div",y3,[o("div",g3,[t[17]||(t[17]=o("div",{class:"paper-crumbs"},[o("a",{href:"/dashboard"},"Reviewer"),b(" \xA0/\xA0 "),o("span",{class:"here"},"Gist")],-1)),o("header",b3,[o("div",w3,[o("h1",k3,[e.details?.description?(l(),d("span",{key:0,textContent:c(e.details?.description)},null,8,E3)):f("v-if",!0),e.details?.description?f("v-if",!0):(l(),d("span",C3,"Untitled gist"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[4]||(t[4]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,_3)):f("v-if",!0)]),o("div",S3,[o("span",{class:A(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},c(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(l(),d("span",N3,[t[5]||(t[5]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[6]||(t[6]=b(" @",-1)),o("span",{textContent:c(e.details?.ownerLogin)},null,8,R3)])):f("v-if",!0),e.details?.updatedDate?(l(),d("span",D3,[t[7]||(t[7]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=b()),o("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,T3)])):f("v-if",!0),e.details?.anonymizeDate?(l(),d("span",A3,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=b(" Anonymized ",-1)),o("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,O3)])):f("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",I3,[e.details?.files?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",id:"gist-files-tab","aria-selected":e.tabState?.active==="files","aria-controls":"gist-files-panel",tabindex:e.tabState?.active==="files"?0:-1,onKeydown:t[0]||(t[0]=s=>e.previewTabKeydown(s)),onClick:t[1]||(t[1]=s=>e.tabState.active="files")},[t[11]||(t[11]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-gist"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,V3)],42,P3)):f("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"gist-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"gist-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=s=>e.previewTabKeydown(s)),onClick:t[3]||(t[3]=s=>e.tabState.active="comments")},[t[12]||(t[12]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,M3)],42,q3)):f("v-if",!0)])):f("v-if",!0),o("div",U3,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",$3,[o("ul",L3,[(l(!0),d(W,null,oe(e.details?.files,(s,i)=>(l(),d("li",F3,[o("div",z3,[o("strong",{textContent:c(s?.filename)},null,8,H3),s?.language?(l(),d("span",B3,c(s?.language),1)):f("v-if",!0)]),Ce(n,{file:s},null,8,["file"])]))),256)),e.details?.files?.length?f("v-if",!0):(l(),d("li",j3,[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-file"})],-1),o("span",null,"No files in this gist.",-1)])]))])])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",G3,[o("ul",W3,[(l(!0),d(W,null,oe(e.details?.comments,(s,i)=>(l(),d("li",K3,[o("div",Y3,[s?.author?(l(),d("span",J3,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=b(" @",-1)),o("span",{textContent:c(s?.author)},null,8,Q3)])):f("v-if",!0),s?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(s?.updatedDate))},null,8,X3)):f("v-if",!0)]),s?.body?(l(),d("div",Z3,[Ce(r,{content:s?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(l(),d("li",x3,[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1),o("span",null,"No comments on this gist.",-1)])]))])])):f("v-if",!0)])])])}var eP={class:"collapse navbar-collapse",id:"navbarSupportedContent"},tP={class:"navbar-nav mr-auto smooth-scroll"},oP={key:0,class:"nav-item"},nP={key:1,class:"nav-item"},sP={key:2,class:"nav-item"},rP={key:3,class:"nav-item"},iP={class:"nav-item"},aP={key:4,class:"nav-item"},lP={class:"navbar-nav"},dP={key:0,class:"nav-item"},uP={key:1,class:"nav-item"},cP={key:2,class:"nav-item"},pP={key:3,class:"nav-item"},fP={key:4,class:"nav-item dropdown user-chip-wrap"},mP={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},hP=["src"],vP={class:"user-chip-name"},yP={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},gP={class:"dropdown-header"},bP=["innerHTML"],wP=["disabled"],kP={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},EP={class:"email-prompt-actions"},CP=["disabled"],_P=["disabled"],SP=["disabled"];function jl(e,t){return l(),d(W,null,[o("nav",{class:A(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[18]||(t[18]=de('<a class="navbar-brand" href="/">Anonymous <em>GitHub</em></a><a class="nav-support" href="https://ko-fi.com/tdurieux" target="_blank" rel="noopener" title="Donate on Ko-fi to help cover hosting costs" aria-label="Donate on Ko-fi to help cover hosting costs"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-heart"></use></svg><span class="nav-support-label">Support</span></a><button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>',3)),o("div",eP,[o("ul",tP,[e.user?f("v-if",!0):(l(),d("li",oP,[o("a",{class:A(["nav-link",{active:e.path=="/"}]),href:"/"}," Home ",2)])),e.user?(l(),d("li",nP,[o("a",{class:A(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[7]||(t[7]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-grid"})],-1),b(" My work ",-1)])],2)])):f("v-if",!0),e.user?(l(),d("li",sP,[o("a",{class:A(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[8]||(t[8]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize ",-1)])],2)])):f("v-if",!0),e.user?(l(),d("li",rP,[o("a",{class:A(["nav-link",{active:e.path=="/conferences"}]),href:"/conferences"},[...t[9]||(t[9]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1),b(" Conferences ",-1)])],2)])):f("v-if",!0),o("li",iP,[o("a",{class:A(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[10]||(t[10]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-help"})],-1),b("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(l(),d("li",aP,[o("a",{class:A(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[11]||(t[11]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})],-1),b(" Admin ",-1)])],2)])):f("v-if",!0)]),o("ul",lP,[e.user||!e.isReviewerRoute?(l(),d("li",dP,[...t[12]||(t[12]=[o("a",{class:"nav-link nav-icon",target:"_blank",href:"https://github.com/tdurieux/anonymous_github/",title:"Anonymous GitHub source code","aria-label":"Anonymous GitHub source code on GitHub",rel:"noopener","data-offset":"30"},[o("i",{class:"fab fa-github","aria-hidden":"true"})],-1)])])):f("v-if",!0),f(` "Report a bug" is about this service. Reviewers who land on an
|
|
anonymized repository often think it is about the paper, so the
|
|
label names the service and the tooltip says who to contact. `),t[17]||(t[17]=o("li",{class:"nav-item d-none d-lg-block"},[o("a",{class:"nav-link",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",title:"Report a problem with the Anonymous GitHub service. Questions about an anonymized repository or paper go to its authors.","data-offset":"30"},[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-bug"})]),b("Report a bug ")])],-1)),e.isDarkMode?f("v-if",!0):(l(),d("li",uP,[o("a",{class:"nav-link nav-icon",href:"#",title:"Switch to dark mode","aria-label":"Switch to dark mode",role:"button",onClick:t[0]||(t[0]=ie(n=>{e.darkMode(!0)},["prevent"]))},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(l(),d("li",cP,[o("a",{class:"nav-link nav-icon",href:"#",title:"Switch to light mode","aria-label":"Switch to light mode",role:"button",onClick:t[1]||(t[1]=ie(n=>{e.darkMode(!1)},["prevent"]))},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-sun"})],-1)])])])):f("v-if",!0),!e.user&&!e.isReviewerRoute?(l(),d("li",pP,[...t[15]||(t[15]=[o("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[o("i",{class:"fab fa-github mr-1"}),b(" Sign in ")],-1)])])):f("v-if",!0),e.user?(l(),d("li",fP,[o("a",mP,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,hP)):f("v-if",!0),o("span",vP,c(e.user?.username),1)]),o("div",yP,[o("h6",gP,"Signed in as @"+c(e.user?.username),1),t[16]||(t[16]=de('<a class="dropdown-item" href="/profile"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-filter"></use></svg><span>Settings<small>Defaults, quotas, account</small></span></a><a class="dropdown-item" href="/connections"><i class="fab fa-github" aria-hidden="true"></i><span>GitHub connections<small>Repository access and OAuth</small></span></a><a class="dropdown-item" href="/claim"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-link"></use></svg><span>Claim an anonymization<small>Attach an existing mirror to your account</small></span></a><div class="dropdown-divider"></div><a class="dropdown-item" href="https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml" target="_blank" rel="noopener"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg><span>Report a bug<small>About this service, not a paper</small></span></a><a class="dropdown-item" href="https://github.com/tdurieux/anonymous_github/" target="_blank" rel="noopener"><i class="fab fa-github" aria-hidden="true"></i><span>Source code</span></a><a class="dropdown-item" href="https://ko-fi.com/tdurieux" target="_blank" rel="noopener"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-heart"></use></svg><span>Support the project</span></a><div class="dropdown-divider"></div><a class="dropdown-item" href="/api/user/logout" target="_self"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-logout"></use></svg><span>Sign out</span></a>',9))])])):f("v-if",!0)])])],2),e.generalMessage?(l(),d("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,bP)):f("v-if",!0),e.emailPromptOpen?(l(),d("dialog",{key:1,id:"email-prompt",class:"email-prompt","aria-labelledby":"email-prompt-title","aria-describedby":"email-prompt-reason",onCancel:t[6]||(t[6]=ie(n=>e.respondToEmailPrompt("later"),["prevent"]))},[o("form",{onSubmit:t[5]||(t[5]=ie(n=>e.respondToEmailPrompt("save"),["prevent"]))},[t[19]||(t[19]=o("h2",{id:"email-prompt-title"},"Stay informed about access problems",-1)),t[20]||(t[20]=o("p",{id:"email-prompt-reason"},"Get email alerts when your GitHub token or repository access fails.",-1)),t[21]||(t[21]=o("label",{for:"email-prompt-address"},"Email address",-1)),R(o("input",{id:"email-prompt-address",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[2]||(t[2]=n=>e.emailPromptAddress=n),disabled:e.emailPromptBusy},null,8,wP),[[zt,e.emailPromptAddress]]),e.emailPromptError?(l(),d("p",kP,c(e.emailPromptError),1)):f("v-if",!0),o("div",EP,[o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[3]||(t[3]=n=>e.respondToEmailPrompt("later"))},"Remind me later",8,CP),o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[4]||(t[4]=n=>e.respondToEmailPrompt("never"))},"Never",8,_P),o("button",{type:"submit",class:"btn btn-ink",disabled:e.emailPromptBusy},c(e.emailPromptBusy?"Saving\u2026":"Save"),9,SP)])],32)],32)):f("v-if",!0)],64)}var NP={class:"paper-landing"},RP={class:"paper-hero"},DP={class:"paper-hero-copy"},TP={class:"paper-cta-row"},AP={key:0,href:"/signin",target:"_self",class:"btn-hero"},OP={key:1,href:"/anonymize",class:"btn-hero"},IP={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},PP={class:"paper-stats-grid"},VP={class:"paper-stat-value"},qP={class:"paper-stat-label"},MP=["viewBox"],UP=["x","y","width","height"],$P={key:1,class:"paper-stat-delta"},LP={class:"paper-features paper-wrap","aria-label":"Product features"},FP={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},zP=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],HP={class:"paper-eyebrow"},BP={class:"paper-feature-title"},jP={class:"paper-feature-more"},GP={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},WP=["href","target"],KP={class:"paper-features-stage"},YP=["id","aria-labelledby"],JP={class:"paper-frame"},QP={class:"paper-frame-bar","aria-hidden":"true"},XP={class:"url"},ZP=["src","alt"],xP={class:"paper-footer"},e5={class:"paper-footer-inner"},t5={class:"paper-footer-col"},o5={key:0,href:"/dashboard"},n5={key:1,href:"/conferences"},s5={class:"paper-footer-foot"};function Gl(e,t){return l(),d("div",NP,[f(" Hero: copy on the left, the product on the right "),o("section",RP,[o("div",DP,[t[2]||(t[2]=o("div",{class:"paper-eyebrow"},"For double-blind peer review",-1)),t[3]||(t[3]=o("h1",{class:"hero-title"},[b(" Share the code,"),o("br"),o("span",{class:"accent"},"not the author.")],-1)),t[4]||(t[4]=o("p",{class:"hero-subtitle"}," Anonymous GitHub makes a read-only mirror of your repository, pull request, or gist. It redacts the terms you choose in text files, so reviewers can browse your artifact through an anonymous link. ",-1)),o("div",TP,[e.user?f("v-if",!0):(l(),d("a",AP,[...t[0]||(t[0]=[o("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),b("Sign in with GitHub ",-1)])])),e.user?(l(),d("a",OP," Anonymize a repository \u2192 ")):f("v-if",!0),t[1]||(t[1]=o("a",{class:"paper-link-arrow",target:"_self",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/"},"See an anonymized repository \u2192",-1))]),t[5]||(t[5]=o("ul",{class:"paper-reassure"},[o("li",null,"Free and open source"),o("li",null,"Read-only: never writes to your repos"),o("li",null,"Expires on the date you set")],-1))]),t[6]||(t[6]=de('<div class="paper-hero-shot"><div class="paper-frame"><div class="paper-frame-bar" aria-hidden="true"><span class="dots"><i></i><i></i><i></i></span><span class="url">anonymous.4open.science/anonymize</span></div><img src="/imgs/redaction-preview.png" width="1360" height="960" alt="A reviewer preview with the author, affiliation, and email replaced by anonymous terms"></div></div>',1))]),f(" Proof "),t[16]||(t[16]=de('<section class="paper-proof paper-wrap" aria-label="Venues"><div class="paper-eyebrow">Trusted by authors at</div><div class="paper-proof-venues"><span>ICSE</span><i aria-hidden="true">\xB7</i><span>FSE</span><i aria-hidden="true">\xB7</i><span>OOPSLA</span></div></section>',1)),f(" Live stats "),o("section",IP,[t[7]||(t[7]=o("div",{class:"paper-stats-meta"},[o("div",{class:"paper-stats-meta-left"},"Live \xB7 last 60 days"),o("div",{class:"paper-stats-meta-right"},[o("span",{class:"paper-stats-dot","aria-hidden":"true"}),b(" updated daily ")])],-1)),o("div",PP,[(l(!0),d(W,null,oe(e.cards,(n,r)=>(l(),d("div",{class:"paper-stat-card",key:n?.key},[o("div",VP,c(e.fmt?.bigNum(n?.total)),1),o("div",qP,c(n?.label),1),e.history[n?.key].bars?.length>1?(l(),d("svg",{key:0,class:"paper-stat-bars",preserveAspectRatio:"none","aria-hidden":"true",viewBox:"0 0 "+e.history[n?.key].viewW+" 36"},[(l(!0),d(W,null,oe(e.history[n?.key].bars,(s,i)=>(l(),d("rect",{key:i,class:A({"is-latest":i===e.history[n.key].bars.length-1}),x:s?.x,y:s?.y,width:s?.w,height:s?.h},null,10,UP))),128))],8,MP)):f("v-if",!0),e.history[n?.key].bars?.length>1?(l(),d("div",$P," +"+c(e.fmt?.number(e.history[n?.key].deltaToday))+" today ",1)):f("v-if",!0)]))),128))])]),f(" Before / after "),t[17]||(t[17]=o("section",{class:"paper-section-head paper-wrap"},[o("div",null,[o("div",{class:"paper-eyebrow"},"Before \xB7 after"),o("h2",null,[b("The same repository, "),o("em",null,"minus you.")])]),o("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),t[18]||(t[18]=o("div",{class:"paper-preview paper-wrap","aria-label":"Before and after example"},[o("div",{class:"pane"},[o("div",{class:"pane-header"},[o("span",{class:"pane-label"},"Before \xB7 your repo"),o("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")]),o("div",{class:"pane-body"},[o("div",null,[o("span",{class:"tok"},"#"),b(),o("strong",null,"DeepLearnUtils")]),o("div",null,"Developed by Jane Smith at MIT CSAIL."),o("div",null,"See Smith et\xA0al., \u201CAttention That Works,\u201D 2026."),o("div",null,"Contact: jane.smith@mit.edu")])]),o("div",{class:"pane"},[o("div",{class:"pane-header"},[o("span",{class:"pane-label"},"After \xB7 anonymous mirror"),o("span",{class:"pane-url"},"anonymous.4open.science/r/paper-7f2a")]),o("div",{class:"pane-body"},[o("div",null,[o("span",{class:"tok"},"#"),b(),o("strong",null,"DeepLearnUtils")]),o("div",null,[b("Developed by "),o("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),b(" at "),o("span",{class:"redact",role:"img","aria-label":"redacted affiliation"},"XXXX-2"),b(".")]),o("div",null,[b("See "),o("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),b(" et\xA0al., \u201CAttention That Works,\u201D 2026.")]),o("div",null,[b("Contact: "),o("span",{class:"redact",role:"img","aria-label":"redacted email address"},"XXXX-3")])])])],-1)),f(" What you get: one screenshot, three tabs "),t[19]||(t[19]=o("section",{class:"paper-section-head paper-wrap",id:"about"},[o("div",null,[o("div",{class:"paper-eyebrow"},"What you get"),o("h2",null,[b("Anonymize, review, "),o("em",null,"manage.")])]),o("p",null," Terms are redacted in text files. Enabled images and PDFs are served unchanged, so review them for identifying content before sharing. Monitor your mirror, update it, or remove it when the review is over. ")],-1)),o("section",LP,[o("div",FP,[(l(!0),d(W,null,oe(e.features,(n,r)=>(l(),d("div",{class:A(["paper-feature",{"is-on":e.feature===n?.key}]),key:n?.key},[o("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:s=>e.selectFeature(n.key),onKeydown:s=>e.featureKeydown(s,r),id:"feature-tab-"+n?.key,"aria-controls":"feature-panel-"+n?.key,"aria-selected":e.feature===n?.key,tabindex:e.feature===n?.key?0:-1},[o("span",HP,c(n?.num)+" \xB7 "+c(n?.eyebrow),1),o("span",BP,[b(c(n?.title)+" ",1),o("em",null,c(n?.accent),1)])],40,zP),o("div",jP,[o("span",GP,[b(c(n?.title)+" ",1),o("em",null,c(n?.accent),1)]),o("p",null,c(n?.text),1),o("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(n)),target:e.featureTarget(n)},c(n?.cta)+" \u2192",9,WP)])],2))),128))]),o("div",KP,[(l(!0),d(W,null,oe(e.features,(n,r)=>R((l(),d("div",{class:"paper-feature-panel",role:"tabpanel",key:n?.key,id:"feature-panel-"+n?.key,"aria-labelledby":"feature-tab-"+n?.key},[o("div",JP,[o("div",QP,[t[8]||(t[8]=o("span",{class:"dots"},[o("i"),o("i"),o("i")],-1)),o("span",XP,c(n?.url),1)]),o("div",{class:A("paper-crop paper-crop-"+n?.key)},[o("img",{loading:"lazy",width:"2880",height:"1800",src:e.safeUrl(n?.img),alt:n?.alt},null,8,ZP)],2)])],8,YP)),[[j,e.feature===n?.key]])),128))])]),f(" FAQ teaser "),t[20]||(t[20]=de('<section class="paper-qa paper-wrap" aria-labelledby="qa-heading"><div><div class="paper-eyebrow">Before you sign in</div><h2 id="qa-heading">The questions that <em>come up most.</em></h2><a class="paper-link-arrow" href="/faq">Read the full FAQ \u2192</a></div><div><div class="q"><a href="/faq#permissions">What access does GitHub sign-in require?</a><p> The GitHub App has read-only access to gists and the repositories you choose. Legacy OAuth uses broader permissions. Anonymous GitHub never writes to your repositories. </p></div><div class="q"><a href="/faq#formats">Which file formats are supported?</a><p> Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Text files are anonymized; enabled images and PDFs are served unchanged. </p></div><div class="q"><a href="/faq#expiration">What happens when an anonymized repository expires?</a><p> You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over. </p></div></div></section>',1)),o("footer",xP,[o("div",e5,[t[12]||(t[12]=o("div",{class:"paper-footer-brand"},[o("div",{class:"paper-footer-mark"},[b("Anonymous "),o("em",null,"GitHub")]),o("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-anonymous peer review. ")],-1)),o("div",t5,[t[9]||(t[9]=o("div",{class:"paper-footer-head"},"Product",-1)),t[10]||(t[10]=o("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(l(),d("a",o5,"My work")):f("v-if",!0),e.user?(l(),d("a",n5,"Conferences")):f("v-if",!0),t[11]||(t[11]=o("a",{href:"/faq"},"FAQ",-1))]),t[13]||(t[13]=de('<div class="paper-footer-col"><div class="paper-footer-head">Project</div><a href="https://github.com/tdurieux/anonymous_github/" target="_blank" rel="noopener">Source code</a><a href="https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml" target="_blank" rel="noopener">Report a bug</a><a href="https://github.com/sponsors/tdurieux/" target="_blank" rel="noopener">Sponsor</a></div><div class="paper-footer-col"><div class="paper-footer-head">Contact</div><a href="mailto:tdurieux@anonymous.4open.science">Email maintainer</a><a href="https://github.com/tdurieux" target="_blank" rel="noopener">@tdurieux</a></div>',2))]),t[15]||(t[15]=o("div",{class:"paper-footer-rule"},null,-1)),o("div",s5,[o("span",null,"\xA9 "+c(e.year||2026)+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[14]||(t[14]=o("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])])}var r5={class:"paper-empty"},i5={class:"paper-empty-inner"},a5={key:0,class:"paper-eyebrow"},l5={key:1,class:"paper-eyebrow"},d5={key:2,class:"paper-empty-title"},u5=["textContent"];function Wl(e,t){return l(),d("div",r5,[o("div",i5,[e.error?f("v-if",!0):(l(),d("div",a5,"Working")),e.error?(l(),d("div",l5,"Error")):f("v-if",!0),e.error?f("v-if",!0):(l(),d("h1",d5,[...t[0]||(t[0]=[b(" Loading",-1),o("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(l(),d("h1",{key:3,class:"paper-empty-title",textContent:c(e.fmt.translate(e.error))},null,8,u5)):f("v-if",!0)])])}var c5={class:"container paper-page paper-settings"},p5={class:"paper-crumbs"},f5={class:"here"},m5={class:"paper-page-title"},h5={class:"paper-settings-body"},v5={class:"paper-settings-toc"},y5={href:"#conf-billing"},g5={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},b5={id:"conf-basics",class:"paper-settings-section"},w5={class:"form-group"},k5={class:"invalid-feedback"},E5={class:"invalid-feedback"},C5={class:"form-group"},_5={class:"invalid-feedback"},S5={class:"form-group"},N5={class:"invalid-feedback"},R5={class:"invalid-feedback"},D5={id:"conf-window",class:"paper-settings-section"},T5={class:"form-grid-2"},A5={class:"form-group"},O5={class:"invalid-feedback"},I5={class:"invalid-feedback"},P5={class:"form-group"},V5={class:"invalid-feedback"},q5={class:"invalid-feedback"},M5={id:"conf-rendering",class:"paper-settings-section"},U5={class:"form-check"},$5={class:"form-check-input",type:"checkbox",id:"link",name:"link"},L5={class:"form-check"},F5={class:"form-check-input",type:"checkbox",id:"image",name:"image"},z5={class:"form-check"},H5={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},B5={class:"form-check"},j5={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},G5={id:"conf-features",class:"paper-settings-section"},W5={class:"form-check"},K5={class:"form-check-input",type:"checkbox",id:"update",name:"update"},Y5={class:"form-check"},J5={class:"form-check-input",type:"checkbox",id:"page",name:"page"},Q5={id:"conf-plan",class:"paper-settings-section"},X5={class:"paper-plan-grid"},Z5=["value"],x5=["textContent"],eV={class:"paper-plan-price"},tV=["innerHTML"],oV={key:0,id:"conf-billing",class:"paper-settings-section"},nV={class:"form-group"},sV={class:"form-group"},rV={class:"form-group"},iV={class:"form-group"},aV={class:"form-grid-3"},lV={class:"form-group"},dV={class:"form-group"},uV={class:"form-group"},cV={class:"form-group"},pV={class:"paper-settings-footer"},fV=["textContent"],mV=["textContent"],hV=["disabled"];function Kl(e,t){let n=ve("paper-scrollspy"),r=ve("field"),s=ve("form");return l(),d("div",c5,[o("div",p5,[t[1]||(t[1]=o("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=b(" \xA0/\xA0 ",-1)),t[3]||(t[3]=o("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=b(" \xA0/\xA0 ",-1)),o("span",f5,c(e.editionMode?"Edit":"New"),1)]),o("h1",m5,[b(c(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=o("em",null,"conference",-1))]),t[43]||(t[43]=o("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue, and lift author quotas during the review window. ",-1)),o("div",h5,[R((l(),d("aside",v5,[t[7]||(t[7]=o("div",{class:"paper-settings-toc-head"},"On this page",-1)),o("nav",null,[t[6]||(t[6]=de('<a href="#conf-basics">Basics</a><a href="#conf-window">Review window</a><a href="#conf-rendering">Rendering defaults</a><a href="#conf-features">Features</a><a href="#conf-plan">Plan</a>',5)),R(o("a",y5,"Billing",512),[[j,e.plan?.pricePerRepo>0]])])])),[[n]]),R((l(),d("form",g5,[o("section",b5,[t[12]||(t[12]=o("div",{class:"paper-section-eyebrow"},"Basics",-1)),o("div",w5,[t[8]||(t[8]=o("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[r,{state:e.viewState,set:i=>{e.options.name=i},value:e.options?.name,form:"conference",options:{}}]]),R(o("div",k5," The name of the conference is invalid. ",512),[[j,e.conference?.name?.errors?.invalid]]),R(o("div",E5," The name of the conference is required. ",512),[[j,e.conference?.name?.errors?.required]])]),o("div",C5,[t[9]||(t[9]=o("label",{class:"paper-field-label",for:"url"},"Website",-1)),R(o("input",{type:"url",class:A(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.url=i},value:e.options?.url,form:"conference",options:{}}]]),R(o("div",_5," The url of the conference is invalid. ",512),[[j,e.conference?.url?.errors?.url]])]),o("div",S5,[t[10]||(t[10]=o("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[r,{state:e.viewState,set:i=>{e.options.conferenceID=i},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=o("small",{class:"form-text text-muted"},[b("3\u201310 characters, letters, numbers, "),o("code",null,"-"),b(" and "),o("code",null,"_"),b(". Authors reference this when they anonymize.")],-1)),R(o("div",{class:"invalid-feedback"}," The conference ID '"+c(e.options?.conferenceID)+"' is already used. ",513),[[j,e.conference?.conferenceID?.errors?.used]]),R(o("div",N5," The conference ID is required. ",512),[[j,e.conference?.conferenceID?.errors?.required]]),R(o("div",R5," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[j,e.conference?.conferenceID?.errors?.pattern]])])]),o("section",D5,[t[17]||(t[17]=o("div",{class:"paper-section-eyebrow"},"Review window",-1)),o("div",T5,[o("div",A5,[t[13]||(t[13]=o("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),R(o("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.startDate=i},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=o("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),R(o("div",O5," Start date is required. ",512),[[j,e.conference?.startDate?.errors?.required]]),R(o("div",I5," Start date must be before end date. ",512),[[j,e.conference?.startDate?.errors?.invalid]])]),o("div",P5,[t[15]||(t[15]=o("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),R(o("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.endDate=i},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),R(o("div",V5," End date is required. ",512),[[j,e.conference?.endDate?.errors?.required]]),R(o("div",q5," End date is invalid. ",512),[[j,e.conference?.endDate?.errors?.invalid]])])])]),o("section",M5,[t[26]||(t[26]=o("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),o("div",U5,[R(o("input",$5,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.link=i},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=o("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),o("div",L5,[R(o("input",F5,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.image=i},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=o("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),o("div",z5,[R(o("input",H5,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.pdf=i},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=o("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),o("div",B5,[R(o("input",j5,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.notebook=i},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=o("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[25]||(t[25]=o("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])]),o("section",G5,[t[31]||(t[31]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",W5,[R(o("input",K5,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.update=i},value:e.options?.options?.update,form:"conference",options:{}}]]),t[27]||(t[27]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=o("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),o("div",Y5,[R(o("input",J5,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.page=i},value:e.options?.options?.page,form:"conference",options:{}}]]),t[29]||(t[29]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=o("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),o("section",Q5,[t[33]||(t[33]=o("div",{class:"paper-section-eyebrow"},"Plan",-1)),t[34]||(t[34]=o("p",{class:"paper-section-copy"},"Billed per repository per month, prorated by the day for as long as a repository stays in the conference.",-1)),o("div",X5,[(l(!0),d(W,null,oe(e.plans,(i,a)=>(l(),d("label",{class:A(["paper-plan-card",{selected:e.options?.plan?.planID==i?.id}])},[R(o("input",{type:"radio",name:"planPicker",value:i?.id},null,8,Z5),[[r,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),o("div",{class:"paper-plan-head",textContent:c(i?.name)},null,8,x5),o("div",eV,[b(c(e.fmt?.number(i?.pricePerRepo))+"\u20AC ",1),t[32]||(t[32]=o("span",{class:"paper-plan-per"},"/ repo / month",-1))]),o("div",{class:"paper-plan-desc",innerHTML:e.sanitize(i?.description)},null,8,tV)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",oV,[t[42]||(t[42]=o("div",{class:"paper-section-eyebrow"},"Billing",-1)),o("div",nV,[t[35]||(t[35]=o("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.name=i},value:e.options?.billing?.name,form:"conference",options:{}}]])]),o("div",sV,[t[36]||(t[36]=o("label",{class:"paper-field-label",for:"email"},"Email",-1)),R(o("input",{type:"email",class:A(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.email=i},value:e.options?.billing?.email,form:"conference",options:{}}]])]),o("div",rV,[t[37]||(t[37]=o("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.address=i},value:e.options?.billing?.address,form:"conference",options:{}}]])]),o("div",iV,[R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.address2=i},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),o("div",aV,[o("div",lV,[t[38]||(t[38]=o("label",{class:"paper-field-label",for:"city"},"City",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.city=i},value:e.options?.billing?.city,form:"conference",options:{}}]])]),o("div",dV,[t[39]||(t[39]=o("label",{class:"paper-field-label",for:"country"},"Country",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.country=i},value:e.options?.billing?.country,form:"conference",options:{}}]])]),o("div",uV,[t[40]||(t[40]=o("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.zip=i},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),o("div",cV,[t[41]||(t[41]=o("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.vat=i},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):f("v-if",!0),o("div",pV,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,fV)):f("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:c(e.message)},null,8,mV)):f("v-if",!0),o("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=ie(i=>e.submitForm(i,()=>{e.submit(i)}),["prevent"]))},c(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,hV)])])),[[s,e.viewState]])])])}var vV={key:0},yV=["innerHTML"],gV={key:3},bV=["src"],wV=["src"],kV={key:7},EV={controls:"controls"},CV=["src"],_V={key:8},SV={key:9,class:"file-error container d-flex h-100"},NV={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},RV={class:"paper-error-msg"},DV={key:10,class:"file-error container d-flex h-100"},TV={class:"viewer-error paper-error-card file-error-card m-auto",role:"alert","aria-labelledby":"viewer-error-title"},AV={id:"viewer-error-title",class:"paper-empty-title"},OV={class:"paper-error-actions"},IV={key:0,href:"/",class:"btn btn-sm"},PV={key:1,href:"/faq",class:"btn btn-sm"},VV={key:2,class:"btn btn-outline-ink",href:"/dashboard"},qV={key:11,class:"file-error container d-flex h-100"},MV={key:12,class:"file-error container d-flex h-100"},UV={key:13,class:"file-error container d-flex h-100"},$V={key:14,class:"file-error container d-flex h-100"},LV={class:"paper-empty-title m-auto"},FV=["href"];function Yl(e,t){let n=Ge("html-doc"),r=Ge("pdfviewer"),s=Ge("notebook"),i=ve("code-editor");return l(),d(W,null,[e.type=="text"?R((l(),d("div",vV,null,512)),[[i,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="html"?(l(),d("div",{key:1,class:"file-content markdown-body",innerHTML:e.highlightRedactions(e.sanitize(e.content))},null,8,yV)):f("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(l(),Lt(n,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):f("v-if",!0),(e.type=="code"||e.type=="html-doc"&&e.showSource)&&e.content!=null?R((l(),d("div",gV,null,512)),[[i,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="image"?(l(),d("img",{key:4,class:"image-content",src:e.safeUrl(e.url)},null,8,bV)):f("v-if",!0),e.type=="media"?(l(),d("iframe",{key:5,class:"h-100 overflow-auto w-100 b-0",src:e.safeUrl(e.url)},null,8,wV)):f("v-if",!0),e.type=="pdf"?(l(),Lt(r,{key:6,src:e.safeUrl(e.url)},null,8,["src"])):f("v-if",!0),e.type=="audio"?(l(),d("div",kV,[o("audio",EV,[o("source",{src:e.safeUrl(e.url)},null,8,CV)])])):f("v-if",!0),e.type=="IPython"?(l(),d("div",_V,[Ce(s,{file:e.url,content:e.content},null,8,["file","content"])])):f("v-if",!0),e.type=="rate_limited"?(l(),d("div",SV,[o("div",NV,[t[3]||(t[3]=de('<div class="paper-ratelimit-head"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-hourglass"></use></svg><div><div class="paper-error-eyebrow">Temporarily paused</div><div class="paper-error-title">GitHub API rate limit reached</div></div></div>',1)),o("p",RV,[t[1]||(t[1]=b("This repository will be available in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[2]||(t[2]=b(". The page will reload automatically.",-1))])])])):f("v-if",!0),e.type=="error"?(l(),d("div",DV,[o("section",TV,[o("h1",AV,c(e.fmt.translate(e.isSourceAccessError()?"VIEWER_ERRORS.access_title":"VIEWER_ERRORS.title")),1),o("p",null,c(e.fmt.translate("ERRORS."+e.content)),1),e.isSourceAccessError()?(l(),d(W,{key:0},[o("p",null,c(e.fmt.translate("VIEWER_ERRORS.reader_help")),1),o("p",null,c(e.fmt.translate("VIEWER_ERRORS.owner_help")),1)],64)):f("v-if",!0),o("div",OV,[e.isSourceAccessError()?f("v-if",!0):(l(),d("a",IV,"Back to home")),e.isSourceAccessError()?f("v-if",!0):(l(),d("a",PV,"Read the FAQ")),o("button",{type:"button",class:"btn btn-primary",onClick:t[0]||(t[0]=a=>e.retryContent())},c(e.fmt.translate("VIEWER_ERRORS.retry")),1),e.isSourceAccessError()?(l(),d("a",VV,c(e.fmt.translate("VIEWER_ERRORS.dashboard")),1)):f("v-if",!0)])])])):f("v-if",!0),e.type=="loading"&&!e.error?(l(),d("div",qV,[...t[4]||(t[4]=[o("h1",{class:"paper-empty-title m-auto"},"Loading\u2026",-1)])])):f("v-if",!0),e.type=="empty"?(l(),d("div",MV,[...t[5]||(t[5]=[o("h1",{class:"paper-empty-title m-auto"},[b("Empty "),o("em",null,"repository"),b(".")],-1)])])):f("v-if",!0),e.content==null&&e.type!="empty"?(l(),d("div",UV,[...t[6]||(t[6]=[o("h1",{class:"paper-empty-title m-auto"},[b("Empty "),o("em",null,"file"),b(".")],-1)])])):f("v-if",!0),e.type=="binary"?(l(),d("div",$V,[o("h1",LV,[t[7]||(t[7]=b("Unsupported ",-1)),t[8]||(t[8]=o("em",null,"binary file",-1)),t[9]||(t[9]=b(". You can ",-1)),o("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,FV),t[10]||(t[10]=b(".",-1))])])):f("v-if",!0)],64)}var zV={class:"container page dashboard-page paper-page"},HV={class:"row"},BV={class:"w-100"},jV={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},GV={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},WV={class:"flex-grow-1"},KV={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},YV={class:"d-flex flex-wrap",style:{gap:"6px"}},JV={class:"dropdown"},QV={class:"dropdown-menu","aria-labelledby":"dropdownSort"},XV={class:"form-check dropdown-item"},ZV={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},xV={class:"form-check dropdown-item"},eq={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},tq={class:"form-check dropdown-item"},oq={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},nq={class:"form-check dropdown-item"},sq={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},rq={class:"form-check dropdown-item"},iq={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},aq={class:"dropdown"},lq={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},dq={class:"form-check dropdown-item"},uq={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},cq={class:"form-check dropdown-item"},pq={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},fq={class:"form-check dropdown-item"},mq={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},hq={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},vq={class:"filter-chip"},yq=["onClick"],gq={class:"repo-list w-100"},bq={class:"repo-list-item-content"},wq={class:"repo-list-item-main"},kq={class:"repo-list-item-header"},Eq=["textContent","href"],Cq=["textContent"],_q=["textContent"],Sq={class:"repo-source"},Nq=["href"],Rq={class:"repo-date"},Dq={class:"repo-meta"},Tq={key:0,title:"Conference"},Aq=["title"],Oq=["title"],Iq=["title"],Pq={key:1},Vq={class:"repo-list-item-actions"},qq={class:"dropdown"},Mq={class:"dropdown-menu dropdown-menu-right"},Uq=["href"],$q=["onClick"],Lq=["onClick"],Fq=["onClick"],zq=["href"],Hq={key:0,class:"repo-list-empty"};function Jl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",zV,[o("div",HV,[o("div",BV,[t[12]||(t[12]=de('<div class="paper-crumbs">My work \xA0/\xA0 <span class="here">Pull requests</span></div><div class="d-flex align-items-end justify-content-between flex-wrap" style="gap:12px;"><div><h1 class="paper-page-title">Anonymized <em>pull requests</em></h1><p class="paper-page-lede">Track PR mirrors you\u2019ve created and their reviewer traffic.</p></div><div class="d-flex flex-wrap" style="gap:6px;"><a href="/anonymize" class="btn btn-ink"><svg class="ui-icon mr-1" aria-hidden="true"><use href="#project-icon-plus"></use></svg> Anonymize Repo </a><a href="/pull-request-anonymize" class="btn btn-ink"><svg class="ui-icon mr-1" aria-hidden="true"><use href="#project-icon-plus"></use></svg> Anonymize PR </a><a title="Claim the ownership of an existing anonymized repository." data-toggle="tooltip" data-placement="bottom" href="/claim" class="btn"> Claim </a></div></div>',2)),f(" Search + filters row "),R((l(),d("form",jV,[o("div",GV,[o("div",WV,[R(o("input",KV,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),o("div",YV,[o("div",JV,[t[6]||(t[6]=o("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),o("div",QV,[t[5]||(t[5]=o("h6",{class:"dropdown-header"},"Select order",-1)),o("div",XV,[R(o("input",ZV,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=o("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),o("div",xV,[R(o("input",eq,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=o("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),o("div",tq,[R(o("input",oq,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),o("div",nq,[R(o("input",sq,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=o("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),o("div",rq,[R(o("input",iq,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=o("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),o("div",aq,[t[11]||(t[11]=o("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),o("div",lq,[t[10]||(t[10]=o("h6",{class:"dropdown-header"},"Select status",-1)),o("div",dq,[R(o("input",uq,null,512),[[n,{state:e.viewState,set:s=>{e.filters.status.ready=s},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=o("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),o("div",cq,[R(o("input",pq,null,512),[[n,{state:e.viewState,set:s=>{e.filters.status.expired=s},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=o("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),o("div",fq,[R(o("input",mq,null,512),[[n,{state:e.viewState,set:s=>{e.filters.status.removed=s},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=o("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[r,e.viewState]]),f(" Active filter chips "),R(o("div",hq,[(l(!0),d(W,null,oe(e.filters?.status,(s,i,a)=>R((l(),d("span",vq,[b(c(e.fmt?.title(i))+" ",1),o("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:u=>{e.filters.status[i]=!0}}," \xD7 ",8,yq)],512)),[[j,!s]])),256))],512),[[j,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),f(" Pull request list "),o("ul",gq,[(l(!0),d(W,null,oe(e.filteredPullRequests,(s,i)=>(l(),d("li",{class:A(["repo-list-item",{"repo-inactive":s?.status=="expired"||s?.status=="removed"||s?.status=="error"}])},[o("div",bq,[o("div",wq,[o("div",kq,[o("a",{class:"repo-name",textContent:c(s?.pullRequestId),href:e.safeUrl("/pr/"+s?.pullRequestId)},null,8,Eq),o("span",{class:A(["status-badge",{"status-removed":s?.status=="removed"||s?.status=="expired"||s?.status=="removing"||s?.status=="expiring","status-preparing":s?.status=="preparing"||s?.status=="download","status-ready":s?.status=="ready","status-error":s?.status=="error"}])},[o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,Cq),s?.status=="error"?(l(),d("span",{key:0,textContent:c(": "+s?.statusMessage)},null,8,_q)):f("v-if",!0)],2)]),o("div",Sq,[o("span",null,[t[13]||(t[13]=o("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),o("a",{href:e.safeUrl("https://github.com/"+s?.source?.repositoryFullName+"/pull/"+s?.source?.pullRequestId)},c(s?.source?.repositoryFullName)+"#"+c(s?.source?.pullRequestId),9,Nq)]),o("span",{class:A(["status-badge",{"status-ready":s?.merged,"status-removed":s?.state=="open","status-error":s?.state=="closed"&&!s?.merged}]),style:{"font-size":"10px"}},c(e.fmt?.title(s?.merged?"merged":s?.state)),3),o("span",Rq,"anonymized "+c(e.fmt?.humanTime(s?.anonymizeDate)),1)])]),o("div",Dq,[s?.conference?(l(),d("span",Tq,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),b(" "+c(s?.conference),1)])):f("v-if",!0),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+s?.options?.terms?.join(", ")},[t[15]||(t[15]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),b(" "+c(e.fmt?.number(s?.options?.terms?.length)),1)],8,Aq),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(s?.pageView)},[t[16]||(t[16]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),b(" "+c(e.fmt?.number(s?.pageView)),1)],8,Oq),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(s?.lastView)},[t[17]||(t[17]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-calendar"})],-1)),b(" "+c(e.fmt?.humanTime(s?.lastView)),1)],8,Iq),s?.options?.expirationMode!="never"&&s?.status=="ready"?(l(),d("span",Pq,[t[18]||(t[18]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),b(" Expire: "+c(e.fmt?.humanTime(s?.options?.expirationDate)),1)])):f("v-if",!0)])]),o("div",Vq,[o("div",qq,[t[24]||(t[24]=o("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),o("div",Mq,[o("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+s?.pullRequestId)},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit ",-1)])],8,Uq),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updatePullRequest(s),["prevent"])},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force update ",-1)])],8,$q),[[j,s?.status=="ready"||s?.status=="error"]]),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updatePullRequest(s),["prevent"])},[...t[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Enable ",-1)])],8,Lq),[[j,s?.status=="removed"]]),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.removePullRequest(s),["prevent"])},[...t[22]||(t[22]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove ",-1)])],8,Fq),[[j,s?.status=="ready"]]),o("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+s?.pullRequestId+"/")},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View PR ",-1)])],8,zq)])])])],2))),256)),e.filteredPullRequests?.length==0?(l(),d("li",Hq,[...t[25]||(t[25]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No pull requests to display.",-1)])])):f("v-if",!0)])])])}var Bq={class:"container paper-page paper-settings"},jq={class:"paper-settings-body"},Gq={class:"paper-settings-toc"},Wq={class:"paper-settings-main"},Kq={id:"settings-quota",class:"paper-settings-section"},Yq={key:1,class:"quota-row","aria-hidden":"true"},Jq={class:"quota-item"},Qq={id:"settings-terms",class:"paper-settings-section"},Xq={class:"form-group"},Zq={class:"form-control",id:"terms",name:"terms",rows:"4",placeholder:`Jane Smith
|
|
MIT CSAIL
|
|
jane.smith@example.org`},xq={id:"termsHelp",class:"form-text text-muted"},eM={class:"invalid-feedback"},tM={id:"settings-display",class:"paper-settings-section"},oM={class:"form-group paper-check-list"},nM={class:"form-check"},sM={class:"form-check-input",type:"checkbox",id:"link",name:"link"},rM={class:"form-check"},iM={class:"form-check-input",type:"checkbox",id:"image",name:"image"},aM={class:"form-check"},lM={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},dM={class:"form-check"},uM={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},cM={id:"settings-features",class:"paper-settings-section"},pM={class:"form-group paper-check-list"},fM={class:"form-check"},mM={class:"form-check-input",type:"checkbox",id:"page",name:"page"},hM={class:"form-check"},vM={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},yM={class:"form-check"},gM={class:"form-check-input",type:"checkbox",id:"update",name:"update"},bM={class:"form-group"},wM={class:"form-control",id:"mode",name:"mode"},kM={class:"form-text text-muted"},EM={id:"settings-expiration",class:"paper-settings-section"},CM={class:"form-group"},_M={class:"form-control",id:"expiration",name:"expiration"},SM={key:0,class:"draft-status",role:"status"},NM={key:1,class:"draft-status"},RM={class:"paper-settings-footer"},DM={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},TM=["textContent"],AM={class:"paper-settings-actions"},OM=["disabled"],IM={key:0,class:"ui-icon mr-1","aria-hidden":"true"},PM={id:"settings-account",class:"paper-settings-section"},VM={class:"paper-account-card"},qM=["src"],MM={class:"paper-account-identity"},UM={class:"paper-account-name"},$M=["disabled"],LM={key:0,role:"status"},FM={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},zM=["disabled"],HM={key:3,role:"status"},BM={class:"paper-danger-zone"},jM={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},GM=["textContent"],WM=["disabled"];function Ql(e,t){let n=Ge("quota-usage"),r=ve("paper-scrollspy"),s=ve("field"),i=ve("form");return l(),d("div",Bq,[t[58]||(t[58]=de('<div class="paper-crumbs"><a href="/dashboard">My work</a> \xA0/\xA0 <span class="here">Settings</span></div><h1 class="paper-page-title">Your <em>settings</em></h1><p class="paper-page-lede">Defaults applied to every new anonymization, your quotas, and your account.</p>',3)),o("div",jq,[R((l(),d("aside",Gq,[...t[8]||(t[8]=[de('<div class="paper-settings-toc-head">On this page</div><nav><a href="#settings-quota">Quota</a><a href="#settings-terms">Terms to redact</a><a href="#settings-display">Display</a><a href="#settings-features">Features</a><a href="#settings-expiration">Expiration</a><a href="#settings-account">Account</a></nav>',2)])])),[[r]]),o("div",Wq,[f(" Account usage shares the dashboard component. "),o("section",Kq,[t[10]||(t[10]=o("div",{class:"paper-section-eyebrow"},"Quota",-1)),t[11]||(t[11]=o("p",{class:"paper-section-copy"},"What you are using across all your anonymizations. Conferences can lift these limits during a review window.",-1)),e.quota?(l(),Lt(n,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):f("v-if",!0),e.quota?f("v-if",!0):(l(),d("div",Yq,[(l(),d(W,null,oe([1,2,3],(a,u)=>o("div",Jq,[...t[9]||(t[9]=[o("div",{class:"quota-header"},[o("span",{class:"skeleton skeleton-line",style:{width:"40%"}}),o("span",{class:"skeleton skeleton-line",style:{width:"25%"}})],-1),o("div",{class:"quota-track"},null,-1)])])),64))]))]),R((l(),d("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onSubmit:t[2]||(t[2]=ie(a=>e.submitForm(a,()=>{e.saveDefault(a)}),["prevent"]))},[o("section",Qq,[t[17]||(t[17]=o("div",{class:"paper-section-eyebrow"},"Terms to redact",-1)),t[18]||(t[18]=o("p",{class:"paper-section-copy"},"Pre-filled in every new anonymization. You can still edit the list per anonymization.",-1)),o("div",Xq,[t[16]||(t[16]=o("label",{class:"paper-field-label",for:"terms"},"Default terms",-1)),R(o("textarea",Zq,null,512),[[s,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),o("small",xq,[t[12]||(t[12]=b(" One term per line (regex allowed). Each match is replaced by ",-1)),o("code",null,c(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[13]||(t[13]=b(", or use ",-1)),t[14]||(t[14]=o("code",null,"term=>replacement",-1)),t[15]||(t[15]=b(" to pick your own. ",-1))]),R(o("div",eM," Terms are in an invalid format ",512),[[j,e.defaultsForm?.terms?.errors?.format]])])]),o("section",tM,[t[27]||(t[27]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),t[28]||(t[28]=o("p",{class:"paper-section-copy"},"What reviewers can see inside an anonymized repository.",-1)),o("div",oM,[o("div",nM,[R(o("input",sM,null,512),[[s,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[19]||(t[19]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[20]||(t[20]=o("small",{class:"form-text text-muted"},"Unchecked, every link in text files is removed.",-1))]),o("div",rM,[R(o("input",iM,null,512),[[s,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[21]||(t[21]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[22]||(t[22]=o("small",{class:"form-text text-muted"},"Images are shown as is. They are not anonymized.",-1))]),o("div",aM,[R(o("input",lM,null,512),[[s,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[23]||(t[23]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[24]||(t[24]=o("small",{class:"form-text text-muted"},"PDFs are shown as is. They are not anonymized.",-1))]),o("div",dM,[R(o("input",uM,null,512),[[s,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[25]||(t[25]=o("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[26]||(t[26]=o("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])])]),o("section",cM,[t[37]||(t[37]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",pM,[o("div",fM,[R(o("input",mM,null,512),[[s,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=o("small",{class:"form-text text-muted"},"Serve an anonymized copy of the repository's GitHub Pages site. Only pages built from the anonymized branch are supported.",-1))]),o("div",hM,[R(o("input",vM,null,512),[[s,{state:e.viewState,set:a=>{e.options.loc=a},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[31]||(t[31]=o("label",{class:"form-check-label",for:"loc"},"Lines of code",-1)),t[32]||(t[32]=o("small",{class:"form-text text-muted"},"Show the line count of the repository in the explorer.",-1))]),o("div",yM,[R(o("input",gM,null,512),[[s,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[33]||(t[33]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[34]||(t[34]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))])]),o("div",bM,[t[36]||(t[36]=o("label",{class:"paper-field-label",for:"mode"},"Fetch mode",-1)),R((l(),d("select",wM,[...t[35]||(t[35]=[o("option",{value:"GitHubStream",selected:""},"Stream from GitHub on demand",-1),o("option",{value:"GitHubDownload"},"Download to Anonymous GitHub",-1)])])),[[s,{state:e.viewState,set:a=>{e.options.mode=a},value:e.options?.mode,form:"defaultsForm",options:{}}]]),o("small",kM," Download is faster for reviewers and enables every feature. Streaming is the only option above "+c(e.fmt?.humanFileSize(e.site_options?.MAX_REPO_SIZE*1024))+". ",1)])]),o("section",EM,[t[41]||(t[41]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",CM,[t[39]||(t[39]=o("label",{class:"paper-field-label",for:"expiration"},"When an anonymization expires",-1)),R((l(),d("select",_M,[...t[38]||(t[38]=[o("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),o("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[s,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),t[40]||(t[40]=o("small",{class:"form-text text-muted"}," The expiration date itself is chosen per anonymization. Redirecting reveals the source repository, so pick it only once the review is over. ",-1))])]),e.draftRestored?(l(),d("div",SM,[t[42]||(t[42]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[0]||(t[0]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",NM,[b(c(e.draftSaved?"Draft saved in this tab for 30 minutes.":"Unsaved changes. Keep this tab open until you save.")+" ",1),o("button",{type:"button",class:"draft-discard",onClick:t[1]||(t[1]=a=>e.discardDraft())},c(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):f("v-if",!0),o("div",RM,[e.error?(l(),d("div",DM,[t[43]||(t[43]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[44]||(t[44]=b()),o("span",{textContent:c(e.error)},null,8,TM)])):f("v-if",!0),o("div",AM,[o("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},[e.message?(l(),d("svg",IM,[...t[45]||(t[45]=[o("use",{href:"#ui-icon-check"},null,-1)])])):f("v-if",!0),b(c(e.saving?"Saving\u2026":e.message?"Saved":"Save defaults"),1)],8,OM),t[46]||(t[46]=o("span",{class:"paper-settings-hint"},"Applies to new anonymizations only. Existing ones keep their settings.",-1))])])],32)),[[i,e.viewState]]),o("section",PM,[t[56]||(t[56]=o("div",{class:"paper-section-eyebrow"},"Account",-1)),o("div",VM,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,qM)):f("v-if",!0),o("div",MM,[o("div",UM,"@"+c(e.user?.username),1),t[47]||(t[47]=o("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[48]||(t[48]=o("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),o("form",{class:"paper-account-email",onSubmit:t[6]||(t[6]=ie(a=>e.saveAccountEmail(),["prevent"]))},[t[49]||(t[49]=o("label",{class:"paper-field-label",for:"account-email"},"Email address",-1)),t[50]||(t[50]=o("p",{id:"account-email-help",class:"paper-section-copy"},"Used for account alerts. Your address is never shown on anonymous pages.",-1)),R(o("input",{id:"account-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[3]||(t[3]=a=>e.accountEmail=a),"aria-describedby":"account-email-help",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady,onInput:t[4]||(t[4]=a=>e.emailSaved=!1)},null,40,$M),[[zt,e.accountEmail]]),e.emailLoading?(l(),d("p",LM,"Loading your email address\u2026")):f("v-if",!0),e.emailError?(l(),d("p",FM,c(e.emailError),1)):f("v-if",!0),!e.emailCSRFReady&&!e.emailLoading?(l(),d("button",{key:2,class:"btn btn-outline-ink mt-2",type:"button",onClick:t[5]||(t[5]=a=>e.loadAccountEmail())},"Try again")):f("v-if",!0),o("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady},c(e.emailSaving?"Saving\u2026":"Save email address"),9,zM),e.emailSaved?(l(),d("p",HM,"Email address saved.")):f("v-if",!0)],32),t[57]||(t[57]=o("a",{class:"paper-settings-connection-link",href:"/connections"},[o("i",{class:"fab fa-github","aria-hidden":"true"}),o("span",null,[b("GitHub connections"),o("small",null,"Manage repository access and legacy OAuth.")]),o("span",{"aria-hidden":"true"},"\u2192")],-1)),o("div",BM,[t[54]||(t[54]=o("div",{class:"paper-danger-head"},"Delete account",-1)),t[55]||(t[55]=o("p",{class:"paper-danger-copy"}," Removes all your anonymized repositories, gists, and pull requests, revokes the application's access to your GitHub account, and erases your personal data (username, email, access tokens). This cannot be undone. ",-1)),e.deleteError?(l(),d("div",jM,[t[51]||(t[51]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[52]||(t[52]=b()),o("span",{textContent:c(e.deleteError)},null,8,GM)])):f("v-if",!0),o("button",{type:"button",class:"btn btn-outline-danger",onClick:t[7]||(t[7]=a=>e.deleteAccount()),disabled:e.deletingAccount},[t[53]||(t[53]=o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)),b(c(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,WM)])])])])])}var KM={class:"pr-page"},YM={class:"container paper-page pr-page-inner"},JM={class:"pr-header"},QM={class:"pr-title-row"},XM={class:"paper-page-title pr-title"},ZM=["textContent"],xM={key:1,class:"text-muted"},e8=["href"],t8={class:"pr-header-meta"},o8={key:0,class:"pr-meta-item"},n8=["textContent"],s8={key:1,class:"pr-meta-item"},r8=["textContent"],i8={key:2,class:"pr-meta-item"},a8=["textContent"],l8={key:0,class:"pr-body-card"},d8={key:1,class:"paper-tabs",role:"tablist"},u8=["aria-selected","tabindex"],c8=["aria-selected","tabindex"],p8=["textContent"],f8={class:"paper-tab-content"},m8={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},h8=["innerHTML"],v8={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},y8={class:"pr-comments"},g8={class:"pr-comment"},b8={class:"pr-comment-head"},w8={key:0,class:"pr-comment-author"},k8=["textContent"],E8=["textContent"],C8={key:0,class:"pr-comment-body"},_8={key:0,class:"paper-table-empty"};function Xl(e,t){let n=Ge("markdown");return l(),d("div",KM,[o("div",YM,[t[17]||(t[17]=o("div",{class:"paper-crumbs"},[o("a",{href:"/dashboard"},"Reviewer"),b(" \xA0/\xA0 "),o("span",{class:"here"},"Pull request")],-1)),o("header",JM,[o("div",QM,[o("h1",XM,[e.details?.title?(l(),d("span",{key:0,textContent:c(e.details?.title)},null,8,ZM)):f("v-if",!0),e.details?.title?f("v-if",!0):(l(),d("span",xM,"Untitled pull request"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[4]||(t[4]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,e8)):f("v-if",!0)]),o("div",t8,[o("span",{class:A(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[o("span",{class:A(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),b(" "+c(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(l(),d("span",o8,[t[5]||(t[5]=o("i",{class:"fab fa-github"},null,-1)),t[6]||(t[6]=b()),o("span",{textContent:c(e.details?.baseRepositoryFullName)},null,8,n8)])):f("v-if",!0),e.details?.updatedDate?(l(),d("span",s8,[t[7]||(t[7]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=b()),o("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,r8)])):f("v-if",!0),e.details?.anonymizeDate?(l(),d("span",i8,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=b(" Anonymized ",-1)),o("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,a8)])):f("v-if",!0)])]),e.details?.body?(l(),d("section",l8,[t[11]||(t[11]=o("div",{class:"paper-section-eyebrow"},"Description",-1)),Ce(n,{content:e.details?.body},null,8,["content"])])):f("v-if",!0),e.details?.diff||e.details?.comments?(l(),d("nav",d8,[e.details?.diff?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",id:"pr-diff-tab","aria-selected":e.tabState?.active==="diff","aria-controls":"pr-diff-panel",tabindex:e.tabState?.active==="diff"?0:-1,onKeydown:t[0]||(t[0]=r=>e.previewTabKeydown(r)),onClick:t[1]||(t[1]=r=>e.tabState.active="diff")},[...t[12]||(t[12]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),b(" Diff ",-1)])],42,u8)):f("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"pr-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"pr-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=r=>e.previewTabKeydown(r)),onClick:t[3]||(t[3]=r=>e.tabState.active="comments")},[t[13]||(t[13]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,p8)],42,c8)):f("v-if",!0)])):f("v-if",!0),o("div",f8,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",m8,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,h8)])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",v8,[o("ul",y8,[(l(!0),d(W,null,oe(e.details?.comments,(r,s)=>(l(),d("li",g8,[o("div",b8,[r?.author?(l(),d("span",w8,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=b(" @",-1)),o("span",{textContent:c(r?.author)},null,8,k8)])):f("v-if",!0),r?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(r?.updatedDate))},null,8,E8)):f("v-if",!0)]),r?.body?(l(),d("div",C8,[Ce(n,{content:r?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(l(),d("li",_8,[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1),o("span",null,"No comments on this pull request.",-1)])]))])])):f("v-if",!0)])])])}var S8={class:"container paper-page status-page"},N8={class:"d-flex align-items-center justify-content-between flex-wrap",style:{gap:"12px"}},R8={class:"paper-page-title"},D8=["textContent"],T8={key:1},A8={class:"paper-settings-section"},O8=["textContent"],I8={key:0,class:"paper-section-copy"},P8={key:1,class:"paper-ratelimit-card",role:"status"},V8={class:"paper-error-msg"},q8=["aria-valuenow"],M8={class:"paper-progress-label"},U8=["textContent"],$8={key:0},L8=["textContent"],F8={class:"paper-progress-pct"},z8={key:3,class:"paper-error-card",role:"alert"},H8={key:0,class:"paper-error-msg"},B8={key:1,class:"paper-error-msg"},j8={class:"paper-error-actions"},G8=["href"],W8={key:4,class:"share-link"},K8={class:"share-link-row"},Y8=["value"],J8={class:"ui-icon","aria-hidden":"true"},Q8=["href"],X8=["textContent"],Z8={class:"share-link-actions"},x8=["href"],e6=["href"];function Zl(e,t){return l(),d("div",S8,[t[16]||(t[16]=o("div",{class:"paper-crumbs"},[b("Anonymization \xA0/\xA0 "),o("span",{class:"here"},"Status")],-1)),o("div",N8,[o("div",null,[o("h1",R8,[t[2]||(t[2]=b("Status of ",-1)),o("em",null,c(e.repoId),1)]),t[3]||(t[3]=o("p",{class:"paper-page-lede"},"Track progress as your anonymization is prepared.",-1))]),o("span",{class:A(["status-pill",{"status-pill-ready":e.repo?.status=="ready","status-pill-error":e.repo?.status=="error","status-pill-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-pill-ratelimit":e.rateLimitResetAt}])},[o("span",{class:A(["status-dot",{"status-ready":e.repo?.status=="ready","status-error":e.repo?.status=="error","status-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-ratelimit":e.rateLimitResetAt}])},null,2),e.rateLimitResetAt?f("v-if",!0):(l(),d("span",{key:0,textContent:c(e.fmt?.title(e.repo?.status))},null,8,D8)),e.rateLimitResetAt?(l(),d("span",T8,"Rate limited")):f("v-if",!0)],2)]),o("section",A8,[o("div",{class:"paper-section-eyebrow",textContent:c(e.repo?.status=="ready"?"Your anonymous link":"Progress")},null,8,O8),e.repo?.status!="ready"?(l(),d("p",I8,[...t[4]||(t[4]=[b(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),o("a",{href:"/faq"},"FAQ",-1),b(" for more information. ",-1)])])):f("v-if",!0),e.rateLimitResetAt?(l(),d("div",P8,[t[7]||(t[7]=de('<div class="paper-ratelimit-head"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-hourglass"></use></svg><div><div class="paper-error-eyebrow">Temporarily paused</div><div class="paper-error-title">GitHub API rate limit reached</div></div></div>',1)),o("p",V8,[t[5]||(t[5]=b("Anonymization will resume automatically in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[6]||(t[6]=b(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):f("v-if",!0),e.repo?.status!="error"&&e.repo?.status!="ready"&&!e.rateLimitResetAt?(l(),d("div",{key:2,class:A(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[o("div",{class:"paper-progress-bar",style:Ie("width: "+e.progress+"%;")},null,4),o("div",M8,[o("span",{textContent:c(e.fmt?.title(e.repo?.status))},null,8,U8),e.repo?.statusMessage?(l(),d("span",$8,[t[8]||(t[8]=b("\xA0\xB7\xA0",-1)),o("span",{textContent:c(e.repo?.statusMessage)},null,8,L8)])):f("v-if",!0),o("span",F8,c(e.progress||0)+"%",1)])],10,q8)):f("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",z8,[t[11]||(t[11]=de('<div class="paper-error-head"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-warning"></use></svg><div><div class="paper-error-eyebrow">Anonymization failed</div><div class="paper-error-title">Something went wrong while preparing this repository.</div></div></div>',1)),e.repo?.statusMessage?(l(),d("p",H8,c(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):f("v-if",!0),e.repo?.statusMessage?f("v-if",!0):(l(),d("p",B8,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),t[12]||(t[12]=o("ul",{class:"paper-error-hints"},[o("li",null,"Make sure the source URL points to a repository or pull request you can access."),o("li",null,"Check that the chosen branch and commit still exist on GitHub."),o("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),o("div",j8,[o("a",{class:"btn btn-ink",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[9]||(t[9]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit anonymization",-1)])],8,G8),t[10]||(t[10]=de('<a class="btn" href="/faq"><svg class="ui-icon mr-1" aria-hidden="true"><use href="#ui-icon-help"></use></svg> Read the FAQ</a><a class="btn" href="https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml" target="_blank" rel="noopener"><svg class="ui-icon mr-1" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Report a bug in Anonymous GitHub</a>',2))])])):f("v-if",!0),e.repo?.status=="ready"?(l(),d("div",W8,[t[15]||(t[15]=o("p",{class:"paper-section-copy"},"Reviewers can browse the repository at this address without seeing who you are.",-1)),o("div",K8,[o("input",{id:"share-url",class:"form-control share-link-input",readonly:"","aria-label":"Anonymous link",value:e.shareUrl,onFocus:t[0]||(t[0]=n=>n.target.select())},null,40,Y8),o("button",{type:"button",class:"btn btn-ink",onClick:t[1]||(t[1]=n=>e.copyShareUrl())},[(l(),d("svg",J8,[o("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,Q8)])),o("span",{"aria-live":"polite",textContent:c(e.copied?"Copied":"Copy link")},null,8,X8)])]),o("div",Z8,[o("a",{class:"btn",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" Open repository ",-1)])],8,x8),e.repo?.options?.page?(l(),d("a",{key:0,class:"btn",target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" Open GitHub page ",-1)])],8,e6)):f("v-if",!0)])])):f("v-if",!0)]),t[17]||(t[17]=de('<section class="paper-settings-section"><div class="paper-section-eyebrow">Support Anonymous GitHub</div><p class="paper-section-copy"> A small team keeps this running. If it helps you, please consider contributing back \u2014 in code, ideas, or coffee. </p><div class="paper-support-grid"><a class="paper-support-card" href="https://github.com/tdurieux/anonymous_github/" target="_blank" rel="noopener"><div class="paper-support-eyebrow"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Contribute</div><p>Collaborate by implementing new features and fixing bugs. Help with new file formats or deployment is welcome.</p><span class="paper-support-cta">Open on GitHub <svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-arrow-right"></use></svg></span></a><a class="paper-support-card" href="https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml" target="_blank" rel="noopener"><div class="paper-support-eyebrow"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-comment"></use></svg> Feedback</div><p>Tell us about bugs and missing features in Anonymous GitHub itself. Questions about an anonymized repository go to its authors.</p><span class="paper-support-cta">File an issue <svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-arrow-right"></use></svg></span></a><a class="paper-support-card" href="https://github.com/sponsors/tdurieux/" target="_blank" rel="noopener"><div class="paper-support-eyebrow"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-heart"></use></svg> Sponsor</div><p>Server costs hover around $25 a month. Any contribution helps keep the lights on.</p><span class="paper-support-cta">GitHub Sponsors <svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-arrow-right"></use></svg></span></a></div></section>',1))])}var ls={"partials/reviewConsent.htm":_l,"partials/connections.htm":Sl,"partials/signin.htm":Nl,"partials/404.htm":Rl,"partials/admin/conferences.htm":Dl,"partials/admin/errors.htm":Tl,"partials/admin/overview.htm":Al,"partials/admin/queues.htm":Ol,"partials/admin/repositories.htm":Il,"partials/admin/user.htm":Pl,"partials/admin/users.htm":Vl,"partials/anonymize.htm":ql,"partials/anonymizePullRequest.htm":Ml,"partials/claim.htm":Ul,"partials/conference.htm":$l,"partials/conferences.htm":Ll,"partials/dashboard.htm":Fl,"partials/explorer.htm":zl,"partials/faq.htm":Hl,"partials/gist.htm":Bl,"partials/header.htm":jl,"partials/home.htm":Gl,"partials/loading.htm":Wl,"partials/newConference.htm":Kl,"partials/pageView.htm":Yl,"partials/pr-dashboard.htm":Jl,"partials/profile.htm":Ql,"partials/pullRequest.htm":Xl,"partials/status.htm":Zl};var t6={class:"ui-icon-definitions","aria-hidden":"true",focusable:"false"};function xl(e,t){return l(),d("svg",t6,[...t[0]||(t[0]=[de('<defs><symbol id="project-type-repo" viewBox="0 0 24 24"><path d="M6 3h13v18H6a3 3 0 0 1 0-6h13M3 18V6a3 3 0 0 1 3-3M8 7h6"></path></symbol><symbol id="project-type-pr" viewBox="0 0 24 24"><circle cx="6" cy="5" r="2.5"></circle><circle cx="6" cy="19" r="2.5"></circle><circle cx="18" cy="19" r="2.5"></circle><path d="M6 7.5v9M18 16.5V9a4 4 0 0 0-4-4h-3m3-3-3 3 3 3"></path></symbol><symbol id="project-type-gist" viewBox="0 0 24 24"><path d="M14 3H5v18h14V8l-5-5v5h5M9 12l-2 2 2 2m6-4 2 2-2 2"></path></symbol><symbol id="project-icon-copy" viewBox="0 0 24 24"><rect x="8" y="8" width="12" height="13" rx="2"></rect><path d="M15 8V3H3v13h5"></path></symbol><symbol id="project-icon-more" viewBox="0 0 24 24"><circle cx="5" cy="12" r="1"></circle><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle></symbol><symbol id="project-icon-eye" viewBox="0 0 24 24"><path d="M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z"></path><circle cx="12" cy="12" r="3"></circle></symbol><symbol id="project-icon-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"></circle><path d="M12 7v5l3 2"></path></symbol><symbol id="project-icon-conference" viewBox="0 0 24 24"><path d="m3 8 9-5 9 5H3Zm2 3v7m5-7v7m4-7v7m5-7v7M3 21h18"></path></symbol><symbol id="project-icon-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"></path></symbol><symbol id="project-icon-filter" viewBox="0 0 24 24"><path d="M3 6h18M3 12h18M3 18h18"></path><circle cx="8" cy="6" r="2"></circle><circle cx="16" cy="12" r="2"></circle><circle cx="9" cy="18" r="2"></circle></symbol><symbol id="project-icon-arrow" viewBox="0 0 24 24"><path d="M12 4v16m-5-5 5 5 5-5"></path></symbol><symbol id="project-icon-close" viewBox="0 0 24 24"><path d="m6 6 12 12M6 18 18 6"></path></symbol><symbol id="project-icon-chevron" viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"></path></symbol><symbol id="project-icon-storage" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="7" rx="2"></rect><rect x="3" y="13" width="18" height="7" rx="2"></rect><path d="M7 7.5h.01M7 16.5h.01M11 7.5h6M11 16.5h6"></path></symbol><symbol id="project-icon-file" viewBox="0 0 24 24"><path d="M14 3H5v18h14V8l-5-5v5h5M9 12h6M9 16h6"></path></symbol><symbol id="project-icon-inbox" viewBox="0 0 24 24"><path d="m3 14 3-9h12l3 9v6H3v-6h5l2 3h4l2-3h5"></path></symbol><symbol id="ui-icon-arrow-left" viewBox="0 0 24 24"><path d="M20 12H4m6-6-6 6 6 6"></path></symbol><symbol id="ui-icon-arrow-right" viewBox="0 0 24 24"><path d="M4 12h16m-6-6 6 6-6 6"></path></symbol><symbol id="ui-icon-check" viewBox="0 0 24 24"><path d="m5 12 4 4L19 6"></path></symbol><symbol id="ui-icon-check-circle" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"></circle><path d="m7 12 3 3 7-7"></path></symbol><symbol id="ui-icon-edit" viewBox="0 0 24 24"><path d="m15 4 5 5M4 20l5-1L21 7l-5-5L4 14v6Z"></path></symbol><symbol id="ui-icon-external-link" viewBox="0 0 24 24"><path d="M14 3h7v7m0-7L10 14M10 3H3v18h18v-7"></path></symbol><symbol id="ui-icon-key" viewBox="0 0 24 24"><circle cx="8" cy="8" r="5"></circle><path d="m12 12 9 9m-6-6 3-3m0 6 3-3"></path></symbol><symbol id="ui-icon-refresh" viewBox="0 0 24 24"><path d="M20 8a8 8 0 0 0-14-3L3 8m0-5v5h5M4 16a8 8 0 0 0 14 3l3-3m0 5v-5h-5"></path></symbol><symbol id="ui-icon-info" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"></circle><path d="M12 11v6M12 7h.01"></path></symbol><symbol id="ui-icon-warning" viewBox="0 0 24 24"><path d="m12 3 10 18H2L12 3Zm0 6v5m0 3h.01"></path></symbol><symbol id="ui-icon-help" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"></circle><path d="M9 9a3 3 0 0 1 6 0c0 2-3 2-3 4m0 4h.01"></path></symbol><symbol id="ui-icon-user" viewBox="0 0 24 24"><circle cx="12" cy="7" r="4"></circle><path d="M4 21v-3a8 8 0 0 1 16 0v3"></path></symbol><symbol id="ui-icon-users" viewBox="0 0 24 24"><circle cx="9" cy="7" r="4"></circle><path d="M2 21v-3a7 7 0 0 1 14 0v3M16 3a4 4 0 0 1 0 8m3 3a6 6 0 0 1 3 5v2"></path></symbol><symbol id="ui-icon-shield" viewBox="0 0 24 24"><path d="m12 3 9 4v6c0 4-9 9-9 9S3 17 3 13V7l9-4Z"></path></symbol><symbol id="ui-icon-code" viewBox="0 0 24 24"><path d="m7 6-6 6 6 6m10-12 6 6-6 6m-4-14-2 16"></path></symbol><symbol id="ui-icon-comment" viewBox="0 0 24 24"><path d="M21 3H3v14h5l4 4v-4h9V3Z"></path><path d="M7 8h10M7 12h6"></path></symbol><symbol id="ui-icon-save" viewBox="0 0 24 24"><path d="M3 3h14l4 4v14H3V3Zm4 0v7h10V3M7 21v-7h10v7"></path></symbol><symbol id="ui-icon-heart" viewBox="0 0 24 24"><path d="M12 21 3 12C-2 6 7-1 12 6c5-7 14 0 9 6l-9 9Z"></path></symbol><symbol id="ui-icon-globe" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"></circle><ellipse cx="12" cy="12" rx="4" ry="9"></ellipse><path d="M3 12h18"></path></symbol><symbol id="ui-icon-hourglass" viewBox="0 0 24 24"><path d="M5 3h14M5 21h14M6 3v4l6 5 6-5V3M6 21v-4l6-5 6 5v4"></path></symbol><symbol id="ui-icon-moon" viewBox="0 0 24 24"><path d="M20 14A9 9 0 0 1 10 3a9 9 0 1 0 10 11Z"></path></symbol><symbol id="ui-icon-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"></circle><path d="M12 1v2m0 18v2M1 12h2m18 0h2M4 4l2 2m12 12 2 2M4 20l2-2M18 6l2-2"></path></symbol><symbol id="ui-icon-grid" viewBox="0 0 24 24"><rect x="3" y="3" width="7" height="7" rx="1"></rect><rect x="14" y="3" width="7" height="7" rx="1"></rect><rect x="3" y="14" width="7" height="7" rx="1"></rect><rect x="14" y="14" width="7" height="7" rx="1"></rect></symbol><symbol id="ui-icon-logout" viewBox="0 0 24 24"><path d="M9 3H3v18h6M9 12h12m-4-4 4 4-4 4"></path></symbol><symbol id="ui-icon-link" viewBox="0 0 24 24"><path d="m10 7 3-3a5 5 0 0 1 7 7l-3 3M7 10l-3 3a5 5 0 0 0 7 7l3-3M8 16l8-8"></path></symbol><symbol id="ui-icon-chart" viewBox="0 0 24 24"><path d="M3 3v18h18M7 16V9m5 7V5m5 11v-5"></path></symbol><symbol id="ui-icon-list" viewBox="0 0 24 24"><path d="M9 5h12M9 12h12M9 19h12m-18-14 1 1 2-2m-3 8 1 1 2-2m-3 8 1 1 2-2"></path></symbol><symbol id="ui-icon-bug" viewBox="0 0 24 24"><rect x="7" y="7" width="10" height="14" rx="5"></rect><path d="M9 7V5a3 3 0 0 1 6 0v2M12 7v14M3 8l4 2m-4 5h4m-4 7 4-4M21 8l-4 2m4 5h-4m4 7-4-4"></path></symbol><symbol id="ui-icon-chevron-left" viewBox="0 0 24 24"><path d="m15 5-7 7 7 7"></path></symbol><symbol id="ui-icon-chevron-right" viewBox="0 0 24 24"><path d="m9 5 7 7-7 7"></path></symbol><symbol id="ui-icon-download" viewBox="0 0 24 24"><path d="M12 3v12m-5-5 5 5 5-5M3 16v5h18v-5"></path></symbol><symbol id="ui-icon-export" viewBox="0 0 24 24"><path d="M13 3H3v18h14v-6M12 9h9m-4-4 4 4-4 4"></path></symbol><symbol id="ui-icon-clipboard" viewBox="0 0 24 24"><path d="M8 5H4v16h16V5h-4"></path><rect x="8" y="2" width="8" height="6" rx="2"></rect></symbol><symbol id="ui-icon-ban" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"></circle><path d="m6 6 12 12"></path></symbol><symbol id="ui-icon-trash" viewBox="0 0 24 24"><path d="M3 6h18M9 6V3h6v3M5 6l1 15h12l1-15M10 10v7m4-7v7"></path></symbol><symbol id="ui-icon-broom" viewBox="0 0 24 24"><path d="m16 3-5 8m-7 5 6-6 6 4-3 7H3l1-5Zm1 5 4-6"></path></symbol><symbol id="ui-icon-database" viewBox="0 0 24 24"><ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M3 5v14c0 4 18 4 18 0V5M3 12c0 4 18 4 18 0"></path></symbol><symbol id="ui-icon-user-minus" viewBox="0 0 24 24"><circle cx="9" cy="7" r="4"></circle><path d="M2 21v-3a7 7 0 0 1 14 0v3m0-11h7"></path></symbol><symbol id="ui-icon-user-shield" viewBox="0 0 24 24"><circle cx="8" cy="6" r="4"></circle><path d="M1 21v-4a7 7 0 0 1 10-6m7 0 5 2v4c0 3-5 6-5 6s-5-3-5-6v-4l5-2Z"></path></symbol><symbol id="ui-icon-spinner" viewBox="0 0 24 24"><path d="M21 12a9 9 0 1 1-9-9"></path></symbol><symbol id="ui-icon-archive" viewBox="0 0 24 24"><path d="M3 3h18v5H3V3Zm2 5v13h14V8M10 3v3m4 3v3m-4 3v3m4 0v3"></path></symbol><symbol id="ui-icon-calendar" viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="16" rx="2"></rect><path d="M7 2v6m10-6v6M3 11h18"></path></symbol><symbol id="ui-icon-search" viewBox="0 0 24 24"><circle cx="10" cy="10" r="7"></circle><path d="m15 15 7 7"></path></symbol><symbol id="ui-icon-folder" viewBox="0 0 24 24"><path d="M3 20V4h6l2 3h10v13H3Z"></path></symbol></defs>',1)])])}function ed(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1),e==="partials/anonymize.htm"&&(t.prTabState={active:t.options.diff?"diff":"comments"},t.watchGroup(["options.diff","options.comments"],()=>{t.options[t.prTabState.active]||(t.prTabState.active=t.options.diff?"diff":t.options.comments?"comments":null)})),e==="partials/gist.htm"&&(t.tabState={active:t.details?.files?"files":"comments"}),["partials/conferences.htm","partials/conference.htm"].includes(e)&&(t.statusLabels={ready:"Ready",expired:"Expired",removed:"Removed"});let r={"partials/dashboard.htm":["filteredItems",()=>t.items,"itemFilter"],"partials/conferences.htm":["filteredConferences",()=>t.conferences,"conferenceFilter"],"partials/conference.htm":["filteredRepositories",()=>t.conference?.repositories,"repoFiler"],"partials/admin/repositories.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/user.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/users.htm":["filteredUsers",()=>t.users,"userFiler"],"partials/admin/conferences.htm":["filteredConferences",()=>t.conferences]}[e];if(r){let s=tt(()=>t.fmt.orderBy(t.fmt.filter(r[1](),t[r[2]]),t.orderBy));Object.defineProperty(t,r[0],{configurable:!0,get:()=>s.value})}}function td(e=(...t)=>fetch(...t)){async function t(r,s,i,a={}){let u=new URL(s,window.location.href);for(let[g,k]of Object.entries(a.params||{}))if(k!=null)for(let h of Array.isArray(k)?k:[k])u.searchParams.append(g,typeof h=="object"?JSON.stringify(h):h);let m=new AbortController,w;a.timeout?.then?a.timeout.then(()=>m.abort()):a.timeout&&(w=setTimeout(()=>m.abort(),a.timeout));try{let g={Accept:"application/json, text/plain, */*",...a.headers},k=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);k&&u.origin===window.location.origin&&(g["X-XSRF-TOKEN"]=decodeURIComponent(k[1]));let h;i!==void 0&&(i instanceof FormData?h=i:(g["Content-Type"]||(g["Content-Type"]="application/json;charset=utf-8"),h=JSON.stringify(i)));let E=await e(u.href,{method:r,headers:g,body:h,credentials:"same-origin",signal:m.signal}),S=await E.text(),v=S;if(a.transformResponse)v=a.transformResponse(S);else if(S&&(/json/i.test(E.headers.get("content-type")||"")||/^[\[{]/.test(S.trim())))try{v=JSON.parse(S)}catch{}let _={data:v,status:E.status,headers:N=>E.headers.get(N)};if(!E.ok)throw _;return _}catch(g){throw g.name==="AbortError"?{status:-1,data:null}:g}finally{clearTimeout(w)}}let n={};for(let r of["get","delete","head"])n[r]=(s,i)=>t(r.toUpperCase(),s,void 0,i);for(let r of["post","put","patch"])n[r]=(s,i,a)=>t(r.toUpperCase(),s,i,a);return n}var od={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((r,s)=>{e=r,t=s}),resolve:e,reject:t}}};var nd=function(e){function t(n){return n=n||{used:0,total:0},n.unlimited=!n.total,n.percent=n.unlimited?0:Math.min(100,n.used*100/n.total),n.level=n.unlimited?"unlimited":n.percent>=95?"danger":n.percent>=80?"warn":"ok",n}return{decorate:t,load:function(){return e.get("/api/user/quota").then(n=>{let r=n.data||{};return r.storage=t(r.storage),r.file=t(r.file),r.repository=t(r.repository),r})}}};var mr={};Ed(mr,{bigNum:()=>n6,date:()=>m6,diff:()=>l6,filter:()=>p6,humanFileSize:()=>o6,humanTime:()=>s6,limitTo:()=>c6,number:()=>d6,orderBy:()=>f6,plural:()=>h6,statusLabel:()=>i6,statusMsg:()=>a6,title:()=>r6,uppercase:()=>u6});var o6=e=>window.humanFileSize(e),n6=(function(){return function(t){let n=Number(t)||0,r=Math.abs(n);return r<1e3?String(n):r<1e4?(n/1e3).toFixed(1).replace(/\.0$/,"")+"k":r<1e6?Math.round(n/1e3)+"k":r<1e7?(n/1e6).toFixed(1).replace(/\.0$/,"")+"M":Math.round(n/1e6)+"M"}})(),s6=(function(){return function(t){if(!t)return"never";t instanceof Date&&(t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(t=Math.round((Date.now()-new Date(t))/1e3));var n=t<0?"from now":"ago";if(Math.abs(t)>7200*24){let m=new Date;return m.setSeconds(m.getSeconds()-t),"on "+m.toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"})}t=Math.abs(t);for(var r=[t/60/60/24/365,t/60/60/24/30,t/60/60/24/7,t/60/60/24,t/60/60,t/60,t],s=["year","month","week","day","hour","minute","second"],i=0;i<s.length;i++){var a=Math.floor(r[i]),u=s[i];if(a>1&&(u+="s"),a>=1)return a+" "+u+" "+n}return"0 seconds "+n}})(),r6=(function(){return function(e){if(!e)return e;e=e.toLowerCase();var t=e.split(" "),n=t.map(function(r){return r.charAt(0).toUpperCase()+r.substring(1,r.length)});return n.join(" ")}})(),i6=(function(){var e={ready:"Ready",error:"Error",expired:"Expired",expiring:"Expiring",removed:"Removed",removing:"Removing",queue:"Queued",download:"Downloading",downloaded:"Downloaded",preparing:"Preparing",anonymizing:"Anonymizing"};return function(t){if(!t)return"";if(e[t])return e[t];var n=String(t).replace(/[_-]+/g," ").toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)}})(),a6=(function(){var e={branch_not_found:"Branch not found on GitHub",repo_not_found:"Repository not found on GitHub",repository_not_found:"Repository not found on GitHub",repo_not_accessible:"Repository is not accessible with your token",pr_not_found:"Pull request not found on GitHub",gist_not_found:"Gist not found on GitHub",commit_not_found:"Commit not found on GitHub",repo_too_big:"Repository exceeds the size limit",quota_exceeded:"Storage quota exceeded",incomplete_record:"Incomplete record: missing identifier"};return function(t){if(!t)return t;var n=t.match(/^rate_limited:(\d+)$/);if(n){var r=Math.max(0,Math.ceil((parseInt(n[1],10)-Date.now())/1e3));if(r<=0)return"Rate limited \u2014 resuming soon";var s=Math.floor(r/60),i=r%60;return"Rate limited \u2014 retrying in "+(s>0?s+"m "+i+"s":i+"s")}if(e[t])return e[t];if(/^[a-z0-9]+(_[a-z0-9]+)+$/.test(t)){var a=t.replace(/_/g," ");return a.charAt(0).toUpperCase()+a.slice(1)}return t}})(),l6=(function(e){let t=r=>r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");function n(r,s){if(!s)return;let i=s.newPath&&s.newPath!=="/dev/null"?s.newPath:s.oldPath||"",a=s.oldPath==="/dev/null"?"added":s.newPath==="/dev/null"?"deleted":s.oldPath&&s.newPath&&s.oldPath!==s.newPath?"renamed":"modified";if(r.push('<div class="diff-file-block">'),r.push('<div class="diff-file-header"><span class="diff-file-icon"><i class="far fa-file-code"></i></span><span class="diff-file-name">'+t(i)+'</span><span class="diff-file-status diff-file-status-'+a+'">'+a+"</span></div>"),s.lines.length){r.push('<table class="diff-file-table"><tbody>');for(let u of s.lines)r.push('<tr class="diff-row diff-row-'+u.kind+'"><td class="diff-gutter diff-gutter-old">'+(u.oldNo||"")+'</td><td class="diff-gutter diff-gutter-new">'+(u.newNo||"")+'</td><td class="diff-sign">'+(u.kind==="add"?"+":u.kind==="remove"?"-":u.kind==="hunk"?"@":"")+'</td><td class="diff-code">'+t(u.text)+"</td></tr>");r.push("</tbody></table>")}r.push("</div>")}return function(r){if(!r)return r;let s=[],i=null,a=0,u=0,m=()=>(i||(i={oldPath:"",newPath:"",lines:[]}),i),w=()=>{i&&(i.lines.length||i.oldPath||i.newPath)&&(n(s,i),i=null)},g=r.split(`
|
|
`);for(let k=0;k<g.length;k++){let h=g[k];if(h.startsWith("diff --git")){w(),m();continue}if(h.startsWith("--- ")){i&&i.lines.length&&w(),m().oldPath=h.replace(/^--- (a\/)?/,"").trim();continue}if(h.startsWith("+++ ")){m().newPath=h.replace(/^\+\+\+ (b\/)?/,"").trim();continue}if(!(h.startsWith("index ")||h.startsWith("similarity index")||h.startsWith("rename ")||h.startsWith("new file mode")||h.startsWith("deleted file mode")||h.startsWith("Binary files"))){if(h.startsWith("@@")){let E=h.match(/@@\s+-(\d+)(?:,\d+)?\s+\+(\d+)(?:,\d+)?\s+@@/);E&&(a=parseInt(E[1],10),u=parseInt(E[2],10)),m().lines.push({kind:"hunk",oldNo:"",newNo:"",text:h});continue}i&&(h.startsWith("+")?(i.lines.push({kind:"add",oldNo:"",newNo:u,text:h.slice(1)}),u++):h.startsWith("-")?(i.lines.push({kind:"remove",oldNo:a,newNo:"",text:h.slice(1)}),a++):(i.lines.push({kind:"ctx",oldNo:a,newNo:u,text:h.startsWith(" ")?h.slice(1):h}),a++,u++))}}return n(s,i),s.join("")}})({trustAsHtml:e=>e});function d6(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function u6(e){return String(e??"").toUpperCase()}function c6(e,t,n=0){return(e||[]).slice(n,n+t)}function p6(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function f6(e,t){if(!t)return e||[];let n=Array.isArray(t)?t:[t];return[...e||[]].sort((r,s)=>{for(let i of n){let a=i[0]==="-"?-1:1;i=i.replace(/^[+-]/,"");let u=i.split(".").reduce((w,g)=>w?.[g],r),m=i.split(".").reduce((w,g)=>w?.[g],s);if(typeof u=="string"&&(u=u.toLowerCase()),typeof m=="string"&&(m=m.toLowerCase()),u!==m)return(u==null?-1:m==null?1:u<m?-1:1)*a}return 0})}function m6(e,t){if(!e)return"";let n=new Date(e);if(isNaN(n))return String(e);if(!t||t==="mediumDate")return n.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"});let r={yyyy:n.getFullYear(),MMM:n.toLocaleDateString(void 0,{month:"short"}),MM:String(n.getMonth()+1).padStart(2,"0"),dd:String(n.getDate()).padStart(2,"0"),d:n.getDate(),HH:String(n.getHours()).padStart(2,"0"),mm:String(n.getMinutes()).padStart(2,"0"),ss:String(n.getSeconds()).padStart(2,"0")};return t.replace(/yyyy|MMM|MM|dd|HH|mm|ss|d/g,s=>r[s])}function h6(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}var sd={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=xe(null);return $t(()=>{let r=[t.value][0];r.classList.add("html-doc");function s(){r.innerHTML="";let i=e.content;if(typeof i!="string")return;let a=document.createElement("iframe");a.className="html-doc-frame",a.setAttribute("title","Rendered HTML document");let u=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&u.push("allow-scripts","allow-forms","allow-modals"),a.setAttribute("sandbox",u.join(" ")),a.setAttribute("referrerpolicy","no-referrer"),r.appendChild(a);let m="";e.baseUrl&&(m='<base href="'+e.baseUrl.replace(/&/g,"&").replace(/"/g,""")+'">'),a.srcdoc=m+i}He(()=>e.content,s,{immediate:!0}),He(()=>e.baseUrl,s,{immediate:!0}),He(()=>e.allowScripts,s,{immediate:!0})}),()=>be("html-doc",{ref:t})}};var rd={name:"pdfviewer",props:["src"],setup(e){let t=xe(null);return $t(()=>{let n=[t.value],r=400,s=[.5,.75,1,1.25,1.5,2,3],i=1e3,a=n[0];a.classList.add("pdf-viewer");let u=null,m=[],w=!1,g=null,k=1,h=1,E=0,S=0,v=612/792,_=0,N=null,T=new Map,V=0;function M(p){let y=T.get(p);y&&(y.cancelled=!0,y.task?.cancel?.(),T.delete(p));let D=p.querySelector("canvas");D&&(D.width=0,D.height=0),p.innerHTML="",delete p.dataset.state}let q=document.createElement("div");q.className="pdf-toolbar";let z=document.createElement("div");z.className="pdf-pages",z.tabIndex=0,z.setAttribute("aria-label","PDF pages"),a.appendChild(q),a.appendChild(z);function ne(p,y,D){let O=document.createElement("button");return O.type="button",O.className="pdf-toolbar-btn",O.title=y,O.setAttribute("aria-label",y),O.innerHTML='<i class="fas '+p+'"></i>',O.addEventListener("click",D),O}let ee=ne("fa-chevron-up","Previous page",function(){qe(h-1)}),C=ne("fa-chevron-down","Next page",function(){qe(h+1)}),P=document.createElement("input");P.type="text",P.className="pdf-toolbar-page",P.setAttribute("aria-label","Page number"),P.title="Page number \u2014 type a page and press Enter",P.addEventListener("keydown",function(p){p.key==="Enter"&&(qe(parseInt(P.value,10)),P.blur())}),P.addEventListener("blur",function(){P.value=String(h)});let G=document.createElement("span");G.className="pdf-toolbar-count";let J=ne("fa-search-minus","Zoom out",function(){te(s[Math.max(0,ue()-1)])}),X=ne("fa-search-plus","Zoom in",function(){te(s[Math.min(s.length-1,ue()+1)])}),K=document.createElement("button");K.type="button",K.className="pdf-toolbar-btn pdf-toolbar-zoom",K.title="Reset zoom to fit the width",K.setAttribute("aria-label","Reset zoom to fit the width"),K.addEventListener("click",function(){te(1)}),q.appendChild(ee),q.appendChild(C);let se=document.createElement("span");se.className="pdf-toolbar-group",se.appendChild(P),se.appendChild(G),q.appendChild(se);let ce=document.createElement("span");ce.className="pdf-toolbar-group pdf-toolbar-right",ce.appendChild(J),ce.appendChild(K),ce.appendChild(X),q.appendChild(ce);function ue(){let p=0;for(let y=0;y<s.length;y++)Math.abs(s[y]-k)<Math.abs(s[p]-k)&&(p=y);return p}function re(){let p=u?u.numPages:0;q.style.display=p?"":"none",G.textContent="/ "+p,document.activeElement!==P&&(P.value=String(h)),ee.disabled=h<=1,C.disabled=h>=p,K.textContent=Math.round(k*100)+"%",J.disabled=ue()===0,X.disabled=ue()===s.length-1}function _e(p){let y=m[p-1];y&&(z.scrollTop+=y.getBoundingClientRect().top-z.getBoundingClientRect().top)}function qe(p){if(!u||isNaN(p))return;let y=Math.min(Math.max(1,p),u.numPages);m[y-1]&&(_e(y),h=y,E=y,S=Date.now()+800,re(),ke())}function Me(){if(!m.length||Date.now()<S)return;let p=z.getBoundingClientRect(),y=p.top+p.height/2,D=1;for(let O=0;O<m.length&&m[O].getBoundingClientRect().top<=y;O++)D=O+1;D!==h&&(h=D,re())}function Pe(){_++,m.forEach(M),N&&(Promise.resolve(N.destroy?.()).catch(()=>{}),N=null),g&&(clearTimeout(g),g=null),u&&(u.destroy(),u=null),m=[],h=1,z.innerHTML="",re()}function Se(){z.innerHTML="";let p=document.createElement("div");p.className="pdf-viewer-error",p.textContent="This PDF could not be displayed.",z.appendChild(p)}function ze(){let p=Math.max(120,z.clientWidth-24);return Math.round(Math.min(p,i)*k)}function Ue(p,y,D){let O=window.devicePixelRatio||1,I=p.getViewport({scale:1}),U=parseFloat(y.style.width);if(!U)return;let L=p.getViewport({scale:U/I.width*O}),H=document.createElement("canvas");return H.width=Math.floor(L.width),H.height=Math.floor(L.height),H.style.width=U+"px",H.style.height=Math.floor(L.height/O)+"px",y.innerHTML="",y.appendChild(H),y.style.height=H.style.height,D.task=p.render({canvasContext:H.getContext("2d"),viewport:L}),D.task.promise}function ke(){if(!u)return;let p=_,y=z.getBoundingClientRect(),D=y.top-r,O=y.top+z.clientHeight+r,I=m.map((L,H)=>({slot:L,i:H,rect:L.getBoundingClientRect()})).filter(L=>L.rect.top<=O&&L.rect.bottom>=D).sort((L,H)=>Math.abs(L.rect.top-y.top)-Math.abs(H.rect.top-y.top)).slice(0,6),U=new Set(I.map(L=>L.slot));for(let L of T.keys())U.has(L)||M(L);for(let{slot:L,i:H}of I){if(L.dataset.state||V>=2)continue;let Y={cancelled:!1,task:null};T.set(L,Y),V++,L.dataset.state="rendering";let B;u.getPage(H+1).then(le=>{if(B=le,!(Y.cancelled||p!==_))return Ue(B,L,Y)}).then(()=>{Y.cancelled||p!==_||(L.dataset.state="done",E&&Date.now()<S&&_e(E))}).catch(()=>{!Y.cancelled&&p===_&&(L.dataset.state="failed")}).finally(()=>{V--,B?.cleanup?.(),u&&ke()})}}function F(){w||(w=!0,window.requestAnimationFrame(function(){w=!1,Me(),ke()}))}function Z(){let p=!1;function y(){p||(p=!0,ke())}window.requestAnimationFrame(y),window.setTimeout(y,50)}function Q(){_++,m.forEach(M);let p=ze();m.forEach(function(y){delete y.dataset.state,y.innerHTML="",y.style.width=p+"px",y.style.height=Math.round(p/v)+"px"}),ke()}function te(p){if(!u||!m.length||p===k)return;let y=h;k=p,re(),Q(),qe(y)}function ye(){u&&(g&&clearTimeout(g),g=setTimeout(function(){g=null,u&&m.length&&Q()},250))}function Ee(p){if(Pe(),!p)return;let y=_;N=pdfjsLib.getDocument({url:p,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),N.promise.then(function(D){if(y!==_){D.destroy();return}return u=D,u.getPage(1).then(function(O){if(y!==_)return;let I=O.getViewport({scale:1});I.width&&I.height&&(v=I.width/I.height);let U=ze();for(let L=1;L<=u.numPages;L++){let H=document.createElement("div");H.className="pdf-viewer-page",H.style.width=U+"px",H.style.height=Math.round(U/v)+"px",z.appendChild(H),m.push(H)}re(),Z()})}).catch(function(){y===_&&Se()})}z.addEventListener("scroll",F,{passive:!0}),$(window).on("resize",ye),re(),He(()=>e.src,Ee,{immediate:!0}),co(function(){z.removeEventListener("scroll",F),$(window).off("resize",ye),Pe()})}),()=>be("pdfviewer",{ref:t})}};var v6={key:0,class:"quota-row quota-usage"},y6={class:"quota-header"},g6={class:"quota-label"},b6={class:"project-type-svg","aria-hidden":"true"},w6=["href"],k6={key:0,class:"quota-percent"},E6={key:1,class:"quota-unlimited-tag"},C6={class:"quota-value"},_6={key:0},S6=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],N6={key:1,class:"quota-remaining"},R6={key:2,class:"quota-remaining quota-limit"};function id(e,t){return e.quota?(l(),d("div",v6,[(l(),d(W,null,oe([{key:"repository",label:"Repositories",kind:"count",icon:"project-type-repo"},{key:"storage",label:"Storage",kind:"bytes",icon:"project-icon-storage"},{key:"file",label:"Files",kind:"count",icon:"project-icon-file"}],n=>o("div",{class:A(["quota-item","quota-"+e.quota[n.key].level]),key:n.key},[o("div",y6,[o("span",g6,[(l(),d("svg",b6,[o("use",{href:"#"+n.icon},null,8,w6)])),b(c(n.label),1)]),e.quota[n.key].unlimited?f("v-if",!0):(l(),d("span",k6,c(e.fmt.number(e.quota[n.key].percent,0))+"% used",1)),e.quota[n.key].unlimited?(l(),d("span",E6,"Unlimited")):f("v-if",!0)]),o("div",C6,[o("strong",null,c(e.formatAmount(e.quota[n.key].used,n.kind)),1),e.quota[n.key].unlimited?f("v-if",!0):(l(),d("span",_6," / "+c(e.formatAmount(e.quota[n.key].total,n.kind)),1))]),e.quota[n.key].unlimited?f("v-if",!0):(l(),d("div",{key:0,class:A(["quota-track","quota-"+e.quota[n.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":n.label+" quota","aria-valuenow":Math.min(e.quota[n.key].used,e.quota[n.key].total),"aria-valuemax":e.quota[n.key].total,"aria-valuetext":e.fmt.number(e.quota[n.key].percent,0)+"% used"},[e.quota[n?.key].unlimited?f("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:Ie({width:e.quota[n.key].percent+"%"})},null,4))],10,S6)),!e.quota[n.key].unlimited&&e.quota[n.key].used<e.quota[n.key].total?(l(),d("p",N6,c(e.formatAmount(e.quota[n.key].total-e.quota[n.key].used,n.kind))+" "+c(n.key==="repository"?"repositories available":n.key==="file"?"files available":"available"),1)):f("v-if",!0),!e.quota[n.key].unlimited&&e.quota[n.key].used>=e.quota[n.key].total?(l(),d("p",R6,c(e.quota[n.key].used>e.quota[n.key].total?"Limit exceeded":"Limit reached"),1)):f("v-if",!0)],2)),64))])):f("v-if",!0)}var D6={props:["quota","fmt"],setup(e){return{formatAmount:(t,n)=>n==="bytes"?e.fmt.humanFileSize(t).replace(/([a-zA-Z]+)$/," $1"):e.fmt.number(t)}},render:id},T6=new Set(pe),ld={props:["content","terms","options"],setup(e){let t=xe(null),n=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../")};return $t(()=>{n(),He(()=>[e.content,e.terms,e.options],n,{deep:!0})}),()=>be("markdown",{ref:t})}},A6={props:["file","terms","options"],setup(e){let t=xe(null),n=()=>ot(()=>t.value?.querySelectorAll("pre code").forEach(r=>window.Prism?.highlightElement(r)));return $t(n),He(()=>[e.file?.content,e.terms,e.options],n,{deep:!0}),()=>{let r=e.file||{},s=(r.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(s)||r.language==="Markdown")return be("gist-file",{ref:t},be(ld,{content:r.content,terms:e.terms,options:e.options}));let i={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},a=(r.language||s||"none").toLowerCase();return be("gist-file",{ref:t},be("pre",{class:"line-numbers"},be("code",{class:"language-"+(i[a]||a),key:r.content},r.content||"")))}}},O6={props:["file","content"],setup(e){let t=xe(null),n=0,r,s=async()=>{let i=++n;r?.abort(),r=new AbortController;try{let a=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:r.signal}).then(u=>{if(!u.ok)throw Error("Notebook request failed");return u.json()});if(await oo("notebook"),i!==n)return;t.value.innerHTML=DOMPurify.sanitize(nb.parse(a).render()),t.value.querySelectorAll("pre code").forEach(u=>window.Prism?.highlightElement(u))}catch(a){i===n&&a.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return $t(()=>{s(),He(()=>[e.file,e.content],s)}),co(()=>{n++,r?.abort()}),()=>be("notebook",{ref:t})}},I6={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,r])=>r.code),n=t.reduce((r,[,s])=>r+s.code,0);return be("loc",t.map(([r,s])=>be("div",{class:"lang",title:`${r}: ${s.code.toLocaleString()} lines`,style:{width:s.code*100/n+"%",background:langColors[r]}})))}}},dd={Markdown:ld,GistFile:A6,Notebook:O6,Loc:I6,HtmlDoc:sd,QuotaUsage:D6,Pdfviewer:Ei(async()=>(await oo("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",rd))},ud={async mounted(e,{value:t}){e._editorValue=t;try{if(await kr(),e._editorDisposed)return;let n=e._editorValue,r=ace.edit(e);e._editor=r,r.setValue(String(n.content??""),-1),ad(e,n.options),e._editorCleanup=n.options?.onLoad?.(r)}catch(n){e._editorDisposed||(e.textContent=n.message)}},updated(e,{value:t}){e._editorValue=t,e._editor&&(e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),ad(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function ad(e,t={}){let n=T6.has(t.mode)?t.mode:"text";e._editor.session.setMode("ace/mode/"+n),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var cd={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],n=new Set,r=new IntersectionObserver(s=>{s.forEach(a=>a.isIntersecting?n.add(a.target.id):n.delete(a.target.id));let i=t.find(a=>n.has(a.hash.slice(1)));t.forEach(a=>a.classList.toggle("active",a===i))},{rootMargin:"-20% 0px -60% 0px",threshold:0});ot(()=>t.forEach(s=>{let i=document.getElementById(s.hash.slice(1));i&&r.observe(i)})),e._observer=r},beforeUnmount(e){e._observer?.disconnect()}};function P6(e){let t={children:[]},n=new Map([["",t]]);function r(s){if(n.has(s))return n.get(s);let i=s.lastIndexOf("/"),a=r(i<0?"":s.slice(0,i)),u={name:s.slice(i+1),children:[]};return n.set(s,u),a.children.push(u),u}for(let s of e||[]){let i=s.path?`${s.path}/${s.name}`:s.name;s.size==null?r(i):r(s.path||"").children.push({...s})}return t.children}var pd={name:"FileTree",props:["file","parent","searchQuery","searchResults","page"],setup(e){let t=Xa(),n=xe(null),r=Fe(Object.create(null)),s=null,i=tt(()=>P6(e.file)),a=()=>"/"+(Array.isArray(t.params.path)?t.params.path.join("/"):t.params.path||"");He(()=>[t.params.repoId,t.params.path],()=>{let h="";a().split("/").filter(Boolean).forEach(E=>{h+="/"+E,r[h]=!0})},{immediate:!0});let u=tt(()=>{if(!e.searchQuery||!e.searchResults)return null;let h=new Set,E=new Set;return e.searchResults.forEach(S=>{h.add(S.path?`${S.path}/${S.name}`:S.name);let v="";(S.path||"").split("/").filter(Boolean).forEach(_=>{v=v?v+"/"+_:_,E.add(v)})}),{files:h,folders:E}}),m=()=>[...n.value.querySelectorAll("li > a")],w=h=>{n.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),h&&(s=h.dataset.path,h.classList.add("tree-focused"),h.scrollIntoView?.({block:"nearest"}),n.value.focus())};function g(h){let E=m(),S=n.value.querySelector(".tree-focused")||E[0],v=E.indexOf(S);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(h.key)||(h.preventDefault(),h.key==="ArrowDown"&&w(E[(v+1)%E.length]),h.key==="ArrowUp"&&w(E[(v-1+E.length)%E.length]),!S))return;let _=S.closest("li");h.key==="ArrowRight"&&_.classList.contains("folder")&&(_.classList.contains("open")?w(_.querySelector(":scope > ul > li > a")):S.click()),h.key==="ArrowLeft"&&(_.classList.contains("folder")&&_.classList.contains("open")?S.click():w(_.parentElement.closest("li.folder")?.querySelector(":scope > a"))),h.key==="Enter"&&S.click()}function k(h,E=""){let S=[...h].sort((v,_)=>+!!_.children-+!!v.children||v.name.localeCompare(_.name));return be("ul",S.flatMap(v=>{let _=v,N=_.name,T=(E+"/"+N).slice(1);if(u.value&&!u.value.files.has(T)&&!u.value.folders.has(T))return[];for(;_.children?.length===1;)_=_.children[0],N+="/"+_.name;let V=E+"/"+N,M=!!_.children,q=u.value?r[V]!==!1:!!r[V],z=M&&e.page?.options?.truncatedFolders?.includes(V.slice(1)),ne=e.page?.fileCounts?.[V.slice(1)]||0,ee=be("span",{class:M?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},M?be("svg",{viewBox:"0 0 14 12",focusable:"false"},be("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),C=be("span",{class:"tree-name"},N),P=J=>{w(J.currentTarget),M&&(J.preventDefault(),r[V]=!q,r[V]&&!_.children.length&&e.page.getFiles(V.slice(1)),ot(()=>w(m().find(X=>X.dataset.path===s))))},G=be("a",{"data-path":V,href:M?void 0:`/r/${encodeURIComponent(t.params.repoId)}${encodePathForUrl(V)}`,class:{"tree-focused":s===V},onClick:P},[M?be("span",{class:"tree-toggle"}):E?be("span",{class:"tree-spacer"}):null,ee,C,z?be("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},be("i",{class:"fas fa-exclamation-triangle"})):null,M&&ne?be("span",{class:"tree-count"},ne):null]);return be("li",{key:V,class:{file:!0,folder:M,open:q,active:a()===V,truncated:z},title:M?"":`Size: ${humanFileSize(_.size||0)}`},[G,M&&q?k(_.children,V):null])}))}return()=>be("tree",{ref:n,tabindex:0,onKeydown:g},e.file?.length?u.value?.files.size===0?be("div",{class:"tree-search-empty"},"No files found"):k(i.value):"Empty repository")}};function md(){return Fe({errors:{},dirty:!1,touched:!1,submitted:!1,get invalid(){return Object.values(this.errors).some(Boolean)},setValidity(e,t){this.errors[e]=!t},setDirty(){this.dirty=!0}})}function hd(e,t){if(!e[t]){let n=md();Object.defineProperty(n,"invalid",{get(){return Object.values(n.errors).some(Boolean)||Object.keys(n).some(r=>r!=="invalid"&&n[r]&&typeof n[r]=="object"&&n[r].invalid)}}),e[t]=n}return e[t]}var vd={beforeMount(e,{value:t}){e._formState=hd(t,e.name),e.addEventListener("submit",n=>n.preventDefault())}};function V6(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function fd(e){let t=e._field.binding.value;e.type==="checkbox"?e.checked=!!t:e.type==="radio"?e.checked=t==(e._value??e.value):e._field.timer||(e.value=e.type==="date"?V6(t):t??""),hr(e)}function hr(e){let t=e._field.validation;if(!t)return;let n=e.validity;for(let[r,s]of Object.entries({required:n.valueMissing,pattern:n.patternMismatch,min:n.rangeUnderflow,max:n.rangeOverflow,date:n.badInput,email:n.typeMismatch&&e.type==="email",url:n.typeMismatch&&e.type==="url"}))t.setValidity(r,e.disabled||!s)}var yd={beforeMount(e,{value:t}){var a;let n=t.form&&hd(t.state,t.form),r=n&&e.name?n[a=e.name]||(n[a]=md()):null;e._field={binding:t,validation:r,timer:null};let s=()=>{clearTimeout(e._field.timer),e._field.timer=null;let u=e._field.binding,m=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(m=e.value===""?null:Number(e.value)),e.type==="date"&&(m=e.value?new Date(e.value+"T00:00:00"):null),r){r.setDirty();for(let w of Object.keys(r.errors))r.setValidity(w,!0)}u.set(m),hr(e),u.change?.()}};e._field.commit=s;let i=u=>{let m=e._field.binding.options?.debounce||0,w=typeof m=="number"?m:m[u.type]??m.default??0;clearTimeout(e._field.timer),w?e._field.timer=setTimeout(s,w):s()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",i),e.addEventListener("blur",()=>{r&&(r.touched=!0),e._field.timer&&s()})},mounted:fd,updated(e,{value:t}){e._field.binding=t,fd(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:n}=e._field,r=t.form&&t.state[t.form];r&&r[e.name]===n&&delete r[e.name]}};function gd(e,t){let n=e.target.closest("form");if(n?._formState&&(n._formState.submitted=!0),n?.querySelectorAll("input, select, textarea").forEach(r=>{r._field?.timer&&r._field.commit(),r._field&&hr(r)}),n&&!n.checkValidity()){let r=n.querySelector(":invalid");r?.scrollIntoView?.({block:"center"}),r?.focus(),n.reportValidity();return}return t()}var bd=Symbol("session"),q6=/^\/(w|api|github)(\/|$)/;function wd(e,t={}){let n=e?.split(".").reduce((r,s)=>r?.[s],yn);return n==null&&e?.startsWith("ERRORS.")&&(n=yn.ERRORS.unknown_error),String(n??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(r,s)=>t[s]??"")}var M6={...mr,translate:wd};function U6(e){if(e==null||e==="")return e;try{let t=new URL(e,window.location.href);return["http:","https:","mailto:","tel:","blob:"].includes(t.protocol)?e:void 0}catch{return}}function $6(e="#app",t={}){let n=!!document.querySelector('meta[name="review-consent-page"][content="1"]'),r=n&&window.location.pathname==="/review-link"?br(window):null,s=()=>{let h=r;return r=null,h};!t.history&&window.location.pathname==="/"&&/^#!\/r\/[^/?#]+/.test(window.location.hash)&&window.history.replaceState(window.history.state,"",window.location.hash.slice(2));let i=new Map,a=td(t.fetch),u,m;function w(){let h=ut(),E={url(v){return v===void 0?m.currentRoute.value.fullPath:(m.push(v),E)},path(){return m.currentRoute.value.path},search(){return m.currentRoute.value.query}},S=new Proxy({},{get(v,_){let N=m.currentRoute.value.params[_];return Array.isArray(N)?N.join("/"):N}});return{takeReviewHandoff:s,http:a,...h,location:E,params:S,window,promises:od,html:{trustAsHtml:v=>v},translate:(v,_)=>Promise.resolve(wd(v,_)),quotaService:nd(a)}}function g(h){return{name:h.template,setup(){let E=dr(dt(bd),i);h.setup(E,w()),ed(h.template,E);let S=[];return()=>ls[h.template](E,S)}}}m=Qa({history:t.history||Ka(),routes:Cl.map(h=>h.redirect?h:{path:h.path,component:g(h),meta:{title:h.title,preserveExplorer:h.preserveExplorer}})});let k=ma({setup(){u=dr(null,i),u.fmt=M6,u.window=window,u.Math=Math,u.sanitize=v=>DOMPurify.sanitize(v??""),u.highlightRedactions=v=>(u.site_options,tl(v)),u.submitForm=gd,u.safeUrl=U6;let h=w();nl(u,h.http,h.location,h.timeout),uo(bd,u),He(()=>u.title,v=>{document.title=v||"Anonymous GitHub"});let E=[],S=v=>{let _=v.target.closest?.("a[href]");if(v.defaultPrevented||v.button!==0||v.metaKey||v.ctrlKey||v.shiftKey||v.altKey||!_||_.hasAttribute("download")||_.target&&_.target!=="_self"||_.dataset.toggle||_.getAttribute("href").startsWith("#"))return;let T=new URL(_.href,window.location.href);n||/^\/review-link\/?$/i.test(T.pathname)||T.origin!==window.location.origin||q6.test(T.pathname)||(v.preventDefault(),m.push(T.pathname+T.search+T.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",S),co(()=>document.removeEventListener("click",S)),()=>[xl(u,[]),n?null:be("header",{class:"app-header"},ls["partials/header.htm"](u,E)),be("main",{class:"app-view align-items-stretch w-100"},be(lr,null,{default:({Component:v,route:_})=>v?be(v,{key:_.meta.preserveExplorer?_.matched[0]?.path:_.path}):null})),be("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},u.toasts.map((v,_)=>be("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:_},[be("div",{class:"toast-header"},[be("strong",{class:"mr-auto"},v.title),be("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>u.removeToast(v)},"\xD7")]),be("div",{class:"toast-body"},v.body)])))]}});for(let[h,E]of Object.entries(dd))k.component(h,E);return k.component("Tree",pd),k.component("PartialView",{props:["name","state"],setup(h){let E=[];return()=>ls[h.name](h.state,E)}}),k.directive("field",yd),k.directive("form",vd),k.directive("code-editor",ud),k.directive("paper-scrollspy",cd),k.use(m),m.beforeEach(async h=>{if(h.path==="/review-link"&&!n||n&&h.path!=="/review-link")return window.location.assign(h.fullPath),!1;u?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(h.path)&&await oo("markdown"),/^\/(r|repository)\//.test(h.path)&&await oo("org")}),m.afterEach(h=>{if(!u)return;u.title=h.meta.title,u.emit("routeChange",{title:h.meta.title}),u.emit("routeUpdate",{title:h.meta.title});let E=document.querySelector(".app-view");!h.meta.preserveExplorer&&E&&(E.scrollTop=0)}),k.mount(e),{app:k,router:m,state:u}}document.querySelector("#app")&&(window.anonymousApp=$6());})();
|
|
/*! Bundled license information:
|
|
|
|
@vue/shared/dist/shared.esm-bundler.js:
|
|
(**
|
|
* @vue/shared v3.5.44
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**)
|
|
|
|
@vue/reactivity/dist/reactivity.esm-bundler.js:
|
|
(**
|
|
* @vue/reactivity v3.5.44
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**)
|
|
|
|
@vue/runtime-core/dist/runtime-core.esm-bundler.js:
|
|
(**
|
|
* @vue/runtime-core v3.5.44
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**)
|
|
|
|
@vue/runtime-dom/dist/runtime-dom.esm-bundler.js:
|
|
(**
|
|
* @vue/runtime-dom v3.5.44
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**)
|
|
|
|
vue/dist/vue.runtime.esm-bundler.js:
|
|
(**
|
|
* vue v3.5.44
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**)
|
|
|
|
vue-router/dist/devtools-EWN81iOl.mjs:
|
|
vue-router/dist/vue-router.mjs:
|
|
(*!
|
|
* vue-router v4.6.4
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*)
|
|
*/
|