chunk-frameworks-d50cea30.js 95 KB

12345678910111213
  1. var fu=Object.defineProperty,du=Object.defineProperties;var mu=Object.getOwnPropertyDescriptors;var Ja=Object.getOwnPropertySymbols;var pu=Object.prototype.hasOwnProperty,hu=Object.prototype.propertyIsEnumerable;var Ya=(_,h,b)=>h in _?fu(_,h,{enumerable:!0,configurable:!0,writable:!0,value:b}):_[h]=b,Ge=(_,h)=>{for(var b in h||(h={}))pu.call(h,b)&&Ya(_,b,h[b]);if(Ja)for(var b of Ja(h))hu.call(h,b)&&Ya(_,b,h[b]);return _},Qa=(_,h)=>du(_,mu(h));System.register(["./chunk-vendor.js"],function(_){"use strict";var h,b,B,y,hr,gr,on,rn,Je,vr;return{setters:[function(M){h=M.h,b=M.o,B=M.f,y=M.a,hr=M.S,gr=M.D,on=M.r,rn=M.T,Je=M.t,vr=M.c}],execute:function(){_({A:Ti,B:ln,C:xi,D:Xi,E:ct,F:Fe,G:Yi,H:ts,I:Gi,J:fo,K:Ji,M:oi,O:ns,P:as,Q:os,R:qn,S:Qe,T:As,U:Ts,V:Ms,W:ki,X:Ss,Y:Uo,Z:Xs,a:Q,a$:xr,a1:Xo,a2:vi,a3:Ht,a4:na,a5:_n,a7:_i,a8:Li,a9:ro,aA:Ze,aB:ji,aC:Bn,aD:ir,aE:sr,aF:mt,aG:ci,aH:ai,aI:qr,aJ:yt,aK:Ws,aL:Kt,aM:Gt,aN:Zt,aO:Va,aP:Fa,aQ:Ao,aR:Jt,aS:$n,aT:On,aU:cs,aV:Fr,aW:_e,aX:Wn,aY:br,aZ:Rn,a_:ei,aa:ua,ab:Tn,ac:pi,ad:yn,ae:wn,ai:fa,aj:St,al:Ai,am:Ta,an:Dn,ao:ws,ap:Po,aq:Ha,ar:wa,as:Xl,au:oo,av:_t,aw:Bo,ax:kt,ay:ss,az:xt,b:Se,b0:or,b1:Bt,b2:mr,b3:Ci,b4:Zo,b5:Sa,b6:zl,b7:Pi,b8:Ko,b9:Go,ba:Jo,bb:Qo,bc:Ls,bd:Wo,be:is,c:V,d:tt,e:at,f:hn,g:lt,h:ut,i:Hr,j:Pe,k:Pr,m:bn,n:rt,o:ce,p:Ar,q:Ir,r:Sn,s:Ln,t:bi,u:ni,v:X,w:zn,x:yi,y:Z,z:$e});var M=Object.defineProperty,sn=(e,t)=>M(e,"name",{value:t,configurable:!0});class Ye{constructor(t){this.closed=!1,this.unsubscribe=()=>{t(),this.closed=!0}}}_("ak",Ye),sn(Ye,"Subscription");function V(e,t,n,o={capture:!1}){return e.addEventListener(t,n,o),new Ye(()=>{e.removeEventListener(t,n,o)})}sn(V,"fromEvent");function Qe(...e){return new Ye(()=>{for(const t of e)t.unsubscribe()})}sn(Qe,"compose");var Za=Object.defineProperty,re=(e,t)=>Za(e,"name",{value:t,configurable:!0});function br(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}}re(br,"offset");function ie(e){let t=e;const n=t.ownerDocument;if(!n||!t.offsetParent)return;const o=n.defaultView.HTMLElement;if(t!==n.body){for(;t!==n.body;){if(t.parentElement instanceof o)t=t.parentElement;else return;const{position:r,overflowY:i,overflowX:s}=getComputedStyle(t);if(r==="fixed"||i==="auto"||s==="auto"||i==="scroll"||s==="scroll")break}return t instanceof Document?null:t}}re(ie,"overflowParent");function Ee(e,t){let n=t;const o=e.ownerDocument;if(!o)return;const r=o.documentElement;if(!r||e===r)return;const i=Ze(e,n);if(!i)return;n=i._container;const s=n===o.documentElement&&o.defaultView?{top:o.defaultView.pageYOffset,left:o.defaultView.pageXOffset}:{top:n.scrollTop,left:n.scrollLeft},a=i.top-s.top,c=i.left-s.left,l=n.clientHeight,f=n.clientWidth,d=l-(a+e.offsetHeight),u=f-(c+e.offsetWidth);return{top:a,left:c,bottom:d,right:u,height:l,width:f}}re(Ee,"overflowOffset");function Ze(e,t){let n=e;const o=n.ownerDocument;if(!o)return;const r=o.documentElement;if(!r)return;const i=o.defaultView.HTMLElement;let s=0,a=0;const c=n.offsetHeight,l=n.offsetWidth;for(;!(n===o.body||n===t);)if(s+=n.offsetTop||0,a+=n.offsetLeft||0,n.offsetParent instanceof i)n=n.offsetParent;else return;let f,d,u;if(!t||t===o||t===o.defaultView||t===o.documentElement||t===o.body)u=r,f=yr(o.body,r),d=wr(o.body,r);else if(t instanceof i)u=t,f=t.scrollHeight,d=t.scrollWidth;else return;const m=f-(s+c),p=d-(a+l);return{top:s,left:a,bottom:m,right:p,_container:u}}re(Ze,"positionedOffset");function yr(e,t){return Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,t.clientHeight)}re(yr,"getDocumentHeight");function wr(e,t){return Math.max(e.scrollWidth,t.scrollWidth,e.offsetWidth,t.offsetWidth,t.clientWidth)}re(wr,"getDocumentWidth");var ec=Object.defineProperty,an=(e,t)=>ec(e,"name",{value:t,configurable:!0});const tc=_("$",an(()=>{const e=document.querySelector("meta[name=keyboard-shortcuts-preference]");return e?e.content==="all":!0},"areCharacterKeyShortcutsEnabled")),nc=_("a0",an(e=>/Enter|Arrow|Escape|Meta|Control|Esc/.test(e)||e.includes("Alt")&&e.includes("Shift"),"isNonCharacterKeyShortcut")),oc=_("l",an(e=>{const t=h(e);return tc()?!0:nc(t)},"isShortcutAllowed"));var rc=Object.defineProperty,ic=(e,t)=>rc(e,"name",{value:t,configurable:!0});function cn(e,t){let n=e;const o=e.ownerDocument;(n===o||n===o.defaultView||n===o.documentElement||n===o.body)&&(n=o);const r=o.defaultView.Document;if(n instanceof r){const s=t.top!=null?t.top:o.defaultView.pageYOffset,a=t.left!=null?t.left:o.defaultView.pageXOffset;o.defaultView.scrollTo(a,s);return}const i=o.defaultView.HTMLElement;if(!(n instanceof i))throw new Error("invariant");n.scrollTop=t.top,t.left!=null&&(n.scrollLeft=t.left)}ic(cn,"scrollTo");var sc=Object.defineProperty,Er=(e,t)=>sc(e,"name",{value:t,configurable:!0});function Sr(e){return e.offsetWidth<=0&&e.offsetHeight<=0}Er(Sr,"hidden");function ln(e){return!Sr(e)}Er(ln,"visible");var ac=Object.defineProperty,E=(e,t)=>ac(e,"name",{value:t,configurable:!0});const z=navigator.userAgent.match(/Macintosh/),un=z?"metaKey":"ctrlKey",_r=z?"Meta":"Control";let fn=!1,dn={x:0,y:0};b(".js-navigation-container:not(.js-navigation-container-no-mouse)",{subscribe:e=>Qe(V(e,"mouseover",Lr),V(e,"mouseover",Tr))});function Lr(e){e instanceof MouseEvent&&((dn.x!==e.clientX||dn.y!==e.clientY)&&(fn=!1),dn={x:e.clientX,y:e.clientY})}E(Lr,"onContainerMouseMove");function Tr(e){if(fn)return;const t=e.currentTarget,{target:n}=e;if(!(n instanceof Element)||!(t instanceof HTMLElement)||!t.closest(".js-active-navigation-container"))return;const o=n.closest(".js-navigation-item");o&&R(o,t)}E(Tr,"onContainerMouseOver");let et=0;b(".js-active-navigation-container",{add(){et++,et===1&&document.addEventListener("keydown",mn)},remove(){et--,et===0&&document.removeEventListener("keydown",mn)}});function mn(e){if(e.target!==document.body&&e.target instanceof HTMLElement&&!e.target.classList.contains("js-navigation-enable"))return;fn=!0;const t=nt();let n=!1;if(t){const o=t.querySelector(".js-navigation-item.navigation-focus")||t;n=B(o,"navigation:keydown",{hotkey:h(e),originalEvent:e,originalTarget:e.target})}n||e.preventDefault()}E(mn,"fireCustomKeydown"),y("navigation:keydown",".js-active-navigation-container",function(e){const t=e.currentTarget,n=e.detail.originalTarget.matches("input, textarea"),o=e.target;if(!!oc(e.detail.originalEvent)){if(o.classList.contains("js-navigation-item"))if(n){if(z)switch(h(e.detail.originalEvent)){case"Control+n":Te(o,t);break;case"Control+p":Le(o,t)}switch(h(e.detail.originalEvent)){case"ArrowUp":Le(o,t);break;case"ArrowDown":Te(o,t);break;case"Enter":case`${_r}+Enter`:gn(o,e.detail.originalEvent[un]);break}}else{if(z)switch(h(e.detail.originalEvent)){case"Control+n":Te(o,t);break;case"Control+p":Le(o,t);break;case"Alt+v":kr(o,t);break;case"Control+v":jr(o,t)}switch(h(e.detail.originalEvent)){case"j":case"J":Te(o,t);break;case"k":case"K":Le(o,t);break;case"o":case"Enter":case`${_r}+Enter`:gn(o,e.detail[un]);break}}else{const r=J(t)[0];if(r)if(n){if(z)switch(h(e.detail.originalEvent)){case"Control+n":R(r,t)}switch(h(e.detail.originalEvent)){case"ArrowDown":R(r,t)}}else{if(z)switch(h(e.detail.originalEvent)){case"Control+n":case"Control+v":R(r,t)}switch(h(e.detail.originalEvent)){case"j":R(r,t)}}}if(n){if(z)switch(h(e.detail.originalEvent)){case"Control+n":case"Control+p":e.preventDefault()}switch(h(e.detail.originalEvent)){case"ArrowUp":case"ArrowDown":e.preventDefault();break;case"Enter":e.preventDefault()}}else{if(z)switch(h(e.detail.originalEvent)){case"Control+n":case"Control+p":case"Control+v":case"Alt+v":e.preventDefault()}switch(h(e.detail.originalEvent)){case"j":case"k":case"o":e.preventDefault();break;case"Enter":case`${un}+Enter`:e.preventDefault()}}}});function pn(e){const t=e.modifierKey||e.altKey||e.ctrlKey||e.metaKey;B(e.currentTarget,"navigation:open",{modifierKey:t,shiftKey:e.shiftKey})||e.preventDefault()}E(pn,"fireOpen"),y("click",".js-active-navigation-container .js-navigation-item",function(e){pn(e)}),y("navigation:keyopen",".js-active-navigation-container .js-navigation-item",function(e){const t=e.currentTarget.classList.contains("js-navigation-open")?e.currentTarget:e.currentTarget.querySelector(".js-navigation-open");t instanceof HTMLAnchorElement?(e.detail.modifierKey?(window.open(t.href,"_blank"),window.focus()):t.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))&&t.click(),e.preventDefault()):pn(e)});function Se(e){const t=nt();e!==t&&(t!==null&&tt(t),e==null||e.classList.add("js-active-navigation-container"))}E(Se,"activate");function tt(e){e.classList.remove("js-active-navigation-container")}E(tt,"deactivate");const Cr=[];function Pr(e){const t=nt();t&&Cr.push(t),Se(e)}E(Pr,"push");function Ar(e){tt(e),_e(e);const t=Cr.pop();t&&Se(t)}E(Ar,"pop");function hn(e,t){const n=t||e,o=J(e)[0],r=n.closest(".js-navigation-item")||o;if(Se(e),r instanceof HTMLElement){if(R(r,e))return;const s=ie(r);ot(s,r)}}E(hn,"focus");function _e(e){const t=e.querySelectorAll(".js-navigation-item.navigation-focus");for(const n of t)n.classList.remove("navigation-focus")}E(_e,"clear");function xr(e,t){_e(e),hn(e,t)}E(xr,"refocus");function Le(e,t){const n=J(t),o=n.indexOf(e),r=n[o-1];if(r){if(R(r,t))return;const s=ie(r);vn(t)==="page"?Ce(s,r):ot(s,r)}}E(Le,"cursorUp");function Te(e,t){const n=J(t),o=n.indexOf(e),r=n[o+1];if(r){if(R(r,t))return;const s=ie(r);vn(t)==="page"?Ce(s,r):ot(s,r)}}E(Te,"cursorDown");function kr(e,t){const n=J(t);let o=n.indexOf(e);const r=ie(e);if(r==null)return;let i,s;for(;(i=n[o-1])&&(s=Ee(i,r))&&s.top>=0;)o--;if(i){if(R(i,t))return;Ce(r,i)}}E(kr,"pageUp");function jr(e,t){const n=J(t);let o=n.indexOf(e);const r=ie(e);if(r==null)return;let i,s;for(;(i=n[o+1])&&(s=Ee(i,r))&&s.bottom>=0;)o++;if(i){if(R(i,t))return;Ce(r,i)}}E(jr,"pageDown");function gn(e,t=!1){B(e,"navigation:keyopen",{modifierKey:t})}E(gn,"keyOpen");function R(e,t){return B(e,"navigation:focus")?(_e(t),e.classList.add("navigation-focus"),!1):!0}E(R,"focusItem");function nt(){return document.querySelector(".js-active-navigation-container")}E(nt,"getActiveContainer");function J(e){const t=[];for(const n of e.querySelectorAll(".js-navigation-item"))n instanceof HTMLElement&&ln(n)&&t.push(n);return t}E(J,"getItems");function vn(e){return e.getAttribute("data-navigation-scroll")||"item"}E(vn,"getScrollStyle");function Ce(e,t,n="smooth"){const o=Ee(t,e);!o||(o.bottom<=0?t.scrollIntoView({behavior:n,block:"start"}):o.top<=0&&t.scrollIntoView({behavior:n,block:"end"}))}E(Ce,"scrollPageTo");function ot(e,t){const n=Ze(t,e),o=Ee(t,e);if(!(n==null||o==null))if(o.bottom<=0&&document.body){const i=(e.offsetParent!=null?e.scrollHeight:document.body.scrollHeight)-(n.bottom+o.height);cn(e,{top:i})}else o.top<=0&&cn(e,{top:n.top})}E(ot,"scrollItemTo");function cc(...e){return JSON.stringify(e,(t,n)=>typeof n=="object"?n:String(n))}function bn(e,t={}){const{hash:n=cc,cache:o=new Map}=t;return function(...r){const i=n.apply(this,r);if(o.has(i))return o.get(i);let s=e.apply(this,r);return s instanceof Promise&&(s=s.catch(a=>{throw o.delete(i),a})),o.set(i,s),s}}var lc=Object.defineProperty,Or=(e,t)=>lc(e,"name",{value:t,configurable:!0});function yn(e){const t=e.closest("form");if(!(t instanceof HTMLFormElement))return;let n=wn(t);if(e.name){const o=e.matches("input[type=submit]")?"Submit":"",r=e.value||o;n||(n=document.createElement("input"),n.type="hidden",n.classList.add("is-submit-button-value"),t.prepend(n)),n.name=e.name,n.value=r}else n&&n.remove()}Or(yn,"persistSubmitButtonValue");function wn(e){const t=e.querySelector("input.is-submit-button-value");return t instanceof HTMLInputElement?t:null}Or(wn,"findPersistedSubmitButtonValue");var uc=Object.defineProperty,$r=(e,t)=>uc(e,"name",{value:t,configurable:!0});function Pe(){const e=document.getElementById("ajax-error-message");e&&(e.hidden=!1)}$r(Pe,"showGlobalError");function rt(){const e=document.getElementById("ajax-error-message");e&&(e.hidden=!0)}$r(rt,"hideGlobalError"),y("deprecatedAjaxError","[data-remote]",function(e){const t=e.detail,{error:n,text:o}=t;e.currentTarget===e.target&&(n==="abort"||n==="canceled"||(/<html/.test(o)?(Pe(),e.stopImmediatePropagation()):setTimeout(function(){e.defaultPrevented||Pe()},0)))}),y("deprecatedAjaxSend","[data-remote]",function(){rt()}),y("click",".js-ajax-error-dismiss",function(){rt()});var fc=Object.defineProperty,Y=(e,t)=>fc(e,"name",{value:t,configurable:!0});y("click",".js-remote-submit-button",async function(e){const n=e.currentTarget.form;e.preventDefault();let o;try{o=await fetch(n.action,{method:n.method,body:new FormData(n),headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}})}catch(r){}o&&!o.ok&&Pe()});function En(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:n}))}Y(En,"fire");function Sn(e,t){t&&(Mr(e,t),yn(t)),En(e,"submit",!0)&&e.submit()}Y(Sn,"requestSubmit");function Mr(e,t){if(!(e instanceof HTMLFormElement))throw new TypeError("The specified element is not of type HTMLFormElement.");if(!(t instanceof HTMLElement))throw new TypeError("The specified element is not of type HTMLElement.");if(t.type!=="submit")throw new TypeError("The specified element is not a submit button.");if(!e||e!==t.form)throw new Error("The specified element is not owned by the form element.")}Y(Mr,"checkButtonValidity");function Ir(e,t){if(typeof t=="boolean")if(e instanceof HTMLInputElement)e.checked=t;else throw new TypeError("only checkboxes can be set to boolean value");else{if(e.type==="checkbox")throw new TypeError("checkbox can't be set to string value");e.value=t}En(e,"change",!1)}Y(Ir,"changeValue");function qr(e,t){for(const n in t){const o=t[n],r=e.elements.namedItem(n);(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement)&&(r.value=o)}}Y(qr,"fillFormValues");function _n(e){if(!(e instanceof HTMLElement))return!1;const t=e.nodeName.toLowerCase(),n=(e.getAttribute("type")||"").toLowerCase();return t==="select"||t==="textarea"||t==="input"&&n!=="submit"&&n!=="reset"||e.isContentEditable}Y(_n,"isFormField");function Hr(e){return new URLSearchParams(new FormData(e)).toString()}Y(Hr,"serialize");var dc=Object.defineProperty,Ae=(e,t)=>dc(e,"name",{value:t,configurable:!0});class Rr{getItem(){return null}setItem(){}removeItem(){}clear(){}key(){return null}get length(){return 0}}Ae(Rr,"NoOpStorage");function Ln(e,t={throwQuotaErrorsOnSet:!1},n=window){let o;try{o=n[e]}catch(c){o=new Rr}const{throwQuotaErrorsOnSet:r}=t;function i(c){try{return o.getItem(c)}catch(l){return null}}Ae(i,"getItem");function s(c,l){try{o.setItem(c,l)}catch(f){if(r&&f.message.toLowerCase().includes("quota"))throw f}}Ae(s,"setItem");function a(c){try{o.removeItem(c)}catch(l){}}return Ae(a,"removeItem"),{getItem:i,setItem:s,removeItem:a}}Ae(Ln,"safeStorage");var mc=Object.defineProperty,pc=(e,t)=>mc(e,"name",{value:t,configurable:!0});function Tn(e){var t,n;const o=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="expected-hostname"]'))==null?void 0:n.content;if(!o)return!1;const r=o.replace(/\.$/,"").split(".").slice(-2).join("."),i=e.location.hostname.replace(/\.$/,"").split(".").slice(-2).join(".");return r!==i}pc(Tn,"detectProxySite");const Cn=_("a6",function(){return document.readyState==="interactive"||document.readyState==="complete"?Promise.resolve():new Promise(e=>{document.addEventListener("DOMContentLoaded",()=>{e()})})}()),Pn=_("L",function(){return document.readyState==="complete"?Promise.resolve():new Promise(e=>{window.addEventListener("load",e)})}());var hc=Object.defineProperty,it=(e,t)=>hc(e,"name",{value:t,configurable:!0});let An=[];function Q(e,t=!1){e.timestamp===void 0&&(e.timestamp=new Date().getTime()),e.loggedIn=Nr(),An.push(e),t?kn():Dr()}it(Q,"sendStats");let xn=null;async function Dr(){await Pn,xn==null&&(xn=window.requestIdleCallback(kn))}it(Dr,"scheduleSendStats");function kn(){var e,t;if(xn=null,Tn(document))return;const n=(t=(e=document.head)==null?void 0:e.querySelector('meta[name="browser-stats-url"]'))==null?void 0:t.content;if(!n)return;const o=JSON.stringify({stats:An});try{navigator.sendBeacon&&navigator.sendBeacon(n,o)}catch(r){}An=[]}it(kn,"flushStats");function Nr(){var e,t;return!!((t=(e=document.head)==null?void 0:e.querySelector('meta[name="user-login"]'))==null?void 0:t.content)}it(Nr,"isLoggedIn");var gc=Object.defineProperty,jn=(e,t)=>gc(e,"name",{value:t,configurable:!0});function On(e){const t=[...e.querySelectorAll("meta[name=html-safe-nonce]")].map(n=>n.content);if(t.length<1)throw new Error("could not find html-safe-nonce on document");return t}jn(On,"getDocumentHtmlSafeNonces");class xe extends Error{constructor(t,n){super(`${t} for HTTP ${n.status}`);this.response=n}}jn(xe,"ResponseError");function $n(e,t,n=!1){const o=t.headers.get("content-type")||"";if(!n&&!o.startsWith("text/html"))throw new xe(`expected response with text/html, but was ${o}`,t);if(n&&!(o.startsWith("text/html")||o.startsWith("application/json")))throw new xe(`expected response with text/html or application/json, but was ${o}`,t);const r=t.headers.get("x-html-safe");if(r){if(!e.includes(r))throw new xe("response X-HTML-Safe nonce did not match",t)}else throw new xe("missing X-HTML-Safe nonce",t)}jn($n,"verifyResponseHtmlSafeNonce");var vc=Object.defineProperty,bc=(e,t)=>vc(e,"name",{value:t,configurable:!0});function Z(e,t){const n=e.createElement("template");return n.innerHTML=t,e.importNode(n.content,!0)}bc(Z,"parseHTML");var yc=Object.defineProperty,se=(e,t)=>yc(e,"name",{value:t,configurable:!0});class st extends Error{constructor(t){super();this.response=t,this.framesToPop=1}}se(st,"ResponseError");function Mn(e,t){if(e.status>=200&&e.status<300)return e;{const n=e.statusText?` ${e.statusText}`:"";throw t.message=`HTTP ${e.status}${n}`,t}}se(Mn,"checkStatus");function In(e,t){const n=t?Object.assign({},t):{},o=new Request(e,n);return o.headers.append("X-Requested-With","XMLHttpRequest"),o}se(In,"makeRequest");async function at(e,t,n){const o=await self.fetch(In(t,n)),r=new st(o);return Mn(o,r),$n(On(e),o),Z(e,await o.text())}se(at,"fetchSafeDocumentFragment");function Fr(e,t){return se(async function n(o){const r=await self.fetch(In(e,t)),i=new st(r);if(Mn(r,i),r.status===200)return r;if(r.status===202)return await new Promise(s=>setTimeout(s,o)),n(o*1.5);throw new st(r)},"poll")(1e3)}se(Fr,"fetchPoll");var wc=Object.defineProperty,ae=(e,t)=>wc(e,"name",{value:t,configurable:!0});let Vr=!1;const Br=new hr;function Ur(e){const t=e.target;if(t instanceof HTMLElement&&t.nodeType!==Node.DOCUMENT_NODE)for(const n of Br.matches(t))n.data.call(null,t)}ae(Ur,"handleFocus");function ce(e,t){Vr||(Vr=!0,document.addEventListener("focus",Ur,!0)),Br.add(e,t),document.activeElement instanceof HTMLElement&&document.activeElement.matches(e)&&t(document.activeElement)}ae(ce,"onFocus");function qn(e,t,n){function o(r){const i=r.currentTarget;!i||(i.removeEventListener(e,n),i.removeEventListener("blur",o))}ae(o,"blurHandler"),ce(t,function(r){r.addEventListener(e,n),r.addEventListener("blur",o)})}ae(qn,"onKey");function ct(e,t){function n(o){const{currentTarget:r}=o;!r||(r.removeEventListener("input",t),r.removeEventListener("blur",n))}ae(n,"blurHandler"),ce(e,function(o){o.addEventListener("input",t),o.addEventListener("blur",n)})}ae(ct,"onInput");var Ec=Object.defineProperty,le=(e,t)=>Ec(e,"name",{value:t,configurable:!0});const Sc=["input[pattern]","input[required]","textarea[required]","input[data-required-change]","textarea[data-required-change]","input[data-required-value]","textarea[data-required-value]"].join(",");function Hn(e){const t=e.getAttribute("data-required-value"),n=e.getAttribute("data-required-value-prefix");if(e.value===t)e.setCustomValidity("");else{let o=t;n&&(o=n+o),e.setCustomValidity(o)}}le(Hn,"checkValidityForRequiredValueField"),ct("[data-required-value]",function(e){const t=e.currentTarget;Hn(t)}),y("change","[data-required-value]",function(e){const t=e.currentTarget;Hn(t),X(t.form)}),ct("[data-required-trimmed]",function(e){const t=e.currentTarget;t.value.trim()===""?t.setCustomValidity(t.getAttribute("data-required-trimmed")):t.setCustomValidity("")}),y("change","[data-required-trimmed]",function(e){const t=e.currentTarget;t.value.trim()===""?t.setCustomValidity(t.getAttribute("data-required-trimmed")):t.setCustomValidity(""),X(t.form)}),ce(Sc,e=>{let t=e.checkValidity();function n(){const o=e.checkValidity();o!==t&&e.form&&X(e.form),t=o}le(n,"inputHandler"),e.addEventListener("input",n),e.addEventListener("blur",le(function o(){e.removeEventListener("input",n),e.removeEventListener("blur",o)},"blurHandler"))});const zr=new WeakMap;function Xr(e){zr.get(e)||(e.addEventListener("change",()=>X(e)),zr.set(e,!0))}le(Xr,"installHandlers");function X(e){const t=e.checkValidity();for(const n of e.querySelectorAll("button[data-disable-invalid]"))n.disabled=!t}le(X,"validate"),b("button[data-disable-invalid]",{constructor:HTMLButtonElement,initialize(e){const t=e.form;t&&(Xr(t),e.disabled=!t.checkValidity())}}),b("input[data-required-change], textarea[data-required-change]",function(e){const t=e,n=t.type==="radio"&&t.form?t.form.elements.namedItem(t.name).value:null;function o(r){const i=t.form;if(r&&t.type==="radio"&&i&&n)for(const s of i.elements.namedItem(t.name))s instanceof HTMLInputElement&&s.setCustomValidity(t.value===n?"unchanged":"");else t.setCustomValidity(t.value===(n||t.defaultValue)?"unchanged":"")}le(o,"customValidity"),t.addEventListener("input",o),t.addEventListener("change",o),o(),t.form&&X(t.form)}),document.addEventListener("reset",function(e){if(e.target instanceof HTMLFormElement){const t=e.target;setTimeout(()=>X(t))}});var _c=Object.defineProperty,Lc=(e,t)=>_c(e,"name",{value:t,configurable:!0});async function lt(e){const n=document.querySelector("#site-details-dialog").content.cloneNode(!0),o=n.querySelector("details"),r=o.querySelector("details-dialog"),i=o.querySelector(".js-details-dialog-spinner");e.detailsClass&&o.classList.add(...e.detailsClass.split(" ")),e.dialogClass&&r.classList.add(...e.dialogClass.split(" ")),e.label?(r.setAttribute("aria-label",e.label),r.removeAttribute("aria-labelledby")):e.labelledBy&&r.setAttribute("aria-labelledby",e.labelledBy),document.body.append(n);const s=await e.content;return i.remove(),r.prepend(s),o.addEventListener("toggle",()=>{o.hasAttribute("open")||(B(r,"dialog:remove"),o.remove())}),r}Lc(lt,"dialog");var Tc=Object.defineProperty,U=(e,t)=>Tc(e,"name",{value:t,configurable:!0});function Rn(e,t=!1){return ut(e)||Gr(e,t)||Qr(e)||Zr(e)}U(Rn,"hasInteractions");function ut(e){for(const t of e.querySelectorAll("input, textarea"))if((t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&Wr(t))return!0;return!1}U(ut,"hasDirtyFields");function Wr(e){if(e instanceof HTMLInputElement&&(e.type==="checkbox"||e.type==="radio")){if(e.checked!==e.defaultChecked)return!0}else if(e.value!==e.defaultValue)return!0;return!1}U(Wr,"formFieldValueChanged");let ft;async function Cc(e,t){ft=e;try{await t()}finally{ft=null}}U(Cc,"withActiveElement");function Kr(e){return ft instanceof Element?ft:e&&e.ownerDocument&&e.ownerDocument.activeElement?e.ownerDocument.activeElement:null}U(Kr,"getActiveElement");let ue;document.addEventListener("mouseup",function(e){ue=e.target});function Gr(e,t){const n=Kr(e);return n===null||t&&n===e?!1:n===e&&_n(n)||e.contains(n)&&!Yr(n)?!0:ue instanceof Element&&e.contains(ue)&&!!ue.closest("details[open] > summary")}U(Gr,"hasFocus");const Jr="a[href], button";function Yr(e){var t;if(e instanceof gr)return!0;const n=e instanceof HTMLAnchorElement||e instanceof HTMLButtonElement,o=(t=e.parentElement)==null?void 0:t.classList.contains("task-list-item");if(n&&o)return!0;if(!(ue instanceof Element))return!1;const r=e.closest(Jr);if(!r)return!1;const i=ue.closest(Jr);return r===i}U(Yr,"activeElementIsSafe");function Qr(e){return e.matches(":active:enabled")}U(Qr,"hasMousedown");function Zr(e){return!!(e.closest(".is-dirty")||e.querySelector(".is-dirty"))}U(Zr,"markedAsDirty");function ei(e,t){return Dn(Pc(e),t)}function Dn(e,t){var n=e;if(!n)return Promise.resolve(t());var o=n.ownerDocument.documentElement;function r(a){for(var c=[];a;){var l=a.getBoundingClientRect(),f=l.top,d=l.left;c.push({element:a,top:f,left:d}),a=a.parentElement}return c}function i(a){for(var c=0;c<a.length;c++){var l=a[c];if(o.contains(l.element))return l}}var s=r(n);return Promise.resolve(t()).then(function(a){var c=i(s);if(c){n=c.element;var l=c.top,f=c.left,d=n.getBoundingClientRect(),u=d.top,m=d.left;Ac(n,m-f,u-l)}return a})}function Pc(e){if(e.activeElement!==e.body)return e.activeElement;var t=e.querySelectorAll(":hover"),n=t.length;if(n)return t[n-1]}function Ac(e,t,n){var o=e.ownerDocument,r=o.defaultView;function i(u){return u.offsetParent?{top:u.scrollTop,left:u.scrollLeft}:{top:r.pageYOffset,left:r.pageXOffset}}function s(u,m,p){if(m===0&&p===0)return[0,0];var w=i(u),S=w.top+p,v=w.left+m;u===o||u===r||u===o.documentElement||u===o.body?o.defaultView.scrollTo(v,S):(u.scrollTop=S,u.scrollLeft=v);var x=i(u);return[x.left-w.left,x.top-w.top]}function a(u){var m=u;if(!(!m.offsetParent||m===o.body)){for(;m!==o.body;){if(m.parentElement)m=m.parentElement;else return;var p=r.getComputedStyle(m),w=p.position,S=p.overflowY,v=p.overflowX;if(w==="fixed"||S==="auto"||v==="auto"||S==="scroll"||v==="scroll")break}return m}}for(var c=a(e),l=0,f=0;c;){var d=s(c,t-l,n-f);if(l+=d[0],f+=d[1],l===t&&f===n)break;c=a(c)}}var xc=Object.defineProperty,Nn=(e,t)=>xc(e,"name",{value:t,configurable:!0});const dt=new WeakMap,ti=_("at",{});async function ni(e){if(dt.get(e))return;const t=e.hasAttribute("data-retain-focus"),n=e.getAttribute("data-url");if(!n)throw new Error("could not get url");const o=new AbortController;dt.set(e,o);try{const r=await fetch(n,{signal:o.signal,headers:{Accept:"text/html","X-Requested-With":"XMLHttpRequest"}});if(!r.ok)return;const i=await r.text();if(Rn(e,t)){console.warn("Failed to update content with interactions",e);return}return ti[n]=i,Fn(e,i,t)}catch(r){}finally{dt.delete(e)}}Nn(ni,"updateContent");async function oi(e,t,n=!1){const o=dt.get(e);o==null||o.abort();const r=e.closest(".js-updatable-content[data-url], .js-updatable-content [data-url]");return!n&&r&&r===e&&(ti[r.getAttribute("data-url")||""]=t),Fn(e,t)}Nn(oi,"replaceContent");function Fn(e,t,n=!1){return ei(document,()=>{const o=Z(document,t.trim()),r=n&&e.ownerDocument&&e===e.ownerDocument.activeElement?o.querySelector("*"):null,i=Array.from(e.querySelectorAll("details[open][id]")).map(s=>s.id);e.tagName==="DETAILS"&&e.id&&e.hasAttribute("open")&&i.push(e.id);for(const s of e.querySelectorAll(".js-updatable-content-preserve-scroll-position")){const a=s.getAttribute("data-updatable-content-scroll-position-id")||"";ri.set(a,s.scrollTop)}for(const s of i){const a=o.querySelector(`#${s}`);a&&a.setAttribute("open","")}e.replaceWith(o),r instanceof HTMLElement&&r.focus()})}Nn(Fn,"replace");const ri=new Map;b(".js-updatable-content-preserve-scroll-position",{constructor:HTMLElement,add(e){const t=e.getAttribute("data-updatable-content-scroll-position-id");if(!t)return;const n=ri.get(t);n!=null&&(e.scrollTop=n)}});var fe=-1/0,kc=1/0,jc=-.005,Oc=-.005,$c=-.01,ii=1,Mc=.9,Ic=.8,qc=.7,Hc=.6;function Rc(e){return e.toLowerCase()===e}function Dc(e){return e.toUpperCase()===e}function Nc(e){for(var t=e.length,n=new Array(t),o="/",r=0;r<t;r++){var i=e[r];o==="/"?n[r]=Mc:o==="-"||o==="_"||o===" "?n[r]=Ic:o==="."?n[r]=Hc:Rc(o)&&Dc(i)?n[r]=qc:n[r]=0,o=i}return n}function si(e,t,n,o){for(var r=e.length,i=t.length,s=e.toLowerCase(),a=t.toLowerCase(),c=Nc(t),l=0;l<r;l++){n[l]=new Array(i),o[l]=new Array(i);for(var f=fe,d=l===r-1?Oc:$c,u=0;u<i;u++)if(s[l]===a[u]){var m=fe;l?u&&(m=Math.max(o[l-1][u-1]+c[u],n[l-1][u-1]+ii)):m=u*jc+c[u],n[l][u]=m,o[l][u]=f=Math.max(m,f+d)}else n[l][u]=fe,o[l][u]=f=f+d}}function ai(e,t){var n=e.length,o=t.length;if(!n||!o)return fe;if(n===o)return kc;if(o>1024)return fe;var r=new Array(n),i=new Array(n);return si(e,t,r,i),i[n-1][o-1]}function ci(e,t){var n=e.length,o=t.length,r=new Array(n);if(!n||!o)return r;if(n===o){for(var i=0;i<n;i++)r[i]=i;return r}if(o>1024)return r;var s=new Array(n),a=new Array(n);si(e,t,s,a);for(var c=!1,i=n-1,l=o-1;i>=0;i--)for(;l>=0;l--)if(s[i][l]!==fe&&(c||s[i][l]===a[i][l])){c=i&&l&&a[i][l]===s[i-1][l-1]+ii,r[i]=l--;break}return r}function mt(e,t){e=e.toLowerCase(),t=t.toLowerCase();for(var n=e.length,o=0,r=0;o<n;o+=1)if(r=t.indexOf(e[o],r)+1,r===0)return!1;return!0}var Fc=Object.defineProperty,ke=(e,t)=>Fc(e,"name",{value:t,configurable:!0});const li=ke((e,t,n)=>{if(!mt(e,t))return-1/0;const o=ai(e,t);return o<n?-1/0:o},"getScore"),Vc=ke((e,t,n)=>{e.innerHTML="";let o=0;for(const r of ci(t,n)){n.slice(o,r)!==""&&e.appendChild(document.createTextNode(n.slice(o,r))),o=r+1;const s=document.createElement("mark");s.textContent=n[r],e.appendChild(s)}e.appendChild(document.createTextNode(n.slice(o)))},"highlightElement"),ui=new WeakMap,de=new WeakMap,pt=new WeakMap,Vn=ke(e=>{if(!pt.has(e)&&e instanceof HTMLElement){const t=(e.getAttribute("data-value")||e.textContent||"").trim();return pt.set(e,t),t}return pt.get(e)||""},"getTextCache");class ht extends HTMLElement{connectedCallback(){const t=this.querySelector("ul");if(!t)return;const n=new Set(t.querySelectorAll("li")),o=this.querySelector("input");o instanceof HTMLInputElement&&o.addEventListener("input",()=>{this.value=o.value});const r=new MutationObserver(s=>{let a=!1;for(const c of s)if(c.type==="childList"&&c.addedNodes.length){for(const l of c.addedNodes)if(l instanceof HTMLLIElement&&!n.has(l)){const f=Vn(l);a=a||mt(this.value,f),n.add(l)}}a&&this.sort()});r.observe(t,{childList:!0});const i={handler:r,items:n,lazyItems:new Map,timer:null};de.set(this,i)}disconnectedCallback(){const t=de.get(this);t&&(t.handler.disconnect(),de.delete(this))}addLazyItems(t,n){const o=de.get(this);if(!o)return;const{lazyItems:r}=o,{value:i}=this;let s=!1;for(const a of t)r.set(a,n),s=s||Boolean(i)&&mt(i,a);s&&this.sort()}sort(){const t=ui.get(this);t&&(t.aborted=!0);const n={aborted:!1};ui.set(this,n);const{minScore:o,markSelector:r,maxMatches:i,value:s}=this,a=de.get(this);if(!a||!this.dispatchEvent(new CustomEvent("fuzzy-list-will-sort",{cancelable:!0,detail:s})))return;const{items:c,lazyItems:l}=a,f=this.hasAttribute("mark-selector"),d=this.querySelector("ul");if(!d)return;const u=[];if(s){for(const m of c){const p=Vn(m),w=li(s,p,o);w!==-1/0&&u.push({item:m,score:w})}for(const[m,p]of l){const w=li(s,m,o);w!==-1/0&&u.push({text:m,render:p,score:w})}u.sort((m,p)=>p.score-m.score).splice(i)}else{let m=u.length;for(const p of c){if(m>=i)break;u.push({item:p,score:1}),m+=1}for(const[p,w]of l){if(m>=i)break;u.push({text:p,render:w,score:1}),m+=1}}requestAnimationFrame(()=>{if(n.aborted)return;const m=d.querySelector('input[type="radio"]:checked');d.innerHTML="";let p=0;const w=ke(()=>{if(n.aborted)return;const S=Math.min(u.length,p+100),v=document.createDocumentFragment();for(let $=p;$<S;$+=1){const q=u[$];let H=null;if("render"in q&&"text"in q){const{render:Ke,text:oe}=q;H=Ke(oe),c.add(H),pt.set(H,oe),l.delete(oe)}else"item"in q&&(H=q.item);H instanceof HTMLElement&&(f&&Vc(r&&H.querySelector(r)||H,f?s:"",Vn(H)),v.appendChild(H))}p=S;let x=!1;if(m instanceof HTMLInputElement)for(const $ of v.querySelectorAll('input[type="radio"]:checked'))$ instanceof HTMLInputElement&&$.value!==m.value&&($.checked=!1,x=!0);if(d.appendChild(v),m&&x&&m.dispatchEvent(new Event("change",{bubbles:!0})),S<u.length)requestAnimationFrame(w);else{d.hidden=u.length===0;const $=this.querySelector("[data-fuzzy-list-show-on-empty]");$&&($.hidden=u.length>0),this.dispatchEvent(new CustomEvent("fuzzy-list-sorted",{detail:u.length}))}},"nextBatch");w()})}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get markSelector(){return this.getAttribute("mark-selector")||""}set markSelector(t){t?this.setAttribute("mark-selector",t):this.removeAttribute("mark-selector")}get minScore(){return Number(this.getAttribute("min-score")||0)}set minScore(t){Number.isNaN(t)||this.setAttribute("min-score",String(t))}get maxMatches(){return Number(this.getAttribute("max-matches")||1/0)}set maxMatches(t){Number.isNaN(t)||this.setAttribute("max-matches",String(t))}static get observedAttributes(){return["value","mark-selector","min-score","max-matches"]}attributeChangedCallback(t,n,o){if(n===o)return;const r=de.get(this);!r||(r.timer&&window.clearTimeout(r.timer),r.timer=window.setTimeout(()=>this.sort(),100))}}_("_",ht),ke(ht,"FuzzyListElement"),window.customElements.get("fuzzy-list")||(window.FuzzyListElement=ht,window.customElements.define("fuzzy-list",ht));var Bc=Object.defineProperty,fi=(e,t)=>Bc(e,"name",{value:t,configurable:!0});function Bn(){return/Windows/.test(navigator.userAgent)?"windows":/Macintosh/.test(navigator.userAgent)?"mac":null}fi(Bn,"getPlatform");function di(e){const t=(e.getAttribute("data-platforms")||"").split(","),n=Bn();return Boolean(n&&t.includes(n))}fi(di,"runningOnPlatform"),b(".js-remove-unless-platform",function(e){di(e)||e.remove()});function Uc(){let e;try{e=window.top.document.referrer}catch(t){if(window.parent)try{e=window.parent.document.referrer}catch(n){}}return e===""&&(e=document.referrer),e}function zc(){try{return`${screen.width}x${screen.height}`}catch(e){return"unknown"}}function Xc(){let e=0,t=0;try{return typeof window.innerWidth=="number"?(t=window.innerWidth,e=window.innerHeight):document.documentElement!=null&&document.documentElement.clientWidth!=null?(t=document.documentElement.clientWidth,e=document.documentElement.clientHeight):document.body!=null&&document.body.clientWidth!=null&&(t=document.body.clientWidth,e=document.body.clientHeight),`${t}x${e}`}catch(n){return"unknown"}}function Wc(){return{referrer:Uc(),user_agent:navigator.userAgent,screen_resolution:zc(),browser_resolution:Xc(),pixel_ratio:window.devicePixelRatio,timestamp:Date.now(),tz_seconds:new Date().getTimezoneOffset()*-60}}let Un;function mi(){return`${Math.round(Math.random()*(Math.pow(2,31)-1))}.${Math.round(Date.now()/1e3)}`}function Kc(e){const t=`GH1.1.${e}`,n=Date.now(),o=new Date(n+1*365*86400*1e3).toUTCString();let{domain:r}=document;r.endsWith(".github.com")&&(r="github.com"),document.cookie=`_octo=${t}; expires=${o}; path=/; domain=${r}; secure; samesite=lax`}function Gc(){let e;const n=document.cookie.match(/_octo=([^;]+)/g);if(!n)return;let o=[0,0];for(const r of n){const[,i]=r.split("="),[,s,...a]=i.split("."),c=s.split("-").map(Number);c>o&&(o=c,e=a.join("."))}return e}function pi(){try{const e=Gc();if(e)return e;const t=mi();return Kc(t),t}catch(e){return Un||(Un=mi()),Un}}class Jc{constructor(t){this.options=t}get collectorUrl(){return this.options.collectorUrl}get clientId(){return this.options.clientId?this.options.clientId:pi()}createEvent(t){return{page:location.href,title:document.title,context:Ge(Ge({},this.options.baseContext),t)}}sendPageView(t){const n=this.createEvent(t);this.send({page_views:[n]})}sendEvent(t,n){const o=Qa(Ge({},this.createEvent(n)),{type:t});this.send({events:[o]})}send({page_views:t,events:n}){const o={client_id:this.clientId,page_views:t,events:n,request_context:Wc()},r=JSON.stringify(o);try{if(navigator.sendBeacon){navigator.sendBeacon(this.collectorUrl,r);return}}catch(i){}fetch(this.collectorUrl,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:r,keepalive:!1})}}function Yc(e="ha"){let t;const n={},o=document.head.querySelectorAll(`meta[name^="${e}-"]`);for(const r of Array.from(o)){const{name:i,content:s}=r,a=i.replace(`${e}-`,"").replace(/-/g,"_");a==="url"?t=s:n[a]=s}if(!t)throw new Error(`AnalyticsClient ${e}-url meta tag not found`);return Ge({collectorUrl:t},Object.keys(n).length>0?{baseContext:n}:{})}var Qc=Object.defineProperty,hi=(e,t)=>Qc(e,"name",{value:t,configurable:!0});const gi="dimension_";let je;try{const e=Yc("octolytics");if(e.baseContext){delete e.baseContext.app_id,delete e.baseContext.event_url,delete e.baseContext.host;for(const n in e.baseContext)n.startsWith(gi)&&(e.baseContext[n.replace(gi,"")]=e.baseContext[n],delete e.baseContext[n])}const t=document.querySelector("meta[name=visitor-payload]");if(t){const n=JSON.parse(atob(t.content)),o=e.baseContext||{};Object.assign(o,n),e.baseContext=o}je=new Jc(e)}catch(e){}function vi(e){je==null||je.sendPageView(e)}hi(vi,"sendPageView");function bi(e,t){var n,o;const r=(o=(n=document.head)==null?void 0:n.querySelector('meta[name="current-catalog-service"]'))==null?void 0:o.content,i=r?{service:r}:{};for(const[s,a]of Object.entries(t))a!=null&&(i[s]=`${a}`);je==null||je.sendEvent(e||"unknown",i)}hi(bi,"sendEvent");var Zc=Object.defineProperty,gt=(e,t)=>Zc(e,"name",{value:t,configurable:!0});let ee=null;(async function(){await Cn,wi()})();function yi(e){zn(Ei(e))}gt(yi,"announceFromElement");function zn(e){!ee||(ee.textContent="",ee.textContent=e)}gt(zn,"announce");function wi(){ee=document.createElement("div"),ee.setAttribute("aria-live","polite"),ee.classList.add("sr-only"),document.body.append(ee)}gt(wi,"createNoticeContainer");function Ei(e){return(e.getAttribute("aria-label")||e.innerText||"").trim()}gt(Ei,"getTextContent");var el=Object.defineProperty,I=(e,t)=>el(e,"name",{value:t,configurable:!0});const Oe=[];let vt=0,bt;function yt(){return bt}I(yt,"getState");function wt(){try{return Math.min(Math.max(0,history.length)||0,9007199254740991)}catch(e){return 0}}I(wt,"safeGetHistory");function Si(){const e={_id:new Date().getTime()};return me(e),e}I(Si,"initializeState");function Et(){return wt()-1+vt}I(Et,"position");function me(e){bt=e;const t=location.href;Oe[Et()]={url:t,state:bt},Oe.length=wt(),window.dispatchEvent(new CustomEvent("statechange",{bubbles:!1,cancelable:!1}))}I(me,"setState");function Xn(){return new Date().getTime()}I(Xn,"uniqueId");function Wn(e,t,n){vt=0;const o=Object.assign({},{_id:Xn()},e);history.pushState(o,t,n),me(o)}I(Wn,"pushState");function $e(e,t,n){const o=Object.assign({},{_id:yt()._id},e);history.replaceState(o,t,n),me(o)}I($e,"replaceState");function _i(){const e=Oe[Et()-1];if(e)return e.url}I(_i,"getBackURL");function Li(){const e=Oe[Et()+1];if(e)return e.url}I(Li,"getForwardURL"),bt=Si(),window.addEventListener("popstate",I(function(t){const n=t.state;if(!n||!n._id)return;n._id<(yt()._id||NaN)?vt--:vt++,me(n)},"onPopstate"),!0),window.addEventListener("hashchange",I(function(){if(wt()>Oe.length){const t={_id:Xn()};history.replaceState(t,"",location.href),me(t)}},"onHashchange"),!0);var tl=Object.defineProperty,pe=(e,t)=>tl(e,"name",{value:t,configurable:!0});function Ti(){return Promise.resolve()}pe(Ti,"microtask");function Ci(){return new Promise(window.requestAnimationFrame)}pe(Ci,"animationFrame");async function nl(e,t){let n;const o=new Promise((r,i)=>{n=self.setTimeout(()=>i(new Error("timeout")),e)});if(!t)return o;try{await Promise.race([o,Kn(t)])}catch(r){throw self.clearTimeout(n),r}}pe(nl,"timeout");async function Pi(e,t){let n;const o=new Promise(r=>{n=self.setTimeout(r,e)});if(!t)return o;try{await Promise.race([o,Kn(t)])}catch(r){throw self.clearTimeout(n),r}}pe(Pi,"wait");function Kn(e){return new Promise((t,n)=>{const o=new Error("aborted");o.name="AbortError",e.aborted?n(o):e.addEventListener("abort",()=>n(o))})}pe(Kn,"whenAborted");function Ai(e){const t=[];return function(n){t.push(n),t.length===1&&queueMicrotask(()=>{const o=[...t];t.length=0,e(o)})}}pe(Ai,"taskQueue");var ol=Object.defineProperty,te=(e,t)=>ol(e,"name",{value:t,configurable:!0});const W=new WeakMap;function Gn(e){const t=W.get(e);!t||(t.timer!=null&&clearTimeout(t.timer),t.timer=window.setTimeout(()=>{t.timer!=null&&(t.timer=null),t.inputed=!1,t.listener.call(null,e)},t.wait))}te(Gn,"schedule");function Jn(e){const t=e.currentTarget,n=W.get(t);!n||(n.keypressed=!0,n.timer!=null&&clearTimeout(n.timer))}te(Jn,"onKeydownInput");function Yn(e){const t=e.currentTarget,n=W.get(t);!n||(n.keypressed=!1,n.inputed&&Gn(t))}te(Yn,"onKeyupInput");function Qn(e){const t=e.currentTarget,n=W.get(t);!n||(n.inputed=!0,n.keypressed||Gn(t))}te(Qn,"onInputInput");function xi(e,t,n={wait:null}){W.set(e,{keypressed:!1,inputed:!1,timer:void 0,listener:t,wait:n.wait!=null?n.wait:100}),e.addEventListener("keydown",Jn),e.addEventListener("keyup",Yn),e.addEventListener("input",Qn)}te(xi,"addThrottledInputEventListener");function ki(e,t){e.removeEventListener("keydown",Jn),e.removeEventListener("keyup",Yn),e.removeEventListener("input",Qn);const n=W.get(e);n&&(n.timer!=null&&n.listener===t&&clearTimeout(n.timer),W.delete(e))}te(ki,"removeThrottledInputEventListener");function ji(e){const t=W.get(e);t&&t.listener.call(null,e)}te(ji,"dispatchThrottledInputEvent");var rl=Object.defineProperty,Oi=(e,t)=>rl(e,"name",{value:t,configurable:!0});const Zn={},Me={};(async()=>{await Cn,Zn[document.location.pathname]=Array.from(document.querySelectorAll("head [data-pjax-transient]")),Me[document.location.pathname]=Array.from(document.querySelectorAll("[data-pjax-replace]"))})(),document.addEventListener("pjax:beforeReplace",function(e){const t=e.detail.contents||[],n=e.target;for(let o=0;o<t.length;o++){const r=t[o];r instanceof Element&&(r.id==="pjax-head"?(Zn[document.location.pathname]=Array.from(r.children),t[o]=null):r.hasAttribute("data-pjax-replace")&&(Me[document.location.pathname]||(Me[document.location.pathname]=[]),Me[document.location.pathname].push(r),n.querySelector(`#${r.id}`)||(t[o]=null)))}});function eo(){const e=Me[document.location.pathname];if(!!e)for(const t of e){const n=document.querySelector(`#${t.id}`);n&&n.replaceWith(t)}}Oi(eo,"replaceCachedElements");function to(){const e=Zn[document.location.pathname];if(!e)return;const t=document.head;for(const n of document.querySelectorAll("head [data-pjax-transient]"))n.remove();for(const n of e)n.matches("title, script, link[rel=stylesheet]")?n.matches("link[rel=stylesheet]")&&t.append(n):(n.setAttribute("data-pjax-transient",""),t.append(n))}Oi(to,"replaceTransientTags");var il=Object.defineProperty,no=(e,t)=>il(e,"name",{value:t,configurable:!0});function St(e,t=location.hash){return _t(e,oo(t))}no(St,"findFragmentTarget");function _t(e,t){return t===""?null:e.getElementById(t)||e.getElementsByName(t)[0]}no(_t,"findElementByFragmentName");function oo(e){try{return decodeURIComponent(e.slice(1))}catch(t){return""}}no(oo,"decodeFragmentValue");var $i=Object.defineProperty,Mi=Object.getOwnPropertySymbols,sl=Object.prototype.hasOwnProperty,al=Object.prototype.propertyIsEnumerable,Ii=(e,t,n)=>t in e?$i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cl=(e,t)=>{for(var n in t||(t={}))sl.call(t,n)&&Ii(e,n,t[n]);if(Mi)for(var n of Mi(t))al.call(t,n)&&Ii(e,n,t[n]);return e},L=(e,t)=>$i(e,"name",{value:t,configurable:!0});const qi=20;let k,Ie=null;function j(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}L(j,"dispatch");async function ro(e){var t,n,o,r;const i=cl({push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0},e);i.requestUrl=i.url;const a=He(i.url).hash,c=i.container,l=co(c);k||(k={id:so(),url:window.location.href,title:document.title,container:l,fragment:i.fragment},$e(k,k.title,k.url)),Ie==null||Ie.abort();const{signal:f}=Ie=new AbortController;i.push===!0&&i.replace!==!0&&(Vi(k.id,ao(c)),Wn(null,"",i.requestUrl)),j(c,"pjax:start",{url:i.url}),j(c,"pjax:send");let d;const u=zi();try{d=await fetch(i.url,{signal:f,method:i.type,body:i.data,headers:{Accept:"text/html","X-PJAX":"true","X-PJAX-Container":l,"X-Requested-With":"XMLHttpRequest","X-PJAX-VERSION":(t=u.pjax)!=null?t:"","X-PJAX-CSP-VERSION":(n=u.csp)!=null?n:"","X-PJAX-CSS-VERSION":(o=u.css)!=null?o:"","X-PJAX-JS-VERSION":(r=u.js)!=null?r:""}})}catch(we){d=void 0}if(!d||!d.ok){const we=j(c,"pjax:error");if(i.type==="GET"&&we){const pr=d&&d.headers.get("X-PJAX-URL"),uu=pr?He(pr).href:i.requestUrl;Q({pjaxFailureReason:"response_error",requestUrl:i.requestUrl}),qe(uu)}j(c,"pjax:complete"),j(c,"pjax:end");return}const m=k,p=Ui(),w=d.headers.get("X-PJAX-Version"),S=await d.text(),v=Di(S,d,i),{contents:x}=v,$=He(v.url);if(a&&($.hash=a,v.url=$.href),p&&w&&p!==w){j(c,"pjax:hardLoad",{reason:"version_mismatch"}),Q({pjaxFailureReason:"version_mismatch",requestUrl:i.requestUrl}),qe(v.url);return}if(!x){j(c,"pjax:hardLoad",{reason:"missing_response_body"}),Q({pjaxFailureReason:"missing_response_body",requestUrl:i.requestUrl}),qe(v.url);return}k={id:i.id!=null?i.id:so(),url:v.url,title:v.title,container:l,fragment:i.fragment},(i.push===!0||i.replace===!0)&&$e(k,v.title,v.url);const q=document.activeElement,H=i.container!=null&&i.container.contains(q);if(q instanceof HTMLElement&&H)try{q.blur()}catch(we){}v.title&&(document.title=v.title),j(c,"pjax:beforeReplace",{contents:x,state:k,previousState:m}),lo(c,x),eo(),to();const Ke=c.querySelector("input[autofocus], textarea[autofocus]");Ke&&document.activeElement!==Ke&&Ke.focus(),v.scripts&&Ni(v.scripts),v.stylesheets&&Fi(v.stylesheets);let oe=i.scrollTo;if(a){const we=St(document,a);we&&(oe=we.getBoundingClientRect().top+window.pageYOffset)}typeof oe=="number"&&window.scrollTo(window.pageXOffset,oe),j(c,"pjax:success"),j(c,"pjax:complete"),j(c,"pjax:end")}L(ro,"pjaxRequest");function qe(e){k&&$e(null,"",k.url),window.location.replace(e)}L(qe,"locationReplace");let Lt=!0;const ll=window.location.href,io=window.history.state;io&&io.container&&(k=io),"state"in window.history&&(Lt=!1);function Hi(e){Lt||Ie==null||Ie.abort();const t=k,n=e.state;let o=null;if(n&&n.container){if(Lt&&ll===n.url)return;if(t){if(t.id===n.id)return;o=t.id<n.id?"forward":"back"}const[r,i,s]=De[n.id]||[],a=document.querySelector(r||n.container);if(a instanceof HTMLElement){t&&Bi(o,t.id,ao(a)),j(a,"pjax:popstate",{state:n,direction:o,cachedAt:s});const c={id:n.id,url:n.url,container:a,push:!1,fragment:n.fragment||"",scrollTo:!1};i?(j(a,"pjax:start"),k=n,n.title&&(document.title=n.title),j(a,"pjax:beforeReplace",{contents:i,state:n,previousState:t}),lo(a,i),eo(),to(),j(a,"pjax:end")):ro(c),a.offsetHeight}else Q({pjaxFailureReason:"no_container",requestUrl:t==null?void 0:t.url}),qe(location.href)}Lt=!1}L(Hi,"onPjaxPopstate");function so(){return new Date().getTime()}L(so,"uniqueId");function ao(e){const t=e.cloneNode(!0);return[co(e),Array.from(t.childNodes),Date.now()]}L(ao,"cloneContents");function He(e){const t=document.createElement("a");return t.href=e,t}L(He,"parseURL");function co(e){if(e.id)return`#${e.id}`;throw new Error("pjax container has no id")}L(co,"getContainerSelector");function Re(e,t,n){let o=[];for(const r of e)r instanceof Element&&(r instanceof n&&r.matches(t)&&o.push(r),o=o.concat(Array.from(r.querySelectorAll(t))));return o}L(Re,"findAll");function lo(e,t){e.innerHTML="";for(const n of t)n!=null&&e.appendChild(n)}L(lo,"replaceWithNodes");function Ri(e,t){const n=e.headers.get("X-PJAX-URL");return n?He(n).href:t}L(Ri,"resolveUrl");function Di(e,t,n){const o={url:Ri(t,n.requestUrl),title:""},r=/<html/i.test(e);if((t.headers.get("Content-Type")||"").split(";",1)[0].trim()!=="text/html")return o;let s,a;if(r){const f=e.match(/<head[^>]*>([\s\S.]*)<\/head>/i),d=e.match(/<body[^>]*>([\s\S.]*)<\/body>/i);s=f?Array.from(Z(document,f[0]).childNodes):[],a=d?Array.from(Z(document,d[0]).childNodes):[]}else s=a=Array.from(Z(document,e).childNodes);if(a.length===0)return o;const c=Re(s,"title",HTMLTitleElement);o.title=c.length>0&&c[c.length-1].textContent||"";let l;if(n.fragment){if(n.fragment==="body")l=a;else{const f=Re(a,n.fragment,Element);l=f.length>0?[f[0]]:[]}if(l.length&&(n.fragment==="body"?o.contents=l:o.contents=l.flatMap(f=>Array.from(f.childNodes)),!o.title)){const f=l[0];f instanceof Element&&(o.title=f.getAttribute("title")||f.getAttribute("data-title")||"")}}else r||(o.contents=a);if(o.contents){o.contents=o.contents.filter(function(u){return u instanceof Element?!u.matches("title"):!0});for(const u of o.contents)if(u instanceof Element)for(const m of u.querySelectorAll("title"))m.remove();const f=Re(o.contents,"script[src]",HTMLScriptElement);for(const u of f)u.remove();o.scripts=f,o.contents=o.contents.filter(u=>f.indexOf(u)===-1);const d=Re(o.contents,"link[rel=stylesheet]",HTMLLinkElement);for(const u of d)u.remove();o.stylesheets=d,o.contents=o.contents.filter(u=>!d.includes(u))}return o.title&&(o.title=o.title.trim()),o}L(Di,"extractContainer");function Ni(e){const t=document.querySelectorAll("script[src]");for(const n of e){const{src:o}=n;if(Array.from(t).some(s=>s.src===o))continue;const r=document.createElement("script"),i=n.getAttribute("type");i&&(r.type=i),r.src=o,document.head&&document.head.appendChild(r)}}L(Ni,"executeScriptTags");function Fi(e){const t=document.querySelectorAll("link[rel=stylesheet]");for(const n of e)Array.from(t).some(o=>o.href===n.href)||document.head&&document.head.appendChild(n)}L(Fi,"injectStyleTags");const De={},uo=[],Tt=[];function Vi(e,t){De[e]=t,Tt.push(e),Ct(uo,0),Ct(Tt,qi)}L(Vi,"cachePush");function Bi(e,t,n){let o,r;De[t]=n,e==="forward"?(o=Tt,r=uo):(o=uo,r=Tt),o.push(t);const i=r.pop();i&&delete De[i],Ct(o,qi)}L(Bi,"cachePop");function Ct(e,t){for(;e.length>t;){const n=e.shift();if(n==null)return;delete De[n]}}L(Ct,"trimCacheStack");function Ui(){for(const e of document.getElementsByTagName("meta")){const t=e.getAttribute("http-equiv");if(t&&t.toUpperCase()==="X-PJAX-VERSION")return e.content}return null}L(Ui,"findVersion");function Ne(e){var t;const n=document.querySelector(`meta[http-equiv="${e}"]`);return(t=n==null?void 0:n.content)!=null?t:null}L(Ne,"pjaxMeta");function zi(){return{pjax:Ne("X-PJAX-VERSION"),csp:Ne("X-PJAX-CSP-VERSION"),css:Ne("X-PJAX-CSS-VERSION"),js:Ne("X-PJAX-JS-VERSION")}}L(zi,"findAllVersions");function Xi(){return k}L(Xi,"getState"),window.addEventListener("popstate",Hi);var ul=Object.defineProperty,D=(e,t)=>ul(e,"name",{value:t,configurable:!0});function fo(e){const t=e.match(/#?(?:L)(\d+)((?:C)(\d+))?/g);if(t)if(t.length===1){const n=Pt(t[0]);return n?Object.freeze({start:n,end:n}):void 0}else if(t.length===2){const n=Pt(t[0]),o=Pt(t[1]);return!n||!o?void 0:ho(Object.freeze({start:n,end:o}))}else return;else return}D(fo,"parseBlobRange");function Wi(e){const{start:t,end:n}=ho(e);return t.column!=null&&n.column!=null?`L${t.line}C${t.column}-L${n.line}C${n.column}`:t.line===n.line?`L${t.line}`:`L${t.line}-L${n.line}`}D(Wi,"formatBlobRange");function Ki(e){const t=e.match(/(file-.+?-)L\d+?/i);return t?t[1]:""}D(Ki,"parseAnchorPrefix");function Gi(e){const t=fo(e),n=Ki(e);return{blobRange:t,anchorPrefix:n}}D(Gi,"parseFileAnchor");function Ji({anchorPrefix:e,blobRange:t}){return t?`#${e}${Wi(t)}`:"#"}D(Ji,"formatBlobRangeAnchor");function Pt(e){const t=e.match(/L(\d+)/),n=e.match(/C(\d+)/);return t?Object.freeze({line:parseInt(t[1]),column:n?parseInt(n[1]):null}):null}D(Pt,"parseBlobOffset");function Yi(e,t){const[n,o]=mo(e.start,!0,t),[r,i]=mo(e.end,!1,t);if(!n||!r)return;let s=o,a=i;if(s===-1&&(s=0),a===-1&&(a=r.childNodes.length),!n.ownerDocument)throw new Error("DOMRange needs to be inside document");const c=n.ownerDocument.createRange();return c.setStart(n,s),c.setEnd(r,a),c}D(Yi,"DOMRangeFromBlob");function mo(e,t,n){const o=[null,0],r=n(e.line);if(!r)return o;if(e.column==null)return[r,-1];let i=e.column-1;const s=po(r);for(let a=0;a<s.length;a++){const c=s[a],l=i-(c.textContent||"").length;if(l===0){const f=s[a+1];return t&&f?[f,0]:[c,i]}else if(l<0)return[c,i];i=l}return o}D(mo,"findRangeOffset");function po(e){if(e.nodeType===Node.TEXT_NODE)return[e];if(!e.childNodes||!e.childNodes.length)return[];let t=[];for(const n of e.childNodes)t=t.concat(po(n));return t}D(po,"getAllTextNodes");function ho(e){const t=[e.start,e.end];return t.sort(Qi),t[0]===e.start&&t[1]===e.end?e:Object.freeze({start:t[0],end:t[1]})}D(ho,"ascendingBlobRange");function Qi(e,t){return e.line===t.line&&e.column===t.column?0:e.line===t.line&&typeof e.column=="number"&&typeof t.column=="number"?e.column-t.column:e.line-t.line}D(Qi,"compareBlobOffsets");var fl=Object.defineProperty,go=(e,t)=>fl(e,"name",{value:t,configurable:!0});const he=[];let vo=0;function Fe(e){(async function(){he.push(e),await Cn,Zi()})()}go(Fe,"hashChange"),Fe.clear=()=>{he.length=vo=0};function Zi(){const e=vo;vo=he.length,At(he.slice(e),null,window.location.href)}go(Zi,"runRemainingHandlers");function At(e,t,n){const o=window.location.hash.slice(1),r=o?document.getElementById(o):null,i={oldURL:t,newURL:n,target:r};for(const s of e)s.call(null,i)}go(At,"runHandlers");let bo=window.location.href;window.addEventListener("popstate",function(){bo=window.location.href}),window.addEventListener("hashchange",function(e){const t=window.location.href;try{At(he,e.oldURL||bo,t)}finally{bo=t}});let es=null;document.addEventListener("pjax:start",function(){es=window.location.href}),document.addEventListener("pjax:end",function(){At(he,es,window.location.href)});var dl=Object.defineProperty,ml=(e,t)=>dl(e,"name",{value:t,configurable:!0});function ts(e,t){t.appendChild(e.extractContents()),e.insertNode(t)}ml(ts,"surroundContents");var pl=Object.defineProperty,yo=(e,t)=>pl(e,"name",{value:t,configurable:!0});function xt(e){const t="\u200D",n=e.split(t);let o=0;for(const r of n)o+=Array.from(r.split(/[\ufe00-\ufe0f]/).join("")).length;return o/n.length}yo(xt,"getUtf8StringLength");function ns(e,t,n){let o=e.value.substring(0,e.selectionEnd||0),r=e.value.substring(e.selectionEnd||0);return o=o.replace(t,n),r=r.replace(t,n),e.value=o+r,e.selectionStart=o.length,e.selectionEnd=o.length,e.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1})),n}yo(ns,"replaceText");function os(e,t,n={}){const o=e.selectionEnd||0,r=e.value.substring(0,o),i=e.value.substring(o),s=e.value===""||r.match(/\n$/)?"":`
  2. `,a=n.appendNewline?`
  3. `:"",c=s+t+a;e.value=r+c+i;const l=o+c.length;return e.selectionStart=l,e.selectionEnd=l,e.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1})),e.focus(),c}yo(os,"insertText");var hl=Object.defineProperty,ge=(e,t)=>hl(e,"name",{value:t,configurable:!0});function rs(e,t,n){const o=n.closest(".js-characters-remaining-container");if(!o)return;const r=o.querySelector(".js-characters-remaining"),i=String(r.getAttribute("data-suffix")),s=xt(e),a=t-s;a<=20?(r.textContent=`${a} ${i}`,r.classList.toggle("color-fg-danger",a<=5),r.hidden=!1):r.hidden=!0}ge(rs,"showRemainingCharacterCount");function wo(e){return e.hasAttribute("data-maxlength")?parseInt(e.getAttribute("data-maxlength")||""):e.maxLength}ge(wo,"getFieldLimit");function is(e){const t=wo(e),n=xt(e.value);return t-n<0}ge(is,"hasExceededCharacterLimit");function kt(e){const t=wo(e);rs(e.value,t,e)}ge(kt,"updateInputRemainingCharacters");function ss(e){const t=e.querySelectorAll(".js-characters-remaining-container");for(const n of t){const o=n.querySelector(".js-characters-remaining-field");kt(o)}}ge(ss,"resetCharactersRemainingCounts"),ce(".js-characters-remaining-field",function(e){function t(){(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&kt(e)}ge(t,"onInput"),t(),e.addEventListener("input",t),e.addEventListener("blur",()=>{e.removeEventListener("input",t)},{once:!0})});var gl=Object.defineProperty,jt=(e,t)=>gl(e,"name",{value:t,configurable:!0});const Eo=new WeakMap;function as(e){return Eo.get(e)}jt(as,"getCodeEditor");async function cs(e){return Eo.get(e)||So(await ls(e,"codeEditor:ready"))}jt(cs,"getAsyncCodeEditor");function So(e){if(!(e instanceof CustomEvent))throw new Error("assert: event is not a CustomEvent");const t=e.detail.editor;if(!e.target)throw new Error("assert: event.target is null");return Eo.set(e.target,t),t}jt(So,"onEditorFromEvent"),y("codeEditor:ready",".js-code-editor",So);function ls(e,t){return new Promise(n=>{e.addEventListener(t,n,{once:!0})})}jt(ls,"nextEvent");var vl=Object.defineProperty,us=(e,t)=>vl(e,"name",{value:t,configurable:!0});const bl=bn(fs);function fs(){var e,t;return(((t=(e=document.head)==null?void 0:e.querySelector('meta[name="enabled-features"]'))==null?void 0:t.content)||"").split(",")}us(fs,"enabledFeatures");const gu=_("N",bn(ds));function ds(e){return bl().indexOf(e)!==-1}us(ds,"isEnabled");var yl=Object.defineProperty,_o=(e,t)=>yl(e,"name",{value:t,configurable:!0});const wl="ontransitionend"in window;function ms(e,t){if(!wl){t();return}const n=Array.from(e.querySelectorAll(".js-transitionable"));e.classList.contains("js-transitionable")&&n.push(e);for(const o of n){const r=Lo(o);o instanceof HTMLElement&&(o.addEventListener("transitionend",()=>{o.style.display="",o.style.visibility="",r&&To(o,function(){o.style.height=""})},{once:!0}),o.style.boxSizing="content-box",o.style.display="block",o.style.visibility="visible",r&&To(o,function(){o.style.height=getComputedStyle(o).height}),o.offsetHeight)}t();for(const o of n)if(o instanceof HTMLElement&&Lo(o)){const r=getComputedStyle(o).height;o.style.boxSizing="",r==="0px"?o.style.height=`${o.scrollHeight}px`:o.style.height="0px"}}_o(ms,"performTransition");function Lo(e){return getComputedStyle(e).transitionProperty==="height"}_o(Lo,"isTransitioningHeight");function To(e,t){e.style.transition="none",t(),e.offsetHeight,e.style.transition=""}_o(To,"withoutTransition");var El=Object.defineProperty,N=(e,t)=>El(e,"name",{value:t,configurable:!0});function ps(e,t){t.find(n=>{const o=e.querySelectorAll(n),r=o[o.length-1];if(r&&document.activeElement!==r)return r.focus(),!0})}N(ps,"findAndFocusByQuerySelector");function hs(e){ps(e,[".js-focus-on-dismiss","input[autofocus], textarea[autofocus]"])}N(hs,"restoreAutofocus");function gs(e){!e.classList.contains("tooltipped")||(e.classList.remove("tooltipped"),e.addEventListener("mouseleave",()=>{e.classList.add("tooltipped"),e.blur()},{once:!0}))}N(gs,"hideTooltip");function vs(e){return[...document.querySelectorAll(".js-details-container")].filter(t=>t.getAttribute("data-details-container-group")===e)}N(vs,"groupMembers");function bs(e){return[...e.querySelectorAll(".js-details-target")].filter(t=>t.closest(".js-details-container")===e)}N(bs,"containerTargets");function ys(e,t){const n=e.getAttribute("data-details-container-group");return n?(Dn(e,()=>{for(const o of vs(n))o!==e&&Co(o,t)}),n):null}N(ys,"toggleGroup");function Co(e,t){e.classList.toggle("open",t),e.classList.toggle("Details--on",t);for(const n of bs(e))n.setAttribute("aria-expanded",t.toString())}N(Co,"updateOpenState");function Po(e,t){var n,o;const r=e.getAttribute("data-details-container")||".js-details-container",i=e.closest(r),s=(n=t==null?void 0:t.force)!=null?n:!i.classList.contains("open"),a=(o=t==null?void 0:t.withGroup)!=null?o:!1;ms(i,()=>{Co(i,s);const c=a?ys(i,s):null;Promise.resolve().then(()=>{hs(i),gs(e),i.dispatchEvent(new CustomEvent("details:toggled",{bubbles:!0,cancelable:!1,detail:{open:s}})),c&&i.dispatchEvent(new CustomEvent("details:toggled-group",{bubbles:!0,cancelable:!1,detail:{open:s,group:c}}))})})}N(Po,"toggleDetailsTarget");function ws(e){const t=e.getAttribute("data-details-container")||".js-details-container",o=e.closest(t).classList;return o.contains("Details--on")||o.contains("open")}N(ws,"isDetailsTargetExpanded");function Es(e){const t=e.altKey,n=e.currentTarget;Po(n,{withGroup:t}),e.preventDefault()}N(Es,"handleDetailsTargetClick"),y("click",".js-details-target",Es),Fe(function({target:e}){e&&Ao(e)});function Ao(e){let t=!1,n=e.parentElement;for(;n;)n.classList.contains("Details-content--shown")&&(t=!0),n.classList.contains("js-details-container")&&(n.classList.toggle("open",!t),n.classList.toggle("Details--on",!t),t=!1),n=n.parentElement}N(Ao,"ensureExpanded");var Sl=Object.defineProperty,Ve=(e,t)=>Sl(e,"name",{value:t,configurable:!0});function Ss(e,t){let n=xo(e,t);if(n&&t.indexOf("/")===-1){const o=e.substring(e.lastIndexOf("/")+1);n+=xo(o,t)}return n}Ve(Ss,"fuzzyScore");function _s(e){const t=e.toLowerCase().split("");let n="";for(let o=0;o<t.length;o++){const i=t[o].replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");o===0?n+=`(.*)(${i})`:n+=`([^${i}]*?)(${i})`}return new RegExp(`${n}(.*?)$`,"i")}Ve(_s,"fuzzyRegexp");function Ls(e,t,n){if(t){const o=e.innerHTML.trim().match(n||_s(t));if(!o)return;let r=!1;const i=[];for(let s=1;s<o.length;++s){const a=o[s];!a||(s%2==0?r||(i.push("<mark>"),r=!0):r&&(i.push("</mark>"),r=!1),i.push(a))}e.innerHTML=i.join("")}else{const o=e.innerHTML.trim(),r=o.replace(/<\/?mark>/g,"");o!==r&&(e.innerHTML=r)}}Ve(Ls,"fuzzyHighlightElement");function xo(e,t){let n=e;if(n===t)return 1;const o=n.length;let r=0,i=0;for(let l=0;l<t.length;l++){const f=t[l],d=n.indexOf(f.toLowerCase()),u=n.indexOf(f.toUpperCase()),m=Math.min(d,u),p=m>-1?m:Math.max(d,u);if(p===-1)return 0;r+=.1,n[p]===f&&(r+=.1),p===0&&(r+=.8,l===0&&(i=1)),n.charAt(p-1)===" "&&(r+=.8),n=n.substring(p+1,o)}const s=t.length,a=r/s;let c=(a*(s/o)+a)/2;return i&&c+.1<1&&(c+=.1),c}Ve(xo,"stringScore");function Ts(e,t){return e.score>t.score?-1:e.score<t.score?1:e.text<t.text?-1:e.text>t.text?1:0}Ve(Ts,"compare");var _l=Object.defineProperty,Ll=(e,t)=>_l(e,"name",{value:t,configurable:!0});function*Cs(e,t){for(const n of e){const o=t(n);o!=null&&(yield o)}}Ll(Cs,"filterMap");var Tl=Object.defineProperty,Ps=(e,t)=>Tl(e,"name",{value:t,configurable:!0});function As(e,t,n){return[...Cs(e,Ps(r=>{const i=t(r);return i!=null?[r,i]:null},"sortKey"))].sort((r,i)=>n(r[1],i[1])).map(([r])=>r)}Ps(As,"filterSort");var Cl=Object.defineProperty,K=(e,t)=>Cl(e,"name",{value:t,configurable:!0});function xs(e){return new Promise(t=>{e.addEventListener("dialog:remove",t,{once:!0})})}K(xs,"waitForDialogClose");function ko(e){const t=document.querySelector(".sso-modal");!t||(t.classList.remove("success","error"),e?t.classList.add("success"):t.classList.add("error"))}K(ko,"setModalStatus");function ks(e){const t=document.querySelector("meta[name=sso-expires-around]");t&&t.setAttribute("content",e)}K(ks,"updateExpiresAroundTag");async function js(){const e=document.querySelector("link[rel=sso-modal]"),t=await lt({content:at(document,e.href),dialogClass:"sso-modal"});let n=null;const o=window.external;if(o.ssoComplete=function(r){r.error?(n=!1,ko(n)):(n=!0,ko(n),ks(r.expiresAround),window.focus()),o.ssoComplete=null},await xs(t),!n)throw new Error("sso prompt canceled")}K(js,"ssoPrompt"),b(".js-sso-modal-complete",function(e){if(window.opener&&window.opener.external.ssoComplete){const t=e.getAttribute("data-error"),n=e.getAttribute("data-expires-around");window.opener.external.ssoComplete({error:t,expiresAround:n}),window.close()}else{const t=e.getAttribute("data-fallback-url");t&&(window.location.href=t)}});function Os(e){if(!(e instanceof HTMLMetaElement))return!0;const t=parseInt(e.content);return new Date().getTime()/1e3>t}K(Os,"expiresSoon");async function $s(){const e=document.querySelector("link[rel=sso-session]"),t=document.querySelector("meta[name=sso-expires-around]");if(!(e instanceof HTMLLinkElement)||!Os(t))return!0;const n=e.href;return await(await fetch(n,{headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}})).json()}K($s,"fetchSsoStatus");let Ot=null;function jo(){Ot=null}K(jo,"clearActiveSsoPrompt");async function Ms(){await $s()||(Ot||(Ot=js().then(jo).catch(jo)),await Ot)}K(Ms,"default");var Pl=Object.defineProperty,$t=(e,t)=>Pl(e,"name",{value:t,configurable:!0});y("click",".js-skip-to-content",function(e){const t=document.getElementById("start-of-content");if(t){const n=t.nextElementSibling;n instanceof HTMLElement&&(n.setAttribute("tabindex","-1"),n.setAttribute("data-skipped-to-content","1"),n.focus())}e.preventDefault()});function Is(){let e=!1;const t=document.getElementById("start-of-content");if(t){const n=t.nextElementSibling;if(n instanceof HTMLElement)return e=n.getAttribute("data-skipped-to-content")==="1",e&&n.removeAttribute("data-skipped-to-content"),e}}$t(Is,"hasSkippedToContent");const Al="ontouchstart"in document;function qs(){return window.innerWidth>1012}$t(qs,"compatibleDesktop");for(const e of document.querySelectorAll(".HeaderMenu-details"))e.addEventListener("toggle",Hs),Al||(e.addEventListener("mouseover",$o),e.addEventListener("mouseleave",$o));let Oo=!1;function Hs(e){if(!Oo){Oo=!0;for(const t of document.querySelectorAll(".HeaderMenu-details"))t!==e.currentTarget&&t.removeAttribute("open");setTimeout(()=>Oo=!1)}}$t(Hs,"onMenuToggle");function $o(e){const{currentTarget:t}=e;!(t instanceof HTMLElement)||!qs()||(e.type==="mouseover"&&e instanceof MouseEvent?e.target instanceof Node&&e.relatedTarget instanceof Node&&t.contains(e.target)&&!t.contains(e.relatedTarget)&&t.setAttribute("open",""):t.removeAttribute("open"))}$t($o,"onMenuHover");var xl=Object.defineProperty,C=(e,t)=>xl(e,"name",{value:t,configurable:!0});let Mo=!1,Be=0;const Ue=[];function Io(){Ue.length?Rs():Ds()}C(Io,"manageObservers");function Rs(){Mo||(window.addEventListener("resize",ze),document.addEventListener("scroll",ze),Mo=!0)}C(Rs,"addObservers");function Ds(){window.removeEventListener("resize",ze),document.removeEventListener("scroll",ze),Mo=!1}C(Ds,"removeObservers");function Mt(){It(!0)}C(Mt,"forceStickyRelayout");function ze(){It()}C(ze,"checkElementsForStickingHandler");function It(e=!1){for(const t of Ue)if(t.element.offsetHeight>0){const{element:n,placeholder:o,top:r}=t,i=n.getBoundingClientRect();if(o){const s=o.getBoundingClientRect();n.classList.contains("is-stuck")?s.top>ve(n,r)?Ho(t):Ro(t):i.top<=ve(n,r)?qo(t):e&&Ro(t)}else i.top<=ve(n,r)?qo(t):Ho(t)}}C(It,"checkElementsForSticking");function Ns(e){const{position:t}=window.getComputedStyle(e);return/sticky/.test(t)}C(Ns,"browserHasSticky");function qo({element:e,placeholder:t,top:n}){if(t){const o=e.getBoundingClientRect();qt(e,ve(e,n)),e.style.left=`${o.left}px`,e.style.width=`${o.width}px`,e.style.marginTop="0",e.style.position="fixed",t.style.display="block"}e.classList.add("is-stuck")}C(qo,"pinSet");function Ho({element:e,placeholder:t}){t&&(e.style.position="static",e.style.marginTop=t.style.marginTop,t.style.display="none"),e.classList.remove("is-stuck")}C(Ho,"unpinSet");function Ro({element:e,placeholder:t,offsetParent:n,top:o}){if(t&&!Is()){const r=e.getBoundingClientRect(),i=t.getBoundingClientRect();if(qt(e,ve(e,o)),e.style.left=`${i.left}px`,e.style.width=`${i.width}px`,n){const s=n.getBoundingClientRect();s.bottom<r.height+parseInt(String(o))&&(e.style.top=`${s.bottom-r.height}px`)}}}C(Ro,"updatePinnedSet");function Fs(e){if(Ns(e))return null;const t=e.previousElementSibling;if(t&&t.classList.contains("is-placeholder"))return t;const n=document.createElement("div");return n.style.visibility="hidden",n.style.display="none",n.style.height=window.getComputedStyle(e).height,n.className=e.className,n.classList.remove("js-sticky"),n.classList.add("is-placeholder"),e.parentNode.insertBefore(n,e)}C(Fs,"findOrCreatePlaceholder");function Vs(e){const t=Fs(e),n=window.getComputedStyle(e).position;e.style.position="static";const o=e.offsetParent;e.style.position="fixed";const r=Fo(e),i={element:e,placeholder:t,offsetParent:o,top:r==="auto"?0:parseInt(r||"0")};e.style.position=n,Ue.push(i)}C(Vs,"createSet");function Bs(e){const t=Ue.map(n=>n.element).indexOf(e);Ue.splice(t,1)}C(Bs,"removeSet");async function Us(e){await Pn,Vs(e),It(),Io()}C(Us,"initializeSet"),b(".js-sticky",{constructor:HTMLElement,add(e){Us(e)},remove(e){Bs(e),Io()}}),b(".js-notification-top-shelf",{constructor:HTMLElement,add(e){zs(e)},remove(){for(const e of document.querySelectorAll(".js-notification-top-shelf"))e.remove();Be>0&&(Be=0,Do(),Mt())}}),b(".js-notification-shelf-offset-top, .js-position-sticky",{constructor:HTMLElement,add:No});async function zs(e){if(e.offsetParent===null)return;await Pn;const t=Math.floor(e.getBoundingClientRect().height);t>0&&(Be=t,Do(),Mt())}C(zs,"initializeNotificationShelf");function Do(){for(const e of document.querySelectorAll(".js-position-sticky, .js-notification-shelf-offset-top"))No(e)}C(Do,"updateTopOffsets");function No(e){if(e.classList.contains("js-notification-top-shelf"))return;const t=parseInt(Fo(e))||0;qt(e,t+Be)}C(No,"updateTopOffset");function Fo(e){const t=e.getAttribute("data-original-top");if(t!=null)return t;const n=window.getComputedStyle(e).top;return e.setAttribute("data-original-top",n),n}C(Fo,"getOriginalTop");function ve(e,t){return e.classList.contains("js-notification-top-shelf")?t:t+Be}C(ve,"withShelfOffset");function qt(e,t){e.style.setProperty("top",`${t}px`,"important")}C(qt,"setTopImportant");var kl=Object.defineProperty,Vo=(e,t)=>kl(e,"name",{value:t,configurable:!0});function Bo(e){const t=e.ownerDocument;setTimeout(()=>{t&&t.defaultView&&(e.scrollIntoView(),t.defaultView.scrollBy(0,-Uo(t)))},0)}Vo(Bo,"scrollIntoView");function Xs(e){const t=St(e);t&&Bo(t)}Vo(Xs,"scrollToFragmentTarget");function Uo(e){Mt();const t=e.querySelectorAll(".js-sticky-offset-scroll"),n=e.querySelectorAll(".js-position-sticky"),o=Math.max(0,...Array.from(t).map(s=>{const{top:a,height:c}=s.getBoundingClientRect();return a===0?c:0}))+Math.max(0,...Array.from(n).map(s=>{const{top:a,height:c}=s.getBoundingClientRect(),l=parseInt(getComputedStyle(s).top);if(!s.parentElement)return 0;const f=s.parentElement.getBoundingClientRect().top;return a===l&&f<0?c:0})),r=e.querySelectorAll(".js-position-sticky-stacked"),i=Array.from(r).reduce((s,a)=>{const{height:c,top:l}=a.getBoundingClientRect(),f=l<0,d=a.classList.contains("is-stuck");return s+(!f&&d?c:0)},0);return o+i}Vo(Uo,"computeFixedYOffset");var jl=Object.defineProperty,zo=(e,t)=>jl(e,"name",{value:t,configurable:!0});function Ht(e,t,n){const o={hydroEventPayload:e,hydroEventHmac:t,visitorPayload:"",visitorHmac:"",hydroClientContext:n},r=document.querySelector("meta[name=visitor-payload]");r instanceof HTMLMetaElement&&(o.visitorPayload=r.content);const i=document.querySelector("meta[name=visitor-hmac]")||"";i instanceof HTMLMetaElement&&(o.visitorHmac=i.content),Q(o,!0)}zo(Ht,"sendData");function Xo(e){const t=e.getAttribute("data-hydro-view")||"",n=e.getAttribute("data-hydro-view-hmac")||"",o=e.getAttribute("data-hydro-client-context")||"";Ht(t,n,o)}zo(Xo,"trackView");function Ws(e){const t=e.getAttribute("data-hydro-click-payload")||"",n=e.getAttribute("data-hydro-click-hmac")||"",o=e.getAttribute("data-hydro-client-context")||"";Ht(t,n,o)}zo(Ws,"sendHydroEvent");var Ol=Object.defineProperty,Xe=(e,t)=>Ol(e,"name",{value:t,configurable:!0});const Ks={frequency:.6,recency:.4};function Gs(e,t){return e.sort((n,o)=>t(n)-t(o))}Xe(Gs,"sortBy");function Wo(e){const t=Ys(e),n=Qs(e);return function(o){return Js(t.get(o)||0,n.get(o)||0)}}Xe(Wo,"scorer");function Js(e,t){return e*Ks.frequency+t*Ks.recency}Xe(Js,"score");function Ys(e){const t=[...Object.values(e)].reduce((n,o)=>n+o.visitCount,0);return new Map(Object.keys(e).map(n=>[n,e[n].visitCount/t]))}Xe(Ys,"frequencyMap");function Qs(e){const t=Gs([...Object.keys(e)],o=>e[o].lastVisitedAt),n=t.length;return new Map(t.map((o,r)=>[o,(r+1)/n]))}Xe(Qs,"recencyMap");var $l=Object.defineProperty,F=(e,t)=>$l(e,"name",{value:t,configurable:!0});const Ml=/^\/orgs\/([a-z0-9-]+)\/teams\/([\w-]+)/,Zs=[/^\/([^/]+)\/([^/]+)\/?$/,/^\/([^/]+)\/([^/]+)\/blob/,/^\/([^/]+)\/([^/]+)\/tree/,/^\/([^/]+)\/([^/]+)\/issues/,/^\/([^/]+)\/([^/]+)\/pulls?/,/^\/([^/]+)\/([^/]+)\/pulse/],ea=[["organization",/^\/orgs\/([a-z0-9-]+)\/projects\/([0-9-]+)/],["repository",/^\/([^/]+)\/([^/]+)\/projects\/([0-9-]+)/]],ta=100;function na(e){const t=e.match(Ml);if(t){Rt(Ko(t[1],t[2]));return}let n;for(let r=0,i=ea.length;r<i;r++){const[s,a]=ea[r];if(n=e.match(a),n){let c=null,l=null;switch(s){case"organization":c=n[1],l=n[2];break;case"repository":c=`${n[1]}/${n[2]}`,l=n[3];break}c&&l&&Rt(Jo(c,l));return}}let o;for(let r=0,i=Zs.length;r<i;r++)if(o=e.match(Zs[r]),o){Rt(Go(o[1],o[2]));return}}F(na,"logPageView");function oa(e){const t=Object.keys(e);if(t.length<=ta)return e;const n=Wo(e),o=t.sort((r,i)=>n(i)-n(r)).slice(0,ta/2);return Object.fromEntries(o.map(r=>[r,e[r]]))}F(oa,"limitedPageViews");function Rt(e){const t=Qo(),n=ra(),o=t[e]||{lastVisitedAt:n,visitCount:0};o.visitCount+=1,o.lastVisitedAt=n,t[e]=o,Yo(oa(t))}F(Rt,"logPageViewByKey");function ra(){return Math.floor(Date.now()/1e3)}F(ra,"currentEpochTimeInSeconds");function Ko(e,t){return`team:${e}/${t}`}F(Ko,"buildTeamKey");function Go(e,t){return`repository:${e}/${t}`}F(Go,"buildRepositoryKey");function Jo(e,t){return`project:${e}/${t}`}F(Jo,"buildProjectKey");const Il=/^(team|repository|project):[^/]+\/[^/]+(\/([^/]+))?$/,ia="jump_to:page_views";function Yo(e){sa(ia,JSON.stringify(e))}F(Yo,"setPageViewsMap");function Qo(){const e=aa(ia);if(!e)return{};let t;try{t=JSON.parse(e)}catch(o){return Yo({}),{}}const n={};for(const o in t)o.match(Il)&&(n[o]=t[o]);return n}F(Qo,"getPageViewsMap");function sa(e,t){try{window.localStorage.setItem(e,t)}catch(n){}}F(sa,"setItem");function aa(e){try{return window.localStorage.getItem(e)}catch(t){return null}}F(aa,"getItem");var ql=Object.defineProperty,Dt=(e,t)=>ql(e,"name",{value:t,configurable:!0});function Nt(e){const t=document.querySelectorAll(e);if(t.length>0)return t[t.length-1]}Dt(Nt,"queryLast");function ca(){const e=Nt("meta[name=analytics-location]");return e?e.content:window.location.pathname}Dt(ca,"pagePathname");function la(){const e=Nt("meta[name=analytics-location-query-strip]");let t="";e||(t=window.location.search);const n=Nt("meta[name=analytics-location-params]");n&&(t+=(t?"&":"?")+n.content);for(const o of document.querySelectorAll("meta[name=analytics-param-rename]")){const r=o.content.split(":",2);t=t.replace(new RegExp(`(^|[?&])${r[0]}($|=)`,"g"),`$1${r[1]}$2`)}return t}Dt(la,"pageQuery");function ua(){return`${window.location.protocol}//${window.location.host}${ca()+la()}`}Dt(ua,"requestUri");const{getItem:Hl,setItem:Rl,removeItem:Dl}=Ln("sessionStorage");_({ag:Hl,ah:Rl,af:Dl});var Nl=Object.defineProperty,Ft=(e,t)=>Nl(e,"name",{value:t,configurable:!0});function fa(e,t){const n=e.closest("[data-notification-id]");t.hasAttribute("data-status")&&da(n,t.getAttribute("data-status")),t.hasAttribute("data-subscription-status")&&ma(n,t.getAttribute("data-subscription-status")),t.hasAttribute("data-starred-status")&&pa(n,t.getAttribute("data-starred-status"))}Ft(fa,"updateNotificationStates");function da(e,t){e.classList.toggle("notification-archived",t==="archived"),e.classList.toggle("notification-unread",t==="unread"),e.classList.toggle("notification-read",t==="read")}Ft(da,"toggleNotificationStatus");function ma(e,t){e.classList.toggle("notification-unsubscribed",t==="unsubscribed")}Ft(ma,"toggleNotificationSubscriptionStatus");function pa(e,t){e.classList.toggle("notification-starred",t==="starred")}Ft(pa,"toggleNotificationStarredStatus");function ha(e){const t="==".slice(0,(4-e.length%4)%4),n=e.replace(/-/g,"+").replace(/_/g,"/")+t,o=atob(n),r=new ArrayBuffer(o.length),i=new Uint8Array(r);for(let s=0;s<o.length;s++)i[s]=o.charCodeAt(s);return r}function ga(e){const t=new Uint8Array(e);let n="";for(const o of t)n+=String.fromCharCode(o);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function be(e,t,n){if(t==="copy")return n;if(t==="convert")return e(n);if(t instanceof Array)return n.map(o=>be(e,t[0],o));if(t instanceof Object){const o={};for(const[r,i]of Object.entries(t))if(r in n)n[r]!=null?o[r]=be(e,i.schema,n[r]):o[r]=null;else if(i.required)throw new Error("Missing key: "+r);return o}}function g(e){return{required:!0,schema:e}}function P(e){return{required:!1,schema:e}}const va={type:g("copy"),id:g("convert"),transports:P("copy")},ba={appid:P("copy"),appidExclude:P("copy"),credProps:P("copy")},ya={appid:P("copy"),appidExclude:P("copy"),credProps:P("copy")},Fl={publicKey:g({rp:g("copy"),user:g({id:g("convert"),name:g("copy"),displayName:g("copy")}),challenge:g("convert"),pubKeyCredParams:g("copy"),timeout:P("copy"),excludeCredentials:P([va]),authenticatorSelection:P("copy"),attestation:P("copy"),extensions:P(ba)}),signal:P("copy")},Vl={type:g("copy"),id:g("copy"),rawId:g("convert"),response:g({clientDataJSON:g("convert"),attestationObject:g("convert")}),clientExtensionResults:g(ya)},Bl={mediation:P("copy"),publicKey:g({challenge:g("convert"),timeout:P("copy"),rpId:P("copy"),allowCredentials:P([va]),userVerification:P("copy"),extensions:P(ba)}),signal:P("copy")},Ul={type:g("copy"),id:g("copy"),rawId:g("convert"),response:g({clientDataJSON:g("convert"),authenticatorData:g("convert"),signature:g("convert"),userHandle:g("convert")}),clientExtensionResults:g(ya)};async function zl(e){return function(t){const n=t;return n.clientExtensionResults=t.getClientExtensionResults(),be(ga,Vl,n)}(await navigator.credentials.create(function(t){return be(ha,Fl,t)}(e)))}async function Xl(e){return function(t){const n=t;return n.clientExtensionResults=t.getClientExtensionResults(),be(ga,Ul,n)}(await navigator.credentials.get(function(t){return be(ha,Bl,t)}(e)))}function wa(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}var Wl=Object.defineProperty,Ea=(e,t)=>Wl(e,"name",{value:t,configurable:!0});function Zo(){return wa()?"supported":"unsupported"}Ea(Zo,"webauthnSupportLevel");async function Sa(){var e;return await((e=window.PublicKeyCredential)==null?void 0:e.isUserVerifyingPlatformAuthenticatorAvailable())?"supported":"unsupported"}Ea(Sa,"iuvpaaSupportLevel");var Kl=Object.defineProperty,Vt=(e,t)=>Kl(e,"name",{value:t,configurable:!0});let er=!1;function _a(e){const t=new URL(e,window.location.origin),n=new URLSearchParams(t.search.slice(1));return n.set("webauthn-support",Zo()),t.search=n.toString(),t.toString()}Vt(_a,"urlWithParams");async function La(){const e=document.querySelector("link[rel=sudo-modal]"),t=document.querySelector(".js-sudo-prompt");if(t instanceof HTMLTemplateElement)return t;if(e){const n=await at(document,_a(e.href));return document.body.appendChild(n),document.querySelector(".js-sudo-prompt")}else throw new Error("couldn't load sudo prompt")}Vt(La,"loadPromptTemplate");let tr=!1;async function nr(){if(er)return!1;er=!0,tr=!1;const t=(await La()).content.cloneNode(!0),n=await lt({content:t});return await new Promise(o=>{n.addEventListener("dialog:remove",function(){er=!1,o()},{once:!0})}),tr}Vt(nr,"sudoPrompt"),on(".js-sudo-form",async function(e,t){try{await t.text()}catch(n){if(!n.response)throw n;let o;switch(n.response.status){case 401:o="Incorrect password.";break;case 429:o="Too many password attempts. Please wait and try again later.";break;default:o="Failed to receive a response. Please try again later."}e.querySelector(".js-sudo-error").textContent=o,e.querySelector(".js-sudo-error").hidden=!1,e.querySelector(".js-sudo-password").value="";return}tr=!0,e.closest("details").removeAttribute("open")});async function Ta(){const e=await fetch("/sessions/in_sudo",{headers:{accept:"application/json","X-Requested-With":"XMLHttpRequest"}});return e.ok&&await e.text()==="true"?!0:nr()}Vt(Ta,"triggerSudoPrompt");var Gl=Object.defineProperty,O=(e,t)=>Gl(e,"name",{value:t,configurable:!0});b(".js-task-list-container .js-task-list-field",function(e){const t=e.closest(".js-task-list-container");Bt(t),Xt(t)}),y("task-lists-move","task-lists",function(e){const{src:t,dst:n}=e.detail,o=e.currentTarget.closest(".js-task-list-container");rr(o,"reordered",{operation:"move",src:t,dst:n})}),y("task-lists-check","task-lists",function(e){const{position:t,checked:n}=e.detail,o=e.currentTarget.closest(".js-task-list-container");rr(o,`checked:${n?1:0}`,{operation:"check",position:t,checked:n})});function Bt(e){if(e.querySelector(".js-task-list-field")){const t=e.querySelectorAll("task-lists");for(const n of t)if(n instanceof rn){n.disabled=!1;const o=n.querySelectorAll("button");for(const r of o)r.disabled=!1}}}O(Bt,"enableTaskList");function or(e){for(const t of e.querySelectorAll("task-lists"))if(t instanceof rn){t.disabled=!0;const n=t.querySelectorAll("button");for(const o of n)o.disabled=!0}}O(or,"disableTaskList");function rr(e,t,n){const o=e.querySelector(".js-comment-update");or(e),Xt(e);const r=o.elements.namedItem("task_list_track");r instanceof Element&&r.remove();const i=o.elements.namedItem("task_list_operation");i instanceof Element&&i.remove();const s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name","task_list_track"),s.setAttribute("value",t),o.appendChild(s);const a=document.createElement("input");if(a.setAttribute("type","hidden"),a.setAttribute("name","task_list_operation"),a.setAttribute("value",JSON.stringify(n)),o.appendChild(a),!o.elements.namedItem("task_list_key")){const f=o.querySelector(".js-task-list-field").getAttribute("name").split("[")[0],d=document.createElement("input");d.setAttribute("type","hidden"),d.setAttribute("name","task_list_key"),d.setAttribute("value",f),o.appendChild(d)}e.classList.remove("is-comment-stale"),Sn(o)}O(rr,"saveTaskList"),on(".js-task-list-container .js-comment-update",async function(e,t){const n=e.closest(".js-task-list-container"),o=e.elements.namedItem("task_list_track");o instanceof Element&&o.remove();const r=e.elements.namedItem("task_list_operation");r instanceof Element&&r.remove();let i;try{i=await t.json()}catch(s){let a;try{a=JSON.parse(s.response.text)}catch(c){}if(a&&a.stale){const c=n.querySelector(".js-task-list-field");c.classList.add("session-resumable-canceled"),c.classList.remove("js-session-resumable")}else s.response.status===422||window.location.reload()}i&&(r&&i.json.source&&(n.querySelector(".js-task-list-field").value=i.json.source),Bt(n),requestAnimationFrame(()=>Xt(n)))});let Ut=!1,zt=!1;function Ca(e){e.inputType==="insertLineBreak"?Ut=!0:Ut=!1}O(Ca,"tryAutoCompleteOnBeforeInput");function Pa(e){const t=e;if(!Ut&&!(t.inputType==="insertLineBreak"))return;const n=t.target;Aa(n),Ut=!1}O(Pa,"autoCompleteOnInput");function Aa(e){const t=Ma(e.value,[e.selectionStart,e.selectionEnd]);t!==void 0&&(e.value=t.text,e.selectionStart=t.selection[0],e.selectionEnd=t.selection[1])}O(Aa,"listAutocomplete");function xa(e){if(zt)return;const t=e;if(t.key==="Enter"&&t.shiftKey&&!t.metaKey){const n=t.target,o=$a(n.value,[n.selectionStart,n.selectionEnd]);if(o===void 0)return;n.value=o.text,n.selectionStart=o.selection[0],n.selectionEnd=o.selection[1],t.preventDefault(),B(n,"change")}}O(xa,"handleShiftEnter");function ka(){zt=!0}O(ka,"onCompositionStart");function ja(){zt=!1}O(ja,"onCompositionEnd");function Oa(e){if(zt)return;const t=e;if(t.key==="Escape"){qa(e);return}if(t.key!=="Tab")return;const n=t.target,o=Ia(n.value,[n.selectionStart,n.selectionEnd],t.shiftKey);o!==void 0&&(t.preventDefault(),n.value=o.text,n.selectionStart=o.selection[0],n.selectionEnd=o.selection[1])}O(Oa,"updateIndentation"),b(".js-task-list-field",{subscribe:e=>Qe(V(e,"keydown",Oa),V(e,"keydown",xa),V(e,"beforeinput",Ca),V(e,"input",Pa),V(e,"compositionstart",ka),V(e,"compositionend",ja))});const Jl=/^(\s*)?/;function $a(e,t){const n=t[0];if(!n||!e)return;const o=e.substring(0,n).split(`
  4. `),r=o[o.length-1],i=r==null?void 0:r.match(Jl);if(!i)return;const a=`
  5. ${i[1]||""}`;return{text:e.substring(0,n)+a+e.substring(n),selection:[n+a.length,n+a.length]}}O($a,"addSoftNewline");const Yl=/^(\s*)([*-]|(\d+)\.)\s(\[[\sx]\]\s)?/;function Ma(e,t){const n=t[0];if(!n||!e)return;const o=e.substring(0,n).split(`
  6. `),r=o[o.length-2],i=r==null?void 0:r.match(Yl);if(!i)return;const s=i[0],a=i[1],c=i[2],l=parseInt(i[3],10),f=Boolean(i[4]);let u=`${isNaN(l)?c:`${l+1}.`} ${f?"[ ] ":""}`,m=e.indexOf(`
  7. `,n);m<0&&(m=e.length);const p=e.substring(n,m);if(p.startsWith(u)&&(u=""),r.replace(s,"").trim().length>0||p.trim().length>0){const S=`${a}${u}`;return{text:e.substring(0,n)+S+e.substring(n),selection:[n+S.length,n+S.length]}}else{const S=n-`
  8. ${s}`.length;return{text:e.substring(0,S)+e.substring(n),selection:[S,S]}}}O(Ma,"autocompletedList");function Ia(e,t,n){const o=t[0]||0,r=t[1]||o;if(t[0]===null||o===r)return;const i=e.substring(0,o).lastIndexOf(`
  9. `)+1,s=e.indexOf(`
  10. `,r-1),a=s>0?s:e.length-1,c=e.substring(i,a).split(`
  11. `);let l=!1,f=0,d=0;const u=[];for(const S of c){const v=S.match(/^\s*/);if(v){let x=v[0];const $=S.substring(x.length);if(n){const q=x.length;x=x.slice(0,-2),f=l?f:x.length-q,l=!0,d+=x.length-q}else x+=" ",f=2,d+=2;u.push(x+$)}}const m=u.join(`
  12. `),p=e.substring(0,i)+m+e.substring(a),w=[Math.max(i,o+f),r+d];return{text:p,selection:w}}O(Ia,"indent");function qa(e){const n=e.target;n.selectionDirection==="backward"?n.selectionEnd=n.selectionStart:n.selectionStart=n.selectionEnd}O(qa,"deselectText");function Xt(e){if(document.querySelectorAll("tracked-issues-progress").length===0||e.closest(".js-timeline-item"))return;const n=e.querySelectorAll(".js-comment-body [type=checkbox]"),o=n.length,r=Array.from(n).filter(s=>s.checked).length,i=document.querySelectorAll("tracked-issues-progress[data-type=checklist]");for(const s of i)s.setAttribute("data-completed",String(r)),s.setAttribute("data-total",String(o))}O(Xt,"updateProgress");var Ql=Object.defineProperty,Zl=(e,t)=>Ql(e,"name",{value:t,configurable:!0});function Ha(){if("Intl"in window)try{return new window.Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}}Zl(Ha,"timezone");var Ra=Object.defineProperty,eu=Object.getOwnPropertyDescriptor,tu=(e,t)=>Ra(e,"name",{value:t,configurable:!0}),Wt=(e,t,n,o)=>{for(var r=o>1?void 0:o?eu(t,n):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(r=(o?s(t,n,r):s(r))||r);return o&&r&&Ra(t,n,r),r};let ye=class extends HTMLElement{connectedCallback(){this.submitButton.disabled=!0,this.toggleSpecificOptions()}enableForm(){this.submitButton.disabled=!1}toggleSpecificOptions(){this.selectRadio.checked?this.specificOptions.hidden=!1:this.specificOptions.hidden=!0}};tu(ye,"ActionsPolicyFormElement"),Wt([Je],ye.prototype,"specificOptions",2),Wt([Je],ye.prototype,"submitButton",2),Wt([Je],ye.prototype,"selectRadio",2),ye=Wt([vr],ye);var nu=Object.defineProperty,Da=(e,t)=>nu(e,"name",{value:t,configurable:!0});async function ir(e,t=!0){const n=e.querySelector('[name="codespace[location]"]');if(!n||n.value)return;const o=e.querySelector("button[type=submit]");o instanceof HTMLInputElement&&(o.disabled=!0);const r=e.getAttribute("data-codespace-locations-url");if(!r)return;const i=await sr(r);return t&&i&&(n.value=i.current),i}Da(ir,"prefetchCodespaceLocation");async function sr(e){const t=await fetch(e,{headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json"}});if(!t.ok){const n=new Error,o=t.statusText?` ${t.statusText}`:"";throw n.message=`HTTP ${t.status}${o}`,n}return t.json()}Da(sr,"fetchLocationValues"),y("submit",".js-prefetch-codespace-location",async function(e){const t=e.currentTarget;e.preventDefault(),await ir(t),t.submit()});var ou=Object.defineProperty,Na=(e,t)=>ou(e,"name",{value:t,configurable:!0});y("click",".js-toggle-inline-comment-form",function(e){const t=e.currentTarget.closest(".js-line-comments");Kt(t)}),y("quote-selection",".js-line-comments",function(e){Kt(e.currentTarget)}),qn("keydown",".js-inline-comment-form-container form .js-comment-field",function(e){const t=e.target;if(!t.classList.contains("js-navigation-enable")&&e.key==="Escape"&&t.value.length===0){const n=t.closest("form");Gt(n),e.preventDefault()}}),y("click",".js-hide-inline-comment-form",function(e){const t=e.currentTarget.closest("form");!ut(t)||confirm(e.target.getAttribute("data-confirm-cancel-text"))?Gt(t):e.preventDefault()});function Kt(e){var t;const n=e.querySelector(".js-inline-comment-form-container");n.classList.add("open"),(t=n.querySelector(".js-write-tab"))==null||t.click(),n.querySelector(".js-comment-field").focus(),B(n,"inlinecomment:focus")}Na(Kt,"focusForm");function Gt(e){e.reset();const t=e.closest(".js-inline-comment-form-container");t.classList.remove("open");const n=t.querySelector(".js-multi-line-preview");n&&(n.hidden=!0),B(t,"inlinecomment:collapse")}Na(Gt,"blurForm");var ru=Object.defineProperty,ar=(e,t)=>ru(e,"name",{value:t,configurable:!0});class cr{constructor(t,n,o){this.diffId=t,this.side=n,this.lineNumber=o,this.element=_t(document,this.anchor())}sideForCommenting(){return this.element&&this.element.classList.contains("blob-num-context")?"right":{R:"right",L:"left"}[this.side]}isContext(){return this.element?this.element.classList.contains("blob-num-context"):!1}anchor(){return`${this.diffId}${this.anchorSuffix()}`}anchorSuffix(){return`${this.side}${this.lineNumber}`}is(t){return this.diffId===t.diffId&&this.side===t.side&&this.lineNumber===t.lineNumber}}ar(cr,"DiffPosition");class lr{constructor(t,n,o,r,i){this.elements=new Set,this.isParsed=!1,this.isSplit=!1,this._rows=new Set,this._isAcrossHunks=!1,this._isContextOnly=!0,this._includesExpandedLine=!1,this._commentOutsideTheDiff=!1,this.diffId=t,this.diffTable=document.querySelector(`.js-diff-table[data-diff-anchor="${t}"]`),this.diffTable&&(this.isSplit=this.diffTable.classList.contains("js-file-diff-split")),this.start=new cr(t,n,o),this.end=new cr(t,r,i),this.lineCount=0,this.parse()}anchor(){const t=[];return t.push(this.start.anchor()),this.start.is(this.end)||t.push(this.end.anchorSuffix()),t.join("-")}parse(){if(!this.diffTable)return;let t=this.unify(this.diffTable.querySelectorAll(".js-linkable-line-number"));t=this.filterInRange(t),this.lineCount=t.length,this.elements=this.expandRelatedElements(t),this._commentOutsideTheDiff=this.diffTable.classList.contains("js-comment-outside-the-diff"),this.isParsed=!0}unify(t){if(!this.isSplit)return Array.from(t);const n=[];let o=[],r=[];for(const i of t)i.classList.contains("blob-num-addition")?o.push(i):i.classList.contains("blob-num-deletion")?r.push(i):(n.push(...r,...o,i),o=[],r=[]);return n.push(...r,...o),n}filterInRange(t){if(!this.start.element||!this.end.element)return[];let n=t.indexOf(this.start.element),o=t.indexOf(this.end.element);if(n>o){[n,o]=[o,n];const[r,i]=[this.end,this.start];this.start=r,this.end=i}return t.slice(n,o+1)}isContextOnly(){return this.isParsed||this.parse(),this._isContextOnly}isAcrossHunks(){return this.isParsed||this.parse(),this._isAcrossHunks}includesExpandedLine(){return this.isParsed||this.parse(),this._includesExpandedLine}commentOutsideTheDiffEnabled(){return this.isParsed||this.parse(),this._commentOutsideTheDiff}rows(){return this.isParsed||this.parse(),this._rows}expandRelatedElements(t){const n=this.isSplit,o=t[0],r=t[t.length-1];if(o&&r){const s=o.closest("[data-hunk]"),a=r.closest("[data-hunk]");if(s&&a){const c=s.getAttribute("data-hunk"),l=a.getAttribute("data-hunk");c!==l&&(this._isAcrossHunks=!0)}}const i=ar((s,a)=>{!this._includesExpandedLine&&a.closest(".blob-expanded")&&(this._includesExpandedLine=!0);const c=a.parentElement;c instanceof HTMLElement&&this._rows.add(c);const l=a.classList.contains("blob-num-deletion")||a.classList.contains("blob-num-addition");if(l&&(this._isContextOnly=!1),!c)return s;if(n&&l)return Array.from(c.children).indexOf(a)<2?s.add(c.children[0]).add(c.children[1]):s.add(c.children[2]).add(c.children[3]);for(const f of Array.from(c.children))s.add(f);return s},"expander");return t.reduce(i,new Set)}}ar(lr,"DiffRange");var iu=Object.defineProperty,su=(e,t)=>iu(e,"name",{value:t,configurable:!0});function Jt(e){const t=e.match(/^#?(diff-[a-f0-9]+)(L|R)(\d+)(?:-(L|R)(\d+))?$/i);if(t!=null&&t.length===6)return t;const n=e.match(/^#?(discussion-diff-[0-9]+)(L|R)(\d+)(?:-(L|R)(\d+))?$/i);return n!=null&&n.length===6?n:null}su(Jt,"matchHash");var au=Object.defineProperty,A=(e,t)=>au(e,"name",{value:t,configurable:!0});let T=null,Yt=null,Qt=!1,ne=null;function Fa(){return T}A(Fa,"getCurrentRange");function ur(e){return!!e.closest(".js-multi-line-comments-enabled")}A(ur,"isMultiLineCommentingEnabled");function Zt(e,t){if(!ur(e))return!1;const{start:{lineNumber:n},end:{lineNumber:o}}=t;return!(n===o&&t.isContextOnly()||!t.commentOutsideTheDiffEnabled()&&(t.isAcrossHunks()||t.includesExpandedLine()))}A(Zt,"isMultiLineCommentAllowed");function en(e){return e.closest(".js-diff-table").classList.contains("is-selecting")}A(en,"isSelecting");function Va(){window.history.replaceState(null,"","#"),G()}A(Va,"clearSelection");function We(e,t){let n=e.id;if(t){const o=Jt(n);if(!o)return;const r=o[1],i=o[2],s=o[3];if(T&&T.diffId===r){if(i===T.start.side&&s<T.start.lineNumber)return;const a=new lr(r,T.start.side,T.start.lineNumber,i,+s);n=a.anchor();const c=e.closest(".js-file-content[data-hydro-view]");c instanceof HTMLElement&&Ga(c,a),Qt&&en(e)&&e.closest(".js-diff-table").classList.toggle("is-commenting",Zt(e,a)),Yt=A(function(){if(Zt(e,a)){const f=`.js-add-line-comment[data-side="${a.end.sideForCommenting()}"]`,d=e.closest("tr").querySelector(f);d&&a&&d.click()}},"showMultiLineCommentForm")}}window.history.replaceState(null,null,`#${n}`),G()}A(We,"setSelection");function tn(e){if(!(e instanceof HTMLElement))return null;if(e.classList.contains("js-linkable-line-number"))return e;const t=e.previousElementSibling;return t?tn(t):null}A(tn,"nearestLinkableLineNumber");function Ba(e){!T||e.target.closest(".js-diff-table")||(window.history.replaceState(null,null,"#"),G())}A(Ba,"handleClick");function Ua(){if(!ne)return;We(ne,!1);const e=ne.closest(".js-diff-table");ne=null,e.classList.add("is-selecting"),e.classList.add("is-commenting"),document.addEventListener("mouseup",function(t){e.classList.remove("is-selecting"),e.classList.remove("is-selecting","is-commenting"),Yt&&Yt(),Yt=null,nn(e),t.preventDefault()},{once:!0})}A(Ua,"beginDrag");function za(e){const t=tn(e);!t||!en(t)||We(t,!0)}A(za,"commentSelectionMouseverToCode");function Xa(e){!en(e)||We(e,!0)}A(Xa,"commentSelectionMouseverToLineNumbers");function fr(e){const t=e.target;if(!(t instanceof Element))return;ne&&Ua();const n=t.closest(".blob-code, .js-linkable-line-number");if(!!n){if(n.classList.contains("blob-code"))return za(n);n.classList.contains("js-linkable-line-number")&&Xa(n)}}A(fr,"handleDragMouseEvent");function dr(e){e.addEventListener("mouseenter",fr,{capture:!0})}A(dr,"addCommentSelectionEvents");function nn(e){Qt=!1,e.removeEventListener("mouseenter",fr,{capture:!0}),setTimeout(()=>{document.addEventListener("click",Ba,{once:!0})},0)}A(nn,"removeCommentSelectionEvents"),y("mousedown",".js-add-line-comment",function(e){if(!(e instanceof MouseEvent)||e.button!==0)return;const t=e.target.parentElement;if(!t||!ur(e.target))return;const n=tn(t);if(!n)return;const o=e.target.closest(".js-diff-table");dr(o),ne=n,Qt=!0,e.target.addEventListener("mouseup",function(){nn(o),ne=null,Qt=!1},{once:!0}),T&&T.lineCount>1&&e.preventDefault()}),y("mousedown",".js-linkable-line-number",function(e){if(!(e instanceof MouseEvent)||e.button!==0)return;const t=e.target;if(!(t instanceof Element))return;const n=t.closest(".js-diff-table");n.classList.add("is-selecting"),dr(n),document.addEventListener("mouseup",function(){t.closest(".js-diff-table").classList.remove("is-selecting"),nn(n)},{once:!0}),We(t,e instanceof MouseEvent&&e.shiftKey),e.preventDefault()});function Wa(){if(!T)return;for(const i of T.elements)i.classList.add("selected-line");const e=[],t=[],n=[],o=[];for(const i of T.rows()){const[s,a,c,l]=i.children;e.push(s),t.push(a),n.push(c),o.push(l)}function r(i){for(const[s,a]of i.entries()){if(a.classList.contains("empty-cell"))continue;const c=i[s-1];(!c||!c.classList.contains("selected-line"))&&a.classList.add("selected-line-top");const l=i[s+1];(!l||!l.classList.contains("selected-line"))&&a.classList.add("selected-line-bottom")}}A(r,"doBorder"),r(e),r(t),r(n),r(o);for(const[i,s]of t.entries())o[i].classList.contains("selected-line")||s.classList.add("selected-line-right");for(const[i,s]of n.entries())t[i].classList.contains("selected-line")||s.classList.add("selected-line-left")}A(Wa,"drawBorderForSplit");function Ka(){if(!T)return;for(const o of T.elements)o.classList.add("selected-line");const e=Array.from(T.rows()),t=e[0];for(const o of t.children)o.classList.add("selected-line-top");const n=e[e.length-1];for(const o of n.children)o.classList.add("selected-line-bottom")}A(Ka,"drawBorderForUnified");function G(){if(T){for(const c of T.elements)c.classList.remove("selected-line","selected-line-top","selected-line-bottom","selected-line-left","selected-line-right");T=null}const e=Jt(window.location.hash);if(!e)return;const t=e[1],n=e[2],o=e[3],r=e[4]||n,i=e[5]||o;T=new lr(t,n,+o,r,+i);const a=Array.from(T.elements)[0];!a||(a.closest(".js-diff-table").classList.contains("file-diff-split")?Wa():Ka())}A(G,"showHighlight");function Ga(e,t){const n={starting_diff_position:t.start.side+t.start.lineNumber,ending_diff_position:t.end.side+t.end.lineNumber,line_count:t.lineCount};e.setAttribute("data-hydro-client-context",JSON.stringify(n)),Xo(e)}A(Ga,"sendHydroEvent"),Fe(G),b(".blob-expanded",G),b(".js-diff-progressive-loader",function(e){e.addEventListener("load",G)}),b(".js-diff-entry-loader",function(e){e.addEventListener("load",G)}),y("click",".js-rich-diff.collapsed .js-expandable",function(e){if(!(e.target instanceof Element))return;e.preventDefault(),e.target.closest(".js-rich-diff").classList.remove("collapsed")}),y("click",".js-show-rich-diff",function(e){const t=e.currentTarget.closest(".js-warn-no-visible-changes");if(!t)return;t.classList.add("d-none");const o=t.parentElement.querySelector(".js-no-rich-changes");o&&o.classList.remove("d-none")});var cu=Object.defineProperty,lu=(e,t)=>cu(e,"name",{value:t,configurable:!0});function mr(e,t){const n=e.nextElementSibling;return n instanceof HTMLElement?n.classList.contains(t)?n:mr(n,t):null}lu(mr,"findNextElementSibling")}}});
  13. //# sourceMappingURL=chunk-frameworks-bf7ea469.js.map