"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["node_modules_github_file-attachment-element_dist_index_js","vendors-node_modules_github_file-attachment-element_dist_index_js-node_modules_primer_view-co-c44a69"],{91707:(t,e,i)=>{i.r(e),i.d(e,{Attachment:()=>Attachment,default:()=>f});let Attachment=class Attachment{constructor(t,e){this.file=t,this.directory=e,this.state="pending",this.id=null,this.href=null,this.name=null,this.percent=0}static traverse(t,e){var i;return e&&(i=t).items&&Array.from(i.items).some(t=>{let e=t.webkitGetAsEntry&&t.webkitGetAsEntry();return e&&e.isDirectory})?r("",Array.from(t.items).map(t=>t.webkitGetAsEntry()).filter(t=>null!=t)):Promise.resolve(n(Array.from(t.files||[])).map(t=>new Attachment(t)))}static from(t){let e=[];for(let i of t)if(i instanceof File)e.push(new Attachment(i));else if(i instanceof Attachment)e.push(i);else throw Error("Unexpected type");return e}get fullPath(){return this.directory?`${this.directory}/${this.file.name}`:this.file.name}isImage(){return["image/gif","image/png","image/jpg","image/jpeg","image/svg+xml"].indexOf(this.file.type)>-1}isVideo(){return["video/mp4","video/quicktime"].indexOf(this.file.type)>-1}saving(t){if("pending"!==this.state&&"saving"!==this.state)throw Error(`Unexpected transition from ${this.state} to saving`);this.state="saving",this.percent=t}saved(t){var e,i,n;if("pending"!==this.state&&"saving"!==this.state)throw Error(`Unexpected transition from ${this.state} to saved`);this.state="saved",this.id=null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,this.href=null!==(i=null==t?void 0:t.href)&&void 0!==i?i:null,this.name=null!==(n=null==t?void 0:t.name)&&void 0!==n?n:null}isPending(){return"pending"===this.state}isSaving(){return"saving"===this.state}isSaved(){return"saved"===this.state}};function n(t){return Array.from(t).filter(t=>!t.name.startsWith("."))}async function r(t,e){let i=[];for(let s of n(e))if(s.isDirectory)i.push(...await r(s.fullPath,await function(t){return new Promise(function(e,i){let n=[],r=t.createReader(),s=()=>{r.readEntries(t=>{t.length>0?(n.push(...t),s()):e(n)},i)};s()})}(s)));else{let e=await function(t){return new Promise(function(e,i){t.file(e,i)})}(s);i.push(new Attachment(e,t))}return i}let FileAttachmentElement=class FileAttachmentElement extends HTMLElement{connectedCallback(){this.addEventListener("dragenter",a),this.addEventListener("dragover",a),this.addEventListener("dragleave",l),this.addEventListener("drop",c),this.addEventListener("paste",d),this.addEventListener("change",u)}disconnectedCallback(){this.removeEventListener("dragenter",a),this.removeEventListener("dragover",a),this.removeEventListener("dragleave",l),this.removeEventListener("drop",c),this.removeEventListener("paste",d),this.removeEventListener("change",u)}get directory(){return this.hasAttribute("directory")}set directory(t){t?this.setAttribute("directory",""):this.removeAttribute("directory")}async attach(t){let e=t instanceof DataTransfer?await Attachment.traverse(t,this.directory):Attachment.from(t);this.dispatchEvent(new CustomEvent("file-attachment-accept",{bubbles:!0,cancelable:!0,detail:{attachments:e}}))&&e.length&&this.dispatchEvent(new CustomEvent("file-attachment-accepted",{bubbles:!0,detail:{attachments:e}}))}};function s(t){return Array.from(t.types).indexOf("Files")>=0}let o=null;function a(t){let e=t.currentTarget;o&&clearTimeout(o),o=window.setTimeout(()=>e.removeAttribute("hover"),200);let i=t.dataTransfer;i&&s(i)&&(i.dropEffect="copy",e.setAttribute("hover",""),t.preventDefault())}function l(t){t.dataTransfer&&(t.dataTransfer.dropEffect="none"),t.currentTarget.removeAttribute("hover"),t.stopPropagation(),t.preventDefault()}function c(t){let e=t.currentTarget;if(!(e instanceof FileAttachmentElement))return;e.removeAttribute("hover");let i=t.dataTransfer;i&&s(i)&&(e.attach(i),t.stopPropagation(),t.preventDefault())}let h=/^image\/(gif|png|jpeg)$/;function d(t){if(!t.clipboardData||!t.clipboardData.items)return;let e=t.currentTarget;if(!(e instanceof FileAttachmentElement))return;let i=function(t){for(let e of t)if("file"===e.kind&&h.test(e.type))return e.getAsFile();return null}(t.clipboardData.items);i&&(e.attach([i]),t.preventDefault())}function u(t){let e=t.currentTarget;if(!(e instanceof FileAttachmentElement))return;let i=t.target;if(!(i instanceof HTMLInputElement))return;let n=e.getAttribute("input");if(n&&i.id!==n)return;let r=i.files;r&&0!==r.length&&(e.attach(r),i.value="")}window.customElements.get("file-attachment")||(window.FileAttachmentElement=FileAttachmentElement,window.customElements.define("file-attachment",FileAttachmentElement));let f=FileAttachmentElement},70170:(t,e,i)=>{function n(t,e=0,{start:i=!0,middle:r=!0,once:s=!1}={}){let o,a=i,l=0,c=!1;function h(...n){if(c)return;let d=Date.now()-l;l=Date.now(),i&&r&&d>=e&&(a=!0),a?(a=!1,t.apply(this,n),s&&h.cancel()):(r&&d{l=Date.now(),t.apply(this,n),s&&h.cancel()},r?e-d:e))}return h.cancel=()=>{clearTimeout(o),c=!0},h}function r(t,e=0,{start:i=!1,middle:s=!1,once:o=!1}={}){return n(t,e,{start:i,middle:s,once:o})}i.d(e,{n:()=>n,s:()=>r})},92495:(t,e,i)=>{var n,r,s,o,a,l,c,h,d,u,f,m,p,b,g,v,w,y,E,A,L,k,C,T,x,S,M,I,P,O,D,q,R,j,H,F,W,V,_,B,$,N,z,K,Y,G,U,X,J,Q,Z,tt,te,ti,tn,tr,ts,to,ta,tl,tc,th,td,tu,tf,tm,tp,tb,tg,tv,tw,ty,tE,tA,tL,tk,tC,tT,tx,tS,tM,tI,tP,tO,tD,tq,tR,tj,tH,tF,tW,tV,t_,tB,t$,tN,tz,tK,tY,tG,tU,tX,tJ,tQ,tZ,t0,t1,t3,t2,t9,t7,t4,t5,t6,t8,et,ee,ei,en,er,es,eo,ea=i(94147);i(27552);var el=i(39595),ec=function(t,e,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(t,i):r?r.value=i:e.set(t,i),i},eh=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)};let ActionListTruncationObserver=class ActionListTruncationObserver{constructor(t){this.resizeObserver=new ResizeObserver(t=>{for(let e of t){let t=e.target;t instanceof HTMLElement&&this.update(t)}}),this.resizeObserver.observe(t)}unobserve(t){this.resizeObserver.unobserve(t)}update(t){for(let e of t.querySelectorAll("li")){let t=e.querySelector(".ActionListItem-label");if(!t)continue;let i=e.querySelector(".ActionListItem-truncationTooltip");i&&(t.scrollWidth>t.clientWidth?i.style.display="":i.style.display="none")}}};let ed=class ActionListElement extends HTMLElement{constructor(){super(...arguments),n.set(this,void 0)}connectedCallback(){ec(this,n,new ActionListTruncationObserver(this),"f")}disconnectedCallback(){eh(this,n,"f").unobserve(this)}};n=new WeakMap,ed=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o}([el.p_],ed);var eu=i(69676),ef=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o},em=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},ep=function(t,e,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(t,i):r?r.value=i:e.set(t,i),i};let eb=new IntersectionObserver(t=>{for(let e of t){let t=e.target;e.isIntersecting&&t instanceof ev&&t.update()}}),eg=new ResizeObserver(t=>{for(let e of t){let t=e.target;t instanceof ev&&t.update()}});!function(t){t[t.Item=0]="Item",t[t.Divider=1]="Divider"}(d||(d={}));let ev=class ActionBarElement extends HTMLElement{constructor(){super(...arguments),r.add(this),s.set(this,null)}connectedCallback(){eg.observe(this),eb.observe(this),requestAnimationFrame(()=>{this.style.overflow="visible",this.update()})}disconnectedCallback(){eg.unobserve(this),eb.unobserve(this)}menuItemClick(t){let e=t.currentTarget,i=e?.getAttribute("data-for");i&&document.getElementById(i)?.click()}update(){let t=em(this,r,"a",o);if(!t)return;let e=t.getBoundingClientRect().top,i=null;em(this,r,"m",h).call(this,(t,n,s)=>{let o=t.getBoundingClientRect().top;return s===d.Item&&(o>e?(em(this,r,"m",l).call(this,n),this.moreMenu.hidden&&(this.moreMenu.hidden=!1),i===d.Divider&&em(this,r,"m",l).call(this,n-1)):(em(this,r,"m",a).call(this,n),n===this.items.length-1&&(this.moreMenu.hidden=!0),i===d.Divider&&em(this,r,"m",a).call(this,n-1))),i=s,!0}),em(this,s,"f")&&em(this,s,"f").abort(),ep(this,s,(0,eu.zB)(this,{bindKeys:eu.z0.ArrowHorizontal|eu.z0.HomeAndEnd,focusOutBehavior:"wrap",focusableElementFilter:t=>{let e=this.items.indexOf(t.parentElement),i=e>-1&&"visible"===this.items[e].style.visibility,n=t===this.moreMenu.invokerElement&&!this.moreMenu.hidden;return i||n}}),"f")}};s=new WeakMap,r=new WeakSet,o=function(){let t=null;return em(this,r,"m",h).call(this,(e,i,n)=>n!==d.Item||(t=e,!1)),t},a=function(t){let e=this.items[t],i=em(this,r,"a",c)[t];e&&i&&(e.style.setProperty("visibility","visible"),i.hidden=!0)},l=function(t){let e=this.items[t],i=em(this,r,"a",c)[t];e&&i&&(e.style.setProperty("visibility","hidden"),i.hidden=!1)},c=function(){return this.moreMenu.querySelectorAll('[role="menu"] > li')},h=function(t){for(let e=0;e{let t=new Set,e=null,i=null;function n(){for(let e of t)e.update()}return r=>{window.addEventListener("resize",n),window.addEventListener("scroll",n),e||(e=new IntersectionObserver(e=>{for(let i of e){let e=i.target;i.isIntersecting?(e.update(),t.add(e)):t.delete(e)}})),i||(i=new ResizeObserver(()=>{for(let e of t)e.update()})),i.observe(r.ownerDocument.documentElement),e.observe(r)}})();let AnchoredPositionElement=class AnchoredPositionElement extends HTMLElement{constructor(){super(...arguments),u.set(this,null),f.set(this,void 0)}get align(){let t=this.getAttribute("align");return"center"===t||"end"===t?t:"start"}set align(t){this.setAttribute("align",`${t}`)}get side(){let t=this.getAttribute("side");return"inside-top"===t||"inside-bottom"===t||"inside-left"===t||"inside-right"===t||"inside-center"===t||"outside-top"===t||"outside-left"===t||"outside-right"===t?t:"outside-bottom"}set side(t){this.setAttribute("side",`${t}`)}get anchorOffset(){let t=this.getAttribute("anchor-offset");return"spacious"===t||"8"===t?8:4}set anchorOffset(t){this.setAttribute("anchor-offset",`${t}`)}get anchor(){return this.getAttribute("anchor")||""}set anchor(t){this.setAttribute("anchor",`${t}`)}get anchorElement(){if(ew(this,u,"f"))return ew(this,u,"f");let t=this.anchor;return t?this.ownerDocument.getElementById(t):null}set anchorElement(t){ey(this,u,t,"f"),ew(this,u,"f")||this.removeAttribute("anchor")}get alignmentOffset(){return Number(this.getAttribute("alignment-offset"))}set alignmentOffset(t){this.setAttribute("alignment-offset",`${t}`)}get allowOutOfBounds(){return this.hasAttribute("allow-out-of-bounds")}set allowOutOfBounds(t){this.toggleAttribute("allow-out-of-bounds",t)}connectedCallback(){this.update(),this.addEventListener("beforetoggle",()=>this.update()),eE(this)}attributeChangedCallback(){this.update()}update(){this.isConnected&&(cancelAnimationFrame(ew(this,f,"f")),ey(this,f,requestAnimationFrame(()=>{let t=this.anchorElement;if(this.classList.toggle("not-anchored",!t),t){let{left:e,top:i}=(0,eu.uG)(this,t,this);this.style.top=`${i}px`,this.style.left=`${e}px`,this.style.bottom="auto",this.style.right="auto"}else this.style.top="0",this.style.left="0",this.style.bottom="0",this.style.right="0"}),"f"))}};u=new WeakMap,f=new WeakMap,AnchoredPositionElement.observedAttributes=["align","side","anchor","alignment-offset","allow-out-of-bounds"],customElements.get("anchored-position")||(window.AnchoredPositionElement=AnchoredPositionElement,customElements.define("anchored-position",AnchoredPositionElement));var eA=function(t,e,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(t,i):r?r.value=i:e.set(t,i),i},eL=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)};function ek(t){let e=t.target,i=e?.closest("button");if(!i||i.hasAttribute("disabled")||"true"===i.getAttribute("aria-disabled"))return;let n=i?.getAttribute("data-show-dialog-id");if(n){let e=document.getElementById(n);if(e instanceof HTMLDialogElement){e.showModal(),t.preventDefault();let n=i,r=!1;for(;n;)(n=n.parentElement?.closest("[popover]:not(:popover-open)"))&&"auto"===n.popover&&(n.classList.add("dialog-inside-popover-fix"),n.popover="manual",n.showPopover(),r=!0);r&&(e.addEventListener("close",t=>t.stopImmediatePropagation(),{once:!0}),e.close(),e.showModal(),e.addEventListener("close",()=>{for(let t of e.ownerDocument.querySelectorAll(".dialog-inside-popover-fix"))t.contains(e)&&(t.classList.remove("dialog-inside-popover-fix"),t.popover="auto",t.showPopover())},{once:!0}))}}if(n=i.getAttribute("data-close-dialog-id")||i.getAttribute("data-submit-dialog-id")){let t=document.getElementById(n);t instanceof HTMLDialogElement&&t.open&&t.close()}}let DialogHelperElement=class DialogHelperElement extends HTMLElement{constructor(){super(...arguments),m.add(this),p.set(this,null)}get dialog(){return this.querySelector("dialog")}connectedCallback(){let{signal:t}=eA(this,p,new AbortController,"f");document.addEventListener("click",ek,!0),document.addEventListener("click",this,{signal:t}),this.ownerDocument.body.style.setProperty("--dialog-scrollgutter",`${window.innerWidth-this.ownerDocument.body.clientWidth}px`),new MutationObserver(t=>{for(let e of t)e.target===this.dialog&&eL(this,m,"m",b).call(this)}).observe(this,{subtree:!0,attributeFilter:["open"]}),eL(this,m,"m",b).call(this)}disconnectedCallback(){eL(this,p,"f")?.abort()}handleEvent(t){let e=t.target,i=this.dialog;if(e!==i||!i?.open)return;let n=i.getBoundingClientRect();n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width||i.close()}};p=new WeakMap,m=new WeakSet,b=function(){this.dialog&&this.dialog.matches("[open]:not(:modal)")&&(this.dialog.addEventListener("close",t=>t.stopImmediatePropagation(),{once:!0}),this.dialog.close(),this.dialog.showModal())},window.customElements.get("dialog-helper")||(window.DialogHelperElement=DialogHelperElement,window.customElements.define("dialog-helper",DialogHelperElement)),i(59136);var eC=function(t,e,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(t,i):r?r.value=i:e.set(t,i),i},eT=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)};let ex=['[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]'].map(t=>`:not([hidden]) > ${t}`).join(", "),eS=t=>t.textContent?.trim()[0].toLowerCase(),eM=/^\S$/;let FocusGroupElement=class FocusGroupElement extends HTMLElement{constructor(){super(...arguments),g.add(this),v.set(this,null),w.set(this,null)}get nowrap(){return this.hasAttribute("nowrap")}set nowrap(t){this.toggleAttribute("nowrap",t)}get direction(){return"horizontal"===this.getAttribute("direction")?"horizontal":"vertical"}set direction(t){this.setAttribute("direction",`${t}`)}get retain(){return this.hasAttribute("retain")}set retain(t){this.toggleAttribute("retain",t)}get mnemonics(){return this.hasAttribute("mnemonics")}connectedCallback(){eC(this,w,new AbortController,"f");let{signal:t}=eT(this,w,"f");this.addEventListener("keydown",this,{signal:t}),this.addEventListener("click",this,{signal:t}),this.addEventListener("mouseover",this,{signal:t}),this.addEventListener("focusin",this,{signal:t})}disconnectedCallback(){eT(this,w,"f")?.abort()}handleEvent(t){let{direction:e,nowrap:i}=this;if("focusin"===t.type){if(this.retain&&t.target instanceof Element&&t.target.matches(ex)){eT(this,v,"f")?.abort();let{signal:e}=eC(this,v,new AbortController,"f");for(let i of eT(this,g,"a",y)){i.setAttribute("tabindex",i===t.target?"0":"-1");let n=t.target.closest("[popover]");i===t.target&&n?.popover==="auto"&&n.closest("focus-group")===this&&n.addEventListener("toggle",t=>{if(t.target instanceof Element&&"closed"===t.newState&&(eT(this,v,"f")?.abort(),i.setAttribute("tabindex","-1"),n.id)){let t=this.querySelector(`[popovertarget="${n.id}"]`);t?t.setAttribute("tabindex","0"):eT(this,g,"a",y)[0]?.setAttribute("tabindex","0")}},{signal:e})}}}else if(t instanceof KeyboardEvent){let n=Array.from(eT(this,g,"a",y)),r=n.indexOf(t.target),s=t.key;if("Up"===s||"ArrowUp"===s)("vertical"===e||"both"===e)&&(r-=r<0?0:1,t.preventDefault());else if("Down"===s||"ArrowDown"===s)("vertical"===e||"both"===e)&&(r+=1,t.preventDefault());else if("Left"===t.key||"ArrowLeft"===t.key)("horizontal"===e||"both"===e)&&(r-=1,t.preventDefault());else if("Right"===t.key||"ArrowRight"===t.key)("horizontal"===e||"both"===e)&&(r+=1,t.preventDefault());else if("Home"===t.key||"PageUp"===t.key)r=0,t.preventDefault();else if("End"===t.key||"PageDown"===t.key)r=n.length-1,t.preventDefault();else{if(!(this.mnemonics&&eM.test(s)))return;let e=s.toLowerCase(),o=r>0&&eS(t.target)===e?r:0;(r=n.findIndex((t,i)=>i>o&&eS(t)===e))<0&&!i&&(r=n.findIndex(t=>eS(t)===e))}i&&r<0&&(r=0),!i&&r>=n.length&&(r=0);let o=n.at(Math.min(r,n.length-1));{let e=o;do e=e.closest("[popover]:not(:popover-open)"),e?.popover!=="auto"||["ArrowRight","ArrowLeft"].includes(t.key)||e.showPopover(),e=e?.parentElement||null;while(e)}o?.focus()}}};v=new WeakMap,w=new WeakMap,g=new WeakSet,y=function(){return this.querySelectorAll(ex)},customElements.get("focus-group")||(window.FocusGroupElement=FocusGroupElement,customElements.define("focus-group",FocusGroupElement));var eI=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};let eP=class ScrollableRegionElement extends HTMLElement{constructor(){super(...arguments),this.hasOverflow=!1,this.labelledBy=""}connectedCallback(){this.style.overflow="auto",this.observer=new ResizeObserver(t=>{for(let e of t)this.hasOverflow=e.target.scrollHeight>e.target.clientHeight||e.target.scrollWidth>e.target.clientWidth}),this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}attributeChangedCallback(t){"data-has-overflow"===t&&(this.hasOverflow?(this.setAttribute("aria-labelledby",this.labelledBy),this.setAttribute("role","region"),this.setAttribute("tabindex","0")):(this.removeAttribute("aria-labelledby"),this.removeAttribute("role"),this.removeAttribute("tabindex")))}};eI([el.CF],eP.prototype,"hasOverflow",void 0),eI([el.CF],eP.prototype,"labelledBy",void 0),eP=eI([el.p_],eP),window.ScrollableRegionElement=eP,i(80147);var eO=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o},eD=function(t,e,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(t,i):r?r.value=i:e.set(t,i),i},eq=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)};let eR=class NavListElement extends HTMLElement{constructor(){super(...arguments),E.add(this),A.set(this,void 0)}connectedCallback(){this.topLevelList&&eD(this,A,new ActionListTruncationObserver(this.topLevelList),"f")}disconnectedCallback(){this.topLevelList&&eq(this,A,"f").unobserve(this.topLevelList)}selectItemById(t){if(!t)return!1;let e=eq(this,E,"m",L).call(this,t);return!!e&&(eq(this,E,"m",T).call(this,e),!0)}selectItemByHref(t){if(!t)return!1;let e=eq(this,E,"m",k).call(this,t);return!!e&&(eq(this,E,"m",T).call(this,e),!0)}selectItemByCurrentLocation(){let t=eq(this,E,"m",C).call(this);return!!t&&(eq(this,E,"m",T).call(this,t),!0)}expandItem(t){t.nextElementSibling?.removeAttribute("data-hidden"),t.setAttribute("aria-expanded","true")}collapseItem(t){t.nextElementSibling?.setAttribute("data-hidden",""),t.setAttribute("aria-expanded","false"),t.focus()}itemIsExpanded(t){return t?.tagName==="A"||t?.getAttribute("aria-expanded")==="true"}handleItemWithSubItemClick(t){let e=t.target;if(!(e instanceof HTMLElement))return;let i=e.closest("button");i&&(this.itemIsExpanded(i)?this.collapseItem(i):this.expandItem(i),t.stopPropagation())}handleItemWithSubItemKeydown(t){let e=t.currentTarget;if(!(e instanceof HTMLElement))return;let i=e.closest("button");if(!i){let t=e.getAttribute("aria-labelledby");if(!t)return;i=document.getElementById(t)}this.itemIsExpanded(i)&&"Escape"===t.key&&this.collapseItem(i),t.stopPropagation()}};A=new WeakMap,E=new WeakSet,L=function(t){for(let e of this.items)if(!e.classList.contains("ActionListItem--hasSubItem")&&(e.getAttribute("data-item-id")?.split(" ")||[]).includes(t))return e;return null},k=function(t){let e=this.querySelector(`.ActionListContent[href="${t}"]`);return e?e.closest(".ActionListItem"):null},C=function(){return eq(this,E,"m",k).call(this,window.location.pathname)},T=function(t){let e=this.querySelector(".ActionListItem--navActive");e&&eq(this,E,"m",x).call(this,e),t.classList.add("ActionListItem--navActive"),t.children.length>0&&t.children[0].setAttribute("aria-current","page");let i=eq(this,E,"m",S).call(this,t);i&&(this.expandItem(i),i.classList.add("ActionListContent--hasActiveSubItem"))},x=function(t){t.classList.remove("ActionListItem--navActive"),t.children.length>0&&t.children[0].removeAttribute("aria-current");let e=eq(this,E,"m",S).call(this,t);e&&(this.collapseItem(e),e.classList.remove("ActionListContent--hasActiveSubItem"))},S=function(t){return t.classList.contains("ActionListItem--subItem")&&t.closest("li.ActionListItem--hasSubItem")?.querySelector("button.ActionListContent")||null},eO([el.zV],eR.prototype,"items",void 0),eO([el.aC],eR.prototype,"topLevelList",void 0),eR=eO([el.p_],eR);var ej=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o},eH=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)};let eF=class NavListGroupElement extends HTMLElement{constructor(){super(...arguments),M.add(this),P.set(this,new ActionListTruncationObserver(this))}connectedCallback(){this.setShowMoreItemState()}get showMoreDisabled(){return this.showMoreItem.hasAttribute("aria-disabled")}set showMoreDisabled(t){t?this.showMoreItem.setAttribute("aria-disabled","true"):this.showMoreItem.removeAttribute("aria-disabled"),this.showMoreItem.classList.toggle("disabled",t)}set currentPage(t){this.showMoreItem.setAttribute("data-current-page",t.toString())}get currentPage(){return parseInt(this.showMoreItem.getAttribute("data-current-page"))||1}get totalPages(){return parseInt(this.showMoreItem.getAttribute("data-total-pages"))||1}get paginationSrc(){return this.showMoreItem.getAttribute("src")||""}async showMore(t){let e;if(t.preventDefault(),this.showMoreDisabled)return;this.showMoreDisabled=!0;try{let t=new URL(this.paginationSrc,window.location.origin);this.currentPage++,t.searchParams.append("page",this.currentPage.toString());let i=await fetch(t);if(!i.ok)return;e=await i.text(),this.currentPage===this.totalPages&&(this.showMoreItem.hidden=!0)}catch(t){this.showMoreDisabled=!1,this.currentPage--;return}let i=eH(this,M,"m",I).call(this,document,e);i?.querySelector("li > a")?.setAttribute("data-targets","nav-list-group.focusMarkers");let n=t.target.closest("button").getAttribute("data-list-id");document.getElementById(n).append(i),this.focusMarkers.pop()?.focus(),this.showMoreDisabled=!1}setShowMoreItemState(){this.showMoreItem&&(this.currentPage=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o},eV=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)};let e_=class SegmentedControlElement extends HTMLElement{constructor(){super(...arguments),O.add(this)}connectedCallback(){eV(this,O,"m",D).call(this)}select(t){let e=t.currentTarget;for(let t of this.items)t.classList.remove("SegmentedControl-item--selected"),t.querySelector("[aria-current]")?.setAttribute("aria-current","false");e.closest("li.SegmentedControl-item")?.classList.add("SegmentedControl-item--selected"),e.setAttribute("aria-current","true")}};O=new WeakSet,D=function(){for(let t of this.querySelectorAll(".Button-label"))t.setAttribute("data-content",t.textContent||"")},eW([el.zV],e_.prototype,"items",void 0),e_=eW([el.p_],e_),window.customElements.get("segmented-control")||(window.SegmentedControlElement=e_,window.customElements.define("segmented-control",e_));var eB=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};let e$=class ToggleSwitchElement extends HTMLElement{constructor(){super(...arguments),this.turbo=!1,this.toggling=!1}get src(){let t=this.getAttribute("src");if(!t)return null;let e=this.ownerDocument.createElement("a");return e.href=t,e.href}get csrf(){let t=this.querySelector("[data-csrf]");return this.getAttribute("data-csrf")||t instanceof HTMLInputElement&&t.value||null}get csrfField(){return this.getAttribute("csrf-field")||"authenticity_token"}isRemote(){return null!=this.src}async toggle(){if(!this.toggling&&(this.toggling=!0,!this.isDisabled())){if(!this.isRemote()){this.performToggle(),this.toggling=!1;return}this.performToggle(),this.setLoadingState();try{await this.submitForm()}catch(t){t instanceof Error&&(this.setErrorState(t.message||"An error occurred, please try again."),this.performToggle());return}finally{this.toggling=!1}this.setSuccessState()}}turnOn(){this.isDisabled()||(this.switch.setAttribute("aria-pressed","true"),this.classList.add("ToggleSwitch--checked"))}turnOff(){this.isDisabled()||(this.switch.setAttribute("aria-pressed","false"),this.classList.remove("ToggleSwitch--checked"))}isOn(){return"true"===this.switch.getAttribute("aria-pressed")}isOff(){return!this.isOn()}isDisabled(){return null!=this.switch.getAttribute("disabled")}disable(){this.switch.setAttribute("disabled","disabled")}enable(){this.switch.removeAttribute("disabled")}performToggle(){this.isOn()?this.turnOff():this.turnOn()}setLoadingState(){this.errorIcon.setAttribute("hidden","hidden"),this.loadingSpinner.removeAttribute("hidden");let t=new CustomEvent("toggleSwitchLoading",{bubbles:!0});this.dispatchEvent(t)}setSuccessState(){let t=new CustomEvent("toggleSwitchSuccess",{bubbles:!0});this.dispatchEvent(t),this.setFinishedState(!1)}setErrorState(t){let e=new CustomEvent("toggleSwitchError",{bubbles:!0,detail:t});this.dispatchEvent(e),this.setFinishedState(!0)}setFinishedState(t){t&&this.errorIcon.removeAttribute("hidden"),this.loadingSpinner.setAttribute("hidden","hidden")}async submitForm(){let t;let e=new FormData;if(this.csrf&&e.append(this.csrfField,this.csrf),e.append("value",this.isOn()?"1":"0"),!this.src)throw Error("invalid src");let i={"Requested-With":"XMLHttpRequest"};this.turbo&&(i.Accept="text/vnd.turbo-stream.html");try{t=await fetch(this.src,{credentials:"same-origin",method:"POST",headers:i,body:e})}catch(t){throw Error("A network error occurred, please try again.")}if(!t.ok)throw Error(await t.text());let n=t.headers.get("Content-Type");window.Turbo&&this.turbo&&n?.startsWith("text/vnd.turbo-stream.html")&&window.Turbo.renderStreamMessage(await t.text())}};eB([el.aC],e$.prototype,"switch",void 0),eB([el.aC],e$.prototype,"loadingSpinner",void 0),eB([el.aC],e$.prototype,"errorIcon",void 0),eB([el.CF],e$.prototype,"turbo",void 0),e$=eB([el.p_],e$),window.customElements.get("toggle-switch")||(window.ToggleSwitchElement=e$,window.customElements.define("toggle-switch",e$));var eN=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},ez=function(t,e,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(t,i):r?r.value=i:e.set(t,i),i};let eK=(()=>{let t;return e=>t?e.matches(t):function(e){try{return t=":popover-open",e.matches(t)}catch{try{return t=":open",e.matches(":open")}catch{return t=".\\:popover-open",e.matches(".\\:popover-open")}}}(e)})(),eY="sr-only",eG=["tooltip-n","tooltip-s","tooltip-e","tooltip-w","tooltip-ne","tooltip-se","tooltip-nw","tooltip-sw"];function eU(t){for(let e of eZ)e!==t&&(eK(e)?e.hidePopover():eZ.delete(e))}function eX(){eU()}function eJ(t){setTimeout(()=>{for(let e of eZ)eK(e)&&"focus"===e.showReason&&e.control!==t.target&&e.hidePopover()},0)}let eQ=new Set,eZ=new Set;let ToolTipElement=class ToolTipElement extends HTMLElement{constructor(){super(...arguments),q.add(this),R.set(this,void 0),j.set(this,"center"),H.set(this,"outside-bottom"),F.set(this,!1),W.set(this,"mouse")}styles(){return` :host { --tooltip-top: var(--tool-tip-position-top, 0); --tooltip-left: var(--tool-tip-position-left, 0); padding: var(--overlay-paddingBlock-condensed) var(--overlay-padding-condensed) !important; font: var(--text-body-shorthand-small); color: var(--tooltip-fgColor, var(--fgColor-onEmphasis)) !important; text-align: center; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-wrap: break-word; white-space: pre; background: var(--tooltip-bgColor, var(--bgColor-emphasis)) !important; border-radius: var(--borderRadius-medium); border: 0 !important; opacity: 0; max-width: var(--overlay-width-small); word-wrap: break-word; white-space: normal; width: max-content !important; inset: var(--tooltip-top) auto auto var(--tooltip-left) !important; overflow: visible !important; text-wrap: balance; } :host(:is(.tooltip-n, .tooltip-nw, .tooltip-ne)) { --tooltip-top: calc(var(--tool-tip-position-top, 0) - var(--overlay-offset, 0.25rem)); --tooltip-left: var(--tool-tip-position-left); } :host(:is(.tooltip-s, .tooltip-sw, .tooltip-se)) { --tooltip-top: calc(var(--tool-tip-position-top, 0) + var(--overlay-offset, 0.25rem)); --tooltip-left: var(--tool-tip-position-left); } :host(.tooltip-w) { --tooltip-top: var(--tool-tip-position-top); --tooltip-left: calc(var(--tool-tip-position-left, 0) - var(--overlay-offset, 0.25rem)); } :host(.tooltip-e) { --tooltip-top: var(--tool-tip-position-top); --tooltip-left: calc(var(--tool-tip-position-left, 0) + var(--overlay-offset, 0.25rem)); } :host:after{ position: absolute; display: block; right: 0; left: 0; height: var(--overlay-offset, 0.25rem); content: ""; } :host(.tooltip-s):after, :host(.tooltip-se):after, :host(.tooltip-sw):after { bottom: 100% } :host(.tooltip-n):after, :host(.tooltip-ne):after, :host(.tooltip-nw):after { top: 100%; } @keyframes tooltip-appear { from { opacity: 0; } to { opacity: 1; } } :host(:popover-open), :host(:popover-open):before { animation-name: tooltip-appear; animation-duration: .1s; animation-fill-mode: forwards; animation-timing-function: ease-in; } :host(.\\:popover-open) { animation-name: tooltip-appear; animation-duration: .1s; animation-fill-mode: forwards; animation-timing-function: ease-in; } @media (forced-colors: active) { :host { outline: solid 1px transparent; } :host:before { display: none; } } `}get showReason(){return eN(this,W,"f")}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(t){this.setAttribute("for",t)}get type(){return"label"===this.getAttribute("data-type")?"label":"description"}set type(t){this.setAttribute("data-type",t)}get direction(){return this.getAttribute("data-direction")||"s"}set direction(t){this.setAttribute("data-direction",t)}get control(){return this.ownerDocument.getElementById(this.htmlFor)}set hiddenFromView(t){t&&eK(this)?this.hidePopover():t||eK(this)||this.showPopover()}get hiddenFromView(){return!eK(this)}connectedCallback(){if(eQ.add(this),eN(this,q,"m",_).call(this),eN(this,q,"m",B).call(this),!this.shadowRoot){let t=this.attachShadow({mode:"open"});t.appendChild(document.createElement("style")).textContent=this.styles(),t.appendChild(document.createElement("slot"))}if(eN(this,q,"m",V).call(this,!1),ez(this,F,!0,"f"),!this.control)return;this.setAttribute("role","tooltip"),eN(this,R,"f")?.abort(),ez(this,R,new AbortController,"f");let{signal:t}=eN(this,R,"f");this.addEventListener("mouseleave",this,{signal:t}),this.addEventListener("toggle",this,{signal:t}),this.control.addEventListener("mouseenter",this,{signal:t}),this.control.addEventListener("mouseleave",this,{signal:t}),this.control.addEventListener("focus",this,{signal:t}),this.control.addEventListener("mousedown",this,{signal:t}),this.control.popoverTargetElement?.addEventListener("beforetoggle",this,{signal:t}),this.ownerDocument.addEventListener("focusout",eX),this.ownerDocument.addEventListener("focusin",eJ),this.ownerDocument.addEventListener("keydown",this,{signal:t,capture:!0})}disconnectedCallback(){eQ.delete(this),eZ.delete(this),eN(this,R,"f")?.abort()}async handleEvent(t){if(!this.control)return;let e=eK(this),i="mouseenter"===t.type||"focus"===t.type&&(navigator.webdriver||this.control.matches(":focus-visible")),n="mouseleave"===t.type&&t.relatedTarget!==this.control&&t.relatedTarget!==this,r="keydown"===t.type&&"Escape"===t.key,s="mousedown"===t.type&&t.currentTarget===this.control,o="beforetoggle"===t.type&&t.currentTarget!==this;e&&r&&(t.stopImmediatePropagation(),t.preventDefault()),await Promise.resolve(),e||!i||eK(this)?e&&(n||r||s||o)&&eK(this)&&this.hidePopover():(ez(this,W,"mouseenter"===t.type?"mouse":"focus","f"),this.showPopover()),"toggle"===t.type&&eN(this,q,"m",V).call(this,"open"===t.newState)}attributeChangedCallback(t){this.isConnected&&("id"===t||"data-type"===t?eN(this,q,"m",_).call(this):"data-direction"===t&&eN(this,q,"m",B).call(this))}};R=new WeakMap,j=new WeakMap,H=new WeakMap,F=new WeakMap,W=new WeakMap,q=new WeakSet,V=function(t){t?(eZ.add(this),this.classList.remove(eY),eU(this),eN(this,q,"m",$).call(this)):(eZ.delete(this),this.classList.remove(...eG),this.classList.add(eY))},_=function(){if(this.id&&this.control){if("label"===this.type){let t=this.control.getAttribute("aria-labelledby");t=t?t.split(" ").includes(this.id)?`${t}`:`${t} ${this.id}`:this.id,this.control.setAttribute("aria-labelledby",t),this.setAttribute("aria-hidden","true")}else{let t=this.control.getAttribute("aria-describedby");t=t?t.split(" ").includes(this.id)?`${t}`:`${t} ${this.id}`:this.id,this.control.setAttribute("aria-describedby",t)}}},B=function(){this.classList.remove(...eG);let t=this.direction;"n"===t?(ez(this,j,"center","f"),ez(this,H,"outside-top","f")):"ne"===t?(ez(this,j,"end","f"),ez(this,H,"outside-top","f")):"e"===t?(ez(this,j,"center","f"),ez(this,H,"outside-right","f")):"se"===t?(ez(this,j,"end","f"),ez(this,H,"outside-bottom","f")):"s"===t?(ez(this,j,"center","f"),ez(this,H,"outside-bottom","f")):"sw"===t?(ez(this,j,"start","f"),ez(this,H,"outside-bottom","f")):"w"===t?(ez(this,j,"center","f"),ez(this,H,"outside-left","f")):"nw"===t&&(ez(this,j,"start","f"),ez(this,H,"outside-top","f"))},$=function(){if(!this.control||!eN(this,F,"f")||!eK(this))return;let t=(0,eu.uG)(this,this.control,{side:eN(this,H,"f"),align:eN(this,j,"f"),anchorOffset:0}),e=t.anchorSide,i=t.anchorAlign;this.style.setProperty("--tool-tip-position-top",`${t.top}px`),this.style.setProperty("--tool-tip-position-left",`${t.left}px`);let n="s";n="outside-left"===e?"w":"outside-right"===e?"e":"outside-top"===e?"center"===i?"n":"start"===i?"ne":"nw":"center"===i?"s":"start"===i?"se":"sw",this.classList.add(`tooltip-${n}`)},ToolTipElement.observedAttributes=["data-type","data-direction","id"],window.customElements.get("tool-tip")||(window.ToolTipElement=ToolTipElement,window.customElements.define("tool-tip",ToolTipElement));var e0=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o},e1=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)};let e3=class XBannerElement extends HTMLElement{constructor(){super(...arguments),N.add(this)}dismiss(){if("remove"===e1(this,N,"a",z)){let t=this.parentElement;if(!t)return;t.removeChild(this)}else this.hide();this.dispatchEvent(new CustomEvent("banner:dismiss"))}show(){this.style.setProperty("display","initial")}hide(){this.style.setProperty("display","none")}};function e2(t){t.style.display="inline-block"}function e9(t){t.style.display="none"}N=new WeakSet,z=function(){return this.getAttribute("data-dismiss-scheme")},e0([el.aC],e3.prototype,"titleText",void 0),e3=e0([el.p_],e3),window.customElements.get("x-banner")||(window.XBannerElement=e3,window.customElements.define("x-banner",e3)),i(96907),i(14940);let e7=new WeakMap;document.addEventListener("clipboard-copy",({target:t})=>{if(!(t instanceof HTMLElement)||!t.hasAttribute("data-view-component"))return;let e=e7.get(t),i=t.parentNode?.querySelector("[data-clipboard-copy-feedback]"),n="Copied!";e?(clearTimeout(e),e7.delete(t)):(function(t){let[e,i]=t.querySelectorAll(".octicon");e&&i&&(e9(e),e2(i))}(t),i&&(i.textContent===n?i.textContent=`${n}\u00A0`:i.textContent=n)),e7.set(t,setTimeout(()=>{(function(t){let[e,i]=t.querySelectorAll(".octicon");e&&i&&(e2(e),e9(i))})(t),e7.delete(t)},2e3))}),i(4712),i(49728);var e4=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};let e5=class PrimerMultiInputElement extends HTMLElement{activateField(t){let e=this.findField(t);if(e){for(let t of this.fields)t!==e&&(t.setAttribute("disabled","disabled"),t.setAttribute("hidden","hidden"),t.parentElement?.setAttribute("hidden","hidden"));e.removeAttribute("disabled"),e.removeAttribute("hidden"),e.parentElement?.removeAttribute("hidden")}}findField(t){for(let e of this.fields)if(e.getAttribute("data-name")===t)return e;return null}};e4([el.zV],e5.prototype,"fields",void 0),e5=e4([el.p_],e5),window.customElements.get("primer-multi-input")||(Object.assign(window,{PrimerMultiInputElement:e5}),window.customElements.define("primer-multi-input",e5)),i(20761);var e6=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o},e8=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},it=function(t,e,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(t,i):r?r.value=i:e.set(t,i),i};let ie=class PrimerTextFieldElement extends HTMLElement{constructor(){super(...arguments),K.set(this,void 0)}connectedCallback(){e8(this,K,"f")?.abort();let{signal:t}=it(this,K,new AbortController,"f");this.addEventListener("auto-check-success",async t=>{let e=await t.detail.response.text();e&&e.length>0?this.setSuccess(e):this.clearError()},{signal:t}),this.addEventListener("auto-check-error",async t=>{let e=await t.detail.response.text();this.setError(e)},{signal:t})}disconnectedCallback(){e8(this,K,"f")?.abort()}clearContents(){this.inputElement.value="",this.inputElement.focus(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!1}))}clearError(){this.inputElement.removeAttribute("invalid"),this.validationElement.hidden=!0,this.validationMessageElement.replaceChildren()}setValidationMessage(t){let e=document.createElement("template");e.innerHTML=t;let i=document.importNode(e.content,!0);this.validationMessageElement.replaceChildren(i)}toggleValidationStyling(t){t?this.validationElement.classList.remove("FormControl-inlineValidation--success"):this.validationElement.classList.add("FormControl-inlineValidation--success"),this.validationSuccessIcon.hidden=t,this.validationErrorIcon.hidden=!t,this.inputElement.setAttribute("invalid",t?"true":"false")}setSuccess(t){this.toggleValidationStyling(!1),this.setValidationMessage(t),this.validationElement.hidden=!1}setError(t){this.toggleValidationStyling(!0),this.setValidationMessage(t),this.validationElement.hidden=!1}showLeadingSpinner(){this.leadingSpinner?.removeAttribute("hidden"),this.leadingVisual?.setAttribute("hidden","")}hideLeadingSpinner(){this.leadingSpinner?.setAttribute("hidden",""),this.leadingVisual?.removeAttribute("hidden")}};K=new WeakMap,e6([el.aC],ie.prototype,"inputElement",void 0),e6([el.aC],ie.prototype,"validationElement",void 0),e6([el.aC],ie.prototype,"validationMessageElement",void 0),e6([el.aC],ie.prototype,"validationSuccessIcon",void 0),e6([el.aC],ie.prototype,"validationErrorIcon",void 0),e6([el.aC],ie.prototype,"leadingVisual",void 0),e6([el.aC],ie.prototype,"leadingSpinner",void 0),ie=e6([el.p_],ie);var ii=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};let ir=class ToggleSwitchInputElement extends HTMLElement{connectedCallback(){this.addEventListener("toggleSwitchError",t=>{this.validationMessageElement.textContent=t.detail,this.validationElement.removeAttribute("hidden")}),this.addEventListener("toggleSwitchSuccess",()=>{this.validationMessageElement.textContent="",this.validationElement.setAttribute("hidden","hidden")}),this.addEventListener("toggleSwitchLoading",()=>{this.validationMessageElement.textContent="",this.validationElement.setAttribute("hidden","hidden")})}};ii([el.aC],ir.prototype,"validationElement",void 0),ii([el.aC],ir.prototype,"validationMessageElement",void 0),ir=ii([el.p_],ir);let is=(t,e,i)=>{if(e())i();else{let n=new MutationObserver(()=>{e()&&(i(),n.disconnect())});n.observe(t,{childList:!0,subtree:!0})}};var io=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o},ia=function(t,e,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(t,i):r?r.value=i:e.set(t,i),i},il=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)};let ic=['[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]'],ih=ic.map(t=>`:not([hidden]) > ${t}`),id=class ActionMenuElement extends HTMLElement{constructor(){super(...arguments),Y.add(this),G.set(this,void 0),U.set(this,""),X.set(this,""),J.set(this,!1),Q.set(this,void 0)}get selectVariant(){return this.getAttribute("data-select-variant")}set selectVariant(t){t?this.setAttribute("data-select-variant",t):this.removeAttribute("variant")}get dynamicLabelPrefix(){let t=this.getAttribute("data-dynamic-label-prefix");return t?`${t}:`:""}set dynamicLabelPrefix(t){this.setAttribute("data-dynamic-label",t)}get dynamicLabel(){return this.hasAttribute("data-dynamic-label")}set dynamicLabel(t){this.toggleAttribute("data-dynamic-label",t)}get popoverElement(){return this.invokerElement?.popoverTargetElement||null}get invokerElement(){let t=this.querySelector("[role=menu]")?.id;if(!t)return null;for(let e of this.querySelectorAll("[aria-controls]"))if(e.getAttribute("aria-controls")===t)return e;return null}get invokerLabel(){return this.invokerElement?this.invokerElement.querySelector(".Button-label"):null}get selectedItems(){let t=this.querySelectorAll("[aria-checked=true]"),e=[];for(let i of t){let t=i.querySelector(".ActionListItem-label");e.push({label:t?.textContent,value:i?.getAttribute("data-value"),element:i})}return e}connectedCallback(){let{signal:t}=ia(this,G,new AbortController,"f");this.addEventListener("keydown",this,{signal:t}),this.addEventListener("click",this,{signal:t}),this.addEventListener("mouseover",this,{signal:t}),this.addEventListener("focusout",this,{signal:t}),this.addEventListener("mousedown",this,{signal:t}),this.popoverElement?.addEventListener("toggle",this,{signal:t}),il(this,Y,"m",td).call(this),il(this,Y,"m",tu).call(this),il(this,Y,"m",Z).call(this),this.includeFragment&&this.includeFragment.addEventListener("include-fragment-replaced",this,{signal:t});let e=()=>{il(this,Y,"m",th).call(this)&&this.overlay?.update()};ia(this,Q,new IntersectionObserver(t=>{for(let i of t)i.target===this.invokerElement&&(i.isIntersecting?window.addEventListener("scroll",e,{capture:!0}):window.removeEventListener("scroll",e,{capture:!0}))}),"f"),is(this,()=>!!this.invokerElement,()=>il(this,Q,"f").observe(this.invokerElement))}disconnectedCallback(){il(this,G,"f").abort()}handleEvent(t){let e=this.invokerElement?.contains(t.target),i=il(this,Y,"m",ti).call(this,t);if("toggle"===t.type&&"open"===t.newState&&il(this,Y,"a",tf)?.focus(),e&&"mousedown"===t.type){ia(this,J,!0,"f");return}if("mousedown"===t.type){t.preventDefault();return}if(e&&i){il(this,Y,"m",tn).call(this,t),ia(this,J,!1,"f");return}if("focusout"===t.type){if(il(this,J,"f"))return;requestAnimationFrame(()=>{this.contains(document.activeElement)&&document.activeElement!==this.invokerElement||il(this,Y,"m",ta).call(this)});return}let n=t.target.closest(ih.join(","));if(null!==n&&i){if(il(this,Y,"m",tt).call(this,t))return;let e=n.closest("[data-show-dialog-id]");if(e){let i=this.ownerDocument.getElementById(e.getAttribute("data-show-dialog-id")||"");if(i&&this.contains(e)){il(this,Y,"m",tr).call(this,t,i);return}}il(this,Y,"m",te).call(this,t)&&(t.preventDefault(),n.click()),il(this,Y,"m",ts).call(this,n);return}"include-fragment-replaced"===t.type&&il(this,Y,"m",to).call(this)}get items(){return Array.from(this.querySelectorAll(ih.join(",")))}getItemById(t){return this.querySelector(`li[data-item-id="${t}"`)}isItemDisabled(t){return!!t&&t.classList.contains("ActionListItem--disabled")}disableItem(t){t&&(t.classList.add("ActionListItem--disabled"),t.querySelector(".ActionListContent").setAttribute("aria-disabled","true"))}enableItem(t){t&&(t.classList.remove("ActionListItem--disabled"),t.querySelector(".ActionListContent").removeAttribute("aria-disabled"))}isItemHidden(t){return!!t&&t.hasAttribute("hidden")}hideItem(t){t&&t.setAttribute("hidden","hidden")}showItem(t){t&&t.removeAttribute("hidden")}isItemChecked(t){return!!t&&"true"===t.querySelector(".ActionListContent").getAttribute("aria-checked")}checkItem(t){if(t&&("single"===this.selectVariant||"multiple"===this.selectVariant)){let e=t.querySelector(".ActionListContent");"true"!==e.getAttribute("aria-checked")&&il(this,Y,"m",ts).call(this,e)}}uncheckItem(t){if(t&&("single"===this.selectVariant||"multiple"===this.selectVariant)){let e=t.querySelector(".ActionListContent");"true"===e.getAttribute("aria-checked")&&il(this,Y,"m",ts).call(this,e)}}};G=new WeakMap,U=new WeakMap,X=new WeakMap,J=new WeakMap,Q=new WeakMap,Y=new WeakSet,Z=function(){let{signal:t}=il(this,G,"f");for(let e of this.querySelectorAll(ic.join(",")))e.addEventListener("click",il(this,Y,"m",tt).bind(this),{signal:t}),e.addEventListener("keydown",il(this,Y,"m",tt).bind(this),{signal:t})},tt=function(t){if(!il(this,Y,"m",ti).call(this,t))return!1;let e=t.target.closest(ih.join(","));return!!e&&!!e.getAttribute("aria-disabled")&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!0)},te=function(t){return t.target instanceof HTMLAnchorElement&&t instanceof KeyboardEvent&&"keydown"===t.type&&!(t.ctrlKey||t.altKey||t.metaKey||t.shiftKey)&&" "===t.key},ti=function(t){return t instanceof MouseEvent&&"click"===t.type||il(this,Y,"m",te).call(this,t)},tn=function(t){t.preventDefault(),t.stopPropagation(),il(this,Y,"m",th).call(this)?il(this,Y,"m",tc).call(this):il(this,Y,"m",tl).call(this)},tr=function(t,e){this.contains(e)&&(this.querySelector(".ActionListWrap").style.display="none");let i=new AbortController,{signal:n}=i,r=()=>{i.abort(),this.contains(e)&&(this.querySelector(".ActionListWrap").style.display="",il(this,Y,"m",th).call(this)&&il(this,Y,"m",tc).call(this));let t=this.ownerDocument.activeElement,n=this.ownerDocument.activeElement===this.ownerDocument.body,r=this.contains(t),s=e.contains(t);(n||r||s)&&setTimeout(()=>{let e=this.ownerDocument.activeElement;(e===t||e===this.ownerDocument.body)&&this.invokerElement?.focus()},0)};e.addEventListener("close",r,{signal:n}),e.addEventListener("cancel",r,{signal:n})},ts=function(t){if("multiple"!==this.selectVariant&&setTimeout(()=>{il(this,Y,"m",th).call(this)&&il(this,Y,"m",tc).call(this)}),"multiple"!==this.selectVariant&&"single"!==this.selectVariant)return;let e="true"!==t.getAttribute("aria-checked");if("single"===this.selectVariant){for(let i of(e&&t.setAttribute("aria-checked","true"),this.querySelectorAll("[aria-checked]")))i!==t&&i.setAttribute("aria-checked","false");il(this,Y,"m",td).call(this)}else t.setAttribute("aria-checked",`${e}`);il(this,Y,"m",tu).call(this),this.dispatchEvent(new CustomEvent("itemActivated",{detail:{item:t.parentElement,checked:this.isItemChecked(t.parentElement)}}))},to=function(){il(this,Y,"a",tf)&&il(this,Y,"a",tf).focus(),il(this,Y,"m",Z).call(this)},ta=function(){il(this,Y,"m",tc).call(this)},tl=function(){this.popoverElement?.showPopover()},tc=function(){this.popoverElement?.hidePopover()},th=function(){return this.popoverElement?.matches(":popover-open")},td=function(){if(!this.dynamicLabel)return;let t=this.invokerLabel;if(!t)return;ia(this,U,il(this,U,"f")||t.textContent||"","f");let e=this.querySelector("[aria-checked=true] .ActionListItem-label");if(e&&this.dynamicLabel){let i=document.createElement("span");i.classList.add("color-fg-muted");let n=document.createElement("span");i.textContent=this.dynamicLabelPrefix,n.textContent=e.textContent||"",t.replaceChildren(i,n)}else t.textContent=il(this,U,"f")},tu=function(){if("single"===this.selectVariant){let t=this.querySelector("[data-list-inputs=true] input");if(!t)return;let e=this.selectedItems[0];e?(t.value=(e.value||e.label||"").trim(),t.removeAttribute("disabled")):t.setAttribute("disabled","disabled")}else if("none"!==this.selectVariant){let t=this.querySelector("[data-list-inputs=true]");if(!t)return;let e=t.querySelectorAll("input");for(let i of(e.length>0&&ia(this,X,il(this,X,"f")||e[0].name,"f"),this.selectedItems)){let e=document.createElement("input");e.setAttribute("data-list-input","true"),e.type="hidden",e.autocomplete="off",e.name=il(this,X,"f"),e.value=(i.value||i.label||"").trim(),t.append(e)}for(let t of e)t.remove()}},tf=function(){return this.querySelector(ih.join(","))},io([el.aC],id.prototype,"includeFragment",void 0),io([el.aC],id.prototype,"overlay",void 0),id=io([el.p_],id),window.customElements.get("action-menu")||(window.ActionMenuElement=id,window.customElements.define("action-menu",id));let iu={Less:"less",Equal:"equal",Greater:"greater"};var im=t=>{throw TypeError(t)},ip=(t,e,i)=>e.has(t)||im("Cannot "+i),ib=(t,e,i)=>(ip(t,e,"read from private field"),i?i.call(t):e.get(t)),ig=(t,e,i)=>e.has(t)?im("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),iv=(t,e,i,n)=>(ip(t,e,"write to private field"),e.set(t,i),i),iw=(t,e,i)=>(ip(t,e,"access private method"),i);let MinHeap=class MinHeap{constructor({compareFn:t}){ig(this,tb),ig(this,tm),ig(this,tp),iv(this,tm,t),iv(this,tp,[])}insert(t){ib(this,tp).push(t),iw(this,tb,tv).call(this)}pop(){let t=ib(this,tp)[0];return ib(this,tp)[ib(this,tp).length-1]&&(ib(this,tp)[0]=ib(this,tp)[ib(this,tp).length-1],ib(this,tp).pop()),iw(this,tb,tg).call(this),t}peek(){return ib(this,tp)[0]}delete(t){let e=ib(this,tp).indexOf(t);-1!==e&&(iE(ib(this,tp),e,ib(this,tp).length-1),ib(this,tp).pop(),iw(this,tb,tg).call(this))}clear(){iv(this,tp,[])}get size(){return ib(this,tp).length}};function iy(t){return Math.floor((t-1)/2)}function iE(t,e,i){let n=t[e];t[e]=t[i],t[i]=n}tm=new WeakMap,tp=new WeakMap,tb=new WeakSet,tg=function(){let t=0;for(;2*t+10&&ib(this,tm).call(this,ib(this,tp)[t],ib(this,tp)[iy(t)])===iu.Less;)iE(ib(this,tp),t,iy(t)),t=iy(t)};var iA=Object.defineProperty,iL=t=>{throw TypeError(t)},ik=(t,e,i)=>e in t?iA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,iC=(t,e,i)=>ik(t,"symbol"!=typeof e?e+"":e,i),iT=(t,e,i)=>e.has(t)||iL("Cannot "+i),ix=(t,e,i)=>(iT(t,e,"read from private field"),i?i.call(t):e.get(t)),iS=(t,e,i)=>e.has(t)?iL("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),iM=(t,e,i,n)=>(iT(t,e,"write to private field"),e.set(t,i),i);tw=Symbol.toStringTag;let Deferred=class Deferred{constructor(){iC(this,tw,"Deferred"),iS(this,ty),iS(this,tE),iS(this,tA),iM(this,ty,new Promise((t,e)=>{iM(this,tE,t),iM(this,tA,e)}))}then(t,e){return Promise.prototype.then.apply(ix(this,ty),[t,e])}catch(t){return Promise.prototype.catch.apply(ix(this,ty),[t])}finally(t){return Promise.prototype.finally.apply(ix(this,ty),[t])}resolve(t){ix(this,tE).call(this,t)}reject(t){ix(this,tA).call(this,t)}getPromise(){return ix(this,ty)}};ty=new WeakMap,tE=new WeakMap,tA=new WeakMap;var iI=t=>{throw TypeError(t)},iP=(t,e,i)=>e.has(t)||iI("Cannot "+i),iO=(t,e,i)=>(iP(t,e,"read from private field"),i?i.call(t):e.get(t)),iD=(t,e,i)=>e.has(t)?iI("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),iq=(t,e,i,n)=>(iP(t,e,"write to private field"),e.set(t,i),i),iR=(t,e,i)=>(iP(t,e,"access private method"),i);let LiveRegionElement=class LiveRegionElement extends HTMLElement{constructor(){if(super(),iD(this,tT),iD(this,tL),iD(this,tk),iD(this,tC),!this.shadowRoot){let t=(ij||((ij=document.createElement("template")).innerHTML=iH),ij);this.attachShadow({mode:"open"}).appendChild(t.content.cloneNode(!0))}iq(this,tL,!1),iq(this,tC,null),iq(this,tk,new MinHeap({compareFn:iF}))}get delay(){let t=this.getAttribute("delay");return t?parseInt(t,10):150}set delay(t){this.setAttribute("delay",`${t}`)}announce(t,e={}){let{delayMs:i,politeness:n="polite"}=e,r=Date.now(),s=new Deferred,o={deferred:s,politeness:n,contents:t,scheduled:void 0!==i?r+i:r};return iO(this,tk).insert(o),iR(this,tT,tx).call(this),{...s.getPromise(),cancel:()=>{iO(this,tk).delete(o),s.resolve()}}}announceFromElement(t,e){let i;let n=(i="",t.hasAttribute("aria-label")?i=t.getAttribute("aria-label"):t.innerText?i=t.innerText:t.textContent&&(i=t.textContent),i?i.trim():"");return""!==n?this.announce(n,e):{...Promise.resolve(),cancel:iW}}getMessage(t="polite"){let e=this.shadowRoot?.getElementById(t);if(!e)throw Error("Unable to find container for message");return e.textContent}clear(){null!==iO(this,tC)&&(clearTimeout(iO(this,tC)),iq(this,tC,null)),iq(this,tL,!1),iO(this,tk).clear()}};tL=new WeakMap,tk=new WeakMap,tC=new WeakMap,tT=new WeakSet,tx=function(){if(iO(this,tL))return;let t=iO(this,tk).peek();if(!t)return;null!==iO(this,tC)&&(clearTimeout(iO(this,tC)),iq(this,tC,null));let e=Date.now();if(t.scheduled<=e){(t=iO(this,tk).pop())&&iR(this,tT,tS).call(this,t),iR(this,tT,tx).call(this);return}let i=t.scheduled-e;iq(this,tC,window.setTimeout(()=>{iq(this,tC,null),iR(this,tT,tx).call(this)},i))},tS=function(t){iq(this,tL,!0);let{contents:e,deferred:i,politeness:n}=t,r=this.shadowRoot?.getElementById(n);if(!r)throw iq(this,tL,!1),Error(`Unable to find container for message. Expected a container with id="${n}"`);r.textContent===e?r.textContent=`${e}\xa0`:r.textContent=e,null!==iO(this,tC)&&clearTimeout(iO(this,tC)),i.resolve(),this.delay>0?iq(this,tC,window.setTimeout(()=>{iq(this,tC,null),iq(this,tL,!1),iR(this,tT,tx).call(this)},this.delay)):(iq(this,tC,null),iq(this,tL,!1),iR(this,tT,tx).call(this))};let ij=null,iH=`
`;function iF(t,e){return t.politeness===e.politeness?t.scheduled===e.scheduled?iu.Equal:t.scheduled=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o},i_=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},iB=function(t,e,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(t,i):r?r.value=i:e.set(t,i),i};let i$=['[role="option"]'],iN=i$.join(","),iz=i$.map(t=>`:not([hidden]) > ${t}`).join(",");!function(t){t[t.REMOTE=0]="REMOTE",t[t.EVENTUALLY_LOCAL=1]="EVENTUALLY_LOCAL",t[t.LOCAL=2]="LOCAL"}(es||(es={})),function(t){t[t.BODY=0]="BODY",t[t.BANNER=1]="BANNER"}(eo||(eo={}));let iK=(()=>{let t=new Set,e=null;function i(){for(let e of t)e.updateAnchorPosition()}return n=>{window.addEventListener("resize",i),window.addEventListener("scroll",i),e||(e=new ResizeObserver(()=>{for(let e of t)e.updateAnchorPosition()})),e.observe(n.ownerDocument.documentElement),n.addEventListener("dialog:close",()=>{n.invokerElement?.setAttribute("aria-expanded","false"),t.delete(n)}),n.addEventListener("dialog:open",()=>{t.add(n)})}})(),iY=class SelectPanelElement extends HTMLElement{constructor(){super(...arguments),tM.add(this),tI.set(this,void 0),tP.set(this,void 0),tO.set(this,""),tD.set(this,""),tq.set(this,new Map),tR.set(this,null),tj.set(this,null),tH.set(this,!1)}get open(){return this.dialog.open}get selectVariant(){return this.getAttribute("data-select-variant")}get ariaSelectionType(){return"multiple"===this.selectVariant?"aria-checked":"aria-selected"}set selectVariant(t){t?this.setAttribute("data-select-variant",t):this.removeAttribute("variant")}get dynamicLabelPrefix(){let t=this.getAttribute("data-dynamic-label-prefix");return t?`${t}:`:""}get dynamicAriaLabelPrefix(){let t=this.getAttribute("data-dynamic-aria-label-prefix");return t?`${t}:`:""}set dynamicLabelPrefix(t){this.setAttribute("data-dynamic-label",t)}get dynamicLabel(){return this.hasAttribute("data-dynamic-label")}set dynamicLabel(t){this.toggleAttribute("data-dynamic-label",t)}get invokerElement(){let t=this.querySelector("dialog")?.id;if(!t)return null;for(let e of this.querySelectorAll("[aria-controls]"))if(e.getAttribute("aria-controls")===t)return e;return null}get closeButton(){return this.querySelector("button[data-close-dialog-id]")}get invokerLabel(){return this.invokerElement?this.invokerElement.querySelector(".Button-label"):null}get selectedItems(){return Array.from(i_(this,tq,"f").values())}get align(){return this.getAttribute("anchor-align")||"start"}get side(){return this.getAttribute("anchor-side")||"outside-bottom"}updateAnchorPosition(){if(this&&null===this.offsetParent&&this.hide(),this.invokerElement){let{top:t,left:e}=(0,eu.uG)(this.dialog,this.invokerElement,{align:this.align,side:this.side,anchorOffset:4});this.dialog.style.top=`${t}px`,this.dialog.style.left=`${e}px`,this.dialog.style.bottom="auto",this.dialog.style.right="auto"}}connectedCallback(){let{signal:t}=iB(this,tP,new AbortController,"f");this.addEventListener("keydown",this,{signal:t}),this.addEventListener("click",this,{signal:t}),this.addEventListener("mousedown",this,{signal:t}),this.addEventListener("input",this,{signal:t}),this.addEventListener("remote-input-success",this,{signal:t}),this.addEventListener("remote-input-error",this,{signal:t}),this.addEventListener("loadstart",this,{signal:t}),i_(this,tM,"m",t8).call(this),i_(this,tM,"m",et).call(this),i_(this,tM,"m",tF).call(this),iK(this),is(this,()=>!!this.remoteInput,()=>{this.remoteInput.addEventListener("loadstart",this,{signal:t}),this.remoteInput.addEventListener("loadend",this,{signal:t})}),is(this,()=>!!this.includeFragment,()=>{this.includeFragment.addEventListener("include-fragment-replaced",this,{signal:t}),this.includeFragment.addEventListener("error",this,{signal:t}),this.includeFragment.addEventListener("loadend",this,{signal:t})}),iB(this,tI,new IntersectionObserver(t=>{for(let e of t){let t=e.target;e.isIntersecting&&t===this.dialog&&(this.filterInputTextField&&document.activeElement!==this.filterInputTextField&&this.filterInputTextField.focus(),this.dialog.setAttribute("data-ready","true"),this.updateAnchorPosition(),i_(this,tM,"a",t2)===es.LOCAL&&i_(this,tM,"m",tQ).call(this))}}),"f"),is(this,()=>!!this.dialog,()=>{i_(this,tI,"f").observe(this.dialog),this.dialog.addEventListener("close",this,{signal:t}),"true"===this.getAttribute("data-open-on-load")&&this.show()}),i_(this,tM,"a",t2)===es.LOCAL&&is(this,()=>this.items.length>0,()=>{i_(this,tM,"m",tQ).call(this),i_(this,tM,"m",et).call(this)})}disconnectedCallback(){i_(this,tP,"f").abort()}handleEvent(t){if(t.target===this.filterInputTextField){i_(this,tM,"m",tJ).call(this,t);return}if(t.target===this.remoteInput){i_(this,tM,"m",tU).call(this,t);return}let e=this.invokerElement?.contains(t.target),i=this.closeButton?.contains(t.target),n=i_(this,tM,"m",tB).call(this,t);if(e&&"mousedown"===t.type||"mousedown"===t.type&&t.target instanceof HTMLInputElement)return;if("mousedown"===t.type){t.preventDefault();return}if(e&&n){i_(this,tM,"m",t4).call(this,t);return}if(i&&n)return;if(t.target===this.dialog&&"close"===t.type){if(this.dialog.removeAttribute("data-ready"),this.invokerElement?.setAttribute("aria-expanded","false"),this.filterInputTextField){let t=this.filterInputTextField.value.length>0;this.filterInputTextField.value="",t&&this.filterInputTextField.dispatchEvent(new Event("input"))}this.dispatchEvent(new CustomEvent("panelClosed",{detail:{panel:this},bubbles:!0}));return}let r=t.target.closest(iz)?.parentElement;if(null!=r&&n){if(i_(this,tM,"m",tV).call(this,t))return;let e=r.closest("[data-show-dialog-id]");if(e){let i=this.ownerDocument.getElementById(e.getAttribute("data-show-dialog-id")||"");if(i&&this.contains(e)&&this.contains(i)){i_(this,tM,"m",t5).call(this,t,i);return}}i_(this,tM,"m",t_).call(this,t)&&(t.preventDefault(),i_(this,tM,"m",er).call(this,r)?.click()),i_(this,tM,"m",t6).call(this,r);return}if("click"===t.type){let e=this.dialog.getBoundingClientRect();e.top<=t.clientY&&t.clientY<=e.top+e.height&&e.left<=t.clientX&&t.clientX<=e.left+e.width||this.hide()}t.target instanceof ea.T&&i_(this,tM,"m",tY).call(this,t)}show(){this.updateAnchorPosition(),this.dialog.showModal(),this.invokerElement?.setAttribute("aria-expanded","true");let t=new CustomEvent("dialog:open",{detail:{dialog:this.dialog}});this.dispatchEvent(t)}hide(){this.dialog.close()}get visibleItems(){return Array.from(this.querySelectorAll(iz)).map(t=>t.parentElement)}get items(){return Array.from(this.querySelectorAll(iN)).map(t=>t.parentElement)}get focusableItem(){for(let t of this.items){let e=i_(this,tM,"m",er).call(this,t);if(e&&"0"===e.getAttribute("tabindex"))return e}}getItemById(t){return this.querySelector(`li[data-item-id="${t}"`)}isItemDisabled(t){return!!t&&t.classList.contains("ActionListItem--disabled")}disableItem(t){t&&(t.classList.add("ActionListItem--disabled"),i_(this,tM,"m",er).call(this,t).setAttribute("aria-disabled","true"))}enableItem(t){t&&(t.classList.remove("ActionListItem--disabled"),i_(this,tM,"m",er).call(this,t).removeAttribute("aria-disabled"))}isItemHidden(t){return!!t&&t.hasAttribute("hidden")}isItemChecked(t){return!!t&&"true"===i_(this,tM,"m",er).call(this,t).getAttribute(this.ariaSelectionType)}checkItem(t){t&&("single"===this.selectVariant||"multiple"===this.selectVariant)&&!this.isItemChecked(t)&&i_(this,tM,"m",t6).call(this,t)}uncheckItem(t){t&&("single"===this.selectVariant||"multiple"===this.selectVariant)&&this.isItemChecked(t)&&i_(this,tM,"m",t6).call(this,t)}};tI=new WeakMap,tP=new WeakMap,tO=new WeakMap,tD=new WeakMap,tq=new WeakMap,tR=new WeakMap,tj=new WeakMap,tH=new WeakMap,tM=new WeakSet,tF=function(){let{signal:t}=i_(this,tP,"f");for(let e of this.querySelectorAll(i$.join(",")))e.addEventListener("click",i_(this,tM,"m",tV).bind(this),{signal:t}),e.addEventListener("keydown",i_(this,tM,"m",tV).bind(this),{signal:t})},tW=function(){let t=!1;if("single"===this.selectVariant)for(let e of this.items){let i=i_(this,tM,"m",er).call(this,e);i&&(!this.isItemHidden(e)&&this.isItemChecked(e)&&!t?(i.setAttribute("tabindex","0"),t=!0):i.setAttribute("tabindex","-1"),e.removeAttribute("tabindex"))}else for(let t of this.items){let e=i_(this,tM,"m",er).call(this,t);e&&(e.setAttribute("tabindex","-1"),t.removeAttribute("tabindex"))}!t&&i_(this,tM,"a",ee)&&i_(this,tM,"m",er).call(this,i_(this,tM,"a",ee))?.setAttribute("tabindex","0")},tV=function(t){if(!i_(this,tM,"m",tB).call(this,t))return!1;let e=t.target.closest(iz);return!!e&&!!e.getAttribute("aria-disabled")&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!0)},t_=function(t){return t.target instanceof HTMLAnchorElement&&t instanceof KeyboardEvent&&"keydown"===t.type&&!(t.ctrlKey||t.altKey||t.metaKey||t.shiftKey)&&" "===t.key},tB=function(t){return t instanceof MouseEvent&&"click"===t.type||i_(this,tM,"m",t_).call(this,t)},t$=function(){for(let t of this.items){let e=i_(this,tM,"m",er).call(this,t);if(!e)continue;let i=e.getAttribute("data-value");i&&i_(this,tq,"f").has(i)&&e.setAttribute(this.ariaSelectionType,"true")}i_(this,tM,"m",et).call(this)},tN=function(t){let e=i_(this,tM,"m",er).call(this,t);if(!e)return;let i=e.getAttribute("data-value");i&&i_(this,tq,"f").set(i,{value:i,label:e.querySelector(".ActionListItem-label")?.textContent?.trim(),inputName:e.getAttribute("data-input-name")})},tz=function(t){let e=i_(this,tM,"m",er).call(this,t);if(!e)return;let i=e.getAttribute("data-value");i&&i_(this,tq,"f").delete(i)},tK=function(){i_(this,tM,"a",t9)&&(i_(this,tR,"f")&&clearTimeout(i_(this,tR,"f")),i_(this,tj,"f")&&clearTimeout(i_(this,tj,"f")),iB(this,tj,setTimeout(()=>{this.liveRegion.announce("Loading")},2e3),"f"),iB(this,tR,setTimeout(()=>{i_(this,tM,"a",t9)?.showLeadingSpinner()},1e3),"f"))},tY=function(t){switch(t.type){case"include-fragment-replaced":i_(this,tM,"m",tQ).call(this);break;case"loadstart":i_(this,tM,"m",tG).call(this,!1);break;case"loadend":i_(this,tM,"a",t9)?.hideLeadingSpinner(),this.dispatchEvent(new CustomEvent("loadend"));break;case"error":{i_(this,tM,"m",tG).call(this,!0);let t=this.fragmentErrorElement;if(t&&!t.hasAttribute("hidden")){this.liveRegion.announceFromElement(t,{politeness:"assertive"});return}}}},tG=function(t){for(let e of this.includeFragment.querySelectorAll("[data-show-on-error]"))e instanceof HTMLElement&&(e.hidden=!t);for(let e of this.includeFragment.querySelectorAll("[data-hide-on-error]"))e instanceof HTMLElement&&(e.hidden=t)},tU=function(t){switch(t.type){case"remote-input-success":i_(this,tM,"m",t1).call(this),i_(this,tM,"m",tQ).call(this),i_(this,tM,"m",t$).call(this);break;case"remote-input-error":this.bodySpinner?.setAttribute("hidden",""),this.includeFragment||0===this.visibleItems.length?i_(this,tM,"m",t0).call(this,eo.BODY):i_(this,tM,"m",t0).call(this,eo.BANNER);break;case"loadstart":if(!i_(this,tM,"m",t7).call(this)){if(i_(this,tM,"m",t1).call(this),this.bodySpinner?.removeAttribute("hidden"),this.bodySpinner)break;i_(this,tM,"m",tK).call(this)}break;case"loadend":i_(this,tM,"a",t9)?.hideLeadingSpinner(),i_(this,tj,"f")&&clearTimeout(i_(this,tj,"f")),i_(this,tR,"f")&&clearTimeout(i_(this,tR,"f")),this.dispatchEvent(new CustomEvent("loadend"))}},tX=function(t,e){return(t.getAttribute("data-filter-string")||t.textContent||"").toLowerCase().indexOf(e.toLowerCase())>-1},tJ=function(t){if("keydown"===t.type){let e=t.key;if("Enter"===e){let t=this.visibleItems[0];if(t){let e=i_(this,tM,"m",er).call(this,t);e&&e.click()}}else if("ArrowDown"===e){let e=this.focusableItem||i_(this,tM,"m",er).call(this,this.visibleItems[0]);e&&(e.focus(),t.preventDefault())}else if("Home"===e){let e=this.visibleItems[0];if(e){let i=i_(this,tM,"m",er).call(this,e);i&&i.focus(),t.preventDefault()}}else if("End"===e&&this.visibleItems.length>0){let e=this.visibleItems[this.visibleItems.length-1],i=i_(this,tM,"m",er).call(this,e);i&&i.focus(),t.preventDefault()}}if("input"===t.type&&(this.bodySpinner||i_(this,tM,"m",t7).call(this)||i_(this,tM,"m",tK).call(this),i_(this,tM,"a",t2)===es.LOCAL||i_(this,tM,"a",t2)===es.EVENTUALLY_LOCAL)){if(this.includeFragment){this.includeFragment.refetch();return}i_(this,tM,"m",tQ).call(this)}},tQ=function(){if(!this.list)return;let t=!1;if(i_(this,tM,"m",t7).call(this)){let e=this.filterInputTextField?.value??"",i=this.filterFn||i_(this,tM,"m",tX);for(let n of this.items)i(n,e)?(i_(this,tM,"m",en).call(this,n),t=!0):i_(this,tM,"m",ei).call(this,n)}else t=this.items.length>0;for(let t of(i_(this,tM,"m",tW).call(this),i_(this,tM,"m",t3).call(this),this.items)){let e=i_(this,tM,"m",er).call(this,t);if(!e)continue;let i=e.getAttribute("data-value");i_(this,tH,"f")?i&&!i_(this,tq,"f").has(i)&&e.setAttribute(this.ariaSelectionType,"false"):i&&!i_(this,tq,"f").has(i)&&this.isItemChecked(t)&&i_(this,tM,"m",tN).call(this,t)}if(iB(this,tH,!0,"f"),this.noResults){if(i_(this,tM,"m",tZ).call(this)){this.noResults.setAttribute("hidden","");return}t?(this.noResults.setAttribute("hidden",""),this.list?.querySelector(".ActionListWrap")?.removeAttribute("hidden")):(this.list?.querySelector(".ActionListWrap")?.setAttribute("hidden",""),this.noResults.removeAttribute("hidden"))}},tZ=function(){return!!this.fragmentErrorElement&&!this.fragmentErrorElement.hasAttribute("hidden")||!!this.bannerErrorElement&&!this.bannerErrorElement.hasAttribute("hidden")},t0=function(t){let e=this.fragmentErrorElement;if(t===eo.BODY&&this.fragmentErrorElement?(this.fragmentErrorElement.removeAttribute("hidden"),this.bannerErrorElement.setAttribute("hidden","")):(e=this.bannerErrorElement,this.bannerErrorElement?.removeAttribute("hidden"),this.fragmentErrorElement?.setAttribute("hidden","")),e&&!e.hasAttribute("hidden")){this.liveRegion.announceFromElement(e,{politeness:"assertive"});return}},t1=function(){this.fragmentErrorElement?.setAttribute("hidden",""),this.bannerErrorElement.setAttribute("hidden","")},t3=function(){if(this.open&&this.list){let t=this.visibleItems;if(t.length>0)this.liveRegion.announce(`${t.length} result${1===t.length?"":"s"} tab for results`);else{let t=this.noResults;t&&this.liveRegion.announceFromElement(t)}}},t2=function(){if(!this.list)return es.REMOTE;switch(this.list.getAttribute("data-fetch-strategy")){case"local":return es.LOCAL;case"eventually_local":return es.EVENTUALLY_LOCAL;default:return es.REMOTE}},t9=function(){return this.filterInputTextField?.closest("primer-text-field")},t7=function(){return i_(this,tM,"a",t2)===es.LOCAL||i_(this,tM,"a",t2)===es.EVENTUALLY_LOCAL},t4=function(t){t.preventDefault(),t.stopPropagation(),this.open?this.hide():this.show()},t5=function(t,e){this.querySelector(".ActionListWrap").style.display="none";let i=new AbortController,{signal:n}=i,r=()=>{i.abort(),this.querySelector(".ActionListWrap").style.display="",this.open&&this.hide();let t=this.ownerDocument.activeElement,e=this.ownerDocument.activeElement===this.ownerDocument.body,n=this.contains(t);(e||n)&&setTimeout(()=>this.invokerElement?.focus(),0)};e.addEventListener("close",r,{signal:n}),e.addEventListener("cancel",r,{signal:n})},t6=function(t){if("multiple"!==this.selectVariant&&setTimeout(()=>{this.open&&this.hide()}),"multiple"!==this.selectVariant&&"single"!==this.selectVariant)return;let e=this.isItemChecked(t),i=!e;if(!this.dispatchEvent(new CustomEvent("beforeItemActivated",{bubbles:!0,cancelable:!0,detail:{item:t,checked:i,value:i_(this,tM,"m",er).call(this,t)?.getAttribute("data-value")}})))return;let n=i_(this,tM,"m",er).call(this,t);if("single"===this.selectVariant){if(n?.getAttribute("href"))return;if(!e){for(let t of this.items)i_(this,tM,"m",er).call(this,t)?.setAttribute(this.ariaSelectionType,"false");i_(this,tq,"f").clear(),i&&(i_(this,tM,"m",tN).call(this,t),n?.setAttribute(this.ariaSelectionType,"true")),i_(this,tM,"m",t8).call(this)}}else n?.setAttribute(this.ariaSelectionType,`${i}`),i?i_(this,tM,"m",tN).call(this,t):i_(this,tM,"m",tz).call(this,t);i_(this,tM,"m",et).call(this),i_(this,tM,"m",tW).call(this),this.dispatchEvent(new CustomEvent("itemActivated",{bubbles:!0,detail:{item:t,checked:i,value:i_(this,tM,"m",er).call(this,t)?.getAttribute("data-value")}}))},t8=function(){if(!this.dynamicLabel)return;let t=this.invokerLabel;if(!t)return;iB(this,tO,i_(this,tO,"f")||t.textContent||"","f");let e=this.querySelector(`[${this.ariaSelectionType}=true] .ActionListItem-label`)?.textContent||i_(this,tO,"f");if(e){let i=document.createElement("span");i.classList.add("color-fg-muted");let n=document.createElement("span");i.textContent=`${this.dynamicLabelPrefix} `,n.textContent=e,t.replaceChildren(i,n),this.dynamicAriaLabelPrefix&&this.invokerElement?.setAttribute("aria-label",`${this.dynamicAriaLabelPrefix} ${e.trim()}`)}else t.textContent=i_(this,tO,"f")},et=function(){if("single"===this.selectVariant){let t=this.querySelector("[data-list-inputs=true] input");if(!t)return;let e=this.selectedItems[0];e?(t.value=(e.value||e.label||"").trim(),e.inputName&&(t.name=e.inputName),t.removeAttribute("disabled")):t.setAttribute("disabled","disabled")}else if("none"!==this.selectVariant){let t=this.querySelector("[data-list-inputs=true]");if(!t)return;let e=t.querySelectorAll("input");for(let i of(e.length>0&&iB(this,tD,i_(this,tD,"f")||e[0].name,"f"),this.selectedItems)){let e=document.createElement("input");e.setAttribute("data-list-input","true"),e.type="hidden",e.autocomplete="off",e.name=i.inputName||i_(this,tD,"f"),e.value=(i.value||i.label||"").trim(),t.append(e)}for(let t of e)t.remove()}},ee=function(){return this.querySelector(iz)?.parentElement||null},ei=function(t){t&&t.setAttribute("hidden","hidden")},en=function(t){t&&t.removeAttribute("hidden")},er=function(t){return t.querySelector(".ActionListContent")},iV([el.aC],iY.prototype,"includeFragment",void 0),iV([el.aC],iY.prototype,"dialog",void 0),iV([el.aC],iY.prototype,"filterInputTextField",void 0),iV([el.aC],iY.prototype,"remoteInput",void 0),iV([el.aC],iY.prototype,"list",void 0),iV([el.aC],iY.prototype,"noResults",void 0),iV([el.aC],iY.prototype,"fragmentErrorElement",void 0),iV([el.aC],iY.prototype,"bannerErrorElement",void 0),iV([el.aC],iY.prototype,"bodySpinner",void 0),iV([el.aC],iY.prototype,"liveRegion",void 0),iY=iV([el.p_],iY),window.customElements.get("select-panel")||(window.SelectPanelElement=iY,window.customElements.define("select-panel",iY))},97797:(t,e,i)=>{function n(){if(!(this instanceof n))return new n;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}i.d(e,{h:()=>x,A:()=>T,on:()=>C});var r,s=window.document.documentElement,o=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector;n.prototype.matchesSelector=function(t,e){return o.call(t,e)},n.prototype.querySelectorAll=function(t,e){return e.querySelectorAll(t)},n.prototype.indexes=[];var a=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;n.prototype.indexes.push({name:"ID",selector:function(t){var e;if(e=t.match(a))return e[0].slice(1)},element:function(t){if(t.id)return[t.id]}});var l=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;n.prototype.indexes.push({name:"CLASS",selector:function(t){var e;if(e=t.match(l))return e[0].slice(1)},element:function(t){var e=t.className;if(e){if("string"==typeof e)return e.split(/\s/);if("object"==typeof e&&"baseVal"in e)return e.baseVal.split(/\s/)}}});var c=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;n.prototype.indexes.push({name:"TAG",selector:function(t){var e;if(e=t.match(c))return e[0].toUpperCase()},element:function(t){return[t.nodeName.toUpperCase()]}}),n.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},r="function"==typeof window.Map?window.Map:function(){function t(){this.map={}}return t.prototype.get=function(t){return this.map[t+" "]},t.prototype.set=function(t,e){this.map[t+" "]=e},t}();var h=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function d(t,e){var i,n,r,s,o,a,l=(t=t.slice(0).concat(t.default)).length,c=e,d=[];do if(h.exec(""),(r=h.exec(c))&&(c=r[3],r[2]||!c)){for(i=0;i3&&void 0!==arguments[3]?arguments[3]:{},s=!!r.capture,o=s?m:f,a=o[t];a||(a=new n,o[t]=a,document.addEventListener(t,k,s)),a.add(e,i)}function T(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=!!n.capture,s=r?m:f,o=s[t];o&&(o.remove(e,i),o.size||(delete s[t],document.removeEventListener(t,k,r)))}function x(t,e,i){return t.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:i}))}},20761:(t,e,i)=>{var n,r,s=i(70170),o=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},a=function(t,e,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(t,i):r?r.value=i:e.set(t,i),i};!function(t){t.GET="GET",t.POST="POST"}(r||(r={}));let l=new WeakMap;let AutoCheckEvent=class AutoCheckEvent extends Event{constructor(t){super(`auto-check-${t}`,{bubbles:!0}),this.phase=t}get detail(){return this}};let AutoCheckValidationEvent=class AutoCheckValidationEvent extends AutoCheckEvent{constructor(t,e=""){super(t),this.phase=t,this.message=e,this.setValidity=t=>{this.message=t}}};let AutoCheckCompleteEvent=class AutoCheckCompleteEvent extends AutoCheckEvent{constructor(){super("complete")}};let AutoCheckSuccessEvent=class AutoCheckSuccessEvent extends AutoCheckEvent{constructor(t){super("success"),this.response=t}};let AutoCheckStartEvent=class AutoCheckStartEvent extends AutoCheckValidationEvent{constructor(){super("start","Verifying\u2026")}};let AutoCheckErrorEvent=class AutoCheckErrorEvent extends AutoCheckValidationEvent{constructor(t){super("error","Validation failed"),this.response=t}};let AutoCheckSendEvent=class AutoCheckSendEvent extends AutoCheckEvent{constructor(t){super("send"),this.body=t}};let auto_check_element_AutoCheckElement=class auto_check_element_AutoCheckElement extends HTMLElement{constructor(){super(...arguments),n.set(this,null)}static define(t="auto-check",e=customElements){return e.define(t,this),this}get onloadend(){return o(this,n,"f")}set onloadend(t){o(this,n,"f")&&this.removeEventListener("loadend",o(this,n,"f")),a(this,n,"object"==typeof t||"function"==typeof t?t:null,"f"),"function"==typeof t&&this.addEventListener("loadend",t)}connectedCallback(){let t=this.input;if(!t)return;let e=(0,s.s)(u.bind(null,this),300);l.set(this,{check:e,controller:null});let i=c.bind(null,e);t.addEventListener("blur",i),t.addEventListener("input",i),t.autocomplete="off",t.spellcheck=!1}disconnectedCallback(){let t=this.input;if(!t)return;let e=l.get(this);e&&(l.delete(this),t.removeEventListener("input",h),t.removeEventListener("input",e.check),t.setCustomValidity(""))}attributeChangedCallback(t){if("required"===t){let t=this.input;t&&(t.required=this.required)}}static get observedAttributes(){return["required"]}get input(){return this.querySelector("input")}get src(){let t=this.getAttribute("src");if(!t)return"";let e=this.ownerDocument.createElement("a");return e.href=t,e.href}set src(t){this.setAttribute("src",t)}get csrf(){let t=this.querySelector("[data-csrf]");return this.getAttribute("csrf")||t instanceof HTMLInputElement&&t.value||""}set csrf(t){this.setAttribute("csrf",t)}get required(){return this.hasAttribute("required")}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required")}get csrfField(){return this.getAttribute("csrf-field")||"authenticity_token"}set csrfField(t){this.setAttribute("csrf-field",t)}get httpMethod(){return r[this.getAttribute("http-method")]||"POST"}set validateOnKeystroke(t){t?this.setAttribute("validate-on-keystroke",""):this.removeAttribute("validate-on-keystroke")}get validateOnKeystroke(){let t=this.getAttribute("validate-on-keystroke");return"true"===t||""===t}get onlyValidateOnBlur(){let t=this.getAttribute("only-validate-on-blur");return"true"===t||""===t}};function c(t,e){let i=e.currentTarget;if(!(i instanceof HTMLInputElement))return;let n=i.closest("auto-check");n instanceof auto_check_element_AutoCheckElement&&("input"===e.type&&n.setAttribute("dirty",""),0!==i.value.length&&("blur"!==e.type&&!n.onlyValidateOnBlur||"blur"===e.type&&n.onlyValidateOnBlur&&!n.validateOnKeystroke&&n.hasAttribute("dirty")||"input"===e.type&&n.onlyValidateOnBlur&&n.validateOnKeystroke)&&(h(e),t()))}function h(t){let e=t.currentTarget;if(!(e instanceof HTMLInputElement))return;let i=e.closest("auto-check");if(!(i instanceof auto_check_element_AutoCheckElement))return;let n=i.src,r=i.csrf,s=i.httpMethod,o=l.get(i);if(!n||"POST"===s&&!r||!o)return;let a=new AutoCheckStartEvent;e.dispatchEvent(a),i.required&&e.setCustomValidity(a.message)}async function d(t,e,i){"GET"===i.method&&delete i.body;try{let n=await fetch(e,i);return t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("loadend")),n}catch(e){throw"AbortError"!==e.name&&(t.dispatchEvent(new Event("error")),t.dispatchEvent(new Event("loadend"))),e}}async function u(t){let e=t.input;if(!e)return;let i=t.csrfField,n=t.src,r=t.csrf,s=l.get(t),o=t.httpMethod;if(!n||"POST"===o&&!r||!s||!e.value.trim()){t.required&&e.setCustomValidity("");return}let a=new FormData,c=new URL(n,window.location.origin);"POST"===o?(a.append(i,r),a.append("value",e.value)):c.search=new URLSearchParams({value:e.value}).toString(),e.dispatchEvent(new AutoCheckSendEvent(a)),s.controller?s.controller.abort():t.dispatchEvent(new Event("loadstart")),s.controller="AbortController"in window?new AbortController:{signal:null,abort(){}},t.removeAttribute("dirty");try{let i=await d(t,c.toString(),{credentials:"same-origin",signal:s.controller.signal,method:o,body:a});if(i.ok)t.required&&e.setCustomValidity(""),t.onlyValidateOnBlur&&(t.validateOnKeystroke=!1),e.dispatchEvent(new AutoCheckSuccessEvent(i.clone()));else{t.onlyValidateOnBlur&&(t.validateOnKeystroke=!0);let n=new AutoCheckErrorEvent(i.clone());e.dispatchEvent(n),t.required&&e.setCustomValidity(n.message)}s.controller=null,e.dispatchEvent(new AutoCheckCompleteEvent)}catch(t){"AbortError"!==t.name&&(s.controller=null,e.dispatchEvent(new AutoCheckCompleteEvent))}}n=new WeakMap;let f="undefined"!=typeof globalThis?globalThis:window;try{f.AutoCheckElement=auto_check_element_AutoCheckElement.define()}catch(t){if(!(f.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name)&&!(t instanceof ReferenceError))throw t}},14940:(t,e,i)=>{function n(t){if("clipboard"in navigator)return navigator.clipboard.writeText(t.textContent||"");let e=getSelection();if(null==e)return Promise.reject(Error());e.removeAllRanges();let i=document.createRange();return i.selectNodeContents(t),e.addRange(i),document.execCommand("copy"),e.removeAllRanges(),Promise.resolve()}function r(t){if("clipboard"in navigator)return navigator.clipboard.writeText(t);let e=document.body;if(!e)return Promise.reject(Error());let i=function(t){let e=document.createElement("pre");return e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="5px",e.textContent=t,e}(t);return e.appendChild(i),n(i),e.removeChild(i),Promise.resolve()}async function s(t){let e=t.getAttribute("for"),i=t.getAttribute("value");function s(){t.dispatchEvent(new CustomEvent("clipboard-copy",{bubbles:!0}))}if("true"!==t.getAttribute("aria-disabled")){if(i)await r(i),s();else if(e){let i="getRootNode"in Element.prototype?t.getRootNode():t.ownerDocument;if(!(i instanceof Document||"ShadowRoot"in window&&i instanceof ShadowRoot))return;let o=i.getElementById(e);o&&(await (o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement?r(o.value):o instanceof HTMLAnchorElement&&o.hasAttribute("href")?r(o.href):n(o)),s())}}}function o(t){let e=t.currentTarget;e instanceof HTMLElement&&s(e)}function a(t){if(" "===t.key||"Enter"===t.key){let e=t.currentTarget;e instanceof HTMLElement&&(t.preventDefault(),s(e))}}function l(t){t.currentTarget.addEventListener("keydown",a)}function c(t){t.currentTarget.removeEventListener("keydown",a)}i.d(e,{S:()=>clipboard_copy_element_ClipboardCopyElement});let clipboard_copy_element_ClipboardCopyElement=class clipboard_copy_element_ClipboardCopyElement extends HTMLElement{static define(t="clipboard-copy",e=customElements){return e.define(t,this),this}constructor(){super(),this.addEventListener("click",o),this.addEventListener("focus",l),this.addEventListener("blur",c)}connectedCallback(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button")}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}};let h="undefined"!=typeof globalThis?globalThis:window;try{h.ClipboardCopyElement=clipboard_copy_element_ClipboardCopyElement.define()}catch(t){if(!(h.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name)&&!(t instanceof ReferenceError))throw t}},35908:(t,e,i)=>{i.d(e,{A:()=>Combobox});let Combobox=class Combobox{constructor(t,e,{tabInsertsSuggestions:i,firstOptionSelectionMode:n,scrollIntoViewOptions:s}={}){this.input=t,this.list=e,this.tabInsertsSuggestions=null==i||i,this.firstOptionSelectionMode=null!=n?n:"none",this.scrollIntoViewOptions=null!=s?s:{block:"nearest",inline:"nearest"},this.isComposing=!1,e.id||(e.id=`combobox-${Math.random().toString().slice(2,6)}`),this.ctrlBindings=!!navigator.userAgent.match(/Macintosh/),this.keyboardEventHandler=t=>(function(t,e){if(!t.shiftKey&&!t.metaKey&&!t.altKey&&(e.ctrlBindings||!t.ctrlKey)&&!e.isComposing)switch(t.key){case"Enter":r(e.input,e.list)&&t.preventDefault();break;case"Tab":e.tabInsertsSuggestions&&r(e.input,e.list)&&t.preventDefault();break;case"Escape":e.clearSelection();break;case"ArrowDown":e.navigate(1),t.preventDefault();break;case"ArrowUp":e.navigate(-1),t.preventDefault();break;case"n":e.ctrlBindings&&t.ctrlKey&&(e.navigate(1),t.preventDefault());break;case"p":e.ctrlBindings&&t.ctrlKey&&(e.navigate(-1),t.preventDefault());break;default:if(t.ctrlKey)break;e.resetSelection()}})(t,this),this.compositionEventHandler=t=>(function(t,e){e.isComposing="compositionstart"===t.type,document.getElementById(e.input.getAttribute("aria-controls")||"")&&e.clearSelection()})(t,this),this.inputHandler=this.clearSelection.bind(this),t.setAttribute("role","combobox"),t.setAttribute("aria-controls",e.id),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-haspopup","listbox")}destroy(){this.clearSelection(),this.stop(),this.input.removeAttribute("role"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-haspopup")}start(){this.input.setAttribute("aria-expanded","true"),this.input.addEventListener("compositionstart",this.compositionEventHandler),this.input.addEventListener("compositionend",this.compositionEventHandler),this.input.addEventListener("input",this.inputHandler),this.input.addEventListener("keydown",this.keyboardEventHandler),this.list.addEventListener("click",n),this.resetSelection()}stop(){this.clearSelection(),this.input.setAttribute("aria-expanded","false"),this.input.removeEventListener("compositionstart",this.compositionEventHandler),this.input.removeEventListener("compositionend",this.compositionEventHandler),this.input.removeEventListener("input",this.inputHandler),this.input.removeEventListener("keydown",this.keyboardEventHandler),this.list.removeEventListener("click",n)}indicateDefaultOption(){var t;"active"===this.firstOptionSelectionMode?null===(t=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(s)[0])||void 0===t||t.setAttribute("data-combobox-option-default","true"):"selected"===this.firstOptionSelectionMode&&this.navigate(1)}navigate(t=1){let e=Array.from(this.list.querySelectorAll('[aria-selected="true"]')).filter(s)[0],i=Array.from(this.list.querySelectorAll('[role="option"]')).filter(s),n=i.indexOf(e);if(n===i.length-1&&1===t||0===n&&-1===t){this.clearSelection(),this.input.focus();return}let r=1===t?0:i.length-1;if(e&&n>=0){let e=n+t;e>=0&&e0||t.offsetHeight>0)}},60612:()=>{let DetailsMenuElement=class DetailsMenuElement extends HTMLElement{get preload(){return this.hasAttribute("preload")}set preload(t){t?this.setAttribute("preload",""):this.removeAttribute("preload")}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}connectedCallback(){let l;this.hasAttribute("role")||this.setAttribute("role","menu");let u=this.parentElement;if(!u)return;let f=u.querySelector("summary");f&&(f.setAttribute("aria-haspopup","menu"),f.hasAttribute("role")||f.setAttribute("role","button"));let m=[i(u,"compositionstart",t=>d(this,t)),i(u,"compositionend",t=>d(this,t)),i(u,"click",t=>a(u,t)),i(u,"change",t=>a(u,t)),i(u,"keydown",e=>(function(e,i,n){if(!(n instanceof KeyboardEvent)||e.querySelector("details[open]"))return;let r=t.get(i);if(!r||r.isComposing)return;let a=n.target instanceof Element&&"SUMMARY"===n.target.tagName;switch(n.key){case"Escape":e.hasAttribute("open")&&(h(e),n.preventDefault(),n.stopPropagation());break;case"ArrowDown":{a&&!e.hasAttribute("open")&&e.setAttribute("open","");let t=s(e,!0);t&&t.focus(),n.preventDefault()}break;case"ArrowUp":{a&&!e.hasAttribute("open")&&e.setAttribute("open","");let t=s(e,!1);t&&t.focus(),n.preventDefault()}break;case"n":if(o&&n.ctrlKey){let t=s(e,!0);t&&t.focus(),n.preventDefault()}break;case"p":if(o&&n.ctrlKey){let t=s(e,!1);t&&t.focus(),n.preventDefault()}break;case" ":case"Enter":{let t=document.activeElement;t instanceof HTMLElement&&c(t)&&t.closest("details")===e&&(n.preventDefault(),n.stopPropagation(),t.click())}}})(u,this,e)),i(u,"toggle",()=>n(u,this),{once:!0}),i(u,"toggle",()=>(function(t){if(t.hasAttribute("open"))for(let e of document.querySelectorAll("details[open] > details-menu")){let i=e.closest("details");i&&i!==t&&!i.contains(t)&&i.removeAttribute("open")}})(u)),this.preload?i(u,"mouseover",()=>n(u,this),{once:!0}):e,...(l=!1,[i(u,"mousedown",()=>l=!0),i(u,"keydown",()=>l=!1),i(u,"toggle",()=>{u.hasAttribute("open")&&(r(u)||l||function(t){let e=document.activeElement;if(e&&c(e)&&t.contains(e))return;let i=s(t,!0);i&&i.focus()}(u))})])];t.set(this,{subscriptions:m,loaded:!1,isComposing:!1})}disconnectedCallback(){let e=t.get(this);if(e)for(let i of(t.delete(this),e.subscriptions))i.unsubscribe()}};let t=new WeakMap,e={unsubscribe(){}};function i(t,e,n,r=!1){return t.addEventListener(e,n,r),{unsubscribe:()=>{t.removeEventListener(e,n,r)}}}function n(e,i){let n=i.getAttribute("src");if(!n)return;let s=t.get(i);if(!s||s.loaded)return;s.loaded=!0;let o=i.querySelector("include-fragment");o&&!o.hasAttribute("src")&&(o.addEventListener("loadend",()=>r(e)),o.setAttribute("src",n))}function r(t){if(!t.hasAttribute("open"))return!1;let e=t.querySelector("details-menu [autofocus]");return!!e&&(e.focus(),!0)}function s(t,e){let i=Array.from(t.querySelectorAll('[role^="menuitem"]:not([hidden]):not([disabled])')),n=document.activeElement,r=n instanceof HTMLElement?i.indexOf(n):-1,s=e?i[r+1]:i[r-1],o=e?i[0]:i[i.length-1];return s||o}let o=navigator.userAgent.match(/Macintosh/);function a(t,e){let i=e.target;if(i instanceof Element&&i.closest("details")===t){if("click"===e.type){let e=i.closest('[role="menuitem"], [role="menuitemradio"]');if(!e)return;let n=e.querySelector("input");if("LABEL"===e.tagName&&i===n)return;"LABEL"===e.tagName&&n&&!n.checked||l(e,t)}else if("change"===e.type){let e=i.closest('[role="menuitemradio"], [role="menuitemcheckbox"]');e&&l(e,t)}}}function l(t,e){if(t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled"))return;let i=t.closest("details-menu");i&&i.dispatchEvent(new CustomEvent("details-menu-select",{cancelable:!0,detail:{relatedTarget:t}}))&&(function(t,e){let i=e.querySelector("[data-menu-button]");if(!i)return;let n=function(t){if(!t)return null;let e=t.hasAttribute("data-menu-button-text")?t:t.querySelector("[data-menu-button-text]");return e?e.getAttribute("data-menu-button-text")||e.textContent:null}(t);if(n)i.textContent=n;else{let e=function(t){if(!t)return null;let e=t.hasAttribute("data-menu-button-contents")?t:t.querySelector("[data-menu-button-contents]");return e?e.innerHTML:null}(t);e&&(i.innerHTML=e)}}(t,e),function(t,e){for(let i of e.querySelectorAll('[role="menuitemradio"], [role="menuitemcheckbox"]')){let e=i.querySelector('input[type="radio"], input[type="checkbox"]'),n=(i===t).toString();e instanceof HTMLInputElement&&(n=e.indeterminate?"mixed":e.checked.toString()),i.setAttribute("aria-checked",n)}}(t,e),"menuitemcheckbox"!==t.getAttribute("role")&&h(e),i.dispatchEvent(new CustomEvent("details-menu-selected",{detail:{relatedTarget:t}})))}function c(t){let e=t.getAttribute("role");return"menuitem"===e||"menuitemcheckbox"===e||"menuitemradio"===e}function h(t){if(!t.hasAttribute("open"))return;t.removeAttribute("open");let e=t.querySelector("summary");e&&e.focus()}function d(e,i){let n=t.get(e);n&&(n.isComposing="compositionstart"===i.type)}window.customElements.get("details-menu")||(window.DetailsMenuElement=DetailsMenuElement,window.customElements.define("details-menu",DetailsMenuElement))},90204:(t,e,i)=>{i.d(e,{R3:()=>s});let n=new Set(["\u{1F44B}","\u{1F91A}","\u{1F590}\uFE0F","\u270B","\u{1F596}","\u{1F44C}","\u{1F90F}","\u270C\uFE0F","\u{1F91E}","\u{1F91F}","\u{1F918}","\u{1F919}","\u{1F448}","\u{1F449}","\u{1F446}","\u{1F595}","\u{1F447}","\u261D\uFE0F","\u{1F44D}","\u{1F44E}","\u270A","\u{1F44A}","\u{1F91B}","\u{1F91C}","\u{1F44F}","\u{1F64C}","\u{1F450}","\u{1F932}","\u{1F64F}","\u270D\uFE0F","\u{1F485}","\u{1F933}","\u{1F4AA}","\u{1F9B5}","\u{1F9B6}","\u{1F442}","\u{1F9BB}","\u{1F443}","\u{1F476}","\u{1F9D2}","\u{1F466}","\u{1F467}","\u{1F9D1}","\u{1F471}","\u{1F468}","\u{1F9D4}","\u{1F471}\u200D\u2642\uFE0F","\u{1F468}\u200D\u{1F9B0}","\u{1F468}\u200D\u{1F9B1}","\u{1F468}\u200D\u{1F9B3}","\u{1F468}\u200D\u{1F9B2}","\u{1F469}","\u{1F471}\u200D\u2640\uFE0F","\u{1F469}\u200D\u{1F9B0}","\u{1F469}\u200D\u{1F9B1}","\u{1F469}\u200D\u{1F9B3}","\u{1F469}\u200D\u{1F9B2}","\u{1F9D3}","\u{1F474}","\u{1F475}","\u{1F64D}","\u{1F64D}\u200D\u2642\uFE0F","\u{1F64D}\u200D\u2640\uFE0F","\u{1F64E}","\u{1F64E}\u200D\u2642\uFE0F","\u{1F64E}\u200D\u2640\uFE0F","\u{1F645}","\u{1F645}\u200D\u2642\uFE0F","\u{1F645}\u200D\u2640\uFE0F","\u{1F646}","\u{1F646}\u200D\u2642\uFE0F","\u{1F646}\u200D\u2640\uFE0F","\u{1F481}","\u{1F481}\u200D\u2642\uFE0F","\u{1F481}\u200D\u2640\uFE0F","\u{1F64B}","\u{1F64B}\u200D\u2642\uFE0F","\u{1F64B}\u200D\u2640\uFE0F","\u{1F9CF}","\u{1F9CF}\u200D\u2642\uFE0F","\u{1F9CF}\u200D\u2640\uFE0F","\u{1F647}","\u{1F647}\u200D\u2642\uFE0F","\u{1F647}\u200D\u2640\uFE0F","\u{1F926}","\u{1F926}\u200D\u2642\uFE0F","\u{1F926}\u200D\u2640\uFE0F","\u{1F937}","\u{1F937}\u200D\u2642\uFE0F","\u{1F937}\u200D\u2640\uFE0F","\u{1F468}\u200D\u2695\uFE0F","\u{1F469}\u200D\u2695\uFE0F","\u{1F468}\u200D\u{1F393}","\u{1F469}\u200D\u{1F393}","\u{1F468}\u200D\u{1F3EB}","\u{1F469}\u200D\u{1F3EB}","\u{1F468}\u200D\u2696\uFE0F","\u{1F469}\u200D\u2696\uFE0F","\u{1F468}\u200D\u{1F33E}","\u{1F469}\u200D\u{1F33E}","\u{1F468}\u200D\u{1F373}","\u{1F469}\u200D\u{1F373}","\u{1F468}\u200D\u{1F527}","\u{1F469}\u200D\u{1F527}","\u{1F468}\u200D\u{1F3ED}","\u{1F469}\u200D\u{1F3ED}","\u{1F468}\u200D\u{1F4BC}","\u{1F469}\u200D\u{1F4BC}","\u{1F468}\u200D\u{1F52C}","\u{1F469}\u200D\u{1F52C}","\u{1F468}\u200D\u{1F4BB}","\u{1F469}\u200D\u{1F4BB}","\u{1F468}\u200D\u{1F3A4}","\u{1F469}\u200D\u{1F3A4}","\u{1F468}\u200D\u{1F3A8}","\u{1F469}\u200D\u{1F3A8}","\u{1F468}\u200D\u2708\uFE0F","\u{1F469}\u200D\u2708\uFE0F","\u{1F468}\u200D\u{1F680}","\u{1F469}\u200D\u{1F680}","\u{1F468}\u200D\u{1F692}","\u{1F469}\u200D\u{1F692}","\u{1F46E}","\u{1F46E}\u200D\u2642\uFE0F","\u{1F46E}\u200D\u2640\uFE0F","\u{1F575}\uFE0F","\u{1F575}\uFE0F\u200D\u2642\uFE0F","\u{1F575}\uFE0F\u200D\u2640\uFE0F","\u{1F482}","\u{1F482}\u200D\u2642\uFE0F","\u{1F482}\u200D\u2640\uFE0F","\u{1F477}","\u{1F477}\u200D\u2642\uFE0F","\u{1F477}\u200D\u2640\uFE0F","\u{1F934}","\u{1F478}","\u{1F473}","\u{1F473}\u200D\u2642\uFE0F","\u{1F473}\u200D\u2640\uFE0F","\u{1F472}","\u{1F9D5}","\u{1F935}","\u{1F470}","\u{1F930}","\u{1F931}","\u{1F47C}","\u{1F385}","\u{1F936}","\u{1F9B8}","\u{1F9B8}\u200D\u2642\uFE0F","\u{1F9B8}\u200D\u2640\uFE0F","\u{1F9B9}","\u{1F9B9}\u200D\u2642\uFE0F","\u{1F9B9}\u200D\u2640\uFE0F","\u{1F9D9}","\u{1F9D9}\u200D\u2642\uFE0F","\u{1F9D9}\u200D\u2640\uFE0F","\u{1F9DA}","\u{1F9DA}\u200D\u2642\uFE0F","\u{1F9DA}\u200D\u2640\uFE0F","\u{1F9DB}","\u{1F9DB}\u200D\u2642\uFE0F","\u{1F9DB}\u200D\u2640\uFE0F","\u{1F9DC}","\u{1F9DC}\u200D\u2642\uFE0F","\u{1F9DC}\u200D\u2640\uFE0F","\u{1F9DD}","\u{1F9DD}\u200D\u2642\uFE0F","\u{1F9DD}\u200D\u2640\uFE0F","\u{1F486}","\u{1F486}\u200D\u2642\uFE0F","\u{1F486}\u200D\u2640\uFE0F","\u{1F487}","\u{1F487}\u200D\u2642\uFE0F","\u{1F487}\u200D\u2640\uFE0F","\u{1F6B6}","\u{1F6B6}\u200D\u2642\uFE0F","\u{1F6B6}\u200D\u2640\uFE0F","\u{1F9CD}","\u{1F9CD}\u200D\u2642\uFE0F","\u{1F9CD}\u200D\u2640\uFE0F","\u{1F9CE}","\u{1F9CE}\u200D\u2642\uFE0F","\u{1F9CE}\u200D\u2640\uFE0F","\u{1F468}\u200D\u{1F9AF}","\u{1F469}\u200D\u{1F9AF}","\u{1F468}\u200D\u{1F9BC}","\u{1F469}\u200D\u{1F9BC}","\u{1F468}\u200D\u{1F9BD}","\u{1F469}\u200D\u{1F9BD}","\u{1F3C3}","\u{1F3C3}\u200D\u2642\uFE0F","\u{1F3C3}\u200D\u2640\uFE0F","\u{1F483}","\u{1F57A}","\u{1F574}\uFE0F","\u{1F9D6}","\u{1F9D6}\u200D\u2642\uFE0F","\u{1F9D6}\u200D\u2640\uFE0F","\u{1F9D7}","\u{1F9D7}\u200D\u2642\uFE0F","\u{1F9D7}\u200D\u2640\uFE0F","\u{1F3C7}","\u{1F3C2}","\u{1F3CC}\uFE0F","\u{1F3CC}\uFE0F\u200D\u2642\uFE0F","\u{1F3CC}\uFE0F\u200D\u2640\uFE0F","\u{1F3C4}","\u{1F3C4}\u200D\u2642\uFE0F","\u{1F3C4}\u200D\u2640\uFE0F","\u{1F6A3}","\u{1F6A3}\u200D\u2642\uFE0F","\u{1F6A3}\u200D\u2640\uFE0F","\u{1F3CA}","\u{1F3CA}\u200D\u2642\uFE0F","\u{1F3CA}\u200D\u2640\uFE0F","\u26F9\uFE0F","\u26F9\uFE0F\u200D\u2642\uFE0F","\u26F9\uFE0F\u200D\u2640\uFE0F","\u{1F3CB}\uFE0F","\u{1F3CB}\uFE0F\u200D\u2642\uFE0F","\u{1F3CB}\uFE0F\u200D\u2640\uFE0F","\u{1F6B4}","\u{1F6B4}\u200D\u2642\uFE0F","\u{1F6B4}\u200D\u2640\uFE0F","\u{1F6B5}","\u{1F6B5}\u200D\u2642\uFE0F","\u{1F6B5}\u200D\u2640\uFE0F","\u{1F938}","\u{1F938}\u200D\u2642\uFE0F","\u{1F938}\u200D\u2640\uFE0F","\u{1F93D}","\u{1F93D}\u200D\u2642\uFE0F","\u{1F93D}\u200D\u2640\uFE0F","\u{1F93E}","\u{1F93E}\u200D\u2642\uFE0F","\u{1F93E}\u200D\u2640\uFE0F","\u{1F939}","\u{1F939}\u200D\u2642\uFE0F","\u{1F939}\u200D\u2640\uFE0F","\u{1F9D8}","\u{1F9D8}\u200D\u2642\uFE0F","\u{1F9D8}\u200D\u2640\uFE0F","\u{1F6C0}","\u{1F6CC}","\u{1F9D1}\u200D\u{1F91D}\u200D\u{1F9D1}","\u{1F46D}","\u{1F46B}","\u{1F46C}"]);function r(t){return n.has(t)}function s(t,e){let i=o(t);if(!r(i))return t;let n=c(e);return n?i.split("\u200D").map(t=>r(t)?a(t,n):t).join("\u200D"):t}function o(t){return[...t].filter(t=>!l(t.codePointAt(0))).join("")}function a(t,e){let i=[...t].map(t=>t.codePointAt(0));return i[1]&&(l(i[1])||65039===i[1])?i[1]=e:i.splice(1,0,e),String.fromCodePoint(...i)}function l(t){return t>=127995&&t<=127999}function c(t){switch(t){case 1:return 127995;case 2:return 127996;case 3:return 127997;case 4:return 127998;case 5:return 127999;default:return null}}let GEmojiElement=class GEmojiElement extends HTMLElement{get image(){return this.firstElementChild instanceof HTMLImageElement?this.firstElementChild:null}get tone(){return(this.getAttribute("tone")||"").split(" ").map(t=>{let e=parseInt(t,10);return e>=0&&e<=5?e:0}).join(" ")}set tone(t){this.setAttribute("tone",t)}connectedCallback(){if(null===this.image&&!GEmojiElement.emojiSupportFunction()){let t=this.getAttribute("fallback-src");if(t){this.textContent="";let e=function(t){let e=document.createElement("img");return e.className="emoji",e.alt=t.getAttribute("alias")||"",e.height=20,e.width=20,e}(this);e.src=t,this.appendChild(e)}}this.hasAttribute("tone")&&h(this)}static get observedAttributes(){return["tone"]}attributeChangedCallback(t){"tone"===t&&h(this)}};function h(t){if(t.image)return;let e=t.tone.split(" ").map(t=>parseInt(t,10));if(0===e.length)t.textContent=o(t.textContent||"");else if(1===e.length){let i=e[0];t.textContent=0===i?o(t.textContent||""):s(t.textContent||"",i)}else t.textContent=function(t,e){let i=o(t);if(!r(i))return t;let n=e.map(t=>c(t));return i.split("\u200D").map(t=>{if(!r(t))return t;let e=n.shift();return e?a(t,e):t}).join("\u200D")}(t.textContent||"",e)}GEmojiElement.emojiSupportFunction=function(){let t=/\bWindows NT 6.1\b/.test(navigator.userAgent),e=/\bWindows NT 6.2\b/.test(navigator.userAgent),i=/\bWindows NT 6.3\b/.test(navigator.userAgent),n=/\bFreeBSD\b/.test(navigator.userAgent),r=/\bLinux\b/.test(navigator.userAgent)&&!/\bAndroid\b/.test(navigator.userAgent);return!(t||e||i||r||n)},window.customElements.get("g-emoji")||(window.GEmojiElement=GEmojiElement,window.customElements.define("g-emoji",GEmojiElement))},92284:()=>{let t=new WeakMap,e=new WeakMap,i=new WeakMap;function n(t){let n=t.currentTarget;if(!(n instanceof ImageCropElement))return;let{box:r,image:s}=i.get(n)||{};if(!r||!s)return;let o=0,a=0;if(t instanceof KeyboardEvent)"ArrowUp"===t.key?a=-1:"ArrowDown"===t.key?a=1:"ArrowLeft"===t.key?o=-1:"ArrowRight"===t.key&&(o=1);else if(e.has(n)&&t instanceof MouseEvent){let i=e.get(n);o=t.pageX-i.dragStartX,a=t.pageY-i.dragStartY}else if(e.has(n)&&t instanceof TouchEvent){let{pageX:i,pageY:r}=t.changedTouches[0],{dragStartX:s,dragStartY:l}=e.get(n);o=i-s,a=r-l}if(0!==o||0!==a){let t=Math.min(Math.max(0,r.offsetLeft+o),s.width-r.offsetWidth),e=Math.min(Math.max(0,r.offsetTop+a),s.height-r.offsetHeight);r.style.left=`${t}px`,r.style.top=`${e}px`,h(n,{x:t,y:e,width:r.offsetWidth,height:r.offsetHeight})}if(t instanceof MouseEvent)e.set(n,{dragStartX:t.pageX,dragStartY:t.pageY});else if(t instanceof TouchEvent){let{pageX:i,pageY:r}=t.changedTouches[0];e.set(n,{dragStartX:i,dragStartY:r})}}function r(e){let n,r,o;let c=e.target;if(!(c instanceof HTMLElement))return;let h=s(c);if(!(h instanceof ImageCropElement))return;let{box:d}=i.get(h)||{};if(!d)return;let u=h.getBoundingClientRect();if(e instanceof KeyboardEvent){if("Escape"===e.key)return l(h);if("-"===e.key&&(o=-10),"="===e.key&&(o=10),!o)return;n=d.offsetWidth+o,r=d.offsetHeight+o,t.set(h,{startX:d.offsetLeft,startY:d.offsetTop})}else if(e instanceof MouseEvent){let i=t.get(h);if(!i)return;n=e.pageX-i.startX-u.left-window.pageXOffset,r=e.pageY-i.startY-u.top-window.pageYOffset}else if(e instanceof TouchEvent){let i=t.get(h);if(!i)return;n=e.changedTouches[0].pageX-i.startX-u.left-window.pageXOffset,r=e.changedTouches[0].pageY-i.startY-u.top-window.pageYOffset}n&&r&&a(h,n,r,!(e instanceof KeyboardEvent))}function s(t){let e=t.getRootNode();return e instanceof ShadowRoot?e.host:t}function o(e){let o=e.currentTarget;if(!(o instanceof HTMLElement))return;let a=s(o);if(!(a instanceof ImageCropElement))return;let{box:l}=i.get(a)||{};if(!l)return;let c=e.target;if(c instanceof HTMLElement){if(c.hasAttribute("data-direction")){let i=c.getAttribute("data-direction")||"";a.addEventListener("mousemove",r),a.addEventListener("touchmove",r,{passive:!0}),["nw","se"].indexOf(i)>=0&&a.classList.add("nwse"),["ne","sw"].indexOf(i)>=0&&a.classList.add("nesw"),t.set(a,{startX:l.offsetLeft+(["se","ne"].indexOf(i)>=0?0:l.offsetWidth),startY:l.offsetTop+(["se","sw"].indexOf(i)>=0?0:l.offsetHeight)}),r(e)}else a.addEventListener("mousemove",n),a.addEventListener("touchmove",n,{passive:!0})}}function a(e,n,r,s=!0){let o=Math.max(Math.abs(n),Math.abs(r),10),l=t.get(e);if(!l)return;let{box:c,image:d}=i.get(e)||{};if(!c||!d)return;o=Math.min(o,r>0?d.height-l.startY:l.startY,n>0?d.width-l.startX:l.startX);let u=s?Math.round(Math.max(0,n>0?l.startX:l.startX-o)):c.offsetLeft,f=s?Math.round(Math.max(0,r>0?l.startY:l.startY-o)):c.offsetTop;c.style.left=`${u}px`,c.style.top=`${f}px`,c.style.width=`${o}px`,c.style.height=`${o}px`,h(e,{x:u,y:f,width:o,height:o})}function l(e){let{image:n}=i.get(e)||{};if(!n)return;let r=Math.round(n.clientWidth>n.clientHeight?n.clientHeight:n.clientWidth);t.set(e,{startX:(n.clientWidth-r)/2,startY:(n.clientHeight-r)/2}),a(e,r,r)}function c(t){let i=t.currentTarget;i instanceof ImageCropElement&&(e.delete(i),i.classList.remove("nwse","nesw"),i.removeEventListener("mousemove",r),i.removeEventListener("mousemove",n),i.removeEventListener("touchmove",r),i.removeEventListener("touchmove",n))}function h(t,e){let{image:n}=i.get(t)||{};if(!n)return;let r=n.naturalWidth/n.width;for(let i in e){let n=Math.round(e[i]*r);e[i]=n;let s=t.querySelector(`[data-image-crop-input='${i}']`);s instanceof HTMLInputElement&&(s.value=n.toString())}t.dispatchEvent(new CustomEvent("image-crop-change",{bubbles:!0,detail:e}))}let ImageCropElement=class ImageCropElement extends HTMLElement{connectedCallback(){if(i.has(this))return;let t=this.attachShadow({mode:"open"});t.innerHTML=`
`;let e=t.querySelector("[data-crop-box]");if(!(e instanceof HTMLElement))return;let s=t.querySelector("img");s instanceof HTMLImageElement&&(i.set(this,{box:e,image:s}),s.addEventListener("load",()=>{this.loaded=!0,l(this)}),this.addEventListener("mouseleave",c),this.addEventListener("touchend",c),this.addEventListener("mouseup",c),e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!0}),this.addEventListener("keydown",n),this.addEventListener("keydown",r),this.src&&(s.src=this.src))}static get observedAttributes(){return["src"]}get src(){return this.getAttribute("src")}set src(t){t?this.setAttribute("src",t):this.removeAttribute("src")}get loaded(){return this.hasAttribute("loaded")}set loaded(t){t?this.setAttribute("loaded",""):this.removeAttribute("loaded")}attributeChangedCallback(t,e,n){let{image:r}=i.get(this)||{};"src"===t&&(this.loaded=!1,r&&(r.src=n))}};window.customElements.get("image-crop")||(window.ImageCropElement=ImageCropElement,window.customElements.define("image-crop",ImageCropElement))},94147:(t,e,i)=>{i.d(e,{T:()=>include_fragment_element_IncludeFragmentElement});var n,r,s,o,a,l,c,h,d=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},u=function(t,e,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(t,i):r?r.value=i:e.set(t,i),i};let f=new WeakMap,m=null;let include_fragment_element_IncludeFragmentElement=class include_fragment_element_IncludeFragmentElement extends HTMLElement{constructor(){super(...arguments),n.add(this),r.set(this,!1),s.set(this,new IntersectionObserver(t=>{for(let e of t)if(e.isIntersecting){let{target:t}=e;if(d(this,s,"f").unobserve(t),!(t instanceof include_fragment_element_IncludeFragmentElement))return;"lazy"===t.loading&&d(this,n,"m",o).call(this)}},{rootMargin:"0px 0px 256px 0px",threshold:.01}))}static define(t="include-fragment",e=customElements){return e.define(t,this),this}static setCSPTrustedTypesPolicy(t){m=null===t?t:Promise.resolve(t)}static get observedAttributes(){return["src","loading"]}get src(){let t=this.getAttribute("src");if(!t)return"";{let e=this.ownerDocument.createElement("a");return e.href=t,e.href}}set src(t){this.setAttribute("src",t)}get loading(){return"lazy"===this.getAttribute("loading")?"lazy":"eager"}set loading(t){this.setAttribute("loading",t)}get accept(){return this.getAttribute("accept")||""}set accept(t){this.setAttribute("accept",t)}get data(){return d(this,n,"m",l).call(this)}attributeChangedCallback(t,e){"src"===t?this.isConnected&&"eager"===this.loading&&d(this,n,"m",o).call(this):"loading"===t&&this.isConnected&&"eager"!==e&&"eager"===this.loading&&d(this,n,"m",o).call(this)}connectedCallback(){if(!this.shadowRoot){this.attachShadow({mode:"open"});let t=document.createElement("style");t.textContent=":host {display: block;}",this.shadowRoot.append(t,document.createElement("slot"))}this.src&&"eager"===this.loading&&d(this,n,"m",o).call(this),"lazy"===this.loading&&d(this,s,"f").observe(this)}request(){let t=this.src;if(!t)throw Error("missing src");return new Request(t,{method:"GET",credentials:"same-origin",headers:{Accept:this.accept||"text/html"}})}load(){return d(this,n,"m",l).call(this)}fetch(t){return fetch(t)}refetch(){f.delete(this),d(this,n,"m",o).call(this)}};r=new WeakMap,s=new WeakMap,n=new WeakSet,o=async function(){if(!d(this,r,"f")){u(this,r,!0,"f"),d(this,s,"f").unobserve(this);try{let t=await d(this,n,"m",a).call(this);if(t instanceof Error)throw t;let e=document.createElement("template");e.innerHTML=t;let i=document.importNode(e.content,!0);if(!this.dispatchEvent(new CustomEvent("include-fragment-replace",{cancelable:!0,detail:{fragment:i}}))){u(this,r,!1,"f");return}this.replaceWith(i),this.dispatchEvent(new CustomEvent("include-fragment-replaced"))}catch(t){this.classList.add("is-error")}finally{u(this,r,!1,"f")}}},a=async function(){let t=this.src,e=f.get(this);if(e&&e.src===t)return e.data;{let e;return e=t?d(this,n,"m",h).call(this):Promise.reject(Error("missing src")),f.set(this,{src:t,data:e}),e}},l=async function(){let t=await d(this,n,"m",a).call(this);if(t instanceof Error)throw t;return t.toString()},c=async function(t){for(let e of(await new Promise(t=>setTimeout(t,0)),t))this.dispatchEvent(new Event(e))},h=async function(){try{var t;await d(this,n,"m",c).call(this,["loadstart"]);let e=await this.fetch(this.request());if(200!==e.status)throw Error(`Failed to load resource: the server responded with a status of ${e.status}`);let i=e.headers.get("Content-Type");if(!((t=this.accept)&&t.split(",").find(t=>t.match(/^\s*\*\/\*/)))&&(!i||!i.includes(this.accept?this.accept:"text/html")))throw Error(`Failed to load resource: expected ${this.accept||"text/html"} but was ${i}`);let r=await e.text(),s=r;return m&&(s=(await m).createHTML(r,e)),d(this,n,"m",c).call(this,["load","loadend"]),s}catch(t){throw d(this,n,"m",c).call(this,["error","loadend"]),t}};let p="undefined"!=typeof globalThis?globalThis:window;try{p.IncludeFragmentElement=include_fragment_element_IncludeFragmentElement.define()}catch(t){if(!(p.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name)&&!(t instanceof ReferenceError))throw t}},44911:()=>{let t="complete"===document.readyState?Promise.resolve():new Promise(t=>{window.addEventListener("load",t)});let TypingEffectElement=class TypingEffectElement extends HTMLElement{async connectedCallback(){await t,this.content&&await e(this.lines,this.content,this.characterDelay,this.lineDelay),this.cursor&&(this.cursor.hidden=!0),this.dispatchEvent(new CustomEvent("typing:complete",{bubbles:!0,cancelable:!0}))}get content(){return this.querySelector('[data-target="typing-effect.content"]')}get cursor(){return this.querySelector('[data-target="typing-effect.cursor"]')}get lines(){let t=this.getAttribute("data-lines");try{return t?JSON.parse(t):[]}catch(t){return[]}}get prefersReducedMotion(){return window.matchMedia("(prefers-reduced-motion)").matches}get characterDelay(){return this.prefersReducedMotion?0:Math.max(0,Math.min(Math.floor(Number(this.getAttribute("data-character-delay"))),0x7fffffff))||40}set characterDelay(t){if(t>0x7fffffff||t<0)throw new DOMException("Value is negative or greater than the allowed amount");this.setAttribute("data-character-delay",String(t))}get lineDelay(){return this.prefersReducedMotion?0:Math.max(0,Math.min(Math.floor(Number(this.getAttribute("data-line-delay"))),0x7fffffff))||40}set lineDelay(t){if(t>0x7fffffff||t<0)throw new DOMException("Value is negative or greater than the allowed amount");this.setAttribute("data-line-delay",String(t))}};async function e(t,e,n,r){for(let s=0;s{setTimeout(e,t)})}window.customElements.get("typing-effect")||(window.TypingEffectElement=TypingEffectElement,window.customElements.define("typing-effect",TypingEffectElement))}}]); //# sourceMappingURL=vendors-node_modules_github_file-attachment-element_dist_index_js-node_modules_primer_view-co-c44a69-f955a4e4cc95.js.map