performance.mark("js-parse-end:7463-f34e26efc84a7578.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["7463"],{99418(e,t,n){n.d(t,{A:()=>et});let{entries:o,setPrototypeOf:r,isFrozen:i,getPrototypeOf:a,getOwnPropertyDescriptor:l}=Object,{freeze:c,seal:s,create:u}=Object,{apply:m,construct:p}="u">typeof Reflect&&Reflect;c||(c=function(e){return e}),s||(s=function(e){return e}),m||(m=function(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),r=2;r1?t-1:0),o=1;o1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:y;r&&r(e,null);let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){let e=n(r);e!==r&&(i(t)||(t[o]=e),r=e)}e[r]=!0}return e}function R(e){let t=u(null);for(let[n,r]of o(e))S(e,n)&&(Array.isArray(r)?t[n]=function(e){for(let t=0;t/gm),Y=s(/\$\{[\w\W]*/gm),j=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),q=s(/^aria-[\-\w]+$/),X=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=s(/^(?:\w+script|data):/i),K=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V=s(/^html$/i);var Z,J=Object.freeze({__proto__:null,ARIA_ATTR:q,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:s(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:j,DOCTYPE_NAME:V,ERB_EXPR:B,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:$,MUSTACHE_EXPR:W,TMPLIT_EXPR:Y});let Q=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}},ee=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var et=function e(){let t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"e(t);if(r.version="3.3.2",r.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return r.isSupported=!1,r;let{document:i}=n,a=i,l=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:m,Node:p,Element:w,NodeFilter:W,NamedNodeMap:B=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:Y,DOMParser:j,trustedTypes:q}=n,$=w.prototype,K=v($,"cloneNode"),Z=v($,"remove"),et=v($,"nextSibling"),en=v($,"childNodes"),eo=v($,"parentNode");if("function"==typeof m){let e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let er="",{implementation:ei,createNodeIterator:ea,createDocumentFragment:el,getElementsByTagName:ec}=i,{importNode:es}=a,eu=ee();r.isSupported="function"==typeof o&&"function"==typeof eo&&ei&&void 0!==ei.createHTMLDocument;let{MUSTACHE_EXPR:em,ERB_EXPR:ep,TMPLIT_EXPR:ef,DATA_ATTR:ed,ARIA_ATTR:eh,IS_SCRIPT_OR_DATA:eg,ATTR_WHITESPACE:eT,CUSTOM_ELEMENT:ey}=J,{IS_ALLOWED_URI:e_}=J,eA=null,eE=k({},[...O,...L,...x,...M,...z]),eb=null,eN=k({},[...P,...F,...H,...G]),eS=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eD=null,eC=null,ew=Object.seal(u(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ek=!0,eR=!0,ev=!1,eO=!0,eL=!1,ex=!0,eI=!1,eM=!1,eU=!1,ez=!1,eP=!1,eF=!1,eH=!0,eG=!1,eW=!0,eB=!1,eY={},ej=null,eq=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eX=null,e$=k({},["audio","video","img","source","image","track"]),eK=null,eV=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eZ="http://www.w3.org/1998/Math/MathML",eJ="http://www.w3.org/2000/svg",eQ="http://www.w3.org/1999/xhtml",e0=eQ,e1=!1,e2=null,e9=k({},[eZ,eJ,eQ],_),e3=k({},["mi","mo","mn","ms","mtext"]),e8=k({},["annotation-xml"]),e4=k({},["title","style","font","a","script"]),e6=null,e7=["application/xhtml+xml","text/html"],e5=null,te=null,tt=i.createElement("form"),tn=function(e){return e instanceof RegExp||e instanceof Function},to=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!te||te!==e){if(e&&"object"==typeof e||(e={}),e=R(e),e5="application/xhtml+xml"===(e6=-1===e7.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?_:y,eA=S(e,"ALLOWED_TAGS")?k({},e.ALLOWED_TAGS,e5):eE,eb=S(e,"ALLOWED_ATTR")?k({},e.ALLOWED_ATTR,e5):eN,e2=S(e,"ALLOWED_NAMESPACES")?k({},e.ALLOWED_NAMESPACES,_):e9,eK=S(e,"ADD_URI_SAFE_ATTR")?k(R(eV),e.ADD_URI_SAFE_ATTR,e5):eV,eX=S(e,"ADD_DATA_URI_TAGS")?k(R(e$),e.ADD_DATA_URI_TAGS,e5):e$,ej=S(e,"FORBID_CONTENTS")?k({},e.FORBID_CONTENTS,e5):eq,eD=S(e,"FORBID_TAGS")?k({},e.FORBID_TAGS,e5):R({}),eC=S(e,"FORBID_ATTR")?k({},e.FORBID_ATTR,e5):R({}),eY=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,ek=!1!==e.ALLOW_ARIA_ATTR,eR=!1!==e.ALLOW_DATA_ATTR,ev=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eO=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eL=e.SAFE_FOR_TEMPLATES||!1,ex=!1!==e.SAFE_FOR_XML,eI=e.WHOLE_DOCUMENT||!1,ez=e.RETURN_DOM||!1,eP=e.RETURN_DOM_FRAGMENT||!1,eF=e.RETURN_TRUSTED_TYPE||!1,eU=e.FORCE_BODY||!1,eH=!1!==e.SANITIZE_DOM,eG=e.SANITIZE_NAMED_PROPS||!1,eW=!1!==e.KEEP_CONTENT,eB=e.IN_PLACE||!1,e_=e.ALLOWED_URI_REGEXP||X,e0=e.NAMESPACE||eQ,e3=e.MATHML_TEXT_INTEGRATION_POINTS||e3,e8=e.HTML_INTEGRATION_POINTS||e8,eS=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(eS.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(eS.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(eS.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eL&&(eR=!1),eP&&(ez=!0),eY&&(eA=k({},z),eb=u(null),!0===eY.html&&(k(eA,O),k(eb,P)),!0===eY.svg&&(k(eA,L),k(eb,F),k(eb,G)),!0===eY.svgFilters&&(k(eA,x),k(eb,F),k(eb,G)),!0===eY.mathMl&&(k(eA,M),k(eb,H),k(eb,G))),S(e,"ADD_TAGS")||(ew.tagCheck=null),S(e,"ADD_ATTR")||(ew.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?ew.tagCheck=e.ADD_TAGS:(eA===eE&&(eA=R(eA)),k(eA,e.ADD_TAGS,e5))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?ew.attributeCheck=e.ADD_ATTR:(eb===eN&&(eb=R(eb)),k(eb,e.ADD_ATTR,e5))),e.ADD_URI_SAFE_ATTR&&k(eK,e.ADD_URI_SAFE_ATTR,e5),e.FORBID_CONTENTS&&(ej===eq&&(ej=R(ej)),k(ej,e.FORBID_CONTENTS,e5)),e.ADD_FORBID_CONTENTS&&(ej===eq&&(ej=R(ej)),k(ej,e.ADD_FORBID_CONTENTS,e5)),eW&&(eA["#text"]=!0),eI&&k(eA,["html","head","body"]),eA.table&&(k(eA,["tbody"]),delete eD.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');er=(t=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===t&&(t=Q(q,l)),null!==t&&"string"==typeof er&&(er=t.createHTML(""));c&&c(e),te=e}},tr=k({},[...L,...x,...I]),ti=k({},[...M,...U]),ta=function(e){let t=eo(e);t&&t.tagName||(t={namespaceURI:e0,tagName:"template"});let n=y(e.tagName),o=y(t.tagName);return!!e2[e.namespaceURI]&&(e.namespaceURI===eJ?t.namespaceURI===eQ?"svg"===n:t.namespaceURI===eZ?"svg"===n&&("annotation-xml"===o||e3[o]):!!tr[n]:e.namespaceURI===eZ?t.namespaceURI===eQ?"math"===n:t.namespaceURI===eJ?"math"===n&&e8[o]:!!ti[n]:e.namespaceURI===eQ?(t.namespaceURI!==eJ||!!e8[o])&&(t.namespaceURI!==eZ||!!e3[o])&&!ti[n]&&(e4[n]||!tr[n]):"application/xhtml+xml"===e6&&!!e2[e.namespaceURI])},tl=function(e){g(r.removed,{element:e});try{eo(e).removeChild(e)}catch(t){Z(e)}},tc=function(e,t){try{g(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ez||eP)try{tl(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ts=function(e){let n=null,o=null;if(eU)e=""+e;else{let t=A(e,/^[\r\n\t ]+/);o=t&&t[0]}"application/xhtml+xml"===e6&&e0===eQ&&(e=''+e+"");let r=t?t.createHTML(e):e;if(e0===eQ)try{n=new j().parseFromString(r,e6)}catch(e){}if(!n||!n.documentElement){n=ei.createDocument(e0,"template",null);try{n.documentElement.innerHTML=e1?er:r}catch(e){}}let a=n.body||n.documentElement;return(e&&o&&a.insertBefore(i.createTextNode(o),a.childNodes[0]||null),e0===eQ)?ec.call(n,eI?"html":"body")[0]:eI?n.documentElement:a},tu=function(e){return ea.call(e.ownerDocument||e,e,W.SHOW_ELEMENT|W.SHOW_COMMENT|W.SHOW_TEXT|W.SHOW_PROCESSING_INSTRUCTION|W.SHOW_CDATA_SECTION,null)},tm=function(e){return e instanceof Y&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof B)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},tp=function(e){return"function"==typeof p&&e instanceof p};function tf(e,t,n){f(e,e=>{e.call(r,t,n,te)})}let td=function(e){let t=null;if(tf(eu.beforeSanitizeElements,e,null),tm(e))return tl(e),!0;let n=e5(e.nodeName);if(tf(eu.uponSanitizeElement,e,{tagName:n,allowedTags:eA}),ex&&e.hasChildNodes()&&!tp(e.firstElementChild)&&D(/<[/\w!]/g,e.innerHTML)&&D(/<[/\w!]/g,e.textContent)||7===e.nodeType||ex&&8===e.nodeType&&D(/<[/\w]/g,e.data))return tl(e),!0;if(!(ew.tagCheck instanceof Function&&ew.tagCheck(n))&&(!eA[n]||eD[n])){if(!eD[n]&&tg(n)&&(eS.tagNameCheck instanceof RegExp&&D(eS.tagNameCheck,n)||eS.tagNameCheck instanceof Function&&eS.tagNameCheck(n)))return!1;if(eW&&!ej[n]){let t=eo(e)||e.parentNode,n=en(e)||e.childNodes;if(n&&t){let o=n.length;for(let r=o-1;r>=0;--r){let o=K(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,et(e))}}}return tl(e),!0}return e instanceof w&&!ta(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&D(/<\/no(script|embed|frames)/i,e.innerHTML)?(tl(e),!0):(eL&&3===e.nodeType&&(t=e.textContent,f([em,ep,ef],e=>{t=E(t,e," ")}),e.textContent!==t&&(g(r.removed,{element:e.cloneNode()}),e.textContent=t)),tf(eu.afterSanitizeElements,e,null),!1)},th=function(e,t,n){if(eC[t]||eH&&("id"===t||"name"===t)&&(n in i||n in tt))return!1;if(eR&&!eC[t]&&D(ed,t));else if(ek&&D(eh,t));else if(ew.attributeCheck instanceof Function&&ew.attributeCheck(t,e));else if(!eb[t]||eC[t]){if(!(tg(e)&&(eS.tagNameCheck instanceof RegExp&&D(eS.tagNameCheck,e)||eS.tagNameCheck instanceof Function&&eS.tagNameCheck(e))&&(eS.attributeNameCheck instanceof RegExp&&D(eS.attributeNameCheck,t)||eS.attributeNameCheck instanceof Function&&eS.attributeNameCheck(t,e))||"is"===t&&eS.allowCustomizedBuiltInElements&&(eS.tagNameCheck instanceof RegExp&&D(eS.tagNameCheck,n)||eS.tagNameCheck instanceof Function&&eS.tagNameCheck(n))))return!1}else if(eK[t]);else if(D(e_,E(n,eT,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===b(n,"data:")&&eX[e]);else if(ev&&!D(eg,E(n,eT,"")));else if(n)return!1;return!0},tg=function(e){return"annotation-xml"!==e&&A(e,ey)},tT=function(e){tf(eu.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||tm(e))return;let o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eb,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:l,value:c}=n[i],s=e5(a),u="value"===a?c:N(c);if(o.attrName=s,o.attrValue=u,o.keepAttr=!0,o.forceKeepAttr=void 0,tf(eu.uponSanitizeAttribute,e,o),u=o.attrValue,eG&&("id"===s||"name"===s)&&(tc(a,e),u="user-content-"+u),ex&&D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===s&&A(u,"href")){tc(a,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr||!eO&&D(/\/>/i,u)){tc(a,e);continue}eL&&f([em,ep,ef],e=>{u=E(u,e," ")});let m=e5(e.nodeName);if(!th(m,s,u)){tc(a,e);continue}if(t&&"object"==typeof q&&"function"==typeof q.getAttributeType)if(l);else switch(q.getAttributeType(m,s)){case"TrustedHTML":u=t.createHTML(u);break;case"TrustedScriptURL":u=t.createScriptURL(u)}if(u!==c)try{l?e.setAttributeNS(l,a,u):e.setAttribute(a,u),tm(e)?tl(e):h(r.removed)}catch(t){tc(a,e)}}tf(eu.afterSanitizeAttributes,e,null)},ty=function e(t){let n=null,o=tu(t);for(tf(eu.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)tf(eu.uponSanitizeShadowNode,n,null),td(n),tT(n),n.content instanceof s&&e(n.content);tf(eu.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,l=null,c=null;if((e1=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tp(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw C("dirty is not a string, aborting")}else throw C("toString is not a function");if(!r.isSupported)return e;if(eM||to(n),r.removed=[],"string"==typeof e&&(eB=!1),eB){if(e.nodeName){let t=e5(e.nodeName);if(!eA[t]||eD[t])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof p)1===(i=(o=ts("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!ez&&!eL&&!eI&&-1===e.indexOf("<"))return t&&eF?t.createHTML(e):e;if(!(o=ts(e)))return ez?null:eF?er:""}o&&eU&&tl(o.firstChild);let u=tu(eB?e:o);for(;l=u.nextNode();)td(l),tT(l),l.content instanceof s&&ty(l.content);if(eB)return e;if(ez){if(eP)for(c=el.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(eb.shadowroot||eb.shadowrootmode)&&(c=es.call(a,c,!0)),c}let m=eI?o.outerHTML:o.innerHTML;return eI&&eA["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&D(V,o.ownerDocument.doctype.name)&&(m="\n"+m),eL&&f([em,ep,ef],e=>{m=E(m,e," ")}),t&&eF?t.createHTML(m):m},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};to(e),eM=!0},r.clearConfig=function(){te=null,eM=!1},r.isValidAttribute=function(e,t,n){return te||to({}),th(e5(e),e5(t),n)},r.addHook=function(e,t){"function"==typeof t&&g(eu[e],t)},r.removeHook=function(e,t){if(void 0!==t){let n=d(eu[e],t);return -1===n?void 0:T(eu[e],n,1)[0]}return h(eu[e])},r.removeHooks=function(e){eu[e]=[]},r.removeAllHooks=function(){eu=ee()},r}()}}]); //# sourceMappingURL=7463-f34e26efc84a7578-6e94dfa5ab63741e.js.map