performance.mark("js-parse-end:scanning-747548730fbcb643.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["8071"],{21744(e,t,n){function r(){if(!(this instanceof r))return new r;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}n.d(t,{h:()=>A,on:()=>C});var i,o=window.document.documentElement,s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector;r.prototype.matchesSelector=function(e,t){return s.call(e,t)},r.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},r.prototype.indexes=[];var a=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"ID",selector:function(e){var t;if(t=e.match(a))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var c=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"CLASS",selector:function(e){var t;if(t=e.match(c))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if("string"==typeof t)return t.split(/\s/);else if("object"==typeof t&&"baseVal"in t)return t.baseVal.split(/\s/)}}});var l=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"TAG",selector:function(e){var t;if(t=e.match(l))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),r.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},i="function"==typeof window.Map?window.Map:function(){function e(){this.map={}}return e.prototype.get=function(e){return this.map[e+" "]},e.prototype.set=function(e,t){this.map[e+" "]=t},e}();var u=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function f(e,t){var n,r,i,o,s,a,c=(e=e.slice(0).concat(e.default)).length,l=t,f=[];do if(u.exec(""),(i=u.exec(l))&&(l=i[3],i[2]||!l)){for(n=0;n3&&void 0!==arguments[3]?arguments[3]:{},o=!!i.capture,s=o?p:h,a=s[e];a||(a=new r,s[e]=a,document.addEventListener(e,k,o)),a.add(t,n)}function A(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}},55579(e,t,n){var r=n(49481),i=n(21744);(0,i.on)("click",".js-scanning-reopen-button-disabled",function(e){e.preventDefault()}),(0,i.on)("change",".js-scanning-alert-check",function({currentTarget:e}){let t=e.closest(".js-scanning-alert-list"),n=null!=t.querySelector(".js-scanning-alert-check:checked"),i=t.querySelector(".js-scanning-filter-options"),o=t.querySelector(".js-scanning-alert-bulk-actions"),s=o?.querySelector("[role=status]"),a=t.querySelector(".js-scanning-alert-links");if(i&&(i.style.visibility=n?"hidden":"visible"),o){let e=o.hidden===n;o.hidden=!n,e&&s&&(0,r.C)(s)}a&&(a.style.visibility=n?"hidden":"visible"),function(e){let t=!1,n=e.querySelectorAll(".js-scanning-fixed-alert-numbers"),r=0!==n.length?JSON.parse(n[0].getAttribute("data-numbers")||"[]"):[];for(let n of e.querySelectorAll(".js-scanning-bulk-action-items")){n.textContent="";let i=e.querySelectorAll(".js-scanning-alert-list [data-check-all-item]:checked"),o=document.getElementById("code-scanning-selected-alert-numbers");if(o){let e=[];for(let t of i)-1===r.indexOf(parseInt(t.value))&&e.push(parseInt(t.value));o.textContent=JSON.stringify(e),o.dispatchEvent(new Event("change"))}for(let e of i)t||=-1!==r.indexOf(parseInt(e.value)),n.appendChild(function(e){let t=document.createElement("input");return t.setAttribute("type","hidden"),t.setAttribute("name",e.name),t.setAttribute("value",e.value),t}(e))}for(let n of e.querySelectorAll(".js-scanning-reopen-button"))n.hidden=t;for(let n of e.querySelectorAll(".js-scanning-reopen-button-disabled"))n.hidden=!t}(t)}),(0,i.on)("click",".js-scanning-code-path-menu-item",function(e){if(null===e.currentTarget||!(e.currentTarget instanceof Element))return;let t=e.currentTarget.getAttribute("data-target-code-path");for(let e of document.querySelectorAll(".js-scanning-code-path-menu-item"))e.ariaChecked="false";for(let n of(e.currentTarget.ariaChecked="true",document.querySelectorAll(".js-scanning-code-path")))n.hidden=t!==n.getAttribute("data-code-path")},{capture:!0})},49481(e,t,n){n.d(t,{C:()=>s,i:()=>a});var r=n(26316),i=n(73537),o=n(46493);function s(e,t){(0,i.G7)("arianotify_comprehensive_migration")?a(c(e),{...t,element:t?.element??e}):(0,i.G7)("primer_live_region_element")&&t?.element===void 0?(0,o.Cj)(e,{politeness:t?.assertive?"assertive":"polite"}):a(c(e),t)}function a(e,t){let{assertive:n,element:s}=t??{};if((0,i.G7)("arianotify_comprehensive_migration"))try{(s?.isConnected?s:r.XC).ariaNotify(e,{priority:n?"high":"normal"})}catch(e){console.error("Error calling ariaNotify:",e)}else{var a,c;let t;(0,i.G7)("primer_live_region_element")&&void 0===s?(0,o.iP)(e,{politeness:n?"assertive":"polite"}):(a=e,c=n,(t=s??r.XC?.querySelector(c?"#js-global-screen-reader-notice-assertive":"#js-global-screen-reader-notice"))&&(t.textContent===a?t.textContent=`${a}\u00A0`:t.textContent=a))}}function c(e){return(e.getAttribute("aria-label")||e.innerText||"").trim()}n(89272)},7909(e,t,n){let r;function i(){let e=(void 0)??r;if(!e)throw Error("Client env was requested before it was loaded. This likely means you are attempting to use client env at the module level in SSR, which is not supported. Please move your client env usage into a function.");return e}function o(){return i().locale??"en-US"}function s(){return!!i().login}function a(){return i().login}if(n.d(t,{JK:()=>o,M3:()=>s,_$:()=>i,cj:()=>a}),"u">typeof document){let e=document.getElementById("client-env");if(e)try{r=JSON.parse(e.textContent||"")}catch(e){console.error("Error parsing client-env",e)}}},73537(e,t,n){n.d(t,{G7:()=>c,XY:()=>l,fQ:()=>a});var r=n(5225),i=n(7909);function o(){return new Set((0,i._$)().featureFlags)}let s=n(37337).X3||function(){try{return process?.env?.STORYBOOK==="true"}catch{return!1}}()?o:(0,r.A)(o);function a(){return Array.from(s())}function c(e){return s().has(e)}let l={isFeatureEnabled:c}},26316(e,t,n){n.d(t,{Kn:()=>s,XC:()=>i,cg:()=>o,fV:()=>a});let r="u">typeof FORCE_SERVER_ENV&&FORCE_SERVER_ENV,i="u"o,X3:()=>i,g5:()=>s});var r=n(26316);let i=void 0===r.XC,o=!i;function s(){return!!i||!r.XC||!!(r.XC.querySelector('react-app[data-ssr="true"]')||r.XC.querySelector('react-partial[data-ssr="true"][partial-name="repos-overview"]'))}},5225(e,t,n){function r(...e){return JSON.stringify(e,(e,t)=>"object"==typeof t?t:String(t))}function i(e,t={}){let{hash:n=r,cache:o=new Map}=t;return function(...t){let r=n.apply(this,t);if(o.has(r))return o.get(r);let i=e.apply(this,t);return i instanceof Promise&&(i=i.catch(e=>{throw o.delete(r),e})),o.set(r,i),i}}n.d(t,{A:()=>i})}},function(e){e.O(0,["7053"],function(){return e(e.s=55579)}),e.O()}]); //# sourceMappingURL=scanning-747548730fbcb643-faed46d508ae4dcb.js.map