"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_github_catalyst_lib_index_js-node_modules_primer_live-region-element_dis-b2aea6"],{39595:(e,t,n)=>{let o;n.d(t,{CF:()=>m,p_:()=>T,FB:()=>h,Se:()=>A,aC:()=>M,zV:()=>P});let i=new WeakSet,r=new WeakMap;function a(e=document){if(r.has(e))return r.get(e);let t=!1,n=new MutationObserver(e=>{for(let t of e)if("attributes"===t.type&&t.target instanceof Element)d(t.target);else if("childList"===t.type&&t.addedNodes.length)for(let e of t.addedNodes)e instanceof Element&&s(e)});n.observe(e,{childList:!0,subtree:!0,attributeFilter:["data-action"]});let o={get closed(){return t},unsubscribe(){t=!0,r.delete(e),n.disconnect()}};return r.set(e,o),o}function s(e){for(let t of e.querySelectorAll("[data-action]"))d(t);e instanceof Element&&e.hasAttribute("data-action")&&d(e)}function l(e){let t=e.currentTarget;for(let n of c(t))if(e.type===n.type){let o=t.closest(n.tag);i.has(o)&&"function"==typeof o[n.method]&&o[n.method](e);let r=t.getRootNode();if(r instanceof ShadowRoot&&i.has(r.host)&&r.host.matches(n.tag)){let t=r.host;"function"==typeof t[n.method]&&t[n.method](e)}}}function*c(e){for(let t of(e.getAttribute("data-action")||"").trim().split(/\s+/)){let e=t.lastIndexOf(":"),n=Math.max(0,t.lastIndexOf("#"))||t.length;yield{type:t.slice(0,e),tag:t.slice(e+1,n),method:t.slice(n+1)||"handleEvent"}}}function d(e){for(let t of c(e))e.addEventListener(t.type,l)}function h(e,t){let n=e.tagName.toLowerCase();if(e.shadowRoot){for(let o of e.shadowRoot.querySelectorAll(`[data-target~="${n}.${t}"]`))if(!o.closest(n))return o}for(let o of e.querySelectorAll(`[data-target~="${n}.${t}"]`))if(o.closest(n)===e)return o}let u=e=>String("symbol"==typeof e?e.description:e).replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/--/g,"-").replace(/^-|-$/,"").toLowerCase(),f=(e,t="property")=>{let n=u(e);if(!n.includes("-"))throw new DOMException(`${t}: ${String(e)} is not a valid ${t} name`,"SyntaxError");return n},p="attr";function m(e,t){L(e,p).add(t)}let g=new WeakSet;function b(e,t){if(g.has(e))return;g.add(e);let n=Object.getPrototypeOf(e),o=n?.constructor?.attrPrefix??"data-";for(let i of(t||(t=L(n,p)),t)){let t=e[i],n=f(`${o}${i}`),r={configurable:!0,get(){return this.getAttribute(n)||""},set(e){this.setAttribute(n,e||"")}};"number"==typeof t?r={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(e){this.setAttribute(n,e)}}:"boolean"==typeof t&&(r={configurable:!0,get(){return this.hasAttribute(n)},set(e){this.toggleAttribute(n,e)}}),Object.defineProperty(e,i,r),i in e&&!e.hasAttribute(n)&&r.set.call(e,t)}}let w=new Map,y=new Promise(e=>{"loading"!==document.readyState?e():document.addEventListener("readystatechange",()=>e(),{once:!0})}),v=new Promise(e=>{let t=new AbortController;t.signal.addEventListener("abort",()=>e());let n={once:!0,passive:!0,signal:t.signal},o=()=>t.abort();document.addEventListener("mousedown",o,n),document.addEventListener("touchstart",o,n),document.addEventListener("keydown",o,n),document.addEventListener("pointerdown",o,n)}),E={ready:()=>y,firstInteraction:()=>v,visible:e=>new Promise(t=>{let n=new IntersectionObserver(e=>{for(let o of e)if(o.isIntersecting){t(),n.disconnect();return}},{rootMargin:"0px 0px 256px 0px",threshold:.01});for(let t of document.querySelectorAll(e))n.observe(t)})},C=new WeakMap;function k(e){cancelAnimationFrame(C.get(e)||0),C.set(e,requestAnimationFrame(()=>{for(let t of w.keys()){let n=e instanceof Element&&e.matches(t)?e:e.querySelector(t);if(customElements.get(t)||n){let o=n?.getAttribute("data-load-on")||"ready",i=o in E?E[o]:E.ready;for(let e of w.get(t)||[])i(t).then(e);w.delete(t),C.delete(e)}}}))}function A(e,t){for(let[n,o]of("string"==typeof e&&t&&(e={[e]:t}),Object.entries(e)))w.has(n)||w.set(n,new Set),w.get(n).add(o);S(document)}function S(e){o||(o=new MutationObserver(e=>{if(w.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&k(e)})),k(e),o.observe(e,{subtree:!0,childList:!0})}let x=Symbol.for("catalyst");let CatalystDelegate=class CatalystDelegate{constructor(e){let t=this,n=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){t.connectedCallback(this,n)};let o=e.prototype.disconnectedCallback;e.prototype.disconnectedCallback=function(){t.disconnectedCallback(this,o)};let i=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(e,n,o){t.attributeChangedCallback(this,e,n,o,i)};let r=e.observedAttributes||[];Object.defineProperty(e,"observedAttributes",{configurable:!0,get(){return t.observedAttributes(this,r)},set(e){r=e}}),function(e){let t=e.observedAttributes||[],n=e.attrPrefix??"data-",o=e=>f(`${n}${e}`);Object.defineProperty(e,"observedAttributes",{configurable:!0,get:()=>[...L(e.prototype,p)].map(o).concat(t),set(e){t=e}})}(e),function(e){let t=u(e.name).replace(/-element$/,"");try{window.customElements.define(t,e),window[e.name]=customElements.get(t)}catch(e){if(!(e instanceof DOMException&&"NotSupportedError"===e.name))throw e}}(e)}observedAttributes(e,t){return t}connectedCallback(e,t){var n,o;e.toggleAttribute("data-catalyst",!0),customElements.upgrade(e),!function(e){for(let t of e.querySelectorAll("template[data-shadowroot]"))t.parentElement===e&&e.attachShadow({mode:"closed"===t.getAttribute("data-shadowroot")?"closed":"open"}).append(t.content.cloneNode(!0))}(e),b(e),i.add(e),e.shadowRoot&&(s(o=e.shadowRoot),a(o)),s(e),a(e.ownerDocument),t?.call(e),e.shadowRoot&&(s(n=e.shadowRoot),a(n),S(e.shadowRoot))}disconnectedCallback(e,t){t?.call(e)}attributeChangedCallback(e,t,n,o,i){b(e),"data-catalyst"!==t&&i&&i.call(e,t,n,o)}};function L(e,t){if(!Object.prototype.hasOwnProperty.call(e,x)){let t=e[x],n=e[x]=new Map;if(t)for(let[e,o]of t)n.set(e,new Set(o))}let n=e[x];return n.has(t)||n.set(t,new Set),n.get(t)}function M(e,t){L(e,"target").add(t),Object.defineProperty(e,t,{configurable:!0,get(){return h(this,t)}})}function P(e,t){L(e,"targets").add(t),Object.defineProperty(e,t,{configurable:!0,get(){return function(e,t){let n=e.tagName.toLowerCase(),o=[];if(e.shadowRoot)for(let i of e.shadowRoot.querySelectorAll(`[data-targets~="${n}.${t}"]`))i.closest(n)||o.push(i);for(let i of e.querySelectorAll(`[data-targets~="${n}.${t}"]`))i.closest(n)===e&&o.push(i);return o}(this,t)}})}function T(e){new CatalystDelegate(e)}},46493:(e,t,n)=>{n.d(t,{Cj:()=>G,iP:()=>B});let o={Less:"less",Equal:"equal",Greater:"greater"};var i,r,a,s,l,c,d,h,u,f,p,m,g,b,w,y,v,E=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},C=(e,t,n)=>(E(e,t,"read from private field"),n?n.call(e):t.get(e)),k=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},A=(e,t,n,o)=>(E(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),S=(e,t,n)=>(E(e,t,"access private method"),n);let MinHeap=class MinHeap{constructor({compareFn:e}){k(this,a),k(this,l),k(this,i,void 0),k(this,r,void 0),A(this,i,e),A(this,r,[])}insert(e){C(this,r).push(e),S(this,l,c).call(this)}pop(){let e=C(this,r)[0];return C(this,r)[C(this,r).length-1]&&(C(this,r)[0]=C(this,r)[C(this,r).length-1],C(this,r).pop()),S(this,a,s).call(this),e}peek(){return C(this,r)[0]}delete(e){let t=C(this,r).indexOf(e);-1!==t&&(L(C(this,r),t,C(this,r).length-1),C(this,r).pop(),S(this,a,s).call(this))}clear(){A(this,r,[])}get size(){return C(this,r).length}};function x(e){return Math.floor((e-1)/2)}function L(e,t,n){let o=e[t];e[t]=e[n],e[n]=o}i=new WeakMap,r=new WeakMap,a=new WeakSet,s=function(){let e=0;for(;2*e+10&&C(this,i).call(this,C(this,r)[e],C(this,r)[x(e)])===o.Less;)L(C(this,r),e,x(e)),e=x(e)};var M=Object.defineProperty,P=(e,t,n)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t,n)=>(P(e,"symbol"!=typeof t?t+"":t,n),n),$=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},O=(e,t,n)=>($(e,t,"read from private field"),n?n.call(e):t.get(e)),W=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},R=(e,t,n,o)=>($(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);let Deferred=class Deferred{constructor(){T(this,d,"Deferred"),W(this,h,void 0),W(this,u,void 0),W(this,f,void 0),R(this,h,new Promise((e,t)=>{R(this,u,e),R(this,f,t)}))}then(e,t){return Promise.prototype.then.apply(O(this,h),[e,t])}catch(e){return Promise.prototype.catch.apply(O(this,h),[e])}finally(e){return Promise.prototype.finally.apply(O(this,h),[e])}resolve(e){O(this,u).call(this,e)}reject(e){O(this,f).call(this,e)}getPromise(){return O(this,h)}};d=Symbol.toStringTag,h=new WeakMap,u=new WeakMap,f=new WeakMap;var j=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},q=(e,t,n)=>(j(e,t,"read from private field"),n?n.call(e):t.get(e)),N=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},_=(e,t,n,o)=>(j(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),D=(e,t,n)=>(j(e,t,"access private method"),n);let LiveRegionElement=class LiveRegionElement extends HTMLElement{constructor(){if(super(),N(this,b),N(this,y),N(this,p,void 0),N(this,m,void 0),N(this,g,void 0),!this.shadowRoot){let e=(F||((F=document.createElement("template")).innerHTML=I),F);this.attachShadow({mode:"open"}).appendChild(e.content.cloneNode(!0))}_(this,p,!1),_(this,g,null),_(this,m,new MinHeap({compareFn:H}))}get delay(){let e=this.getAttribute("delay");return e?parseInt(e,10):150}set delay(e){this.setAttribute("delay",`${e}`)}announce(e,t={}){let{delayMs:n,politeness:o="polite"}=t,i=Date.now(),r=new Deferred,a={deferred:r,politeness:o,contents:e,scheduled:void 0!==n?i+n:i};return q(this,m).insert(a),D(this,b,w).call(this),{...r.getPromise(),cancel:()=>{q(this,m).delete(a),r.resolve()}}}announceFromElement(e,t){let n;let o=(n="",e.hasAttribute("aria-label")?n=e.getAttribute("aria-label"):e.innerText?n=e.innerText:e.textContent&&(n=e.textContent),n?n.trim():"");return""!==o?this.announce(o,t):{...Promise.resolve(),cancel:z}}getMessage(e="polite"){let t=this.shadowRoot?.getElementById(e);if(!t)throw Error("Unable to find container for message");return t.textContent}clear(){null!==q(this,g)&&(clearTimeout(q(this,g)),_(this,g,null)),q(this,m).clear()}};p=new WeakMap,m=new WeakMap,g=new WeakMap,b=new WeakSet,w=function(){if(q(this,p))return;let e=q(this,m).peek();if(!e)return;null!==q(this,g)&&(clearTimeout(q(this,g)),_(this,g,null));let t=Date.now();if(e.scheduled<=t){(e=q(this,m).pop())&&D(this,y,v).call(this,e),D(this,b,w).call(this);return}let n=e.scheduled-t;_(this,g,window.setTimeout(()=>{_(this,g,null),D(this,b,w).call(this)},n))},y=new WeakSet,v=function(e){_(this,p,!0);let{contents:t,deferred:n,politeness:o}=e,i=this.shadowRoot?.getElementById(o);if(!i)throw _(this,p,!1),Error(`Unable to find container for message. Expected a container with id="${o}"`);i.textContent===t?i.textContent=`${t}\xa0`:i.textContent=t,null!==q(this,g)&&clearTimeout(q(this,g)),n.resolve(),this.delay>0?_(this,g,window.setTimeout(()=>{_(this,g,null),_(this,p,!1),D(this,b,w).call(this)},this.delay)):(_(this,g,null),_(this,p,!1),D(this,b,w).call(this))};let F=null,I=`
`;function H(e,t){return e.politeness===t.politeness?e.scheduled===t.scheduled?o.Equal:e.scheduled{o=!0};return{...Z(V).then(()=>{if(!o){let o=n.announce(e,t);return i=o.cancel,o}}),cancel:()=>{i()}}}return n.announce(e,t)}function G(e,t={}){let n=Q(t.from);if(!n){n=document.createElement("live-region"),t.appendTo?t.appendTo.appendChild(n):U(t.from).appendChild(n);let o=!1,i=()=>{o=!0};return{...Z(V).then(()=>{if(!o){let o=n.announceFromElement(e,t);return i=o.cancel,o}}),cancel:()=>{i()}}}return n.announceFromElement(e,t)}function Q(e){let t=null;return null!==(t=e?function(e){let t=e.closest("dialog"),n=e;for(;(n=n.parentElement)&&(!t||t.contains(n));)for(let e of n.childNodes)if(e instanceof LiveRegionElement)return e;return null}(e):null)||null!==(t=U(e).querySelector("live-region"))?t:null}function U(e){let t=document.body;if(e){let n=e.closest("dialog");n&&(t=n)}return t}customElements.get("live-region")||customElements.define("live-region",LiveRegionElement);let V=150;function Z(e){return new Promise(t=>{setTimeout(t,e)})}},97665:(e,t,n)=>{n.d(t,{Ht:()=>s,jE:()=>a,v4:()=>r});var o=n(96540),i=n(74848),r=o.createContext(void 0),a=e=>{let t=o.useContext(r);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},s=({client:e,children:t})=>(o.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,i.jsx)(r.Provider,{value:e,children:t}))}}]); //# sourceMappingURL=vendors-node_modules_github_catalyst_lib_index_js-node_modules_primer_live-region-element_dis-b2aea6-45c214aca4b2.js.map