performance.mark("js-parse-end:actions-ea389a5acf460640.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["83405"],{86689(t,e,n){n(39784),n(3713);var o=n(31635),r=n(94571),a=n(39749);class i extends HTMLElement{branch="";url="";filterBranch(t){let e=new URL(this.url,window.location.origin),n=new URLSearchParams(e.search);if("true"!==t.target.getAttribute("aria-checked")){let t=n.get("query"),e=`branch:${this.branch}`;n.set("query",t?`${t} ${e}`:e)}e.search=n.toString(),(0,a.softNavigate)(e.toString())}}(0,o.Cg)([r.CF],i.prototype,"branch",void 0),(0,o.Cg)([r.CF],i.prototype,"url",void 0),i=(0,o.Cg)([(0,r.p_)("workflow-run-branch-filter")],i);var s=n(46131);class c extends HTMLElement{#t;connectedCallback(){let{signal:t}=this.#t=new AbortController;this.addEventListener("itemActivated",this,{signal:t})}disconnectedCallback(){this.#t.abort()}handleEvent(){this.form&&(0,s.k_)(this.form)}}(0,o.Cg)([r.aC],c.prototype,"form",void 0),c=(0,o.Cg)([(0,r.p_)("actions-status-badge-form")],c),window.customElements.get("actions-status-badge-form")||window.customElements.define("actions-status-badge-form",c)},39784(t,e,n){var o=n(31635),r=n(94571);class a extends HTMLElement{connectedCallback(){this.control&&(this.storedInput=Array(this.control.children.length).fill("")),this.addEventListener("input",this.relayInput.bind(this)),this.addEventListener("keydown",this.relayKeydown.bind(this));let t=this.closest("details");t&&t.addEventListener("toggle",()=>{t.open&&this.source.focus()})}relayKeydown(t){if((this.isControlTab(t.target)||t.target===this.source)&&("ArrowDown"===t.key||"Tab"===t.key))t.preventDefault(),t.stopPropagation(),this.routeCustomEvent(new CustomEvent("focus-list"));else if("Escape"===t.key){let t=this.closest("details");t&&t.removeAttribute("open")}}isControlTab(t){return!!t&&!!this.control&&Array.from(this.control.children).includes(t)}relayInput(t){if(!t.target)return;let e=t.target.value;this.routeCustomEvent(new CustomEvent("input-entered",{detail:e}))}routeCustomEvent(t){this.sinks[this.selectedIndex].dispatchEvent(t)}get selectedIndex(){if(!this.control)return 0;let t=this.control.querySelector('[aria-selected="true"]');return t?Array.from(this.control.children).indexOf(t):0}storeInput(){this.storedInput[this.selectedIndex]=this.source.value}updateInput(t){this.source.value=this.storedInput[this.selectedIndex];let e=t.detail.relatedTarget.getAttribute("data-filter-placeholder");this.source.placeholder=e,this.source.setAttribute("aria-label",e),this.notifySelected()}notifySelected(){let t=this.sinks[this.selectedIndex],e=new CustomEvent("tab-selected");t.dispatchEvent(e)}}(0,o.Cg)([r.aC],a.prototype,"source",void 0),(0,o.Cg)([r.zV],a.prototype,"sinks",void 0),(0,o.Cg)([r.aC],a.prototype,"control",void 0),(0,o.Cg)([(0,r.p_)("input-demux")],a)},46131(t,e,n){n.d(e,{Cy:()=>s,K3:()=>u,Z8:()=>c,k_:()=>a,lK:()=>d,m$:()=>i});var o=n(84592);function r(t,e,n){return t.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:n}))}function a(t,e){e&&(function(t,e){if(!(t instanceof HTMLFormElement))throw TypeError("The specified element is not of type HTMLFormElement.");if(!(e instanceof HTMLElement))throw TypeError("The specified element is not of type HTMLElement.");if("submit"!==e.type)throw TypeError("The specified element is not a submit button.");if(!t||t!==e.form)throw Error("The specified element is not owned by the form element.")}(t,e),(0,o.A)(e)),r(t,"submit",!0)&&t.submit()}function i(t,e){if("boolean"==typeof e)if(t instanceof HTMLInputElement)t.checked=e;else throw TypeError("only checkboxes can be set to boolean value");else if("checkbox"===t.type)throw TypeError("checkbox can't be set to string value");else t.value=e;r(t,"change",!1)}function s(t,e){for(let n in e){let o=e[n],r=t.elements.namedItem(n);r instanceof HTMLInputElement?r.value=o:r instanceof HTMLTextAreaElement&&(r.value=o)}}function c(t){if(!(t instanceof HTMLElement))return!1;let e=t.nodeName.toLowerCase(),n=(t.getAttribute("type")||"").toLowerCase();return"select"===e||"textarea"===e||"input"===e&&"submit"!==n&&"reset"!==n||t.isContentEditable}function l(t){return new URLSearchParams(t)}function u(t,e){let n=new URLSearchParams(t.search);for(let[t,o]of l(e))n.append(t,o);return n.toString()}function d(t){return l(new FormData(t)).toString()}},84592(t,e,n){function o(t){let e=t.closest("form");if(!(e instanceof HTMLFormElement))return;let n=r(e);if(t.name){let o=t.matches("input[type=submit]")?"Submit":"",r=t.value||o;n||((n=document.createElement("input")).type="hidden",n.classList.add("js-submit-button-value"),e.prepend(n)),n.name=t.name,n.value=r}else n&&n.remove()}function r(t){let e=t.querySelector("input.js-submit-button-value");return e instanceof HTMLInputElement?e:null}n.d(e,{A:()=>o,C:()=>r})},11730(t,e,n){n.d(e,{Ai:()=>a,Gq:()=>o,SO:()=>r});let{getItem:o,setItem:r,removeItem:a}=(0,n(35205).A)("sessionStorage")},19598(t,e,n){n.d(e,{Kq:()=>s,RQ:()=>c,gh:()=>l,ni:()=>i,sW:()=>a});var o=n(40109);class r extends Event{mechanism;constructor(t,e){super(e),this.mechanism=t}}class a extends r{constructor(t){super(t,o.z.START)}}class i extends r{visitCount;constructor(t,e){super(t,o.z.SUCCESS),this.visitCount=e}}class s extends r{error;constructor(t,e){super(t,o.z.ERROR),this.error=e}}class c extends r{constructor(t){super(t,o.z.END)}}class l extends Event{payload;appPayload;constructor(t){super("soft-nav:payload"),this.payload=t.payload,this.appPayload=t.appPayload}}},73502(t,e,n){n.d(e,{Bu:()=>p,SC:()=>l,Ti:()=>f,iS:()=>u,k5:()=>c,o4:()=>d,rZ:()=>h});var o=n(40109),r=n(19598),a=n(32664),i=n(97398);let s=0;function c(){s=0,document.dispatchEvent(new Event(o.z.INITIAL)),(0,i.xT)()}function l(t){(0,i.LM)()||(document.dispatchEvent(new Event(o.z.PROGRESS_BAR.START)),document.dispatchEvent(new r.sW(t)),(0,i.Vy)(t),(0,i.ZW)(),(0,i.HK)(),(0,a.E5)())}function u(t={}){b(t)&&(s+=1,document.dispatchEvent(new r.ni((0,i.di)(),s)),f(t))}function d(t={}){if(!b(t))return;s=0;let e=(0,i.my)()||i.BW;document.dispatchEvent(new r.Kq((0,i.di)(),e)),m(),(0,a.Cd)(e),(0,i.xT)()}function f(t={}){if(!b(t))return;let e=(0,i.di)();m(),document.dispatchEvent(new r.RQ(e)),(0,i.Ff)(),(0,i.JA)(e)}function h(t={}){b(t)&&((0,a.Im)(),document.dispatchEvent(new Event(o.z.RENDER)))}function p(){document.dispatchEvent(new Event(o.z.FRAME_UPDATE))}function m(){document.dispatchEvent(new Event(o.z.PROGRESS_BAR.END))}function b({skipIfGoingToReactApp:t,allowedMechanisms:e=[]}={}){return(0,i.LM)()&&(0===e.length||e.includes((0,i.di)()))&&(!t||!(0,i.gc)())}},32664(t,e,n){n.d(e,{Cd:()=>l,E5:()=>c,Im:()=>u,nW:()=>s});var o=n(51189),r=n(97398),a=n(66953);let i="stats:soft-nav-duration",s={turbo:"TURBO",react:"REACT","turbo.frame":"FRAME","turbo.error":"TURBO.ERROR",ui:"UI",hard:"HARD"};function c(){window.performance.clearResourceTimings(),window.performance.mark(i)}function l(t){(0,o.iv)({turboFailureReason:t,turboStartUrl:(0,r.dR)(),turboEndUrl:window.location.href})}function u(){let t=function(){if(0===performance.getEntriesByName(i).length)return null;performance.measure(i,{start:i,detail:{devtools:{dataType:"track-entry",track:"Navigation",trackGroup:"Performance Timeline",color:"secondary",tooltipText:"Soft nav duration"}}});let t=performance.getEntriesByName(i).pop();return t?t.duration:null}();if(!t)return;let e=s[(0,r.di)()],n=Math.round(t);e===s.react&&document.dispatchEvent(new CustomEvent("staffbar-update",{detail:{duration:n}})),(0,o.iv)({requestUrl:window.location.href,softNavigationTiming:{mechanism:e,destination:(0,a.f)()||"rails",duration:n,initiator:(0,r.Pv)()||"rails"}})}},97398(t,e,n){n.d(e,{BW:()=>i,Ff:()=>m,HK:()=>E,JA:()=>k,LM:()=>b,Pv:()=>S,Vy:()=>p,ZW:()=>A,dR:()=>C,di:()=>g,gc:()=>T,k9:()=>w,my:()=>v,wG:()=>y,xT:()=>h});var o=n(11730),r=n(26316),a=n(66953);let i="reload",s="soft-nav:fail",c="soft-nav:fail-referrer",l="soft-nav:referrer",u="soft-nav:marker",d="soft-nav:react-app-name",f="soft-nav:latest-mechanism";function h(){(0,o.SO)(u,"0"),(0,o.Ai)(l),(0,o.Ai)(s),(0,o.Ai)(c),(0,o.Ai)(d),(0,o.Ai)(f)}function p(t){(0,o.SO)(u,t)}function m(){(0,o.SO)(u,"0")}function b(){let t=(0,o.Gq)(u);return t&&"0"!==t}function g(){return(0,o.Gq)(u)}function y(){return!!v()}function v(){return(0,o.Gq)(s)}function w(t){(0,o.SO)(s,t||i),(0,o.SO)(c,window.location.href)}function E(){(0,o.SO)(l,window.location.href)}function C(){return(0,o.Gq)(l)||document.referrer}function A(){let t=(0,a.f)();t?(0,o.SO)(d,t):(0,o.Ai)(d)}function S(){return(0,o.Gq)(d)}function T(){return!!r.XC?.querySelector("react-app")?.getAttribute("app-name")||!!r.XC?.querySelector("projects-v2")}function k(t){(0,o.SO)(f,t)}},39749(t,e,n){n.d(e,{softNavigate:()=>s});var o=n(73502),r=n(7332),a=n(73537),i=n(26316);let s=(t,e)=>{if((0,a.G7)("disable_soft_navigate_turbo_visit")){let n;try{n=new URL(String(t),i.cg?.location.href)}catch{return}if("http:"!==n.protocol&&"https:"!==n.protocol)return;e?.action==="replace"?i.cg?.location.replace(n.href):i.cg?.location.assign(n.href);return}(0,o.SC)("turbo"),(0,r.YR)(t,{...e})}},94571(t,e,n){let o;n.d(e,{Se:()=>S,FB:()=>d,p_:()=>M,CF:()=>m,aC:()=>x,zV:()=>O});let r=new WeakSet,a=new WeakMap;function i(t=document){if(a.has(t))return a.get(t);let e=!1,n=new MutationObserver(t=>{for(let e of t)if("attributes"===e.type&&e.target instanceof Element)u(e.target);else if("childList"===e.type&&e.addedNodes.length)for(let t of e.addedNodes)t instanceof Element&&s(t)});n.observe(t,{childList:!0,subtree:!0,attributeFilter:["data-action"]});let o={get closed(){return e},unsubscribe(){e=!0,a.delete(t),n.disconnect()}};return a.set(t,o),o}function s(t){for(let e of t.querySelectorAll("[data-action]"))u(e);t instanceof Element&&t.hasAttribute("data-action")&&u(t)}function c(t){let e=t.currentTarget;for(let n of l(e))if(t.type===n.type){let o=e.closest(n.tag);r.has(o)&&"function"==typeof o[n.method]&&o[n.method](t);let a=e.getRootNode();if(a instanceof ShadowRoot&&r.has(a.host)&&a.host.matches(n.tag)){let e=a.host;"function"==typeof e[n.method]&&e[n.method](t)}}}function*l(t){for(let e of(t.getAttribute("data-action")||"").trim().split(/\s+/)){let t=e.lastIndexOf(":"),n=Math.max(0,e.lastIndexOf("#"))||e.length;yield{type:e.slice(0,t),tag:e.slice(t+1,n),method:e.slice(n+1)||"handleEvent"}}}function u(t){for(let e of l(t))t.addEventListener(e.type,c)}function d(t,e){let n=t.tagName.toLowerCase();if(t.shadowRoot){for(let o of t.shadowRoot.querySelectorAll(`[data-target~="${n}.${e}"]`))if(!o.closest(n))return o}for(let o of t.querySelectorAll(`[data-target~="${n}.${e}"]`))if(o.closest(n)===t)return o}let f=t=>String("symbol"==typeof t?t.description:t).replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/--/g,"-").replace(/^-|-$/,"").toLowerCase(),h=(t,e="property")=>{let n=f(t);if(!n.includes("-"))throw new DOMException(`${e}: ${String(t)} is not a valid ${e} name`,"SyntaxError");return n},p="attr";function m(t,e){L(t,p).add(e)}let b=new WeakSet;function g(t,e){if(b.has(t))return;b.add(t);let n=Object.getPrototypeOf(t),o=n?.constructor?.attrPrefix??"data-";for(let r of(e||(e=L(n,p)),e)){let e=t[r],n=h(`${o}${r}`),a={configurable:!0,get(){return this.getAttribute(n)||""},set(t){this.setAttribute(n,t||"")}};"number"==typeof e?a={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(t){this.setAttribute(n,t)}}:"boolean"==typeof e&&(a={configurable:!0,get(){return this.hasAttribute(n)},set(t){this.toggleAttribute(n,t)}}),Object.defineProperty(t,r,a),r in t&&!t.hasAttribute(n)&&a.set.call(t,e)}}let y=new Map,v=new Promise(t=>{"loading"!==document.readyState?t():document.addEventListener("readystatechange",()=>t(),{once:!0})}),w=new Promise(t=>{let e=new AbortController;e.signal.addEventListener("abort",()=>t());let n={once:!0,passive:!0,signal:e.signal},o=()=>e.abort();document.addEventListener("mousedown",o,n),document.addEventListener("touchstart",o,n),document.addEventListener("keydown",o,n),document.addEventListener("pointerdown",o,n)}),E={ready:()=>v,firstInteraction:()=>w,visible:t=>new Promise(e=>{let n=new IntersectionObserver(t=>{for(let o of t)if(o.isIntersecting){e(),n.disconnect();return}},{rootMargin:"0px 0px 256px 0px",threshold:.01});for(let e of document.querySelectorAll(t))n.observe(e)})},C=new WeakMap;function A(t){cancelAnimationFrame(C.get(t)||0),C.set(t,requestAnimationFrame(()=>{for(let e of y.keys()){let n=t instanceof Element&&t.matches(e)?t:t.querySelector(e);if(customElements.get(e)||n){let o=n?.getAttribute("data-load-on")||"ready",r=o in E?E[o]:E.ready;for(let t of y.get(e)||[])r(e).then(t);y.delete(e),C.delete(t)}}}))}function S(t,e){for(let[n,o]of("string"==typeof t&&e&&(t={[t]:e}),Object.entries(t)))y.has(n)||y.set(n,new Set),y.get(n).add(o);T(document)}function T(t){o||(o=new MutationObserver(t=>{if(y.size)for(let e of t)for(let t of e.addedNodes)t instanceof Element&&A(t)})),A(t),o.observe(t,{subtree:!0,childList:!0})}let k=Symbol.for("catalyst");class R{constructor(t,e){const n=this,o=t.prototype.connectedCallback;t.prototype.connectedCallback=function(){n.connectedCallback(this,o)};const r=t.prototype.disconnectedCallback;t.prototype.disconnectedCallback=function(){n.disconnectedCallback(this,r)};const a=t.prototype.attributeChangedCallback;t.prototype.attributeChangedCallback=function(t,e,o){n.attributeChangedCallback(this,t,e,o,a)};let i=t.observedAttributes||[];Object.defineProperty(t,"observedAttributes",{configurable:!0,get(){return n.observedAttributes(this,i)},set(t){i=t}}),function(t){let e=t.observedAttributes||[],n=t.attrPrefix??"data-",o=t=>h(`${n}${t}`);Object.defineProperty(t,"observedAttributes",{configurable:!0,get:()=>[...L(t.prototype,p)].map(o).concat(e),set(t){e=t}})}(t),function(t,e){let n=e||f(t.name).replace(/-element$/,"");try{window.customElements.define(n,t),window[t.name]=customElements.get(n)}catch(t){if(!(t instanceof DOMException&&"NotSupportedError"===t.name))throw t}}(t,e)}observedAttributes(t,e){return e}connectedCallback(t,e){var n,o;for(let e of(t.toggleAttribute("data-catalyst",!0),customElements.upgrade(t),t.querySelectorAll("template[data-shadowroot]")))e.parentElement===t&&t.attachShadow({mode:"closed"===e.getAttribute("data-shadowroot")?"closed":"open"}).append(e.content.cloneNode(!0));(g(t),r.add(t),t.shadowRoot&&(s(o=t.shadowRoot),i(o)),s(t),i(t.ownerDocument),e?.call(t),t.shadowRoot)&&(s(n=t.shadowRoot),i(n),T(t.shadowRoot))}disconnectedCallback(t,e){e?.call(t)}attributeChangedCallback(t,e,n,o,r){g(t),"data-catalyst"!==e&&r&&r.call(t,e,n,o)}}function L(t,e){if(!Object.prototype.hasOwnProperty.call(t,k)){let e=t[k],n=t[k]=new Map;if(e)for(let[t,o]of e)n.set(t,new Set(o))}let n=t[k];return n.has(e)||n.set(e,new Set),n.get(e)}function x(t,e){L(t,"target").add(e),Object.defineProperty(t,e,{configurable:!0,get(){return d(this,e)}})}function O(t,e){L(t,"targets").add(e),Object.defineProperty(t,e,{configurable:!0,get(){let t=this.tagName.toLowerCase(),n=[];if(this.shadowRoot)for(let o of this.shadowRoot.querySelectorAll(`[data-targets~="${t}.${e}"]`))o.closest(t)||n.push(o);for(let o of this.querySelectorAll(`[data-targets~="${t}.${e}"]`))o.closest(t)===this&&n.push(o);return n}})}function M(t){if("string"==typeof t)return e=>{new R(e,t)};new R(t)}}},function(t){t.O(0,["13726","19262","19930","26533","2887","34646"],function(){return t(t.s=86689)}),t.O()}]); //# sourceMappingURL=actions-ea389a5acf460640-f69f03f97c86875d.js.map