performance.mark("js-parse-end:26371-ff9057c2c1aa636c.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["26371"],{45062(t,e,n){n.d(e,{s:()=>s});var i=n(70170);function s(t=0,e={}){return(n,s,r)=>{if(!r||"function"!=typeof r.value)throw Error("debounce can only decorate functions");let o=r.value;r.value=(0,i.s)(o,t,e),Object.defineProperty(n,s,r)}}},91385(t,e,n){n.d(e,{Xq:()=>a,ai:()=>s,fN:()=>o,qA:()=>l});var i=-1/0,s=1/0;function r(t,e,n,s){for(var r=t.length,o=e.length,a=t.toLowerCase(),l=e.toLowerCase(),u=function(t){for(var e=t.length,n=Array(e),i="/",s=0;s1024)return i;var a=Array(n),l=Array(n);return r(t,e,a,l),l[n-1][o-1]}function a(t,e){var n=t.length,s=e.length,o=Array(n);if(!n||!s)return o;if(n===s){for(var a=0;a1024)return o;var l=Array(n),u=Array(n);r(t,e,l,u);for(var h=!1,a=n-1,c=s-1;a>=0;a--)for(;c>=0;c--)if(l[a][c]!==i&&(h||l[a][c]===u[a][c])){h=a&&c&&u[a][c]===l[a-1][c-1]+1,o[a]=c--;break}return o}function l(t,e){t=t.toLowerCase(),e=e.toLowerCase();for(var n=t.length,i=0,s=0;ia});var i=n(36158),s=n(26261),r=n(66500),o=n(24880),a=class extends r.Q{#t;#e=void 0;#n;#i;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,o.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,o.EN)(e.mutationKey)!==(0,o.EN)(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#s(),this.#r(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#r()}mutate(t,e){return this.#i=e,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#s(){let t=this.#n?.state??(0,i.$)();this.#e={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#r(t){s.jG.batch(()=>{if(this.#i&&this.hasListeners()){let e=this.#e.variables,n=this.#e.context,i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,e,n,i)}catch(t){Promise.reject(t)}try{this.#i.onSettled?.(t.data,null,e,n,i)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,e,n,i)}catch(t){Promise.reject(t)}try{this.#i.onSettled?.(void 0,t.error,e,n,i)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#e)})})}}},94747(t,e,n){n.d(e,{n:()=>l});var i=n(96540),s=n(61388),r=n(26261),o=n(24880),a=n(97665);function l(t,e){let n=(0,a.jE)(e),[l]=i.useState(()=>new s._(n,t));i.useEffect(()=>{l.setOptions(t)},[l,t]);let u=i.useSyncExternalStore(i.useCallback(t=>l.subscribe(r.jG.batchCalls(t)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),h=i.useCallback((t,e)=>{l.mutate(t,e).catch(o.lQ)},[l]);if(u.error&&(0,o.GU)(l.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:h,mutateAsync:u.mutate}}},26692(t,e,n){n.d(e,{Qr:()=>a});class i extends Event{constructor(){super("update")}}let s=new WeakMap;class r extends EventTarget{#o=new MutationObserver(()=>this.#a());#l=new ResizeObserver(()=>this.#u());#h;#c=document.createElement("div");#d=document.createElement("div");static for(t){let e=s.get(t);return e||(e=new r(t),s.set(t,e)),e}constructor(t){super(),this.#h=new WeakRef(t),this.#c.style.position="absolute",this.#c.style.pointerEvents="none",this.#c.setAttribute("aria-hidden","true"),this.#c.appendChild(this.#d),this.#d.style.pointerEvents="none",this.#d.style.userSelect="none",this.#d.style.overflow="hidden",this.#d.style.display="block",this.#d.style.visibility="hidden",t instanceof HTMLTextAreaElement?(this.#d.style.whiteSpace="pre-wrap",this.#d.style.wordWrap="break-word"):(this.#d.style.whiteSpace="nowrap",this.#d.style.display="table-cell",this.#d.style.verticalAlign="middle"),t.after(this.#c),this.#a(),this.#f(),this.#o.observe(t,{attributeFilter:["style","dir"]}),this.#l.observe(t),document.addEventListener("scroll",this.#p,{capture:!0}),window.addEventListener("resize",this.#p,{capture:!0}),t.addEventListener("input",this.#m,{capture:!0})}get element(){return this.#d}forceUpdate(){this.#a(),this.#f()}disconnect(){this.#c?.remove(),this.#o.disconnect(),this.#l.disconnect(),document.removeEventListener("scroll",this.#p,{capture:!0}),window.removeEventListener("resize",this.#p,{capture:!0});let t=this.#g;t&&(t.removeEventListener("input",this.#m,{capture:!0}),s.delete(t))}get #g(){return this.#h?.deref()}#y(t){let e=this.#g;return e?t(e):this.disconnect()}#v=0;#E=0;#O(){this.#y(t=>{let e=window.getComputedStyle(t);this.#d.style.height=e.height,this.#d.style.width=e.width,t.clientHeight!==this.#d.clientHeight&&(this.#d.style.height=`calc(${e.height} + ${t.clientHeight-this.#d.clientHeight}px)`),t.clientWidth!==this.#d.clientWidth&&(this.#d.style.width=`calc(${e.width} + ${t.clientWidth-this.#d.clientWidth}px)`);let n=t.getBoundingClientRect(),s=this.#d.getBoundingClientRect();this.#v=this.#v+n.left-s.left,this.#E=this.#E+n.top-s.top,this.#d.style.transform=`translate(${this.#v}px, ${this.#E}px)`,this.#d.scrollTop=t.scrollTop,this.#d.scrollLeft=t.scrollLeft,this.dispatchEvent(new i)})}#b=!1;#u(){this.#b||(this.#b=!0,requestAnimationFrame(()=>{this.#O(),this.#b=!1}))}#a(){this.#y(t=>{let e=window.getComputedStyle(t);for(let t of o)this.#d.style[t]=e[t];this.#u()})}#f(){this.#y(t=>{this.#d.textContent=t.value,this.#O()})}#m=()=>this.#f();#p=t=>{this.#y(e=>{(t.target===document||t.target===window||t.target instanceof Node&&t.target.contains(e))&&this.#u()})}}let o=["direction","writingMode","unicodeBidi","textOrientation","boxSizing","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];class a{#w;#C;#R;constructor(t,e=0,n=e){this.#w=t,this.#C=e,this.#R=n}static fromSelection(t){let{selectionStart:e,selectionEnd:n}=t;return new a(t,e??void 0,n??void 0)}get collapsed(){return this.startOffset===this.endOffset}get commonAncestorContainer(){return this.#w}get endContainer(){return this.#w}get startContainer(){return this.#w}get startOffset(){return this.#C}get endOffset(){return this.#R}setStartOffset(t){this.#C=this.#S(t)}setEndOffset(t){this.#R=this.#S(t)}collapse(t=!1){t?this.setEndOffset(this.startOffset):this.setStartOffset(this.endOffset)}cloneContents(){return this.#x().cloneContents()}cloneRange(){return new a(this.#w,this.startOffset,this.endOffset)}getBoundingClientRect(){return this.#x().getBoundingClientRect()}getClientRects(){return this.#x().getClientRects()}toString(){return this.#x().toString()}getStyleClone(){return this.#L}get #L(){return r.for(this.#w)}get #d(){return this.#L}#S(t){return Math.max(0,Math.min(t,this.#w.value.length))}#x(){let t=document.createRange(),e=this.#d.element.childNodes[0];return e&&(t.setStart(e,this.startOffset),t.setEnd(e,this.endOffset)),t}}},74022(t,e,n){n.d(e,{A:()=>r});var i=n(52246),s=n(23149);let r=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw TypeError("Expected a function");return(0,s.A)(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),(0,i.A)(t,e,{leading:r,maxWait:e,trailing:o})}},11561(t,e,n){n.d(e,{A:()=>i});function i(t,e){if(!t)throw Error("Invariant failed")}}}]); //# sourceMappingURL=26371-ff9057c2c1aa636c-932bbe7634b4c278.js.map