performance.mark("js-parse-end:74071-93ba74c3d7e6b111.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["74071"],{91707(e,t,i){i.r(t),i.d(t,{Attachment:()=>r,default:()=>m});class r{constructor(e,t){this.file=e,this.directory=t,this.state="pending",this.id=null,this.href=null,this.name=null,this.percent=0}static traverse(e,t){var i,o;return i=e,t&&(o=i).items&&Array.from(o.items).some(e=>{let t=e.webkitGetAsEntry&&e.webkitGetAsEntry();return t&&t.isDirectory})?s("",Array.from(i.items).map(e=>e.webkitGetAsEntry()).filter(e=>null!=e)):Promise.resolve(n(Array.from(i.files||[])).map(e=>new r(e)))}static from(e){let t=[];for(let i of e)if(i instanceof File)t.push(new r(i));else if(i instanceof r)t.push(i);else throw Error("Unexpected type");return t}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(e){if("pending"!==this.state&&"saving"!==this.state)throw Error(`Unexpected transition from ${this.state} to saving`);this.state="saving",this.percent=e}saved(e){var t,i,r;if("pending"!==this.state&&"saving"!==this.state)throw Error(`Unexpected transition from ${this.state} to saved`);this.state="saved",this.id=null!=(t=null==e?void 0:e.id)?t:null,this.href=null!=(i=null==e?void 0:e.href)?i:null,this.name=null!=(r=null==e?void 0:e.name)?r:null}isPending(){return"pending"===this.state}isSaving(){return"saving"===this.state}isSaved(){return"saved"===this.state}}function n(e){return Array.from(e).filter(e=>!e.name.startsWith("."))}async function s(e,t){let i=[];for(let o of n(t))if(o.isDirectory)i.push(...await s(o.fullPath,await function(e){return new Promise(function(t,i){let r=[],n=e.createReader(),s=()=>{n.readEntries(e=>{e.length>0?(r.push(...e),s()):t(r)},i)};s()})}(o)));else{let t=await function(e){return new Promise(function(t,i){e.file(t,i)})}(o);i.push(new r(t,e))}return i}class o extends HTMLElement{connectedCallback(){this.addEventListener("dragenter",c),this.addEventListener("dragover",c),this.addEventListener("dragleave",d),this.addEventListener("drop",u),this.addEventListener("paste",f),this.addEventListener("change",p)}disconnectedCallback(){this.removeEventListener("dragenter",c),this.removeEventListener("dragover",c),this.removeEventListener("dragleave",d),this.removeEventListener("drop",u),this.removeEventListener("paste",f),this.removeEventListener("change",p)}get directory(){return this.hasAttribute("directory")}set directory(e){e?this.setAttribute("directory",""):this.removeAttribute("directory")}async attach(e){let t=e instanceof DataTransfer?await r.traverse(e,this.directory):r.from(e);this.dispatchEvent(new CustomEvent("file-attachment-accept",{bubbles:!0,cancelable:!0,detail:{attachments:t}}))&&t.length&&this.dispatchEvent(new CustomEvent("file-attachment-accepted",{bubbles:!0,detail:{attachments:t}}))}}function a(e){return Array.from(e.types).indexOf("Files")>=0}let l=null;function c(e){let t=e.currentTarget;l&&clearTimeout(l),l=window.setTimeout(()=>t.removeAttribute("hover"),200);let i=e.dataTransfer;i&&a(i)&&(i.dropEffect="copy",t.setAttribute("hover",""),e.preventDefault())}function d(e){e.dataTransfer&&(e.dataTransfer.dropEffect="none"),e.currentTarget.removeAttribute("hover"),e.stopPropagation(),e.preventDefault()}function u(e){let t=e.currentTarget;if(!(t instanceof o))return;t.removeAttribute("hover");let i=e.dataTransfer;i&&a(i)&&(t.attach(i),e.stopPropagation(),e.preventDefault())}let h=/^image\/(gif|png|jpeg)$/;function f(e){if(!e.clipboardData||!e.clipboardData.items)return;let t=e.currentTarget;if(!(t instanceof o))return;let i=function(e){for(let t of e)if("file"===t.kind&&h.test(t.type))return t.getAsFile();return null}(e.clipboardData.items);i&&(t.attach([i]),e.preventDefault())}function p(e){let t=e.currentTarget;if(!(t instanceof o))return;let i=e.target;if(!(i instanceof HTMLInputElement))return;let r=t.getAttribute("input");if(r&&i.id!==r)return;let n=i.files;n&&0!==n.length&&(t.attach(n),i.value="")}window.customElements.get("file-attachment")||(window.FileAttachmentElement=o,window.customElements.define("file-attachment",o));let m=o},62044(e,t,i){i.d(t,{A:()=>o});class r extends HTMLElement{constructor(){super(),this.currentQuery=null,this.filter=null,this.debounceInputChange=function(e){let t;return function(){clearTimeout(t),t=setTimeout(()=>{clearTimeout(t),e()},300)}}(()=>n(this,!0)),this.boundFilterResults=()=>{n(this,!1)}}static get observedAttributes(){return["aria-owns"]}attributeChangedCallback(e,t){t&&"aria-owns"===e&&n(this,!1)}connectedCallback(){let e=this.input;e&&(e.setAttribute("autocomplete","off"),e.setAttribute("spellcheck","false"),e.addEventListener("focus",this.boundFilterResults),e.addEventListener("change",this.boundFilterResults),e.addEventListener("input",this.debounceInputChange))}disconnectedCallback(){let e=this.input;e&&(e.removeEventListener("focus",this.boundFilterResults),e.removeEventListener("change",this.boundFilterResults),e.removeEventListener("input",this.debounceInputChange))}get input(){let e=this.querySelector("input");return e instanceof HTMLInputElement?e:null}reset(){let e=this.input;e&&(e.value="",e.dispatchEvent(new Event("change",{bubbles:!0})))}}async function n(e,t=!1){var i,r,o,a,l;let c,d,u,h=e.input;if(!h)return;let f=h.value.trim(),p=e.getAttribute("aria-owns");if(!p)return;let m=document.getElementById(p);if(!m)return;let g=m.hasAttribute("data-filter-list")?m:m.querySelector("[data-filter-list]");if(!g||(e.dispatchEvent(new CustomEvent("filter-input-start",{bubbles:!0})),t&&e.currentQuery===f))return;e.currentQuery=f;let b=e.filter||s,v=g.childElementCount,w=0,E=!1;for(let e of Array.from(g.children)){if(!(e instanceof HTMLElement))continue;let t=(((i=e).querySelector("[data-filter-item-text]")||i).textContent||"").trim(),r=b(e,t,f);!0===r.hideNew&&(E=r.hideNew),e.hidden=!r.match,r.match&&w++}let y=m.querySelector("[data-filter-new-item]"),A=!!y&&f.length>0&&!E;y instanceof HTMLElement&&(y.hidden=!A,A&&(r=y,o=f,(c=r.querySelector("[data-filter-new-item-text]"))&&(c.textContent=o),((d=r.querySelector("[data-filter-new-item-value]"))instanceof HTMLInputElement||d instanceof HTMLButtonElement)&&(d.value=o))),a=m,l=w>0||A,(u=a.querySelector("[data-filter-empty-state]"))instanceof HTMLElement&&(u.hidden=l),e.dispatchEvent(new CustomEvent("filter-input-updated",{bubbles:!0,detail:{count:w,total:v}}))}function s(e,t,i){return{match:-1!==t.toLowerCase().indexOf(i.toLowerCase()),hideNew:t===i}}let o=r;window.customElements.get("filter-input")||(window.FilterInputElement=r,window.customElements.define("filter-input",r))},70170(e,t,i){function r(e,t=0,{start:i=!0,middle:n=!0,once:s=!1}={}){let o,a=i,l=0,c=!1;function d(...r){if(c)return;let u=Date.now()-l;l=Date.now(),i&&n&&u>=t&&(a=!0),a?(a=!1,e.apply(this,r),s&&d.cancel()):(n&&u{l=Date.now(),e.apply(this,r),s&&d.cancel()},n?t-u:t))}return d.cancel=()=>{clearTimeout(o),c=!0},d}function n(e,t=0,{start:i=!1,middle:s=!1,once:o=!1}={}){return r(e,t,{start:i,middle:s,once:o})}i.d(t,{n:()=>r,s:()=>n})},27552(e,t,i){i.d(t,{A:()=>a});let r=new WeakMap;class n extends HTMLElement{constructor(){super();const e=s.bind(null,this,!0),t={currentQuery:null,oninput:function(e){let t;return function(i){clearTimeout(t),t=setTimeout(()=>{clearTimeout(t),e(i)},300)}}(t=>e(t)),fetch:e,controller:null};r.set(this,t)}static get observedAttributes(){return["src"]}attributeChangedCallback(e,t){t&&"src"===e&&s(this,!1)}connectedCallback(){let e=this.input;if(!e)return;e.setAttribute("autocomplete","off"),e.setAttribute("spellcheck","false");let t=r.get(this);t&&(e.addEventListener("focus",t.fetch),e.addEventListener("change",t.fetch),e.addEventListener("input",t.oninput))}disconnectedCallback(){let e=this.input;if(!e)return;let t=r.get(this);t&&(e.removeEventListener("focus",t.fetch),e.removeEventListener("change",t.fetch),e.removeEventListener("input",t.oninput))}get input(){let e=this.querySelector("input, textarea");return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}get src(){return this.getAttribute("src")||""}set src(e){this.setAttribute("src",e)}}async function s(e,t,i){let n,s=e.input;if(!s)return;let a=r.get(e);if(!a)return;let l=s.value;if(t&&a.currentQuery===l)return;a.currentQuery=l;let c=e.src;if(!c)return;let d=document.getElementById(e.getAttribute("aria-owns")||"");if(!d)return;let u=new URL(c,window.location.href),h=new URLSearchParams(u.search);h.append(e.getAttribute("param")||"q",l),u.search=h.toString(),a.controller?a.controller.abort():(e.dispatchEvent(new CustomEvent("loadstart")),e.setAttribute("loading","")),a.controller="AbortController"in window?new AbortController:{signal:null,abort(){}};let f="";try{n=await o(e,u.toString(),{signal:a.controller.signal,credentials:"same-origin",headers:{accept:"text/fragment+html"}}),f=await n.text(),e.removeAttribute("loading"),a.controller=null}catch(t){t instanceof Error&&"AbortError"!==t.name&&(e.removeAttribute("loading"),a.controller=null);return}n&&n.ok?(d.innerHTML=f,e.dispatchEvent(new CustomEvent("remote-input-success",{bubbles:!0,detail:{eventType:i?i.type:void 0}}))):e.dispatchEvent(new CustomEvent("remote-input-error",{bubbles:!0}))}async function o(e,t,i){try{let r=await fetch(t,i);return e.dispatchEvent(new CustomEvent("load")),e.dispatchEvent(new CustomEvent("loadend")),r}catch(t){throw t instanceof Error&&(null==t?void 0:t.name)!=="AbortError"&&(e.dispatchEvent(new CustomEvent("error")),e.dispatchEvent(new CustomEvent("loadend"))),t}}let a=n;window.customElements.get("remote-input")||(window.RemoteInputElement=n,window.customElements.define("remote-input",n))},49728(e,t,i){function r(e){return Array.from(e.querySelectorAll('[role="tablist"] [role="tab"]')).filter(t=>t instanceof HTMLElement&&t.closest(e.tagName)===e)}i.d(t,{A:()=>n});class n extends HTMLElement{constructor(){super(),this.addEventListener("keydown",e=>{let t=e.target;if(!(t instanceof HTMLElement)||t.closest(this.tagName)!==this||"tab"!==t.getAttribute("role")&&!t.closest('[role="tablist"]'))return;let i=r(this),n=i.indexOf(i.find(e=>e.matches('[aria-selected="true"]')));if("ArrowRight"===e.code){let e=n+1;e>=i.length&&(e=0),s(this,e)}else if("ArrowLeft"===e.code){let e=n-1;e<0&&(e=i.length-1),s(this,e)}else"Home"===e.code?(s(this,0),e.preventDefault()):"End"===e.code&&(s(this,i.length-1),e.preventDefault())}),this.addEventListener("click",e=>{let t=r(this);if(!(e.target instanceof Element)||e.target.closest(this.tagName)!==this)return;let i=e.target.closest('[role="tab"]');i instanceof HTMLElement&&i.closest('[role="tablist"]')&&s(this,t.indexOf(i))})}connectedCallback(){for(let e of r(this))e.hasAttribute("aria-selected")||e.setAttribute("aria-selected","false"),e.hasAttribute("tabindex")||("true"===e.getAttribute("aria-selected")?e.setAttribute("tabindex","0"):e.setAttribute("tabindex","-1"))}}function s(e,t){let i=r(e),n=Array.from(e.querySelectorAll('[role="tabpanel"]')).filter(t=>t.closest(e.tagName)===e),s=i[t],o=n[t];if(e.dispatchEvent(new CustomEvent("tab-container-change",{bubbles:!0,cancelable:!0,detail:{relatedTarget:o}}))){for(let e of i)e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1");for(let e of n)e.hidden=!0,e.hasAttribute("tabindex")||e.hasAttribute("data-tab-container-no-tabstop")||e.setAttribute("tabindex","0");s.setAttribute("aria-selected","true"),s.setAttribute("tabindex","0"),s.focus(),o.hidden=!1,e.dispatchEvent(new CustomEvent("tab-container-changed",{bubbles:!0,detail:{relatedTarget:o}}))}}window.customElements.get("tab-container")||(window.TabContainerElement=n,window.customElements.define("tab-container",n))},91385(e,t,i){i.d(t,{Xq:()=>a,ai:()=>n,fN:()=>o,qA:()=>l});var r=-1/0,n=1/0;function s(e,t,i,n){for(var s=e.length,o=t.length,a=e.toLowerCase(),l=t.toLowerCase(),c=function(e){for(var t=e.length,i=Array(t),r="/",n=0;n1024)return r;var a=Array(i),l=Array(i);return s(e,t,a,l),l[i-1][o-1]}function a(e,t){var i=e.length,n=t.length,o=Array(i);if(!i||!n)return o;if(i===n){for(var a=0;a1024)return o;var l=Array(i),c=Array(i);s(e,t,l,c);for(var d=!1,a=i-1,u=n-1;a>=0;a--)for(;u>=0;u--)if(l[a][u]!==r&&(d||l[a][u]===c[a][u])){d=a&&u&&c[a][u]===l[a-1][u-1]+1,o[a]=u--;break}return o}function l(e,t){e=e.toLowerCase(),t=t.toLowerCase();for(var i=e.length,r=0,n=0;rg});var r,n,s,o,a=i(29941),l=i(11937),c=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)},d=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i};function u(e){document.activeElement!==e&&e?.focus()}let h=[];function f(e){let t=e.target,i=t?.closest("button");if(!i||i.hasAttribute("disabled")||"true"===i.getAttribute("aria-disabled"))return;let r=i?.getAttribute("data-show-dialog-id");if(r){e.stopPropagation();let t=document.getElementById(r);if(t instanceof g){t.openButton=i,t.show(),e.preventDefault();return}}if(h.length&&(r=i.getAttribute("data-close-dialog-id")||i.getAttribute("data-submit-dialog-id"))){let e=document.getElementById(r);if(e instanceof g){let t=h.findIndex(e=>e.id===r);h.splice(t,1),e.close(i.hasAttribute("data-submit-dialog-id"))}}}function p(e){!(e instanceof KeyboardEvent)||"keydown"!==e.type||"Enter"!==e.key||e.ctrlKey||e.altKey||e.metaKey||e.shiftKey||f(e)}function m(e){let t=e.target;if(t?.closest("button"))return;let i=h[h.length-1];!i||t.closest(`#${i.getAttribute("id")}`)||t.ownerDocument.addEventListener("mouseup",e=>{e.target===t&&(h.pop(),i.close())},{once:!0})}class g extends HTMLElement{constructor(){super(...arguments),r.add(this),n.set(this,new AbortController)}get open(){return this.hasAttribute("open")}set open(e){if(e)this.open||(this.setAttribute("open",""),this.setAttribute("aria-disabled","false"),document.body.style.paddingRight=`${window.innerWidth-document.body.clientWidth}px`,document.body.style.overflow="hidden",c(this,r,"a",s)?.classList.remove("Overlay--hidden"),c(this,n,"f").signal.aborted&&d(this,n,new AbortController,"f"),(0,a.iE)(this,this.querySelector("[autofocus]"),c(this,n,"f").signal),h.push(this));else{if(!this.open)return;this.removeAttribute("open"),this.setAttribute("aria-disabled","true"),c(this,r,"a",s)?.classList.add("Overlay--hidden"),document.body.style.paddingRight="0",document.body.style.overflow="initial",c(this,n,"f").abort();let e=this.openButton?.closest("details")||this.openButton?.closest("action-menu");e?u((0,l.Z0)(e)):u(this.openButton),this.openButton=null}}get showButtons(){return document.querySelectorAll(`button[data-show-dialog-id='${this.id}']`)}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","dialog"),document.addEventListener("click",f),document.addEventListener("keydown",p),document.addEventListener("mousedown",m),this.addEventListener("keydown",e=>c(this,r,"m",o).call(this,e))}show(){this.open=!0}close(e=!1){if(!1===this.open)return;let t=new Event(e?"close":"cancel");this.dispatchEvent(t),this.open=!1}}n=new WeakMap,r=new WeakSet,s=function(){return this.parentElement?.hasAttribute("data-modal-dialog-overlay")?this.parentElement:null},o=function(e){if(e instanceof KeyboardEvent&&!e.isComposing&&this.open)switch(e.key){case"Escape":this.close(),e.preventDefault(),e.stopPropagation();break;case"Enter":e.target.getAttribute("data-close-dialog-id")===this.id&&e.stopPropagation()}},window.customElements.get("modal-dialog")||(window.ModalDialogElement=g,window.customElements.define("modal-dialog",g))},39242(e,t,i){let r;var n,s,o,a,l,c,d,u,h,f,p,m,g,b,v,w,E,y,A,L,k,T,C,x,S,M,I,P,D,O,q,H,R,N,V,F,W,j,B,$,z,_,K,Y,U,X,G,Q,J,Z,ee,et,ei,er,en,es,eo,ea,el,ec,ed,eu,eh,ef,ep,em,eg,eb,ev,ew,eE,ey,eA,eL,ek,eT,eC,ex,eS,eM,eI,eP,eD,eO,eq,eH,eR,eN,eV,eF,eW,ej,eB,e$,ez,e_,eK,eY,eU,eX,eG,eQ,eJ,eZ,e0,e1,e3,e2,e5,e7,e4,e9,e6,e8,te,tt,ti,tr,tn,ts,to,ta,tl,tc,td,tu,th,tf,tp,tm,tg,tb,tv,tw,tE,ty,tA,tL,tk,tT,tC,tx,tS,tM,tI,tP,tD,tO,tq,tH,tR,tN,tV,tF,tW=i(28078);i(27552);var tj=i(94571),tB=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i},t$=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)};class tz{constructor(e){this.resizeObserver=new ResizeObserver(e=>{for(let t of e){let e=t.target;e instanceof HTMLElement&&this.update(e)}}),this.resizeObserver.observe(e)}unobserve(e){this.resizeObserver.unobserve(e)}update(e){for(let t of e.querySelectorAll("li")){let e=t.querySelector(".ActionListItem-label");if(!e)continue;let i=t.querySelector(".ActionListItem-truncationTooltip");i&&(e.scrollWidth>e.clientWidth?i.style.display="":i.style.display="none")}}}let t_=class extends HTMLElement{constructor(){super(...arguments),o.set(this,void 0)}connectedCallback(){tB(this,o,new tz(this),"f")}disconnectedCallback(){t$(this,o,"f").unobserve(this)}};o=new WeakMap,t_=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o}([(0,tj.p_)("action-list")],t_);var tK=i(29941),tY=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},tU=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)},tX=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i};let tG=new IntersectionObserver(e=>{for(let t of e){let e=t.target;t.isIntersecting&&e instanceof tJ&&e.update()}}),tQ=new ResizeObserver(e=>{for(let t of e){let e=t.target;e instanceof tJ&&e.update()}}),tJ=class extends HTMLElement{constructor(){super(...arguments),a.add(this),l.set(this,null),c.set(this,!1)}connectedCallback(){tQ.observe(this),tG.observe(this),this.style.overflow="visible",this.update()}disconnectedCallback(){tQ.unobserve(this),tG.unobserve(this)}menuItemClick(e){let t=e.currentTarget,i=t?.getAttribute("data-for");i&&document.getElementById(i)?.click()}update(){tU(this,c,"f")||(tX(this,c,!0,"f"),requestAnimationFrame(()=>{tX(this,c,!1,"f"),tU(this,a,"m",d).call(this)}))}};l=new WeakMap,c=new WeakMap,a=new WeakSet,d=function(){let e=tU(this,a,"a",u);if(!e)return;let t=e.getBoundingClientRect().top,i=tU(this,a,"a",p),r=Array.from(this.items,e=>({top:e.getBoundingClientRect().top,isDivider:e.classList.contains("ActionBar-divider")})),n=!1;for(let e=0;et?(tU(this,a,"m",f).call(this,e,i),this.moreMenu.hidden&&(this.moreMenu.hidden=!1),n&&tU(this,a,"m",f).call(this,e-1,i)):(tU(this,a,"m",h).call(this,e,i),e===this.items.length-1&&(this.moreMenu.hidden=!0),n&&tU(this,a,"m",h).call(this,e-1,i)),n=!1}tU(this,l,"f")&&tU(this,l,"f").abort(),tX(this,l,(0,tK.zB)(this,{bindKeys:tK.z0.ArrowHorizontal|tK.z0.HomeAndEnd,focusOutBehavior:"wrap",focusableElementFilter:e=>{let t=this.items.indexOf(e.parentElement),i=t>-1&&"visible"===this.items[t].style.visibility,r=e===this.moreMenu.invokerElement&&!this.moreMenu.hidden;return i||r}}),"f")},u=function(){return this.items.find(e=>!e.classList.contains("ActionBar-divider"))??null},h=function(e,t){let i=this.items[e],r=t[e];i&&r&&(i.style.setProperty("visibility","visible"),r.hidden=!0)},f=function(e,t){let i=this.items[e],r=t[e];i&&r&&(i.style.setProperty("visibility","hidden"),r.hidden=!1)},p=function(){return this.moreMenu.querySelectorAll('[role="menu"] > li')},tY([tj.zV],tJ.prototype,"items",void 0),tY([tj.aC],tJ.prototype,"itemContainer",void 0),tY([tj.aC],tJ.prototype,"moreMenu",void 0),tJ=tY([(0,tj.p_)("action-bar")],tJ),window.ActionBarElement=tJ,i(60612);var tZ=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)},t0=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i};let t1=(()=>{let e=new Set,t=null,i=null;function r(){for(let t of e)t.update()}return n=>{window.addEventListener("resize",r),window.addEventListener("scroll",r),t||(t=new IntersectionObserver(t=>{for(let i of t){let t=i.target;i.isIntersecting?(t.update(),e.add(t)):e.delete(t)}})),i||(i=new ResizeObserver(()=>{for(let t of e)t.update()})),i.observe(n.ownerDocument.documentElement),t.observe(n)}})();class t3 extends HTMLElement{constructor(){super(...arguments),m.set(this,null),g.set(this,void 0)}get align(){let e=this.getAttribute("align");return"center"===e||"end"===e?e:"start"}set align(e){this.setAttribute("align",`${e}`)}get side(){let e=this.getAttribute("side");return"inside-top"===e||"inside-bottom"===e||"inside-left"===e||"inside-right"===e||"inside-center"===e||"outside-top"===e||"outside-left"===e||"outside-right"===e?e:"outside-bottom"}set side(e){this.setAttribute("side",`${e}`)}get anchorOffset(){let e=this.getAttribute("anchor-offset");return"spacious"===e||"8"===e?8:4}set anchorOffset(e){this.setAttribute("anchor-offset",`${e}`)}get anchor(){return this.getAttribute("anchor")||""}set anchor(e){this.setAttribute("anchor",`${e}`)}get anchorElement(){if(tZ(this,m,"f"))return tZ(this,m,"f");let e=this.anchor;return e?this.ownerDocument.getElementById(e):null}set anchorElement(e){t0(this,m,e,"f"),tZ(this,m,"f")||this.removeAttribute("anchor")}get alignmentOffset(){return Number(this.getAttribute("alignment-offset"))}set alignmentOffset(e){this.setAttribute("alignment-offset",`${e}`)}get allowOutOfBounds(){return this.hasAttribute("allow-out-of-bounds")}set allowOutOfBounds(e){this.toggleAttribute("allow-out-of-bounds",e)}connectedCallback(){this.update(),this.addEventListener("beforetoggle",()=>this.update()),t1(this)}attributeChangedCallback(){this.update()}update(){this.isConnected&&(cancelAnimationFrame(tZ(this,g,"f")),t0(this,g,requestAnimationFrame(()=>{let e=this.anchorElement;if(this.classList.toggle("not-anchored",!e),e){let{left:t,top:i}=(0,tK.uG)(this,e,this);this.style.top=`${i}px`,this.style.left=`${t}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"))}}m=new WeakMap,g=new WeakMap,t3.observedAttributes=["align","side","anchor","alignment-offset","allow-out-of-bounds"],customElements.get("anchored-position")||(window.AnchoredPositionElement=t3,customElements.define("anchored-position",t3));var t2=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i},t5=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)};function t7(e){e.body.style.getPropertyValue("--dialog-scrollgutter")||e.body.style.setProperty("--dialog-scrollgutter",`${window.innerWidth-e.body.clientWidth}px`)}function t4(e){let t=e.target,i=t?.closest("button");if(!i||i.hasAttribute("disabled")||"true"===i.getAttribute("aria-disabled"))return;let r=i?.getAttribute("data-show-dialog-id");if(r){let t=document.getElementById(r);if(t instanceof HTMLDialogElement){t7(t.ownerDocument),t.showModal(),e.preventDefault();let r=i,n=!1;for(;r;)(r=r.parentElement?.closest("[popover]"))&&"auto"===r.popover&&(r.classList.add("dialog-inside-popover-fix"),r.popover="manual",r.showPopover(),n=!0);n&&(t.addEventListener("close",e=>e.stopImmediatePropagation(),{once:!0}),t.close(),t.showModal(),t.addEventListener("close",()=>{for(let e of t.ownerDocument.querySelectorAll(".dialog-inside-popover-fix"))e.contains(t)&&(e.classList.remove("dialog-inside-popover-fix"),e.popover="auto",e.showPopover())},{once:!0}))}}if(r=i.getAttribute("data-close-dialog-id")||i.getAttribute("data-submit-dialog-id")){let e=document.getElementById(r);e instanceof HTMLDialogElement&&e.open&&e.close()}}class t9 extends HTMLElement{constructor(){super(...arguments),b.add(this),v.set(this,null)}get dialog(){return this.querySelector("dialog")}connectedCallback(){let{signal:e}=t2(this,v,new AbortController,"f");document.addEventListener("click",t4,!0),document.addEventListener("click",this,{signal:e}),new MutationObserver(e=>{for(let t of e)t.target===this.dialog&&t5(this,b,"m",w).call(this)}).observe(this,{subtree:!0,attributeFilter:["open"]}),t5(this,b,"m",w).call(this)}disconnectedCallback(){t5(this,v,"f")?.abort()}handleEvent(e){let t=e.target,i=this.dialog;if(t!==i||!i?.open||i.querySelector("form"))return;let r=i.getBoundingClientRect();r.top<=e.clientY&&e.clientY<=r.top+r.height&&r.left<=e.clientX&&e.clientX<=r.left+r.width||i.close()}}v=new WeakMap,b=new WeakSet,w=function(){this.dialog&&this.dialog.matches("[open]:not(:modal)")&&(this.dialog.addEventListener("close",e=>e.stopImmediatePropagation(),{once:!0}),this.dialog.close(),t7(this.dialog.ownerDocument),this.dialog.showModal())},window.customElements.get("dialog-helper")||(window.DialogHelperElement=t9,window.customElements.define("dialog-helper",t9));var t6=class extends Event{oldState;newState;constructor(e,{oldState:t="",newState:i="",...r}={}){super(e,r),this.oldState=String(t||""),this.newState=String(i||"")}},t8=new WeakMap;function ie(e,t,i){t8.set(e,setTimeout(()=>{t8.has(e)&&e.dispatchEvent(new t6("toggle",{cancelable:!1,oldState:t,newState:i}))},0))}var it=globalThis.ShadowRoot||function(){},ii=globalThis.HTMLDialogElement||function(){},ir=new WeakMap,is=new WeakMap,io=new WeakMap;function ia(e){return io.get(e)||"hidden"}var il=new WeakMap;function ic(e,t){return!("auto"!==e.popover&&"manual"!==e.popover||!e.isConnected||t&&"showing"!==ia(e)||!t&&"hidden"!==ia(e)||e instanceof ii&&e.hasAttribute("open"))&&document.fullscreenElement!==e}function id(e){return e?Array.from(is.get(e.ownerDocument)||[]).indexOf(e)+1:0}function iu(e){let t=is.get(e);for(let e of t||[])if(e.isConnected)return e;else t.delete(e);return null}function ih(e){return"function"==typeof e.getRootNode?e.getRootNode():e.parentNode?ih(e.parentNode):e}function ip(e){for(;e;){if(e instanceof HTMLElement&&"auto"===e.popover&&"showing"===io.get(e))return e;if((e=e instanceof Element&&e.assignedSlot||e.parentElement||ih(e))instanceof it&&(e=e.host),e instanceof Document)return}}var im=new WeakMap;function ig(e){if(!ic(e,!1))return;let t=e.ownerDocument;if(!e.dispatchEvent(new t6("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!ic(e,!1))return;let i=!1;if("auto"===e.popover){let i=e.getAttribute("popover");if(iw(function(e){let t=new Map,i=0;for(let r of is.get(e.ownerDocument)||[])t.set(r,i),i+=1;t.set(e,i),i+=1;let r=null;return!function(e){let i=ip(e);if(null===i)return;let n=t.get(i);(null===r||t.get(r)id(i)?t:i);if(s&&"pointerdown"===e.type)iE.set(n,s);else if("pointerup"===e.type){let e=iE.get(n)===s;iE.delete(n),e&&iw(s||n,!1,!0)}}var iA=new WeakMap;function iL(e,t=!1){if(!e)return;iA.has(e)||iA.set(e,e.getAttribute("aria-expanded"));let i=e.popoverTargetElement;if(i instanceof HTMLElement&&"auto"===i.popover)e.setAttribute("aria-expanded",String(t));else{let t=iA.get(e);t?e.setAttribute("aria-expanded",t):e.removeAttribute("aria-expanded")}}var ik=globalThis.ShadowRoot||function(){};function iT(e,t,i){let r=e[t];Object.defineProperty(e,t,{value(e){return r.call(this,i(e))}})}var iC=/(^|[^\\]):popover-open\b/g,ix=null;function iS(e){let t,i=(t="function"==typeof globalThis.CSSLayerBlockRule,` ${t?"@layer popover-polyfill {":""} :where([popover]) { position: fixed; z-index: 2147483647; inset: 0; padding: 0.25em; width: fit-content; height: fit-content; border-width: initial; border-color: initial; border-image: initial; border-style: solid; background-color: canvas; color: canvastext; overflow: auto; margin: auto; } :where([popover]:not(.\\:popover-open)) { display: none; } :where(dialog[popover].\\:popover-open) { display: block; } :where(dialog[popover][open]) { display: revert; } :where([anchor].\\:popover-open) { inset: auto; } :where([anchor]:popover-open) { inset: auto; } @supports not (background-color: canvas) { :where([popover]) { background-color: white; color: black; } } @supports (width: -moz-fit-content) { :where([popover]) { width: -moz-fit-content; height: -moz-fit-content; } } @supports not (inset: 0) { :where([popover]) { top: 0; left: 0; right: 0; bottom: 0; } } ${t?"}":""} `);if(null===ix)try{(ix=new CSSStyleSheet).replaceSync(i)}catch{ix=!1}if(!1===ix){let t=document.createElement("style");t.textContent=i,e instanceof Document?e.head.prepend(t):e.prepend(t)}else e.adoptedStyleSheets=[ix,...e.adoptedStyleSheets]}"u">typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){var e;if("u"{let t=e.composedPath(),i=t[0];if(!(i instanceof Element)||i?.shadowRoot)return;let r=ih(i);if(!(r instanceof ik||r instanceof Document))return;let n=t.find(e=>e.matches?.("[popovertargetaction],[popovertarget]"));if(n){!function(e){let t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;let i=ia(t);"show"===e.popoverTargetAction&&"showing"===i||("hide"!==e.popoverTargetAction||"hidden"!==i)&&("showing"===i?ib(t,!0,!0):ic(t,!1)&&(il.set(t,e),ig(t)))}(n),e.preventDefault();return}}),e.addEventListener("keydown",e=>{let t=e.key,i=e.target;!e.defaultPrevented&&i&&("Escape"===t||"Esc"===t)&&iw(i.ownerDocument,!0,!0)}),e.addEventListener("pointerdown",iy),e.addEventListener("pointerup",iy),iS(document)}();var iM=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i},iI=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)};let iP=['[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]'].map(e=>`:not([hidden]) > ${e}`).join(", "),iD=e=>e.textContent?.trim()[0].toLowerCase(),iO=/^\S$/;class iq extends HTMLElement{constructor(){super(...arguments),E.add(this),y.set(this,null),A.set(this,null)}get nowrap(){return this.hasAttribute("nowrap")}set nowrap(e){this.toggleAttribute("nowrap",e)}get direction(){return"horizontal"===this.getAttribute("direction")?"horizontal":"vertical"}set direction(e){this.setAttribute("direction",`${e}`)}get retain(){return this.hasAttribute("retain")}set retain(e){this.toggleAttribute("retain",e)}get mnemonics(){return this.hasAttribute("mnemonics")}connectedCallback(){iM(this,A,new AbortController,"f");let{signal:e}=iI(this,A,"f");this.addEventListener("keydown",this,{signal:e}),this.addEventListener("click",this,{signal:e}),this.addEventListener("mouseover",this,{signal:e}),this.addEventListener("focusin",this,{signal:e})}disconnectedCallback(){iI(this,A,"f")?.abort()}handleEvent(e){let{direction:t,nowrap:i}=this;if("focusin"===e.type){if(this.retain&&e.target instanceof Element&&e.target.matches(iP)){iI(this,y,"f")?.abort();let{signal:t}=iM(this,y,new AbortController,"f");for(let i of iI(this,E,"a",L)){i.setAttribute("tabindex",i===e.target?"0":"-1");let r=e.target.closest("[popover]");i===e.target&&r?.popover==="auto"&&r.closest("focus-group")===this&&r.addEventListener("toggle",e=>{if(e.target instanceof Element&&"closed"===e.newState&&(iI(this,y,"f")?.abort(),i.setAttribute("tabindex","-1"),r.id)){let e=this.querySelector(`[popovertarget="${r.id}"]`);e?e.setAttribute("tabindex","0"):iI(this,E,"a",L)[0]?.setAttribute("tabindex","0")}},{signal:t})}}}else if(e instanceof KeyboardEvent){let r=Array.from(iI(this,E,"a",L)),n=r.indexOf(e.target),s=e.key;if("Up"===s||"ArrowUp"===s)("vertical"===t||"both"===t)&&(n-=n<0?0:1,e.preventDefault());else if("Down"===s||"ArrowDown"===s)("vertical"===t||"both"===t)&&(n+=1,e.preventDefault());else if("Left"===e.key||"ArrowLeft"===e.key)("horizontal"===t||"both"===t)&&(n-=1,e.preventDefault());else if("Right"===e.key||"ArrowRight"===e.key)("horizontal"===t||"both"===t)&&(n+=1,e.preventDefault());else if("Home"===e.key||"PageUp"===e.key)n=0,e.preventDefault();else if("End"===e.key||"PageDown"===e.key)n=r.length-1,e.preventDefault();else{if(!(this.mnemonics&&iO.test(s)))return;let t=s.toLowerCase(),o=n>0&&iD(e.target)===t?n:0;(n=r.findIndex((e,i)=>i>o&&iD(e)===t))<0&&!i&&(n=r.findIndex(e=>iD(e)===t))}i&&n<0&&(n=0),!i&&n>=r.length&&(n=0);let o=r.at(Math.min(n,r.length-1));{let t=o;do t=t.closest("[popover]:not(:popover-open)"),t?.popover!=="auto"||["ArrowRight","ArrowLeft"].includes(e.key)||t.showPopover(),t=t?.parentElement||null;while(t)}o?.focus()}}}y=new WeakMap,A=new WeakMap,E=new WeakSet,L=function(){return this.querySelectorAll(iP)},customElements.get("focus-group")||(window.FocusGroupElement=iq,customElements.define("focus-group",iq));var iH=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};let iR=class extends HTMLElement{constructor(){super(...arguments),this.hasOverflow=!1,this.labelledBy=""}connectedCallback(){this.style.overflow="auto",this.observer=new ResizeObserver(e=>{for(let t of e)this.hasOverflow=t.target.scrollHeight>t.target.clientHeight||t.target.scrollWidth>t.target.clientWidth}),this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}attributeChangedCallback(e){"data-has-overflow"===e&&(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")))}};iH([tj.CF],iR.prototype,"hasOverflow",void 0),iH([tj.CF],iR.prototype,"labelledBy",void 0),iR=iH([(0,tj.p_)("scrollable-region")],iR),window.ScrollableRegionElement=iR,i(35015);var iN=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},iV=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i},iF=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)};let iW=class extends HTMLElement{constructor(){super(...arguments),k.add(this),T.set(this,void 0)}connectedCallback(){this.topLevelList&&iV(this,T,new tz(this.topLevelList),"f")}disconnectedCallback(){this.topLevelList&&iF(this,T,"f").unobserve(this.topLevelList)}selectItemById(e){if(!e)return!1;let t=iF(this,k,"m",C).call(this,e);return!!t&&(iF(this,k,"m",M).call(this,t),!0)}selectItemByHref(e){if(!e)return!1;let t=iF(this,k,"m",x).call(this,e);return!!t&&(iF(this,k,"m",M).call(this,t),!0)}selectItemByCurrentLocation(){let e=iF(this,k,"m",S).call(this);return!!e&&(iF(this,k,"m",M).call(this,e),!0)}expandItem(e){e.nextElementSibling?.removeAttribute("data-hidden"),e.setAttribute("aria-expanded","true")}collapseItem(e){e.nextElementSibling?.setAttribute("data-hidden",""),e.setAttribute("aria-expanded","false"),e.focus()}itemIsExpanded(e){return e?.tagName==="A"||e?.getAttribute("aria-expanded")==="true"}handleItemWithSubItemClick(e){let t=e.target;if(!(t instanceof HTMLElement))return;let i=t.closest("button");i&&(this.itemIsExpanded(i)?this.collapseItem(i):this.expandItem(i),e.stopPropagation())}handleItemWithSubItemKeydown(e){let t=e.currentTarget;if(!(t instanceof HTMLElement))return;let i=t.closest("button");if(!i){let e=t.getAttribute("aria-labelledby");if(!e)return;i=document.getElementById(e)}this.itemIsExpanded(i)&&"Escape"===e.key&&this.collapseItem(i),e.stopPropagation()}};T=new WeakMap,k=new WeakSet,C=function(e){for(let t of this.items)if(!t.classList.contains("ActionListItem--hasSubItem")&&(t.getAttribute("data-item-id")?.split(" ")||[]).includes(e))return t;return null},x=function(e){let t=this.querySelector(`.ActionListContent[href="proxy.php?url=${e}"]`);return t?t.closest(".ActionListItem"):null},S=function(){return iF(this,k,"m",x).call(this,window.location.pathname)},M=function(e){let t=this.querySelector(".ActionListItem--navActive");t&&iF(this,k,"m",I).call(this,t),e.classList.add("ActionListItem--navActive"),e.children.length>0&&e.children[0].setAttribute("aria-current","page");let i=iF(this,k,"m",P).call(this,e);i&&(this.expandItem(i),i.classList.add("ActionListContent--hasActiveSubItem"))},I=function(e){e.classList.remove("ActionListItem--navActive"),e.children.length>0&&e.children[0].removeAttribute("aria-current");let t=iF(this,k,"m",P).call(this,e);t&&(this.collapseItem(t),t.classList.remove("ActionListContent--hasActiveSubItem"))},P=function(e){if(!e.classList.contains("ActionListItem--subItem"))return null;let t=e.closest("li.ActionListItem--hasSubItem")?.querySelector("button.ActionListContent");return t||null},iN([tj.zV],iW.prototype,"items",void 0),iN([tj.aC],iW.prototype,"topLevelList",void 0),iW=iN([(0,tj.p_)("nav-list")],iW);var ij=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},iB=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)};let i$=class extends HTMLElement{constructor(){super(...arguments),D.add(this),q.set(this,new tz(this))}connectedCallback(){this.setShowMoreItemState()}get showMoreDisabled(){return this.showMoreItem.hasAttribute("aria-disabled")}set showMoreDisabled(e){e?this.showMoreItem.setAttribute("aria-disabled","true"):this.showMoreItem.removeAttribute("aria-disabled"),this.showMoreItem.classList.toggle("disabled",e)}set currentPage(e){this.showMoreItem.setAttribute("data-current-page",e.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(e){let t;if(e.preventDefault(),this.showMoreDisabled)return;this.showMoreDisabled=!0;try{let e=new URL(this.paginationSrc,window.location.origin);this.currentPage++,e.searchParams.append("page",this.currentPage.toString());let i=await fetch(e);if(!i.ok)return;t=await i.text(),this.currentPage===this.totalPages&&(this.showMoreItem.hidden=!0)}catch(e){this.showMoreDisabled=!1,this.currentPage--;return}let i=iB(this,D,"m",O).call(this,document,t);i?.querySelector("li > a")?.setAttribute("data-targets","nav-list-group.focusMarkers");let r=e.target.closest("button").getAttribute("data-list-id");document.getElementById(r).append(i),this.focusMarkers.pop()?.focus(),this.showMoreDisabled=!1}setShowMoreItemState(){this.showMoreItem&&(this.currentPage=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},i_=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)};let iK=class extends HTMLElement{constructor(){super(...arguments),H.add(this)}connectedCallback(){i_(this,H,"m",R).call(this)}select(e){let t=e.currentTarget;for(let e of this.items)e.classList.remove("SegmentedControl-item--selected"),e.querySelector("[aria-current]")?.setAttribute("aria-current","false");t.closest("li.SegmentedControl-item")?.classList.add("SegmentedControl-item--selected"),t.setAttribute("aria-current","true")}};H=new WeakSet,R=function(){for(let e of this.querySelectorAll(".Button-label"))e.setAttribute("data-content",e.textContent||"")},iz([tj.zV],iK.prototype,"items",void 0),iK=iz([(0,tj.p_)("segmented-control")],iK),window.customElements.get("segmented-control")||(window.SegmentedControlElement=iK,window.customElements.define("segmented-control",iK));var iY=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};let iU=class extends HTMLElement{constructor(){super(...arguments),this.turbo=!1,this.toggling=!1}get src(){let e=this.getAttribute("src");if(!e)return null;let t=this.ownerDocument.createElement("a");return t.href=e,t.href}get csrf(){let e=this.querySelector("[data-csrf]");return this.getAttribute("data-csrf")||e instanceof HTMLInputElement&&e.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(e){e instanceof Error&&(this.setErrorState(e.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 e=new CustomEvent("toggleSwitchLoading",{bubbles:!0});this.dispatchEvent(e)}setSuccessState(){let e=new CustomEvent("toggleSwitchSuccess",{bubbles:!0});this.dispatchEvent(e),this.setFinishedState(!1)}setErrorState(e){let t=new CustomEvent("toggleSwitchError",{bubbles:!0,detail:e});this.dispatchEvent(t),this.setFinishedState(!0)}setFinishedState(e){e&&this.errorIcon.removeAttribute("hidden"),this.loadingSpinner.setAttribute("hidden","hidden")}async submitForm(){let e,t=new FormData;if(this.csrf&&t.append(this.csrfField,this.csrf),t.append("value",this.isOn()?"1":"0"),!this.src)throw Error("invalid src");let i={"Requested-With":"XMLHttpRequest","X-Requested-With":"XMLHttpRequest"};this.turbo&&(i.Accept="text/vnd.turbo-stream.html");try{e=await fetch(this.src,{credentials:"same-origin",method:"POST",headers:i,body:t})}catch(e){throw Error("A network error occurred, please try again.")}if(!e.ok)throw Error(await e.text());let r=e.headers.get("Content-Type");window.Turbo&&this.turbo&&r?.startsWith("text/vnd.turbo-stream.html")&&window.Turbo.renderStreamMessage(await e.text())}};iY([tj.aC],iU.prototype,"switch",void 0),iY([tj.aC],iU.prototype,"loadingSpinner",void 0),iY([tj.aC],iU.prototype,"errorIcon",void 0),iY([tj.CF],iU.prototype,"turbo",void 0),iU=iY([(0,tj.p_)("toggle-switch")],iU),window.customElements.get("toggle-switch")||(window.ToggleSwitchElement=iU,window.customElements.define("toggle-switch",iU));var iX=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)},iG=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i};let iQ=e=>r?e.matches(r):function(e){try{return r=":popover-open",e.matches(r)}catch{try{return r=":open",e.matches(":open")}catch{return r=".\\:popover-open",e.matches(".\\:popover-open")}}}(e),iJ="sr-only",iZ=["tooltip-n","tooltip-s","tooltip-e","tooltip-w","tooltip-ne","tooltip-se","tooltip-nw","tooltip-sw"];function i0(e){for(let t of i5)t!==e&&(iQ(t)?t.hidePopover():i5.delete(t))}function i1(){i0()}function i3(e){setTimeout(()=>{for(let t of i5)iQ(t)&&"focus"===t.showReason&&t.control!==e.target&&t.hidePopover()},0)}let i2=new Set,i5=new Set;class i7 extends HTMLElement{constructor(){super(...arguments),N.add(this),V.set(this,void 0),F.set(this,"center"),W.set(this,"outside-bottom"),j.set(this,!1),B.set(this,"mouse"),$.set(this,!1)}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: min(var(--overlay-width-small), 100vw); 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 iX(this,B,"f")}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(e){this.setAttribute("for",e)}get type(){return"label"===this.getAttribute("data-type")?"label":"description"}set type(e){this.setAttribute("data-type",e)}get direction(){return this.getAttribute("data-direction")||"s"}set direction(e){this.setAttribute("data-direction",e)}get control(){return this.ownerDocument.getElementById(this.htmlFor)}set hiddenFromView(e){e&&iQ(this)?this.hidePopover():e||iQ(this)||this.showPopover()}get hiddenFromView(){return!iQ(this)}connectedCallback(){if(i2.add(this),iX(this,N,"m",K).call(this),iX(this,N,"m",Y).call(this),!this.shadowRoot){let e=this.attachShadow({mode:"open"});e.appendChild(document.createElement("style")).textContent=this.styles(),e.appendChild(document.createElement("slot"))}iX(this,N,"m",z).call(this,!1),iG(this,j,!0,"f"),iX(this,N,"m",_).call(this)}disconnectedCallback(){i2.delete(this),i5.delete(this),iX(this,V,"f")?.abort()}async handleEvent(e){if(!this.control)return;let t=iQ(this);"beforetoggle"===e.type&&e.currentTarget!==this&&iG(this,$,"open"===e.newState,"f");let i=("mouseenter"===e.type||"focus"===e.type&&(navigator.webdriver||this.control.matches(":focus-visible")))&&!iX(this,$,"f"),r="mouseleave"===e.type&&e.relatedTarget!==this.control&&e.relatedTarget!==this,n="keydown"===e.type&&"Escape"===e.key,s="mousedown"===e.type&&e.currentTarget===this.control,o="beforetoggle"===e.type&&e.currentTarget!==this&&"open"===e.newState;t&&n&&(e.stopImmediatePropagation(),e.preventDefault()),await Promise.resolve(),t||!i||iQ(this)?t&&(r||n||s||o)&&iQ(this)&&this.hidePopover():(iG(this,B,"mouseenter"===e.type?"mouse":"focus","f"),this.showPopover()),"toggle"===e.type&&iX(this,N,"m",z).call(this,"open"===e.newState)}attributeChangedCallback(e){this.isConnected&&("for"===e?iX(this,N,"m",_).call(this):"id"===e||"data-type"===e?iX(this,N,"m",K).call(this):"data-direction"===e&&iX(this,N,"m",Y).call(this))}}V=new WeakMap,F=new WeakMap,W=new WeakMap,j=new WeakMap,B=new WeakMap,$=new WeakMap,N=new WeakSet,z=function(e){e?(i5.add(this),this.classList.remove(iJ),i0(this),iX(this,N,"m",U).call(this)):(i5.delete(this),this.classList.remove(...iZ),this.classList.add(iJ))},_=function(){if(!this.control)return;this.setAttribute("role","tooltip"),iX(this,V,"f")?.abort(),iG(this,V,new AbortController,"f");let{signal:e}=iX(this,V,"f");this.addEventListener("mouseleave",this,{signal:e}),this.addEventListener("toggle",this,{signal:e}),this.control.addEventListener("mouseenter",this,{signal:e}),this.control.addEventListener("mouseleave",this,{signal:e}),this.control.addEventListener("focus",this,{signal:e}),this.control.addEventListener("mousedown",this,{signal:e}),this.control.popoverTargetElement?.addEventListener("beforetoggle",this,{signal:e}),this.ownerDocument.addEventListener("focusout",i1),this.ownerDocument.addEventListener("focusin",i3),this.ownerDocument.addEventListener("keydown",this,{signal:e,capture:!0})},K=function(){if(this.id&&this.control)if("label"===this.type){let e=this.control.getAttribute("aria-labelledby");e=e?e.split(" ").includes(this.id)?`${e}`:`${e} ${this.id}`:this.id,this.control.setAttribute("aria-labelledby",e),this.setAttribute("aria-hidden","true")}else{let e=this.control.getAttribute("aria-describedby");e=e?e.split(" ").includes(this.id)?`${e}`:`${e} ${this.id}`:this.id,this.control.setAttribute("aria-describedby",e)}},Y=function(){this.classList.remove(...iZ);let e=this.direction;"n"===e?(iG(this,F,"center","f"),iG(this,W,"outside-top","f")):"ne"===e?(iG(this,F,"end","f"),iG(this,W,"outside-top","f")):"e"===e?(iG(this,F,"center","f"),iG(this,W,"outside-right","f")):"se"===e?(iG(this,F,"end","f"),iG(this,W,"outside-bottom","f")):"s"===e?(iG(this,F,"center","f"),iG(this,W,"outside-bottom","f")):"sw"===e?(iG(this,F,"start","f"),iG(this,W,"outside-bottom","f")):"w"===e?(iG(this,F,"center","f"),iG(this,W,"outside-left","f")):"nw"===e&&(iG(this,F,"start","f"),iG(this,W,"outside-top","f"))},U=function(){if(!this.control||!iX(this,j,"f")||!iQ(this))return;let e=(0,tK.uG)(this,this.control,{side:iX(this,W,"f"),align:iX(this,F,"f"),anchorOffset:0}),t=e.anchorSide,i=e.anchorAlign;this.style.setProperty("--tool-tip-position-top",`${e.top}px`),this.style.setProperty("--tool-tip-position-left",`${e.left}px`);let r="s";r="outside-left"===t?"w":"outside-right"===t?"e":"outside-top"===t?"center"===i?"n":"start"===i?"ne":"nw":"center"===i?"s":"start"===i?"se":"sw",this.classList.add(`tooltip-${r}`)},i7.observedAttributes=["data-type","data-direction","id","for"],window.customElements.get("tool-tip")||(window.ToolTipElement=i7,window.customElements.define("tool-tip",i7));var i4=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},i9=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)};let i6=class extends HTMLElement{constructor(){super(...arguments),X.add(this)}dismiss(){if("remove"===i9(this,X,"a",G)){let e=this.parentElement;if(!e)return;e.removeChild(this)}else this.hide();this.dispatchEvent(new CustomEvent("banner:dismiss"))}show(){this.style.setProperty("display","initial")}hide(){this.style.setProperty("display","none")}};function i8(e){e.style.display="inline-block"}function re(e){e.style.display="none"}X=new WeakSet,G=function(){return this.getAttribute("data-dismiss-scheme")},i4([tj.aC],i6.prototype,"titleText",void 0),i6=i4([(0,tj.p_)("x-banner")],i6),window.customElements.get("x-banner")||(window.XBannerElement=i6,window.customElements.define("x-banner",i6)),i(53464),i(28528);let rt=new WeakMap;document.addEventListener("clipboard-copy",({target:e})=>{if(!(e instanceof HTMLElement)||!e.hasAttribute("data-view-component"))return;let t=rt.get(e),i=e.parentNode?.querySelector("[data-clipboard-copy-feedback]"),r="Copied!";t?(clearTimeout(t),rt.delete(e)):(!function(e){let[t,i]=e.querySelectorAll(".octicon");t&&i&&(re(t),i8(i))}(e),i&&(i.textContent===r?i.textContent=`${r}\u00A0`:i.textContent=r)),rt.set(e,setTimeout(()=>{!function(e){let[t,i]=e.querySelectorAll(".octicon");t&&i&&(i8(t),re(i))}(e),rt.delete(e)},2e3))}),i(24052),i(49728);var ri=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};let rr=class extends HTMLElement{activateField(e){let t=this.findField(e);if(t){for(let e of this.fields)e!==t&&(e.setAttribute("disabled","disabled"),e.setAttribute("hidden","hidden"),e.parentElement?.setAttribute("hidden","hidden"));t.removeAttribute("disabled"),t.removeAttribute("hidden"),t.parentElement?.removeAttribute("hidden")}}findField(e){for(let t of this.fields)if(t.getAttribute("data-name")===e)return t;return null}};ri([tj.zV],rr.prototype,"fields",void 0),rr=ri([(0,tj.p_)("primer-multi-input")],rr),window.customElements.get("primer-multi-input")||(Object.assign(window,{PrimerMultiInputElement:rr}),window.customElements.define("primer-multi-input",rr)),i(58466);class rn{constructor(e,t,i){this.inputElement=e,this.characterLimitElement=t,this.characterLimitSrElement=i,this.SCREEN_READER_DELAY=500,this.announceTimeout=null,this.isInitialLoad=!0}initialize(e){this.inputElement.addEventListener("keyup",()=>this.updateCharacterCount(),e?{signal:e}:void 0),this.inputElement.addEventListener("paste",()=>setTimeout(()=>this.updateCharacterCount(),50),e?{signal:e}:void 0),this.updateCharacterCount(),this.isInitialLoad=!1}cleanup(){this.announceTimeout&&clearTimeout(this.announceTimeout)}pluralize(e,t){return 1===e?t:`${t}s`}updateCharacterCount(){if(!this.characterLimitElement)return;let e=this.characterLimitElement.getAttribute("data-max-length");if(!e)return;let t=parseInt(e,10)-this.inputElement.value.length,i="";if(t>=0){let e=this.pluralize(t,"character");i=`${t} ${e} remaining`;let r=this.characterLimitElement.querySelector(".FormControl-caption-text");r&&(r.textContent=i),this.clearError()}else{let e=-t,r=this.pluralize(e,"character");i=`${e} ${r} over`;let n=this.characterLimitElement.querySelector(".FormControl-caption-text");n&&(n.textContent=i),this.setError()}this.isInitialLoad||this.announceToScreenReader(i)}announceToScreenReader(e){this.announceTimeout&&clearTimeout(this.announceTimeout),this.announceTimeout=window.setTimeout(()=>{this.characterLimitSrElement&&(this.characterLimitSrElement.textContent=e)},this.SCREEN_READER_DELAY)}setError(){this.inputElement.setAttribute("invalid","true"),this.inputElement.setAttribute("aria-invalid","true"),this.characterLimitElement.classList.add("fgColor-danger");let e=this.characterLimitElement.querySelector(".FormControl-caption-icon");e&&e.removeAttribute("hidden")}clearError(){this.inputElement.removeAttribute("invalid"),this.inputElement.removeAttribute("aria-invalid"),this.characterLimitElement.classList.remove("fgColor-danger");let e=this.characterLimitElement.querySelector(".FormControl-caption-icon");e&&e.setAttribute("hidden","")}}var rs=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},ro=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)},ra=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i};let rl=class extends HTMLElement{constructor(){super(...arguments),Q.set(this,void 0),J.set(this,null)}connectedCallback(){ro(this,Q,"f")?.abort();let{signal:e}=ra(this,Q,new AbortController,"f");this.addEventListener("auto-check-success",async e=>{let t=await e.detail.response.text();t&&t.length>0?this.setSuccess(t):this.clearError()},{signal:e}),this.addEventListener("auto-check-error",async e=>{let t=await e.detail.response.text();this.setError(t)},{signal:e}),this.characterLimitElement&&(ra(this,J,new rn(this.inputElement,this.characterLimitElement,this.characterLimitSrElement),"f"),ro(this,J,"f").initialize(e))}disconnectedCallback(){ro(this,Q,"f")?.abort(),ro(this,J,"f")?.cleanup()}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(e){let t=document.createElement("template");t.innerHTML=e;let i=document.importNode(t.content,!0);this.validationMessageElement.replaceChildren(i)}toggleValidationStyling(e){e?this.validationElement.classList.remove("FormControl-inlineValidation--success"):this.validationElement.classList.add("FormControl-inlineValidation--success"),this.validationSuccessIcon.hidden=e,this.validationErrorIcon.hidden=!e,this.inputElement.setAttribute("invalid",e?"true":"false")}setSuccess(e){this.toggleValidationStyling(!1),this.setValidationMessage(e),this.validationElement.hidden=!1}setError(e){this.toggleValidationStyling(!0),this.setValidationMessage(e),this.validationElement.hidden=!1}showLeadingSpinner(){this.leadingSpinner?.removeAttribute("hidden"),this.leadingVisual?.setAttribute("hidden","")}hideLeadingSpinner(){this.leadingSpinner?.setAttribute("hidden",""),this.leadingVisual?.removeAttribute("hidden")}};Q=new WeakMap,J=new WeakMap,rs([tj.aC],rl.prototype,"inputElement",void 0),rs([tj.aC],rl.prototype,"validationElement",void 0),rs([tj.aC],rl.prototype,"validationMessageElement",void 0),rs([tj.aC],rl.prototype,"validationSuccessIcon",void 0),rs([tj.aC],rl.prototype,"validationErrorIcon",void 0),rs([tj.aC],rl.prototype,"leadingVisual",void 0),rs([tj.aC],rl.prototype,"leadingSpinner",void 0),rs([tj.aC],rl.prototype,"characterLimitElement",void 0),rs([tj.aC],rl.prototype,"characterLimitSrElement",void 0),rl=rs([(0,tj.p_)("primer-text-field")],rl);var rc=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},rd=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i},ru=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)};let rh=class extends HTMLElement{constructor(){super(...arguments),Z.set(this,null)}connectedCallback(){this.characterLimitElement&&(rd(this,Z,new rn(this.inputElement,this.characterLimitElement,this.characterLimitSrElement),"f"),ru(this,Z,"f").initialize())}disconnectedCallback(){ru(this,Z,"f")?.cleanup()}};Z=new WeakMap,rc([tj.aC],rh.prototype,"inputElement",void 0),rc([tj.aC],rh.prototype,"characterLimitElement",void 0),rc([tj.aC],rh.prototype,"characterLimitSrElement",void 0),rh=rc([(0,tj.p_)("primer-text-area")],rh),window.customElements.get("primer-text-area")||(Object.assign(window,{PrimerTextAreaElement:rh}),window.customElements.define("primer-text-area",rh));var rf=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};let rp=class extends HTMLElement{connectedCallback(){this.addEventListener("toggleSwitchError",e=>{this.validationMessageElement.textContent=e.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")})}};rf([tj.aC],rp.prototype,"validationElement",void 0),rf([tj.aC],rp.prototype,"validationMessageElement",void 0),rp=rf([(0,tj.p_)("toggle-switch-input")],rp);let rm=(e,t,i)=>{if(t())i();else{let r=new MutationObserver(()=>{t()&&(i(),r.disconnect())});r.observe(e,{childList:!0,subtree:!0})}};var rg=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},rb=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i},rv=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)};let rw=['[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]'],rE=rw.map(e=>`:not([hidden]) > ${e}`),ry=class extends HTMLElement{constructor(){super(...arguments),ee.add(this),et.set(this,void 0),ei.set(this,""),er.set(this,""),en.set(this,!1),es.set(this,void 0)}get selectVariant(){return this.getAttribute("data-select-variant")}set selectVariant(e){e?this.setAttribute("data-select-variant",e):this.removeAttribute("variant")}get dynamicLabelPrefix(){let e=this.getAttribute("data-dynamic-label-prefix");return e?`${e}:`:""}set dynamicLabelPrefix(e){this.setAttribute("data-dynamic-label",e)}get dynamicLabel(){return this.hasAttribute("data-dynamic-label")}set dynamicLabel(e){this.toggleAttribute("data-dynamic-label",e)}get popoverElement(){return this.invokerElement?.popoverTargetElement||null}get invokerElement(){let e=this.querySelector("[role=menu]")?.id;if(!e)return null;for(let t of this.querySelectorAll("[aria-controls]"))if(t.getAttribute("aria-controls")===e)return t;return null}get invokerLabel(){return this.invokerElement?this.invokerElement.querySelector(".Button-label"):null}get selectedItems(){let e=this.querySelectorAll("[aria-checked=true]"),t=[];for(let i of e){let e=i.querySelector(".ActionListItem-label");t.push({label:e?.textContent,value:i?.getAttribute("data-value"),element:i})}return t}connectedCallback(){let{signal:e}=rb(this,et,new AbortController,"f");this.addEventListener("keydown",this,{signal:e}),this.addEventListener("click",this,{signal:e}),this.addEventListener("mouseover",this,{signal:e}),this.addEventListener("focusout",this,{signal:e}),this.addEventListener("mousedown",this,{signal:e}),this.popoverElement?.addEventListener("toggle",this,{signal:e}),rv(this,ee,"m",ev).call(this),rv(this,ee,"m",ew).call(this),rv(this,ee,"m",eo).call(this),this.includeFragment&&this.includeFragment.addEventListener("include-fragment-replaced",this,{signal:e});let t=()=>{rv(this,ee,"m",eb).call(this)&&this.overlay?.update()};rb(this,es,new IntersectionObserver(e=>{for(let i of e)i.target===this.invokerElement&&(i.isIntersecting?window.addEventListener("scroll",t,{capture:!0}):window.removeEventListener("scroll",t,{capture:!0}))}),"f"),rm(this,()=>!!this.invokerElement,()=>rv(this,es,"f").observe(this.invokerElement)),this.includeFragment||this.setAttribute("data-ready","true")}disconnectedCallback(){rv(this,et,"f").abort()}handleEvent(e){let t=this.invokerElement?.contains(e.target),i=rv(this,ee,"m",ec).call(this,e);if("toggle"===e.type&&"open"===e.newState&&window.requestAnimationFrame(()=>{rv(this,ee,"a",eE)?.focus()}),t&&"mousedown"===e.type)return void rb(this,en,!0,"f");if("mousedown"===e.type)return void e.preventDefault();if(t&&i){rv(this,ee,"m",ed).call(this,e),rb(this,en,!1,"f");return}if("focusout"===e.type){if(rv(this,en,"f"))return;requestAnimationFrame(()=>{this.contains(document.activeElement)&&document.activeElement!==this.invokerElement||rv(this,ee,"m",ep).call(this)});return}let r=e.target.closest(rE.join(","));if(null!==r&&i){if(rv(this,ee,"m",ea).call(this,e))return;let t=r.closest("[data-show-dialog-id]");if(t){let i=this.ownerDocument.getElementById(t.getAttribute("data-show-dialog-id")||"");if(i&&this.contains(t))return void rv(this,ee,"m",eu).call(this,e,i)}rv(this,ee,"m",el).call(this,e)&&(e.preventDefault(),r.click()),rv(this,ee,"m",eh).call(this,r);return}"include-fragment-replaced"===e.type&&rv(this,ee,"m",ef).call(this)}get items(){return Array.from(this.querySelectorAll(rE.join(",")))}getItemById(e){return this.querySelector(`li[data-item-id="${e}"`)}isItemDisabled(e){return!!e&&e.classList.contains("ActionListItem--disabled")}disableItem(e){e&&(e.classList.add("ActionListItem--disabled"),e.querySelector(".ActionListContent").setAttribute("aria-disabled","true"))}enableItem(e){e&&(e.classList.remove("ActionListItem--disabled"),e.querySelector(".ActionListContent").removeAttribute("aria-disabled"))}isItemHidden(e){return!!e&&e.hasAttribute("hidden")}hideItem(e){e&&e.setAttribute("hidden","hidden")}showItem(e){e&&e.removeAttribute("hidden")}isItemChecked(e){return!!e&&"true"===e.querySelector(".ActionListContent").getAttribute("aria-checked")}checkItem(e){if(e&&("single"===this.selectVariant||"multiple"===this.selectVariant)){let t=e.querySelector(".ActionListContent");"true"!==t.getAttribute("aria-checked")&&rv(this,ee,"m",eh).call(this,t)}}uncheckItem(e){if(e&&("single"===this.selectVariant||"multiple"===this.selectVariant)){let t=e.querySelector(".ActionListContent");"true"===t.getAttribute("aria-checked")&&rv(this,ee,"m",eh).call(this,t)}}};et=new WeakMap,ei=new WeakMap,er=new WeakMap,en=new WeakMap,es=new WeakMap,ee=new WeakSet,eo=function(){let{signal:e}=rv(this,et,"f");for(let t of this.querySelectorAll(rw.join(",")))t.addEventListener("click",rv(this,ee,"m",ea).bind(this),{signal:e}),t.addEventListener("keydown",rv(this,ee,"m",ea).bind(this),{signal:e})},ea=function(e){if(!rv(this,ee,"m",ec).call(this,e))return!1;let t=e.target.closest(rE.join(","));return!!t&&!!t.getAttribute("aria-disabled")&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!0)},el=function(e){return e.target instanceof HTMLAnchorElement&&e instanceof KeyboardEvent&&"keydown"===e.type&&!(e.ctrlKey||e.altKey||e.metaKey||e.shiftKey)&&" "===e.key},ec=function(e){return e instanceof MouseEvent&&"click"===e.type||rv(this,ee,"m",el).call(this,e)},ed=function(e){e.preventDefault(),e.stopPropagation(),rv(this,ee,"m",eb).call(this)?rv(this,ee,"m",eg).call(this):rv(this,ee,"m",em).call(this)},eu=function(e,t){this.contains(t)&&(this.querySelector(".ActionListWrap").style.display="none");let i=new AbortController,{signal:r}=i,n=()=>{i.abort(),this.contains(t)&&(this.querySelector(".ActionListWrap").style.display="",rv(this,ee,"m",eb).call(this)&&rv(this,ee,"m",eg).call(this));let e=this.ownerDocument.activeElement,r=this.ownerDocument.activeElement===this.ownerDocument.body,n=this.contains(e),s=t.contains(e);(r||n||s)&&setTimeout(()=>{let t=this.ownerDocument.activeElement;(t===e||t===this.ownerDocument.body)&&this.invokerElement?.focus()},0)};t.addEventListener("close",n,{signal:r}),t.addEventListener("cancel",n,{signal:r})},eh=function(e){if("multiple"!==this.selectVariant&&setTimeout(()=>{rv(this,ee,"m",eb).call(this)&&rv(this,ee,"m",eg).call(this)}),"multiple"!==this.selectVariant&&"single"!==this.selectVariant)return;let t="true"!==e.getAttribute("aria-checked");if("single"===this.selectVariant){for(let i of(t&&e.setAttribute("aria-checked","true"),this.querySelectorAll("[aria-checked]")))i!==e&&i.setAttribute("aria-checked","false");rv(this,ee,"m",ev).call(this)}else e.setAttribute("aria-checked",`${t}`);rv(this,ee,"m",ew).call(this),this.dispatchEvent(new CustomEvent("itemActivated",{bubbles:!0,detail:{item:e.parentElement,checked:this.isItemChecked(e.parentElement)}}))},ef=function(){rv(this,ee,"a",eE)?.focus(),rv(this,ee,"m",eo).call(this),this.setAttribute("data-ready","true")},ep=function(){rv(this,ee,"m",eg).call(this)},em=function(){this.popoverElement?.showPopover()},eg=function(){this.popoverElement?.hidePopover()},eb=function(){return this.popoverElement?.matches(":popover-open")},ev=function(){if("single"!==this.selectVariant||!this.dynamicLabel)return;let e=this.invokerLabel;if(!e)return;rb(this,ei,rv(this,ei,"f")||e.textContent||"","f");let t=this.querySelector("[aria-checked=true] .ActionListItem-label");if(t&&this.dynamicLabel){let i=document.createElement("span");i.classList.add("color-fg-muted");let r=document.createElement("span");i.textContent=this.dynamicLabelPrefix,r.textContent=t.textContent||"",e.replaceChildren(i,r)}else e.textContent=rv(this,ei,"f")},ew=function(){if("single"===this.selectVariant){let e=this.querySelector("[data-list-inputs=true] input");if(!e)return;let t=this.selectedItems[0];t?(e.value=(t.value||t.label||"").trim(),e.removeAttribute("disabled")):e.setAttribute("disabled","disabled")}else if("none"!==this.selectVariant){let e=this.querySelector("[data-list-inputs=true]");if(!e)return;let t=e.querySelectorAll("input");for(let i of(t.length>0&&rb(this,er,rv(this,er,"f")||t[0].name,"f"),this.selectedItems)){let t=document.createElement("input");t.setAttribute("data-list-input","true"),t.type="hidden",t.autocomplete="off",t.name=rv(this,er,"f"),t.value=(i.value||i.label||"").trim(),e.append(t)}for(let e of t)e.remove()}},eE=function(){return this.querySelector(rE.join(","))},rg([tj.aC],ry.prototype,"includeFragment",void 0),rg([tj.aC],ry.prototype,"overlay",void 0),ry=rg([(0,tj.p_)("action-menu")],ry),window.customElements.get("action-menu")||(window.ActionMenuElement=ry,window.customElements.define("action-menu",ry));let rA="less",rL="equal",rk="greater";var rT=e=>{throw TypeError(e)},rC=(e,t,i)=>t.has(e)||rT("Cannot "+i),rx=(e,t,i)=>(rC(e,t,"read from private field"),i?i.call(e):t.get(e)),rS=(e,t,i)=>t.has(e)?rT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),rM=(e,t,i,r)=>(rC(e,t,"write to private field"),t.set(e,i),i),rI=(e,t,i)=>(rC(e,t,"access private method"),i);class rP{constructor({compareFn:e}){rS(this,eL),rS(this,ey),rS(this,eA),rM(this,ey,e),rM(this,eA,[])}insert(e){rx(this,eA).push(e),rI(this,eL,eT).call(this)}pop(){let e=rx(this,eA)[0];return rx(this,eA)[rx(this,eA).length-1]&&(rx(this,eA)[0]=rx(this,eA)[rx(this,eA).length-1],rx(this,eA).pop()),rI(this,eL,ek).call(this),e}peek(){return rx(this,eA)[0]}delete(e){let t=rx(this,eA).indexOf(e);-1!==t&&(rO(rx(this,eA),t,rx(this,eA).length-1),rx(this,eA).pop(),rI(this,eL,ek).call(this))}clear(){rM(this,eA,[])}get size(){return rx(this,eA).length}}function rD(e){return Math.floor((e-1)/2)}function rO(e,t,i){let r=e[t];e[t]=e[i],e[i]=r}ey=new WeakMap,eA=new WeakMap,eL=new WeakSet,ek=function(){let e=0;for(;2*e+10&&rx(this,ey).call(this,rx(this,eA)[t],(e=rx(this,eA),e[rD(t)]))===rA;)rO(rx(this,eA),t,rD(t)),t=rD(t)};var rq=Object.defineProperty,rH=e=>{throw TypeError(e)},rR=(e,t,i)=>t.has(e)||rH("Cannot "+i),rN=(e,t,i)=>(rR(e,t,"read from private field"),i?i.call(e):t.get(e)),rV=(e,t,i)=>t.has(e)?rH("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),rF=(e,t,i,r)=>(rR(e,t,"write to private field"),t.set(e,i),i);eC=Symbol.toStringTag;class rW{constructor(){((e,t,i)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?rq(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i})(this,eC,"Deferred"),rV(this,ex),rV(this,eS),rV(this,eM),rF(this,ex,new Promise((e,t)=>{rF(this,eS,e),rF(this,eM,t)}))}then(e,t){return Promise.prototype.then.apply(rN(this,ex),[e,t])}catch(e){return Promise.prototype.catch.apply(rN(this,ex),[e])}finally(e){return Promise.prototype.finally.apply(rN(this,ex),[e])}resolve(e){rN(this,eS).call(this,e)}reject(e){rN(this,eM).call(this,e)}getPromise(){return rN(this,ex)}}ex=new WeakMap,eS=new WeakMap,eM=new WeakMap;var rj=e=>{throw TypeError(e)},rB=(e,t,i)=>t.has(e)||rj("Cannot "+i),r$=(e,t,i)=>(rB(e,t,"read from private field"),i?i.call(e):t.get(e)),rz=(e,t,i)=>t.has(e)?rj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),r_=(e,t,i,r)=>(rB(e,t,"write to private field"),t.set(e,i),i),rK=(e,t,i)=>(rB(e,t,"access private method"),i);class rY extends HTMLElement{constructor(){if(super(),rz(this,eO),rz(this,eI),rz(this,eP),rz(this,eD),!this.shadowRoot){const e=(rU||((rU=document.createElement("template")).innerHTML=rX),rU);this.attachShadow({mode:"open"}).appendChild(e.content.cloneNode(!0))}r_(this,eI,!1),r_(this,eD,null),r_(this,eP,new rP({compareFn:rG}))}get delay(){let e=this.getAttribute("delay");return e?parseInt(e,10):150}set delay(e){this.setAttribute("delay",`${e}`)}announce(e,t={}){let{delayMs:i,politeness:r="polite"}=t,n=Date.now(),s=new rW,o={deferred:s,politeness:r,contents:e,scheduled:void 0!==i?n+i:n};return r$(this,eP).insert(o),rK(this,eO,eq).call(this),{...s.getPromise(),cancel:()=>{r$(this,eP).delete(o),s.resolve()}}}announceFromElement(e,t){var i;let r,n=(r="",(i=e).hasAttribute("aria-label")?r=i.getAttribute("aria-label"):i.innerText?r=i.innerText:i.textContent&&(r=i.textContent),r?r.trim():"");return""!==n?this.announce(n,t):{...Promise.resolve(),cancel:rQ}}getMessage(e="polite"){let t=this.shadowRoot?.getElementById(e);if(!t)throw Error("Unable to find container for message");return t.textContent}clear(){null!==r$(this,eD)&&(clearTimeout(r$(this,eD)),r_(this,eD,null)),r_(this,eI,!1),r$(this,eP).clear()}}eI=new WeakMap,eP=new WeakMap,eD=new WeakMap,eO=new WeakSet,eq=function(){if(r$(this,eI))return;let e=r$(this,eP).peek();if(!e)return;null!==r$(this,eD)&&(clearTimeout(r$(this,eD)),r_(this,eD,null));let t=Date.now();if(e.scheduled<=t){(e=r$(this,eP).pop())&&rK(this,eO,eH).call(this,e),rK(this,eO,eq).call(this);return}let i=e.scheduled-t;r_(this,eD,window.setTimeout(()=>{r_(this,eD,null),rK(this,eO,eq).call(this)},i))},eH=function(e){r_(this,eI,!0);let{contents:t,deferred:i,politeness:r}=e,n=this.shadowRoot?.getElementById(r);if(!n)throw r_(this,eI,!1),Error(`Unable to find container for message. Expected a container with id="${r}"`);n.textContent===t?n.textContent=`${t}\xa0`:n.textContent=t,null!==r$(this,eD)&&clearTimeout(r$(this,eD)),i.resolve(),this.delay>0?r_(this,eD,window.setTimeout(()=>{r_(this,eD,null),r_(this,eI,!1),rK(this,eO,eq).call(this)},this.delay)):(r_(this,eD,null),r_(this,eI,!1),rK(this,eO,eq).call(this))};let rU=null,rX=`
`;function rG(e,t){return e.politeness===t.politeness?e.scheduled===t.scheduled?rL:e.scheduled=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},rZ=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)},r0=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i};let r1=['[role="option"]'],r3=r1.join(","),r2=r1.map(e=>`:not([hidden]) > ${e}`).join(",");(n=th||(th={}))[n.REMOTE=0]="REMOTE",n[n.EVENTUALLY_LOCAL=1]="EVENTUALLY_LOCAL",n[n.LOCAL=2]="LOCAL",(s=tf||(tf={}))[s.BODY=0]="BODY",s[s.BANNER=1]="BANNER";let r5=(()=>{let e=new Set,t=null;function i(){for(let t of e)t.updateAnchorPosition()}return r=>{window.addEventListener("resize",i),window.addEventListener("scroll",i),t||(t=new ResizeObserver(()=>{for(let t of e)t.updateAnchorPosition()})),t.observe(r.ownerDocument.documentElement),r.addEventListener("dialog:close",()=>{r.invokerElement?.setAttribute("aria-expanded","false"),e.delete(r)}),r.addEventListener("dialog:open",()=>{e.add(r)})}})(),r7=class extends HTMLElement{constructor(){super(...arguments),eR.add(this),eN.set(this,void 0),eV.set(this,void 0),eF.set(this,""),eW.set(this,""),ej.set(this,new Map),eB.set(this,null),e$.set(this,null),ez.set(this,!1)}get open(){return this.dialog.open}get selectVariant(){return this.getAttribute("data-select-variant")}get ariaSelectionType(){return"aria-selected"}set selectVariant(e){e?this.setAttribute("data-select-variant",e):this.removeAttribute("variant")}get dynamicLabelPrefix(){let e=this.getAttribute("data-dynamic-label-prefix");return e?`${e}:`:""}get dynamicAriaLabelPrefix(){let e=this.getAttribute("data-dynamic-aria-label-prefix");return e?`${e}:`:""}set dynamicLabelPrefix(e){this.setAttribute("data-dynamic-label",e)}get dynamicLabel(){return this.hasAttribute("data-dynamic-label")}set dynamicLabel(e){this.toggleAttribute("data-dynamic-label",e)}get invokerElement(){let e=this.querySelector("dialog")?.id;if(!e)return null;for(let t of this.querySelectorAll("[aria-controls]"))if(t.getAttribute("aria-controls")===e)return t;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(rZ(this,ej,"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:e,left:t}=(0,tK.uG)(this.dialog,this.invokerElement,{align:this.align,side:this.side,anchorOffset:4});this.dialog.style.top=`${e}px`,this.dialog.style.left=`${t}px`,this.dialog.style.bottom="auto",this.dialog.style.right="auto"}}connectedCallback(){let{signal:e}=r0(this,eV,new AbortController,"f");this.addEventListener("keydown",this,{signal:e}),this.addEventListener("click",this,{signal:e}),this.addEventListener("mousedown",this,{signal:e}),this.addEventListener("input",this,{signal:e}),this.addEventListener("remote-input-success",this,{signal:e}),this.addEventListener("remote-input-error",this,{signal:e}),this.addEventListener("loadstart",this,{signal:e}),rZ(this,eR,"m",to).call(this),rZ(this,eR,"m",ta).call(this),rZ(this,eR,"m",e_).call(this),r5(this),rm(this,()=>!!this.remoteInput,()=>{this.remoteInput.addEventListener("loadstart",this,{signal:e}),this.remoteInput.addEventListener("loadend",this,{signal:e})}),rm(this,()=>!!this.includeFragment,()=>{this.includeFragment.addEventListener("include-fragment-replaced",this,{signal:e}),this.includeFragment.addEventListener("error",this,{signal:e}),this.includeFragment.addEventListener("loadend",this,{signal:e})}),r0(this,eN,new IntersectionObserver(e=>{for(let t of e){let e=t.target;t.isIntersecting&&e===this.dialog&&(this.filterInputTextField&&document.activeElement!==this.filterInputTextField&&this.filterInputTextField.focus(),this.dialog.setAttribute("data-ready","true"),this.updateAnchorPosition(),rZ(this,eR,"a",te)===th.LOCAL&&rZ(this,eR,"m",e7).call(this))}}),"f"),rm(this,()=>!!this.dialog,()=>{rZ(this,eN,"f").observe(this.dialog),this.dialog.addEventListener("close",this,{signal:e}),"true"===this.getAttribute("data-open-on-load")&&this.show()}),rZ(this,eR,"a",te)===th.LOCAL&&rm(this,()=>this.items.length>0,()=>{rZ(this,eR,"m",e7).call(this),rZ(this,eR,"m",ta).call(this)})}disconnectedCallback(){rZ(this,eV,"f").abort()}handleEvent(e){if(e.target===this.filterInputTextField)return void rZ(this,eR,"m",e5).call(this,e);if(e.target===this.remoteInput)return void rZ(this,eR,"m",e3).call(this,e);let t=this.invokerElement?.contains(e.target),i=this.closeButton?.contains(e.target),r=rZ(this,eR,"m",eX).call(this,e);if(t&&"mousedown"===e.type||"mousedown"===e.type&&e.target instanceof HTMLInputElement)return;if("mousedown"===e.type)return void e.preventDefault();if(t&&r)return void rZ(this,eR,"m",tr).call(this,e);if(i&&r)return;if("keydown"===e.type&&e instanceof KeyboardEvent&&e.target.closest(r2)){let t=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length&&/[a-z\d]/i.test(e.key);!t&&i&&e.stopPropagation()}if(e.target===this.dialog&&"close"===e.type){if(this.dialog.removeAttribute("data-ready"),this.invokerElement?.setAttribute("aria-expanded","false"),this.filterInputTextField){let e=this.filterInputTextField.value.length>0;this.filterInputTextField.value="",e&&this.filterInputTextField.dispatchEvent(new Event("input"))}this.dispatchEvent(new CustomEvent("panelClosed",{detail:{panel:this},bubbles:!0}));return}let n=e.target.closest(r2)?.parentElement;if(null!=n&&r){if(rZ(this,eR,"m",eY).call(this,e))return;let t=n.closest("[data-show-dialog-id]");if(t){let i=this.ownerDocument.getElementById(t.getAttribute("data-show-dialog-id")||"");if(i&&this.contains(t)&&this.contains(i))return void rZ(this,eR,"m",tn).call(this,e,i)}rZ(this,eR,"m",eU).call(this,e)&&(e.preventDefault(),rZ(this,eR,"m",tu).call(this,n)?.click()),rZ(this,eR,"m",ts).call(this,n);return}if("click"===e.type){let t=this.dialog.getBoundingClientRect();t.top<=e.clientY&&e.clientY<=t.top+t.height&&t.left<=e.clientX&&e.clientX<=t.left+t.width||this.hide()}e.target instanceof tW.T&&rZ(this,eR,"m",e0).call(this,e)}show(){this.updateAnchorPosition(),this.dialog.showModal(),this.invokerElement?.setAttribute("aria-expanded","true");let e=new CustomEvent("dialog:open",{detail:{dialog:this.dialog}});this.dispatchEvent(e)}hide(){this.dialog.close()}get visibleItems(){return Array.from(this.querySelectorAll(r2)).map(e=>e.parentElement)}get items(){return Array.from(this.querySelectorAll(r3)).map(e=>e.parentElement)}get focusableItem(){for(let e of this.items){let t=rZ(this,eR,"m",tu).call(this,e);if(t&&"0"===t.getAttribute("tabindex"))return t}}getItemById(e){return this.querySelector(`li[data-item-id="${e}"`)}isItemDisabled(e){return!!e&&e.classList.contains("ActionListItem--disabled")}disableItem(e){e&&(e.classList.add("ActionListItem--disabled"),rZ(this,eR,"m",tu).call(this,e).setAttribute("aria-disabled","true"))}enableItem(e){e&&(e.classList.remove("ActionListItem--disabled"),rZ(this,eR,"m",tu).call(this,e).removeAttribute("aria-disabled"))}isItemHidden(e){return!!e&&e.hasAttribute("hidden")}isItemChecked(e){return!!e&&"true"===rZ(this,eR,"m",tu).call(this,e).getAttribute(this.ariaSelectionType)}checkItem(e){e&&("single"===this.selectVariant||"multiple"===this.selectVariant)&&!this.isItemChecked(e)&&rZ(this,eR,"m",ts).call(this,e)}uncheckItem(e){e&&("single"===this.selectVariant||"multiple"===this.selectVariant)&&this.isItemChecked(e)&&rZ(this,eR,"m",ts).call(this,e)}};eN=new WeakMap,eV=new WeakMap,eF=new WeakMap,eW=new WeakMap,ej=new WeakMap,eB=new WeakMap,e$=new WeakMap,ez=new WeakMap,eR=new WeakSet,e_=function(){let{signal:e}=rZ(this,eV,"f");for(let t of this.querySelectorAll(r1.join(",")))t.addEventListener("click",rZ(this,eR,"m",eY).bind(this),{signal:e}),t.addEventListener("keydown",rZ(this,eR,"m",eY).bind(this),{signal:e})},eK=function(){let e=!1;if("single"===this.selectVariant)for(let t of this.items){let i=rZ(this,eR,"m",tu).call(this,t);i&&(!this.isItemHidden(t)&&this.isItemChecked(t)&&!e?(i.setAttribute("tabindex","0"),e=!0):i.setAttribute("tabindex","-1"),t.removeAttribute("tabindex"))}else for(let e of this.items){let t=rZ(this,eR,"m",tu).call(this,e);t&&(t.setAttribute("tabindex","-1"),e.removeAttribute("tabindex"))}!e&&rZ(this,eR,"a",tl)&&rZ(this,eR,"m",tu).call(this,rZ(this,eR,"a",tl))?.setAttribute("tabindex","0")},eY=function(e){if(!rZ(this,eR,"m",eX).call(this,e))return!1;let t=e.target.closest(r2);return!!t&&!!t.getAttribute("aria-disabled")&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!0)},eU=function(e){return e.target instanceof HTMLAnchorElement&&e instanceof KeyboardEvent&&"keydown"===e.type&&!(e.ctrlKey||e.altKey||e.metaKey||e.shiftKey)&&" "===e.key},eX=function(e){return e instanceof MouseEvent&&"click"===e.type||rZ(this,eR,"m",eU).call(this,e)},eG=function(){for(let e of this.items){let t=rZ(this,eR,"m",tu).call(this,e);if(!t)continue;let i=t.getAttribute("data-value");i&&rZ(this,ej,"f").has(i)&&t.setAttribute(this.ariaSelectionType,"true")}rZ(this,eR,"m",ta).call(this)},eQ=function(e){let t=rZ(this,eR,"m",tu).call(this,e);if(!t)return;let i=t.getAttribute("data-value");i&&rZ(this,ej,"f").set(i,{value:i,label:t.querySelector(".ActionListItem-label")?.textContent?.trim(),inputName:t.getAttribute("data-input-name")})},eJ=function(e){let t=rZ(this,eR,"m",tu).call(this,e);if(!t)return;let i=t.getAttribute("data-value");i&&rZ(this,ej,"f").delete(i)},eZ=function(){rZ(this,eR,"a",tt)&&(rZ(this,eB,"f")&&clearTimeout(rZ(this,eB,"f")),rZ(this,e$,"f")&&clearTimeout(rZ(this,e$,"f")),r0(this,e$,setTimeout(()=>{this.liveRegion.announce("Loading")},2e3),"f"),r0(this,eB,setTimeout(()=>{rZ(this,eR,"a",tt)?.showLeadingSpinner()},1e3),"f"))},e0=function(e){switch(e.type){case"include-fragment-replaced":rZ(this,eR,"m",e7).call(this);break;case"loadstart":rZ(this,eR,"m",e1).call(this,!1);break;case"loadend":rZ(this,eR,"a",tt)?.hideLeadingSpinner(),this.dispatchEvent(new CustomEvent("loadend"));break;case"error":{rZ(this,eR,"m",e1).call(this,!0);let t=this.fragmentErrorElement;throw t&&!t.hasAttribute("hidden")&&this.liveRegion.announceFromElement(t,{politeness:"assertive"}),Error(e.detail.error)}}},e1=function(e){for(let t of this.includeFragment.querySelectorAll("[data-show-on-error]"))t instanceof HTMLElement&&(t.hidden=!e);for(let t of this.includeFragment.querySelectorAll("[data-hide-on-error]"))t instanceof HTMLElement&&(t.hidden=e)},e3=function(e){switch(e.type){case"remote-input-success":rZ(this,eR,"m",e6).call(this),rZ(this,eR,"m",e7).call(this),rZ(this,eR,"m",eG).call(this);break;case"remote-input-error":this.bodySpinner?.setAttribute("hidden",""),this.includeFragment||0===this.visibleItems.length?rZ(this,eR,"m",e9).call(this,tf.BODY):rZ(this,eR,"m",e9).call(this,tf.BANNER);break;case"loadstart":if(!rZ(this,eR,"m",ti).call(this)){if(rZ(this,eR,"m",e6).call(this),this.bodySpinner?.removeAttribute("hidden"),this.bodySpinner)break;rZ(this,eR,"m",eZ).call(this)}break;case"loadend":rZ(this,eR,"a",tt)?.hideLeadingSpinner(),rZ(this,e$,"f")&&clearTimeout(rZ(this,e$,"f")),rZ(this,eB,"f")&&clearTimeout(rZ(this,eB,"f")),this.dispatchEvent(new CustomEvent("loadend"))}},e2=function(e,t){return(e.getAttribute("data-filter-string")||e.textContent||"").toLowerCase().indexOf(t.toLowerCase())>-1},e5=function(e){if("keydown"===e.type){let t=e.key;if("Enter"===t){let e=this.visibleItems[0];if(e){let t=rZ(this,eR,"m",tu).call(this,e);t&&t.click()}}else if("ArrowDown"===t){let t=this.focusableItem||rZ(this,eR,"m",tu).call(this,this.visibleItems[0]);t&&(t.focus(),e.preventDefault())}else if("Home"===t){let t=this.visibleItems[0];if(t){let i=rZ(this,eR,"m",tu).call(this,t);i&&i.focus(),e.preventDefault()}}else if("End"===t&&this.visibleItems.length>0){let t=this.visibleItems[this.visibleItems.length-1],i=rZ(this,eR,"m",tu).call(this,t);i&&i.focus(),e.preventDefault()}}if("input"===e.type&&(this.bodySpinner||rZ(this,eR,"m",ti).call(this)||rZ(this,eR,"m",eZ).call(this),rZ(this,eR,"a",te)===th.LOCAL||rZ(this,eR,"a",te)===th.EVENTUALLY_LOCAL)){if(this.includeFragment)return void this.includeFragment.refetch();rZ(this,eR,"m",e7).call(this)}},e7=function(){if(!this.list)return;let e=!1;if(rZ(this,eR,"m",ti).call(this)){let t=this.filterInputTextField?.value??"",i=this.filterFn||rZ(this,eR,"m",e2);for(let r of this.items)i(r,t)?(rZ(this,eR,"m",td).call(this,r),e=!0):rZ(this,eR,"m",tc).call(this,r)}else e=this.items.length>0;for(let e of(rZ(this,eR,"m",eK).call(this),rZ(this,eR,"m",e8).call(this),this.items)){let t=rZ(this,eR,"m",tu).call(this,e);if(!t)continue;let i=t.getAttribute("data-value");rZ(this,ez,"f")?i&&!rZ(this,ej,"f").has(i)&&t.setAttribute(this.ariaSelectionType,"false"):i&&!rZ(this,ej,"f").has(i)&&this.isItemChecked(e)&&rZ(this,eR,"m",eQ).call(this,e)}if(r0(this,ez,!0,"f"),this.noResults){if(rZ(this,eR,"m",e4).call(this))return void this.noResults.setAttribute("hidden","");e?(this.noResults.setAttribute("hidden",""),this.list?.querySelector(".ActionListWrap")?.removeAttribute("hidden")):(this.list?.querySelector(".ActionListWrap")?.setAttribute("hidden",""),this.noResults.removeAttribute("hidden"))}},e4=function(){return!(!this.fragmentErrorElement||this.fragmentErrorElement.hasAttribute("hidden"))||!!this.bannerErrorElement&&!this.bannerErrorElement.hasAttribute("hidden")},e9=function(e){let t=this.fragmentErrorElement;if(e===tf.BODY&&this.fragmentErrorElement?(this.fragmentErrorElement.removeAttribute("hidden"),this.bannerErrorElement.setAttribute("hidden","")):(t=this.bannerErrorElement,this.bannerErrorElement?.removeAttribute("hidden"),this.fragmentErrorElement?.setAttribute("hidden","")),t&&!t.hasAttribute("hidden"))return void this.liveRegion.announceFromElement(t,{politeness:"assertive"})},e6=function(){this.fragmentErrorElement?.setAttribute("hidden",""),this.bannerErrorElement.setAttribute("hidden","")},e8=function(){if(this.open&&this.list){let e=this.visibleItems;if(e.length>0)this.liveRegion.announce(`${e.length} result${1===e.length?"":"s"} tab for results`);else{let e=this.noResults;e&&this.liveRegion.announceFromElement(e)}}},te=function(){if(!this.list)return th.REMOTE;switch(this.list.getAttribute("data-fetch-strategy")){case"local":return th.LOCAL;case"eventually_local":return th.EVENTUALLY_LOCAL;default:return th.REMOTE}},tt=function(){return this.filterInputTextField?.closest("primer-text-field")},ti=function(){return rZ(this,eR,"a",te)===th.LOCAL||rZ(this,eR,"a",te)===th.EVENTUALLY_LOCAL},tr=function(e){this.invokerElement?.dispatchEvent(new CustomEvent("invokerClicked",{bubbles:!0})),e.preventDefault(),e.stopPropagation(),this.open?this.hide():this.show()},tn=function(e,t){this.querySelector(".ActionListWrap").style.display="none";let i=new AbortController,{signal:r}=i,n=()=>{i.abort(),this.querySelector(".ActionListWrap").style.display="",this.open&&this.hide();let e=this.ownerDocument.activeElement,t=this.ownerDocument.activeElement===this.ownerDocument.body,r=this.contains(e);(t||r)&&setTimeout(()=>this.invokerElement?.focus(),0)};t.addEventListener("close",n,{signal:r}),t.addEventListener("cancel",n,{signal:r})},ts=function(e){if("multiple"!==this.selectVariant&&setTimeout(()=>{this.open&&this.hide()}),"multiple"!==this.selectVariant&&"single"!==this.selectVariant)return;let t=this.isItemChecked(e),i=!t;if(!this.dispatchEvent(new CustomEvent("beforeItemActivated",{bubbles:!0,cancelable:!0,detail:{item:e,checked:i,value:rZ(this,eR,"m",tu).call(this,e)?.getAttribute("data-value")}})))return;let r=rZ(this,eR,"m",tu).call(this,e);if("single"===this.selectVariant){if(r?.getAttribute("href"))return;if(!t){for(let e of this.items)rZ(this,eR,"m",tu).call(this,e)?.setAttribute(this.ariaSelectionType,"false");rZ(this,ej,"f").clear(),i&&(rZ(this,eR,"m",eQ).call(this,e),r?.setAttribute(this.ariaSelectionType,"true")),rZ(this,eR,"m",to).call(this)}}else r?.setAttribute(this.ariaSelectionType,`${i}`),i?rZ(this,eR,"m",eQ).call(this,e):rZ(this,eR,"m",eJ).call(this,e);rZ(this,eR,"m",ta).call(this),rZ(this,eR,"m",eK).call(this),this.dispatchEvent(new CustomEvent("itemActivated",{bubbles:!0,detail:{item:e,checked:i,value:rZ(this,eR,"m",tu).call(this,e)?.getAttribute("data-value")}}))},to=function(){if(!this.dynamicLabel)return;let e=this.invokerLabel;if(!e)return;r0(this,eF,rZ(this,eF,"f")||e.textContent||"","f");let t=this.querySelector(`[${this.ariaSelectionType}=true] .ActionListItem-label`)?.textContent||rZ(this,eF,"f");if(t){let i=document.createElement("span");i.classList.add("color-fg-muted");let r=document.createElement("span");i.textContent=`${this.dynamicLabelPrefix} `,r.textContent=t,e.replaceChildren(i,r),this.dynamicAriaLabelPrefix&&this.invokerElement?.setAttribute("aria-label",`${this.dynamicAriaLabelPrefix} ${t.trim()}`)}else e.textContent=rZ(this,eF,"f")},ta=function(){if("single"===this.selectVariant){let e=this.querySelector("[data-select-panel-inputs=true] input")??this.querySelector("[data-list-inputs=true] input");if(!e)return;let t=this.selectedItems[0];t?(e.value=(t.value||t.label||"").trim(),t.inputName&&(e.name=t.inputName),e.removeAttribute("disabled")):rZ(this,ez,"f")&&e.setAttribute("disabled","disabled")}else if("none"!==this.selectVariant){let e=!!this.querySelector("[data-select-panel-inputs=true]"),t=this.querySelector("[data-select-panel-inputs=true]")??this.querySelector("[data-list-inputs=true]");if(!t)return;let i=t.querySelectorAll("input");for(let r of(i.length>0&&r0(this,eW,rZ(this,eW,"f")||i[0].name,"f"),this.selectedItems)){let i=document.createElement("input");i.setAttribute(`${e?"data-select-panel-input":"data-list-input"}`,"true"),i.type="hidden",i.autocomplete="off",i.name=r.inputName||rZ(this,eW,"f"),i.value=(r.value||r.label||"").trim(),t.append(i)}for(let e of i)e.remove()}},tl=function(){return this.querySelector(r2)?.parentElement||null},tc=function(e){e&&e.setAttribute("hidden","hidden")},td=function(e){e&&e.removeAttribute("hidden")},tu=function(e){return e.querySelector(".ActionListContent")},rJ([tj.aC],r7.prototype,"includeFragment",void 0),rJ([tj.aC],r7.prototype,"dialog",void 0),rJ([tj.aC],r7.prototype,"filterInputTextField",void 0),rJ([tj.aC],r7.prototype,"remoteInput",void 0),rJ([tj.aC],r7.prototype,"list",void 0),rJ([tj.aC],r7.prototype,"noResults",void 0),rJ([tj.aC],r7.prototype,"fragmentErrorElement",void 0),rJ([tj.aC],r7.prototype,"bannerErrorElement",void 0),rJ([tj.aC],r7.prototype,"bodySpinner",void 0),rJ([tj.aC],r7.prototype,"liveRegion",void 0),r7=rJ([(0,tj.p_)("select-panel")],r7),window.customElements.get("select-panel")||(window.SelectPanelElement=r7,window.customElements.define("select-panel",r7));var r4=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o};let r9=class extends HTMLElement{toggle(){if(this.detailsTarget.hasAttribute("open")){let e=this.summaryTarget.getAttribute("data-aria-label-closed");e&&this.summaryTarget.setAttribute("aria-label",e),this.summaryTarget.setAttribute("aria-expanded","false")}else{let e=this.summaryTarget.getAttribute("data-aria-label-open");e&&this.summaryTarget.setAttribute("aria-label",e),this.summaryTarget.setAttribute("aria-expanded","true")}}};function r6(e,t){let i=e.closest("[role=tree]");if(!i)return;let r=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,e=>e instanceof HTMLElement&&"treeitem"===e.getAttribute("role")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),n=r.firstChild();for(;n!==e;)n=r.nextNode();let s="next"===t?r.nextNode():r.previousNode();for(;s instanceof HTMLElement&&function(e,t){for(let i of t.querySelectorAll("[role=treeitem][aria-expanded=false]"))if(e!==i&&i.closest("li")?.contains(e))return i;return null}(s,i);)s="next"===t?r.nextNode():r.previousNode();return s instanceof HTMLElement?s:void 0}function r8(e){let t=e.closest("[role=group]"),i=t?.closest("[role=treeitem]");return i instanceof HTMLElement?i:void 0}r4([tj.aC],r9.prototype,"detailsTarget",void 0),r4([tj.aC],r9.prototype,"summaryTarget",void 0),r9=r4([(0,tj.p_)("details-toggle")],r9),window.DetailsToggleElement=r9;var ne=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},nt=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i},ni=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)};let nr=class extends HTMLElement{constructor(){super(...arguments),tp.add(this),tm.set(this,void 0)}connectedCallback(){var e;let{signal:t}=nt(this,tm,new AbortController,"f");this.addEventListener("click",this,{signal:t}),this.addEventListener("focusin",this,{signal:t}),this.addEventListener("keydown",this,{signal:t}),e=this,(0,tK.zB)(e,{bindKeys:tK.z0.ArrowVertical|tK.z0.ArrowHorizontal|tK.z0.HomeAndEnd|tK.z0.Backspace,getNextFocusable:(e,t,i)=>{if(t instanceof HTMLElement){try{if(t.closest("dialog:modal"))return}catch{}return function(e,t){let i=function(e){if("treeitem"!==e.getAttribute("role"))throw Error("Element is not a treeitem");switch(e.getAttribute("aria-expanded")){case"true":return"open";case"false":return"closed";default:return"end"}}(e);switch(`${i} ${t.key}`){case"open ArrowRight":let r;return(r=e.querySelector("[role=treeitem]"))instanceof HTMLElement?r:void 0;case"open ArrowLeft":case"closed ArrowRight":case"end ArrowRight":return;case"closed ArrowLeft":case"end ArrowLeft":return r8(e)}switch(t.key){case"ArrowUp":return r6(e,"previous");case"ArrowDown":return r6(e,"next");case"Backspace":return r8(e)}}(t,i)??t}},focusInStrategy:()=>{let t=e.querySelector("[aria-current]");t=t?.checkVisibility()?t:null;let i=e.querySelector('[role="treeitem"]');return t instanceof HTMLElement?t:document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&"treeitem"===document.activeElement.getAttribute("role")?document.activeElement:i instanceof HTMLElement?i:void 0}}),new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)e instanceof HTMLElement&&e.querySelector("[aria-expanded=true]")&&ni(this,tp,"m",tg).call(this,e)}).observe(this,{childList:!0,subtree:!0}),new MutationObserver(e=>{if(!this.formInputContainer||!e.some(e=>e.target instanceof HTMLElement&&e.target.getAttribute("aria-checked")!==e.oldValue))return;let t=[];for(let e of this.querySelectorAll("[role=treeitem][aria-checked=true]")){let i=this.formInputPrototype.cloneNode();i.removeAttribute("data-target"),i.removeAttribute("form");let r={path:this.getNodePath(e)},n=this.getFormInputValueForNode(e);n&&(r.value=n),i.value=JSON.stringify(r),t.push(i)}this.formInputContainer.replaceChildren(...t)}).observe(this,{childList:!0,subtree:!0,attributeFilter:["aria-checked"]}),customElements.whenDefined("tree-view-sub-tree-node").then(()=>{ni(this,tp,"m",tg).call(this,this)})}disconnectedCallback(){ni(this,tm,"f").abort()}handleEvent(e){let t=ni(this,tp,"m",tv).call(this,e);t&&ni(this,tp,"m",tw).call(this,t,e)}getFormInputValueForNode(e){return e.getAttribute("data-value")}getNodePath(e){let t=e.getAttribute("data-path");return t?JSON.parse(t):[]}getNodeType(e){return e.getAttribute("data-node-type")}markCurrentAtPath(e){let t=JSON.stringify(e),i=this.querySelector(`[data-path="${CSS.escape(t)}"`);i&&(this.currentNode?.setAttribute("aria-current","false"),i.setAttribute("aria-current","true"))}get currentNode(){return this.querySelector("[aria-current=true]")}expandAtPath(e){let t=this.subTreeAtPath(e);t&&t.expand()}collapseAtPath(e){let t=this.subTreeAtPath(e);t&&t.collapse()}toggleAtPath(e){let t=this.subTreeAtPath(e);t&&t.toggle()}checkAtPath(e){let t=this.nodeAtPath(e);t&&this.setNodeCheckedValue(t,"true")}uncheckAtPath(e){let t=this.nodeAtPath(e);t&&this.setNodeCheckedValue(t,"false")}toggleCheckedAtPath(e){let t=this.nodeAtPath(e);t&&"leaf"===this.getNodeType(t)&&("true"===this.getNodeCheckedValue(t)?this.uncheckAtPath(e):this.checkAtPath(e))}checkedValueAtPath(e){let t=this.nodeAtPath(e);return t?this.getNodeCheckedValue(t):"false"}disabledValueAtPath(e){let t=this.nodeAtPath(e);return!!t&&this.getNodeDisabledValue(t)}nodeAtPath(e,t){let i=JSON.stringify(e);return this.querySelector(`${t||""}[data-path="${CSS.escape(i)}"]`)}subTreeAtPath(e){let t=this.nodeAtPath(e,"[data-node-type=sub-tree]");return t?t.closest("tree-view-sub-tree-node"):null}leafAtPath(e){return this.nodeAtPath(e,"[data-node-type=leaf]")}setNodeCheckedValue(e,t){e.setAttribute("aria-checked",t.toString())}getNodeCheckedValue(e){return e.getAttribute("aria-checked")||"false"}getNodeDisabledValue(e){return"true"===e.getAttribute("aria-disabled")}setNodeDisabledValue(e,t){t?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}nodeHasCheckBox(e){return null!==e.querySelector(".TreeViewItemCheckbox")}nodeHasNativeAction(e){return e instanceof HTMLAnchorElement||e instanceof HTMLButtonElement}expandAncestorsForNode(e){let t=e.closest("tree-view-sub-tree-node");if(t)for(let e of t.eachAncestorSubTreeNode())e.expanded||e.expand()}infoFromNode(e,t){let i=this.getNodeType(e);if(!i)return null;let r=this.getNodeCheckedValue(e);return{node:e,type:i,path:this.getNodePath(e),checkedValue:t||r,previousCheckedValue:r}}};tm=new WeakMap,tp=new WeakSet,tg=function(e){for(let t of e.querySelectorAll("[aria-expanded=true]"))this.expandAncestorsForNode(t)},tb=function(e){return"click"===e.type},tv=function(e){let t=e.target,i=t.closest("[role=treeitem]");return!i||t.closest(".TreeViewItemToggle")||t.closest(".TreeViewItemLeadingAction")?null:i},tw=function(e,t){ni(this,tp,"m",tE).call(this,t,e)?ni(this,tp,"m",ty).call(this,t,e):ni(this,tp,"m",tb).call(this,t)?ni(this,tp,"m",tA).call(this,t,e):"focusin"===t.type?ni(this,tp,"m",tL).call(this,e):t instanceof KeyboardEvent&&ni(this,tp,"m",tk).call(this,t,e)},tE=function(e,t){return"click"===e.type&&this.nodeHasCheckBox(t)},ty=function(e,t){this.getNodeDisabledValue(t)?e.preventDefault():"leaf"===this.getNodeType(t)&&("true"===this.getNodeCheckedValue(t)?this.setNodeCheckedValue(t,"false"):this.setNodeCheckedValue(t,"true"))},tA=function(e,t){if(this.getNodeDisabledValue(t))return void e.preventDefault();if(!(t instanceof HTMLDivElement))return;let i=this.getNodePath(t);this.dispatchEvent(new CustomEvent("treeViewBeforeNodeActivated",{bubbles:!0,cancelable:!0,detail:this.infoFromNode(t)}))&&(this.nodeHasNativeAction(t)||this.toggleAtPath(i),this.dispatchEvent(new CustomEvent("treeViewNodeActivated",{bubbles:!0,detail:this.infoFromNode(t)})))},tL=function(e){let t=this.querySelector("[aria-selected=true]");t?.setAttribute("aria-selected","false"),e.setAttribute("aria-selected","true")},tk=function(e,t){if(t&&"leaf"===this.getNodeType(t))switch(e.key){case" ":case"Enter":if(this.getNodeDisabledValue(t)){e.preventDefault();break}this.nodeHasCheckBox(t)?(e.preventDefault(),"true"===this.getNodeCheckedValue(t)?this.setNodeCheckedValue(t,"false"):this.setNodeCheckedValue(t,"true")):t instanceof HTMLAnchorElement&&t.click()}},ne([tj.aC],nr.prototype,"formInputContainer",void 0),ne([tj.aC],nr.prototype,"formInputPrototype",void 0),nr=ne([(0,tj.p_)("tree-view")],nr),window.customElements.get("tree-view")||(window.TreeViewElement=nr,window.customElements.define("tree-view",nr));var nn=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},ns=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)};let no=class extends HTMLElement{constructor(){super(...arguments),tT.add(this)}connectedCallback(){rm(this,()=>!!this.collapsedIcon&&!!this.expandedIcon,()=>{this.expanded=this.collapsedIcon.hidden})}showExpanded(){this.expanded=!0,ns(this,tT,"m",tC).call(this)}showCollapsed(){this.expanded=!1,ns(this,tT,"m",tC).call(this)}toggle(){this.expanded=!this.expanded,ns(this,tT,"m",tC).call(this)}};tT=new WeakSet,tC=function(){this.expanded?(this.expandedIcon.hidden=!1,this.collapsedIcon.hidden=!0):(this.expandedIcon.hidden=!0,this.collapsedIcon.hidden=!1)},nn([tj.aC],no.prototype,"expandedIcon",void 0),nn([tj.aC],no.prototype,"collapsedIcon",void 0),no=nn([(0,tj.p_)("tree-view-icon-pair")],no),window.customElements.get("tree-view-icon-pair")||(window.TreeViewIconPairElement=no,window.customElements.define("tree-view-icon-pair",no));var na=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},nl=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)},nc=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i};let nd=class extends HTMLElement{constructor(){super(...arguments),tx.add(this),tS.set(this,null),tM.set(this,"success"),tI.set(this,void 0),tP.set(this,!1)}connectedCallback(){rm(this,()=>!!this.node&&!!this.subTree,()=>{nl(this,tx,"m",tN).call(this)});let{signal:e}=nc(this,tI,new AbortController,"f");this.addEventListener("click",this,{signal:e}),this.addEventListener("keydown",this,{signal:e}),rm(this,()=>!!this.includeFragment,()=>{this.includeFragment.addEventListener("loadstart",this,{signal:e}),this.includeFragment.addEventListener("error",this,{signal:e}),this.includeFragment.addEventListener("include-fragment-replace",this,{signal:e}),this.includeFragment.addEventListener("include-fragment-replaced",e=>{nl(this,tx,"m",tO).call(this,e)},{signal:e})}),rm(this,()=>!!this.retryButton,()=>{this.retryButton.addEventListener("click",e=>{nl(this,tx,"m",tq).call(this,e)},{signal:e})}),new MutationObserver(()=>{if("mixed_descendants"!==this.selectStrategy)return;let e="unknown";for(let t of this.eachDirectDescendantNode())switch(`${e} ${t.getAttribute("aria-checked")||"false"}`){case"unknown mixed":case"false mixed":case"true mixed":case"false true":case"true false":e="mixed";break;case"unknown false":e="false";break;case"unknown true":e="true"}"unknown"!==e&&this.node?.getAttribute("aria-checked")!==e&&this.node?.setAttribute("aria-checked",e)}).observe(this,{childList:!0,subtree:!0,attributeFilter:["aria-checked"]})}get expanded(){return null===nl(this,tS,"f")&&nc(this,tS,"true"===this.node.getAttribute("aria-expanded"),"f"),nl(this,tS,"f")}set expanded(e){nc(this,tS,e,"f"),nl(this,tx,"m",tN).call(this)}get loadingState(){return nl(this,tM,"f")}set loadingState(e){nc(this,tM,e,"f"),nl(this,tx,"m",tN).call(this)}get selectStrategy(){return this.node.getAttribute("data-select-strategy")||"descendants"}disconnectedCallback(){nl(this,tI,"f").abort()}handleEvent(e){e.target===this.toggleButton?nl(this,tx,"m",tD).call(this,e):e.target===this.includeFragment?nl(this,tx,"m",tO).call(this,e):e instanceof KeyboardEvent?nl(this,tx,"m",tH).call(this,e):e.target.closest("[role=treeitem]")===this.node&&"click"===e.type&&nl(this,tx,"a",tF)&&nl(this,tx,"m",tR).call(this,e)}expand(){let e=this.expanded;this.expanded=!0,!e&&this.treeView&&this.treeView.dispatchEvent(new CustomEvent("treeViewNodeExpanded",{bubbles:!0,detail:this.treeView?.infoFromNode(this.node)}))}collapse(){let e=!this.expanded;if(this.expanded=!1,!e&&this.treeView){let e=this.subTree.querySelector("[tabindex='0']");e?.setAttribute("tabindex","-1"),nl(this,tx,"m",tV).call(this)&&"0"===this.subTree.getAttribute("tabindex")&&this.subTree.setAttribute("tabindex","-1"),this.node.setAttribute("tabindex","0"),this.treeView.dispatchEvent(new CustomEvent("treeViewNodeCollapsed",{bubbles:!0,detail:this.treeView?.infoFromNode(this.node)}))}}toggle(){this.expanded?this.collapse():this.expand()}get nodes(){return this.querySelectorAll(":scope > [role=treeitem]")}*eachDirectDescendantNode(){for(let e of this.subTree.querySelectorAll(":scope > li > .TreeViewItemContainer > [role=treeitem]"))yield e;for(let e of this.subTree.querySelectorAll(":scope > tree-view-sub-tree-node > li > .TreeViewItemContainer > [role=treeitem]"))yield e}*eachDescendantNode(){for(let e of this.subTree.querySelectorAll("[role=treeitem]"))yield e}*eachAncestorSubTreeNode(){if(!this.treeView)return;let e=this;for(;e&&this.treeView.contains(e);)yield e,e=e.parentElement?.closest("tree-view-sub-tree-node")}get isEmpty(){return 0===this.nodes.length}get treeView(){return this.closest("tree-view")}toggleChecked(){let e="false"===(this.treeView?.getNodeCheckedValue(this.node)||"false")?"true":"false",t=[],i=this.treeView?.infoFromNode(this.node,e);if(i&&t.push(i),"descendants"===this.selectStrategy||"mixed_descendants"===this.selectStrategy)for(let i of this.eachDescendantNode()){let r=this.treeView?.infoFromNode(i,e);r&&t.push(r)}if(this.dispatchEvent(new CustomEvent("treeViewBeforeNodeChecked",{bubbles:!0,cancelable:!0,detail:t}))){for(let i of t)i.node.setAttribute("aria-checked",e);this.dispatchEvent(new CustomEvent("treeViewNodeChecked",{bubbles:!0,cancelable:!0,detail:t}))}}};tS=new WeakMap,tM=new WeakMap,tI=new WeakMap,tP=new WeakMap,tx=new WeakSet,tD=function(e){"click"===e.type&&(this.toggle(),e.stopPropagation())},tO=function(e){switch(e.type){case"loadstart":this.loadingState="loading";break;case"error":this.loadingState="error";break;case"include-fragment-replace":nc(this,tP,document.activeElement===this.loadingIndicator.closest("[role=treeitem]"),"f"),!nl(this,tP,"f")&&document.activeElement===this.subTree&&nl(this,tx,"m",tV).call(this)&&nc(this,tP,!0,"f"),this.loadingState="success";break;case"include-fragment-replaced":if(this.expanded=!0,nl(this,tP,"f")){let e=this.querySelector("[role=group] > :first-child");if(!e)return;let t=e.querySelector("[role=treeitem]");if(!t)return;t.focus()}nc(this,tP,!1,"f")}},tq=function(e){"click"===e.type&&(this.loadingState="loading",this.includeFragment.refetch())},tH=function(e){let t=e.target.closest("[role=treeitem]");if(t&&this.treeView?.getNodeType(t)==="sub-tree")switch(e.key){case"Enter":if(this.treeView?.getNodeDisabledValue(t)){e.preventDefault();break}e.stopPropagation(),nl(this,tx,"a",tF)?this.toggleChecked():this.treeView?.nodeHasNativeAction(t)||this.toggle();break;case"ArrowRight":e.stopPropagation(),this.expand();break;case"ArrowLeft":e.stopPropagation(),this.collapse();break;case" ":if(this.treeView?.getNodeDisabledValue(t)){e.preventDefault();break}nl(this,tx,"a",tF)?(e.stopPropagation(),e.preventDefault(),this.toggleChecked()):t instanceof HTMLAnchorElement?t.click():this.treeView?.nodeHasNativeAction(t)||this.toggle()}},tR=function(e){this.treeView?.getNodeDisabledValue(this.node)?e.preventDefault():"click"===e.type&&(this.toggleChecked(),e.stopPropagation())},tN=function(){switch(this.expanded?(this.subTree&&(this.subTree.hidden=!1),nl(this,tx,"m",tV).call(this)&&(this.subTree.setAttribute("role","treeitem"),!this.subTree.hasAttribute("tabindex")&&this.subTree.setAttribute("tabindex","-1")),this.node.setAttribute("aria-expanded","true"),this.treeView?.expandAncestorsForNode(this),this.iconPair&&this.iconPair.showExpanded(),this.expandedToggleIcon&&this.collapsedToggleIcon&&(this.expandedToggleIcon.removeAttribute("hidden"),this.collapsedToggleIcon.setAttribute("hidden","hidden"))):(this.subTree&&(this.subTree.hidden=!0),nl(this,tx,"m",tV).call(this)&&(this.subTree.removeAttribute("role"),this.subTree.removeAttribute("tabindex")),this.node.setAttribute("aria-expanded","false"),this.iconPair&&this.iconPair.showCollapsed(),this.expandedToggleIcon&&this.collapsedToggleIcon&&(this.expandedToggleIcon.setAttribute("hidden","hidden"),this.collapsedToggleIcon.removeAttribute("hidden"))),this.loadingState){case"loading":this.loadingFailureMessage&&(this.loadingFailureMessage.hidden=!0),this.loadingIndicator&&(this.loadingIndicator.hidden=!1);break;case"error":this.loadingIndicator&&(this.loadingIndicator.hidden=!0),this.loadingFailureMessage&&(this.loadingFailureMessage.hidden=!1);break;default:this.loadingIndicator&&(this.loadingIndicator.hidden=!0),this.loadingFailureMessage&&(this.loadingFailureMessage.hidden=!0)}},tV=function(){return this.subTree?.getAttribute("data-target")?.includes("tree-view-sub-tree-node.includeFragment")??!1},tF=function(){return this.querySelector(".TreeViewItemCheckbox")},na([tj.aC],nd.prototype,"node",void 0),na([tj.aC],nd.prototype,"subTree",void 0),na([tj.aC],nd.prototype,"iconPair",void 0),na([tj.aC],nd.prototype,"toggleButton",void 0),na([tj.aC],nd.prototype,"expandedToggleIcon",void 0),na([tj.aC],nd.prototype,"collapsedToggleIcon",void 0),na([tj.aC],nd.prototype,"includeFragment",void 0),na([tj.aC],nd.prototype,"loadingIndicator",void 0),na([tj.aC],nd.prototype,"loadingFailureMessage",void 0),na([tj.aC],nd.prototype,"retryButton",void 0),nd=na([(0,tj.p_)("tree-view-sub-tree-node")],nd),window.customElements.get("tree-view-sub-tree-node")||(window.TreeViewSubTreeNodeElement=nd,window.customElements.define("tree-view-sub-tree-node",nd));let nu=class extends tW.T{request(){let e=super.request(),t=new URL(e.url);return t.searchParams.set("path",this.getAttribute("data-path")||""),new Request(t,{method:e.method,headers:e.headers,credentials:e.credentials})}};nu=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o}([(0,tj.p_)("tree-view-include-fragment")],nu),window.customElements.get("tree-view-include-fragment")||(window.TreeViewIncludeFragmentElement=nu,window.customElements.define("tree-view-include-fragment",nu))},58466(e,t,i){var r,n,s,o=i(70170),a=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)},l=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i};(r=s||(s={})).GET="GET",r.POST="POST";let c=new WeakMap;class d extends Event{constructor(e){super(`auto-check-${e}`,{bubbles:!0}),this.phase=e}get detail(){return this}}class u extends d{constructor(e,t=""){super(e),this.phase=e,this.message=t,this.setValidity=e=>{this.message=e}}}class h extends d{constructor(){super("complete")}}class f extends d{constructor(e){super("success"),this.response=e}}class p extends u{constructor(){super("start","Verifying\u2026")}}class m extends u{constructor(e){super("error","Validation failed"),this.response=e}}class g extends d{constructor(e){super("send"),this.body=e}}class b extends HTMLElement{constructor(){super(...arguments),n.set(this,null)}static define(e="auto-check",t=customElements){return t.define(e,this),this}get onloadend(){return a(this,n,"f")}set onloadend(e){a(this,n,"f")&&this.removeEventListener("loadend",a(this,n,"f")),l(this,n,"object"==typeof e||"function"==typeof e?e:null,"f"),"function"==typeof e&&this.addEventListener("loadend",e)}connectedCallback(){let e=this.input;if(!e)return;let t=(0,o.s)(y.bind(null,this),300);c.set(this,{check:t,controller:null});let i=v.bind(null,t);e.addEventListener("blur",i),e.addEventListener("input",i),e.addEventListener("triggervalidation",i),e.autocomplete="off",e.spellcheck=!1}disconnectedCallback(){let e=this.input;if(!e)return;let t=c.get(this);t&&(c.delete(this),e.removeEventListener("input",w),e.removeEventListener("input",t.check),e.setCustomValidity(""))}attributeChangedCallback(e){if("required"===e){let e=this.input;e&&(e.required=this.required)}}triggerValidation(){let e=this.input;e&&e.dispatchEvent(new CustomEvent("triggervalidation"))}static get observedAttributes(){return["required"]}get input(){return this.querySelector("input")}get src(){let e=this.getAttribute("src");if(!e)return"";let t=this.ownerDocument.createElement("a");return t.href=e,t.href}set src(e){this.setAttribute("src",e)}get csrf(){let e=this.querySelector("[data-csrf]");return this.getAttribute("csrf")||e instanceof HTMLInputElement&&e.value||""}set csrf(e){this.setAttribute("csrf",e)}get required(){return this.hasAttribute("required")}set required(e){e?this.setAttribute("required",""):this.removeAttribute("required")}get csrfField(){return this.getAttribute("csrf-field")||"authenticity_token"}set csrfField(e){this.setAttribute("csrf-field",e)}get httpMethod(){return s[this.getAttribute("http-method")]||"POST"}set validateOnKeystroke(e){e?this.setAttribute("validate-on-keystroke",""):this.removeAttribute("validate-on-keystroke")}get validateOnKeystroke(){let e=this.getAttribute("validate-on-keystroke");return"true"===e||""===e}}function v(e,t){let i=t.currentTarget;if(!(i instanceof HTMLInputElement))return;let r=i.closest("auto-check");!(r instanceof b)||("input"===t.type&&r.setAttribute("dirty",""),0!==i.value.length&&("blur"===t.type&&!r.validateOnKeystroke&&r.hasAttribute("dirty")||"input"===t.type&&r.validateOnKeystroke||"triggervalidation"===t.type)&&(w(t),e()))}function w(e){let t=e.currentTarget;if(!(t instanceof HTMLInputElement))return;let i=t.closest("auto-check");if(!(i instanceof b))return;let r=i.src,n=i.csrf,s=i.httpMethod,o=c.get(i);if(!r||"POST"===s&&!n||!o)return;let a=new p;t.dispatchEvent(a),i.required&&t.setCustomValidity(a.message)}async function E(e,t,i){"GET"===i.method&&delete i.body;try{let r=await fetch(t,i);return e.dispatchEvent(new Event("load")),e.dispatchEvent(new Event("loadend")),r}catch(t){throw"AbortError"!==t.name&&(e.dispatchEvent(new Event("error")),e.dispatchEvent(new Event("loadend"))),t}}async function y(e){let t=e.input;if(!t)return;let i=e.csrfField,r=e.src,n=e.csrf,s=c.get(e),o=e.httpMethod;if(!r||"POST"===o&&!n||!s||!t.value.trim()){e.required&&t.setCustomValidity("");return}let a=new FormData,l=new URL(r,window.location.origin);"POST"===o?(a.append(i,n),a.append("value",t.value)):l.search=new URLSearchParams({value:t.value}).toString(),t.dispatchEvent(new g(a)),s.controller?s.controller.abort():e.dispatchEvent(new Event("loadstart")),s.controller="AbortController"in window?new AbortController:{signal:null,abort(){}},e.removeAttribute("dirty");try{let i=await E(e,l.toString(),{credentials:"same-origin",signal:s.controller.signal,method:o,body:a});if(i.ok)e.required&&t.setCustomValidity(""),e.validateOnKeystroke=!1,t.dispatchEvent(new f(i.clone()));else{e.validateOnKeystroke=!0;let r=new m(i.clone());t.dispatchEvent(r),e.required&&t.setCustomValidity(r.message)}s.controller=null,t.dispatchEvent(new h)}catch(e){"AbortError"!==e.name&&(s.controller=null,t.dispatchEvent(new h))}}n=new WeakMap;let A="u">typeof globalThis?globalThis:window;try{A.AutoCheckElement=b.define()}catch(e){if(!(A.DOMException&&e instanceof DOMException&&"NotSupportedError"===e.name)&&!(e instanceof ReferenceError))throw e}},35908(e,t,i){i.d(t,{A:()=>r});class r{constructor(e,t,{tabInsertsSuggestions:i,firstOptionSelectionMode:r,scrollIntoViewOptions:n}={}){this.input=e,this.list=t,this.tabInsertsSuggestions=null==i||i,this.firstOptionSelectionMode=null!=r?r:"none",this.scrollIntoViewOptions=null!=n?n:{block:"nearest",inline:"nearest"},this.isComposing=!1,t.id||(t.id=`combobox-${Math.random().toString().slice(2,6)}`),this.ctrlBindings=!!navigator.userAgent.match(/Macintosh/),this.keyboardEventHandler=e=>(function(e,t){if(!e.shiftKey&&!e.metaKey&&!e.altKey&&(t.ctrlBindings||!e.ctrlKey)&&!t.isComposing)switch(e.key){case"Enter":s(t.input,t.list)&&e.preventDefault();break;case"Tab":t.tabInsertsSuggestions&&s(t.input,t.list)&&e.preventDefault();break;case"Escape":t.clearSelection();break;case"ArrowDown":t.navigate(1),e.preventDefault();break;case"ArrowUp":t.navigate(-1),e.preventDefault();break;case"n":t.ctrlBindings&&e.ctrlKey&&(t.navigate(1),e.preventDefault());break;case"p":t.ctrlBindings&&e.ctrlKey&&(t.navigate(-1),e.preventDefault());break;default:if(e.ctrlKey)break;t.resetSelection()}})(e,this),this.compositionEventHandler=e=>{var t,i;return t=e,i=this,void(i.isComposing="compositionstart"===t.type,document.getElementById(i.input.getAttribute("aria-controls")||"")&&i.clearSelection())},this.inputHandler=this.clearSelection.bind(this),e.setAttribute("role","combobox"),e.setAttribute("aria-controls",t.id),e.setAttribute("aria-expanded","false"),e.setAttribute("aria-autocomplete","list"),e.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 e;"active"===this.firstOptionSelectionMode?null==(e=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(o)[0])||e.setAttribute("data-combobox-option-default","true"):"selected"===this.firstOptionSelectionMode&&this.navigate(1)}navigate(e=1){let t=Array.from(this.list.querySelectorAll('[aria-selected="true"]')).filter(o)[0],i=Array.from(this.list.querySelectorAll('[role="option"]')).filter(o),r=i.indexOf(t);if(r===i.length-1&&1===e||0===r&&-1===e){this.clearSelection(),this.input.focus();return}let n=1===e?0:i.length-1;if(t&&r>=0){let t=r+e;t>=0&&t0||e.offsetHeight>0)}},74057(e,t,i){i.d(t,{A:()=>b});let r="data-close-dialog",n=`[${r}]`;function s(e){let t=Array.from(e.querySelectorAll("[autofocus]")).filter(a)[0];t||(t=e,e.setAttribute("tabindex","-1")),t.focus()}function o(e){let t=e.currentTarget;t instanceof Element&&("Escape"===e.key||"Esc"===e.key?(u(t,!1),e.stopPropagation()):"Tab"===e.key&&function(e){if(!(e.currentTarget instanceof Element))return;let t=e.currentTarget.querySelector("details-dialog");if(!t)return;e.preventDefault();let i=Array.from(t.querySelectorAll("*")).filter(a);if(0===i.length)return;let r=e.shiftKey?-1:1,n=t.getRootNode(),s=t.contains(n.activeElement)?n.activeElement:null,o=-1===r?-1:0;if(s instanceof HTMLElement){let e=i.indexOf(s);-1!==e&&(o=e+r)}o<0?o=i.length-1:o%=i.length,i[o].focus()}(e))}function a(e){var t;return e.tabIndex>=0&&!e.disabled&&!(t=e).hidden&&(!t.type||"hidden"!==t.type)&&(t.offsetWidth>0||t.offsetHeight>0)}function l(e){let t=e.querySelector("details-dialog");return!(t instanceof g)||t.dispatchEvent(new CustomEvent("details-dialog-close",{bubbles:!0,cancelable:!0}))}function c(e){if(!(e.currentTarget instanceof Element))return;let t=e.currentTarget.closest("details");t&&t.hasAttribute("open")&&(l(t)||(e.preventDefault(),e.stopPropagation()))}function d(e){let t=e.currentTarget;if(!(t instanceof Element))return;let i=t.querySelector("details-dialog");if(i instanceof g)if(t.hasAttribute("open")){let e="getRootNode"in i?i.getRootNode():document;e.activeElement instanceof HTMLElement&&m.set(i,{details:t,activeElement:e.activeElement}),s(i),t.addEventListener("keydown",o)}else{var r,n;let e;for(let e of i.querySelectorAll("form"))e.reset();let s=(r=t,n=i,(e=m.get(n))&&e.activeElement instanceof HTMLElement?e.activeElement:r.querySelector("summary"));s&&s.focus(),t.removeEventListener("keydown",o)}}function u(e,t){t!==e.hasAttribute("open")&&(t?e.setAttribute("open",""):l(e)&&e.removeAttribute("open"))}function h(e){let t=e.currentTarget;if(!(t instanceof Element))return;let i=t.querySelector("details-dialog");if(!(i instanceof g))return;let r=i.querySelector("include-fragment:not([src])");if(!r)return;let n=i.src;null!==n&&(r.addEventListener("loadend",()=>{t.hasAttribute("open")&&s(i)}),r.setAttribute("src",n),p(t))}function f(e,t,i){p(e),t&&e.addEventListener("toggle",h,{once:!0}),t&&i&&e.addEventListener("mouseover",h,{once:!0})}function p(e){e.removeEventListener("toggle",h),e.removeEventListener("mouseover",h)}let m=new WeakMap;class g extends HTMLElement{static get CLOSE_ATTR(){return r}static get CLOSE_SELECTOR(){return n}constructor(){super(),m.set(this,{details:null,activeElement:null}),this.addEventListener("click",function({target:e}){if(!(e instanceof Element))return;let t=e.closest("details");t&&e.closest(n)&&u(t,!1)})}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",e||"")}get preload(){return this.hasAttribute("preload")}set preload(e){e?this.setAttribute("preload",""):this.removeAttribute("preload")}connectedCallback(){this.setAttribute("role","dialog"),this.setAttribute("aria-modal","true");let e=m.get(this);if(!e)return;let t=this.parentElement;if(!t)return;let i=t.querySelector("summary");i&&(i.hasAttribute("role")||i.setAttribute("role","button"),i.addEventListener("click",c,{capture:!0})),t.addEventListener("toggle",d),e.details=t,f(t,this.src,this.preload)}disconnectedCallback(){let e=m.get(this);if(!e)return;let{details:t}=e;if(!t)return;t.removeEventListener("toggle",d),p(t);let i=t.querySelector("summary");i&&i.removeEventListener("click",c,{capture:!0}),e.details=null}toggle(e){let t=m.get(this);if(!t)return;let{details:i}=t;i&&u(i,e)}static get observedAttributes(){return["src","preload"]}attributeChangedCallback(){let e=m.get(this);if(!e)return;let{details:t}=e;t&&f(t,this.src,this.preload)}}let b=g;window.customElements.get("details-dialog")||(window.DetailsDialogElement=g,window.customElements.define("details-dialog",g))},60612(){class e extends HTMLElement{get preload(){return this.hasAttribute("preload")}set preload(e){e?this.setAttribute("preload",""):this.removeAttribute("preload")}get src(){return this.getAttribute("src")||""}set src(e){this.setAttribute("src",e)}connectedCallback(){var e;let c;this.hasAttribute("role")||this.setAttribute("role","menu");let f=this.parentElement;if(!f)return;let p=f.querySelector("summary");p&&(p.setAttribute("aria-haspopup","menu"),p.hasAttribute("role")||p.setAttribute("role","button"));let m=[r(f,"compositionstart",e=>h(this,e)),r(f,"compositionend",e=>h(this,e)),r(f,"click",e=>l(f,e)),r(f,"change",e=>l(f,e)),r(f,"keydown",e=>(function(e,i,r){if(!(r instanceof KeyboardEvent)||e.querySelector("details[open]"))return;let n=t.get(i);if(!n||n.isComposing)return;let s=r.target instanceof Element&&"SUMMARY"===r.target.tagName;switch(r.key){case"Escape":e.hasAttribute("open")&&(u(e),r.preventDefault(),r.stopPropagation());break;case"ArrowDown":{s&&!e.hasAttribute("open")&&e.setAttribute("open","");let t=o(e,!0);t&&t.focus(),r.preventDefault()}break;case"ArrowUp":{s&&!e.hasAttribute("open")&&e.setAttribute("open","");let t=o(e,!1);t&&t.focus(),r.preventDefault()}break;case"n":if(a&&r.ctrlKey){let t=o(e,!0);t&&t.focus(),r.preventDefault()}break;case"p":if(a&&r.ctrlKey){let t=o(e,!1);t&&t.focus(),r.preventDefault()}break;case" ":case"Enter":{let t=document.activeElement;t instanceof HTMLElement&&d(t)&&t.closest("details")===e&&(r.preventDefault(),r.stopPropagation(),t.click())}}})(f,this,e)),r(f,"toggle",()=>n(f,this),{once:!0}),r(f,"toggle",()=>(function(e){if(e.hasAttribute("open"))for(let t of document.querySelectorAll("details[open] > details-menu")){let i=t.closest("details");i&&i!==e&&!i.contains(e)&&i.removeAttribute("open")}})(f)),this.preload?r(f,"mouseover",()=>n(f,this),{once:!0}):i,...(c=!1,[r(e=f,"mousedown",()=>c=!0),r(e,"keydown",()=>c=!1),r(e,"toggle",()=>{e.hasAttribute("open")&&!s(e)&&(c||function(e){let t=document.activeElement;if(t&&d(t)&&e.contains(t))return;let i=o(e,!0);i&&i.focus()}(e))})])];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,i={unsubscribe(){}};function r(e,t,i,n=!1){return e.addEventListener(t,i,n),{unsubscribe:()=>{e.removeEventListener(t,i,n)}}}function n(e,i){let r=i.getAttribute("src");if(!r)return;let n=t.get(i);if(!n||n.loaded)return;n.loaded=!0;let o=i.querySelector("include-fragment");o&&!o.hasAttribute("src")&&(o.addEventListener("loadend",()=>s(e)),o.setAttribute("src",r))}function s(e){if(!e.hasAttribute("open"))return!1;let t=e.querySelector("details-menu [autofocus]");return!!t&&(t.focus(),!0)}function o(e,t){let i=Array.from(e.querySelectorAll('[role^="menuitem"]:not([hidden]):not([disabled])')),r=document.activeElement,n=r instanceof HTMLElement?i.indexOf(r):-1,s=t?i[n+1]:i[n-1],o=t?i[0]:i[i.length-1];return s||o}let a=navigator.userAgent.match(/Macintosh/);function l(e,t){let i=t.target;if(i instanceof Element&&i.closest("details")===e){if("click"===t.type){let t=i.closest('[role="menuitem"], [role="menuitemradio"]');if(!t)return;let r=t.querySelector("input");if("LABEL"===t.tagName&&i===r)return;"LABEL"===t.tagName&&r&&!r.checked||c(t,e)}else if("change"===t.type){let t=i.closest('[role="menuitemradio"], [role="menuitemcheckbox"]');t&&c(t,e)}}}function c(e,t){if(e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled"))return;let i=e.closest("details-menu");if(i&&i.dispatchEvent(new CustomEvent("details-menu-select",{cancelable:!0,detail:{relatedTarget:e}}))){!function(e,t){let i=t.querySelector("[data-menu-button]");if(!i)return;let r=function(e){if(!e)return null;let t=e.hasAttribute("data-menu-button-text")?e:e.querySelector("[data-menu-button-text]");return t?t.getAttribute("data-menu-button-text")||t.textContent:null}(e);if(r)i.textContent=r;else{let t=function(e){if(!e)return null;let t=e.hasAttribute("data-menu-button-contents")?e:e.querySelector("[data-menu-button-contents]");return t?t.innerHTML:null}(e);t&&(i.innerHTML=t)}}(e,t);for(let i of t.querySelectorAll('[role="menuitemradio"], [role="menuitemcheckbox"]')){let t=i.querySelector('input[type="radio"], input[type="checkbox"]'),r=(i===e).toString();t instanceof HTMLInputElement&&(r=t.indeterminate?"mixed":t.checked.toString()),i.setAttribute("aria-checked",r)}"menuitemcheckbox"!==e.getAttribute("role")&&u(t),i.dispatchEvent(new CustomEvent("details-menu-selected",{detail:{relatedTarget:e}}))}}function d(e){let t=e.getAttribute("role");return"menuitem"===t||"menuitemcheckbox"===t||"menuitemradio"===t}function u(e){if(!e.hasAttribute("open"))return;e.removeAttribute("open");let t=e.querySelector("summary");t&&t.focus()}function h(e,i){let r=t.get(e);r&&(r.isComposing="compositionstart"===i.type)}window.customElements.get("details-menu")||(window.DetailsMenuElement=e,window.customElements.define("details-menu",e))},90204(e,t,i){i.d(t,{R3:()=>s});let r=new Set(["\uD83D\uDC4B","\uD83E\uDD1A","\uD83D\uDD90\uFE0F","\u270B","\uD83D\uDD96","\uD83D\uDC4C","\uD83E\uDD0F","\u270C\uFE0F","\uD83E\uDD1E","\uD83E\uDD1F","\uD83E\uDD18","\uD83E\uDD19","\uD83D\uDC48","\uD83D\uDC49","\uD83D\uDC46","\uD83D\uDD95","\uD83D\uDC47","\u261D\uFE0F","\uD83D\uDC4D","\uD83D\uDC4E","\u270A","\uD83D\uDC4A","\uD83E\uDD1B","\uD83E\uDD1C","\uD83D\uDC4F","\uD83D\uDE4C","\uD83D\uDC50","\uD83E\uDD32","\uD83D\uDE4F","\u270D\uFE0F","\uD83D\uDC85","\uD83E\uDD33","\uD83D\uDCAA","\uD83E\uDDB5","\uD83E\uDDB6","\uD83D\uDC42","\uD83E\uDDBB","\uD83D\uDC43","\uD83D\uDC76","\uD83E\uDDD2","\uD83D\uDC66","\uD83D\uDC67","\uD83E\uDDD1","\uD83D\uDC71","\uD83D\uDC68","\uD83E\uDDD4","\uD83D\uDC71\u200D\u2642\uFE0F","\uD83D\uDC68\u200D\uD83E\uDDB0","\uD83D\uDC68\u200D\uD83E\uDDB1","\uD83D\uDC68\u200D\uD83E\uDDB3","\uD83D\uDC68\u200D\uD83E\uDDB2","\uD83D\uDC69","\uD83D\uDC71\u200D\u2640\uFE0F","\uD83D\uDC69\u200D\uD83E\uDDB0","\uD83D\uDC69\u200D\uD83E\uDDB1","\uD83D\uDC69\u200D\uD83E\uDDB3","\uD83D\uDC69\u200D\uD83E\uDDB2","\uD83E\uDDD3","\uD83D\uDC74","\uD83D\uDC75","\uD83D\uDE4D","\uD83D\uDE4D\u200D\u2642\uFE0F","\uD83D\uDE4D\u200D\u2640\uFE0F","\uD83D\uDE4E","\uD83D\uDE4E\u200D\u2642\uFE0F","\uD83D\uDE4E\u200D\u2640\uFE0F","\uD83D\uDE45","\uD83D\uDE45\u200D\u2642\uFE0F","\uD83D\uDE45\u200D\u2640\uFE0F","\uD83D\uDE46","\uD83D\uDE46\u200D\u2642\uFE0F","\uD83D\uDE46\u200D\u2640\uFE0F","\uD83D\uDC81","\uD83D\uDC81\u200D\u2642\uFE0F","\uD83D\uDC81\u200D\u2640\uFE0F","\uD83D\uDE4B","\uD83D\uDE4B\u200D\u2642\uFE0F","\uD83D\uDE4B\u200D\u2640\uFE0F","\uD83E\uDDCF","\uD83E\uDDCF\u200D\u2642\uFE0F","\uD83E\uDDCF\u200D\u2640\uFE0F","\uD83D\uDE47","\uD83D\uDE47\u200D\u2642\uFE0F","\uD83D\uDE47\u200D\u2640\uFE0F","\uD83E\uDD26","\uD83E\uDD26\u200D\u2642\uFE0F","\uD83E\uDD26\u200D\u2640\uFE0F","\uD83E\uDD37","\uD83E\uDD37\u200D\u2642\uFE0F","\uD83E\uDD37\u200D\u2640\uFE0F","\uD83D\uDC68\u200D\u2695\uFE0F","\uD83D\uDC69\u200D\u2695\uFE0F","\uD83D\uDC68\u200D\uD83C\uDF93","\uD83D\uDC69\u200D\uD83C\uDF93","\uD83D\uDC68\u200D\uD83C\uDFEB","\uD83D\uDC69\u200D\uD83C\uDFEB","\uD83D\uDC68\u200D\u2696\uFE0F","\uD83D\uDC69\u200D\u2696\uFE0F","\uD83D\uDC68\u200D\uD83C\uDF3E","\uD83D\uDC69\u200D\uD83C\uDF3E","\uD83D\uDC68\u200D\uD83C\uDF73","\uD83D\uDC69\u200D\uD83C\uDF73","\uD83D\uDC68\u200D\uD83D\uDD27","\uD83D\uDC69\u200D\uD83D\uDD27","\uD83D\uDC68\u200D\uD83C\uDFED","\uD83D\uDC69\u200D\uD83C\uDFED","\uD83D\uDC68\u200D\uD83D\uDCBC","\uD83D\uDC69\u200D\uD83D\uDCBC","\uD83D\uDC68\u200D\uD83D\uDD2C","\uD83D\uDC69\u200D\uD83D\uDD2C","\uD83D\uDC68\u200D\uD83D\uDCBB","\uD83D\uDC69\u200D\uD83D\uDCBB","\uD83D\uDC68\u200D\uD83C\uDFA4","\uD83D\uDC69\u200D\uD83C\uDFA4","\uD83D\uDC68\u200D\uD83C\uDFA8","\uD83D\uDC69\u200D\uD83C\uDFA8","\uD83D\uDC68\u200D\u2708\uFE0F","\uD83D\uDC69\u200D\u2708\uFE0F","\uD83D\uDC68\u200D\uD83D\uDE80","\uD83D\uDC69\u200D\uD83D\uDE80","\uD83D\uDC68\u200D\uD83D\uDE92","\uD83D\uDC69\u200D\uD83D\uDE92","\uD83D\uDC6E","\uD83D\uDC6E\u200D\u2642\uFE0F","\uD83D\uDC6E\u200D\u2640\uFE0F","\uD83D\uDD75\uFE0F","\uD83D\uDD75\uFE0F\u200D\u2642\uFE0F","\uD83D\uDD75\uFE0F\u200D\u2640\uFE0F","\uD83D\uDC82","\uD83D\uDC82\u200D\u2642\uFE0F","\uD83D\uDC82\u200D\u2640\uFE0F","\uD83D\uDC77","\uD83D\uDC77\u200D\u2642\uFE0F","\uD83D\uDC77\u200D\u2640\uFE0F","\uD83E\uDD34","\uD83D\uDC78","\uD83D\uDC73","\uD83D\uDC73\u200D\u2642\uFE0F","\uD83D\uDC73\u200D\u2640\uFE0F","\uD83D\uDC72","\uD83E\uDDD5","\uD83E\uDD35","\uD83D\uDC70","\uD83E\uDD30","\uD83E\uDD31","\uD83D\uDC7C","\uD83C\uDF85","\uD83E\uDD36","\uD83E\uDDB8","\uD83E\uDDB8\u200D\u2642\uFE0F","\uD83E\uDDB8\u200D\u2640\uFE0F","\uD83E\uDDB9","\uD83E\uDDB9\u200D\u2642\uFE0F","\uD83E\uDDB9\u200D\u2640\uFE0F","\uD83E\uDDD9","\uD83E\uDDD9\u200D\u2642\uFE0F","\uD83E\uDDD9\u200D\u2640\uFE0F","\uD83E\uDDDA","\uD83E\uDDDA\u200D\u2642\uFE0F","\uD83E\uDDDA\u200D\u2640\uFE0F","\uD83E\uDDDB","\uD83E\uDDDB\u200D\u2642\uFE0F","\uD83E\uDDDB\u200D\u2640\uFE0F","\uD83E\uDDDC","\uD83E\uDDDC\u200D\u2642\uFE0F","\uD83E\uDDDC\u200D\u2640\uFE0F","\uD83E\uDDDD","\uD83E\uDDDD\u200D\u2642\uFE0F","\uD83E\uDDDD\u200D\u2640\uFE0F","\uD83D\uDC86","\uD83D\uDC86\u200D\u2642\uFE0F","\uD83D\uDC86\u200D\u2640\uFE0F","\uD83D\uDC87","\uD83D\uDC87\u200D\u2642\uFE0F","\uD83D\uDC87\u200D\u2640\uFE0F","\uD83D\uDEB6","\uD83D\uDEB6\u200D\u2642\uFE0F","\uD83D\uDEB6\u200D\u2640\uFE0F","\uD83E\uDDCD","\uD83E\uDDCD\u200D\u2642\uFE0F","\uD83E\uDDCD\u200D\u2640\uFE0F","\uD83E\uDDCE","\uD83E\uDDCE\u200D\u2642\uFE0F","\uD83E\uDDCE\u200D\u2640\uFE0F","\uD83D\uDC68\u200D\uD83E\uDDAF","\uD83D\uDC69\u200D\uD83E\uDDAF","\uD83D\uDC68\u200D\uD83E\uDDBC","\uD83D\uDC69\u200D\uD83E\uDDBC","\uD83D\uDC68\u200D\uD83E\uDDBD","\uD83D\uDC69\u200D\uD83E\uDDBD","\uD83C\uDFC3","\uD83C\uDFC3\u200D\u2642\uFE0F","\uD83C\uDFC3\u200D\u2640\uFE0F","\uD83D\uDC83","\uD83D\uDD7A","\uD83D\uDD74\uFE0F","\uD83E\uDDD6","\uD83E\uDDD6\u200D\u2642\uFE0F","\uD83E\uDDD6\u200D\u2640\uFE0F","\uD83E\uDDD7","\uD83E\uDDD7\u200D\u2642\uFE0F","\uD83E\uDDD7\u200D\u2640\uFE0F","\uD83C\uDFC7","\uD83C\uDFC2","\uD83C\uDFCC\uFE0F","\uD83C\uDFCC\uFE0F\u200D\u2642\uFE0F","\uD83C\uDFCC\uFE0F\u200D\u2640\uFE0F","\uD83C\uDFC4","\uD83C\uDFC4\u200D\u2642\uFE0F","\uD83C\uDFC4\u200D\u2640\uFE0F","\uD83D\uDEA3","\uD83D\uDEA3\u200D\u2642\uFE0F","\uD83D\uDEA3\u200D\u2640\uFE0F","\uD83C\uDFCA","\uD83C\uDFCA\u200D\u2642\uFE0F","\uD83C\uDFCA\u200D\u2640\uFE0F","\u26F9\uFE0F","\u26F9\uFE0F\u200D\u2642\uFE0F","\u26F9\uFE0F\u200D\u2640\uFE0F","\uD83C\uDFCB\uFE0F","\uD83C\uDFCB\uFE0F\u200D\u2642\uFE0F","\uD83C\uDFCB\uFE0F\u200D\u2640\uFE0F","\uD83D\uDEB4","\uD83D\uDEB4\u200D\u2642\uFE0F","\uD83D\uDEB4\u200D\u2640\uFE0F","\uD83D\uDEB5","\uD83D\uDEB5\u200D\u2642\uFE0F","\uD83D\uDEB5\u200D\u2640\uFE0F","\uD83E\uDD38","\uD83E\uDD38\u200D\u2642\uFE0F","\uD83E\uDD38\u200D\u2640\uFE0F","\uD83E\uDD3D","\uD83E\uDD3D\u200D\u2642\uFE0F","\uD83E\uDD3D\u200D\u2640\uFE0F","\uD83E\uDD3E","\uD83E\uDD3E\u200D\u2642\uFE0F","\uD83E\uDD3E\u200D\u2640\uFE0F","\uD83E\uDD39","\uD83E\uDD39\u200D\u2642\uFE0F","\uD83E\uDD39\u200D\u2640\uFE0F","\uD83E\uDDD8","\uD83E\uDDD8\u200D\u2642\uFE0F","\uD83E\uDDD8\u200D\u2640\uFE0F","\uD83D\uDEC0","\uD83D\uDECC","\uD83E\uDDD1\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1","\uD83D\uDC6D","\uD83D\uDC6B","\uD83D\uDC6C"]);function n(e){return r.has(e)}function s(e,t){let i=o(e);if(!n(i))return e;let r=c(t);return r?i.split("\u200D").map(e=>n(e)?a(e,r):e).join("\u200D"):e}function o(e){return[...e].filter(e=>!l(e.codePointAt(0))).join("")}function a(e,t){let i=[...e].map(e=>e.codePointAt(0));return i[1]&&(l(i[1])||65039===i[1])?i[1]=t:i.splice(1,0,t),String.fromCodePoint(...i)}function l(e){return e>=127995&&e<=127999}function c(e){switch(e){case 1:return 127995;case 2:return 127996;case 3:return 127997;case 4:return 127998;case 5:return 127999;default:return null}}class d extends HTMLElement{get image(){return this.firstElementChild instanceof HTMLImageElement?this.firstElementChild:null}get tone(){return(this.getAttribute("tone")||"").split(" ").map(e=>{let t=parseInt(e,10);return t>=0&&t<=5?t:0}).join(" ")}set tone(e){this.setAttribute("tone",e)}connectedCallback(){if(null===this.image&&!d.emojiSupportFunction()){let t=this.getAttribute("fallback-src");if(t){var e;let i;this.textContent="";let r=(e=this,(i=document.createElement("img")).className="emoji",i.alt=e.getAttribute("alias")||"",i.height=20,i.width=20,i);r.src=t,this.appendChild(r)}}this.hasAttribute("tone")&&u(this)}static get observedAttributes(){return["tone"]}attributeChangedCallback(e){"tone"===e&&u(this)}}function u(e){if(e.image)return;let t=e.tone.split(" ").map(e=>parseInt(e,10));if(0===t.length)e.textContent=o(e.textContent||"");else if(1===t.length){let i=t[0];e.textContent=0===i?o(e.textContent||""):s(e.textContent||"",i)}else e.textContent=function(e,t){let i=o(e);if(!n(i))return e;let r=t.map(e=>c(e));return i.split("\u200D").map(e=>{if(!n(e))return e;let t=r.shift();return t?a(e,t):e}).join("\u200D")}(e.textContent||"",t)}d.emojiSupportFunction=function(){let e=/\bWindows NT 6.1\b/.test(navigator.userAgent),t=/\bWindows NT 6.2\b/.test(navigator.userAgent),i=/\bWindows NT 6.3\b/.test(navigator.userAgent),r=/\bFreeBSD\b/.test(navigator.userAgent),n=/\bLinux\b/.test(navigator.userAgent)&&!/\bAndroid\b/.test(navigator.userAgent);return!(e||t||i||n||r)},window.customElements.get("g-emoji")||(window.GEmojiElement=d,window.customElements.define("g-emoji",d))},92284(){let e=new WeakMap,t=new WeakMap,i=new WeakMap;function r(e){let r=e.currentTarget;if(!(r instanceof u))return;let{box:n,image:s}=i.get(r)||{};if(!n||!s)return;let o=0,a=0;if(e instanceof KeyboardEvent)"ArrowUp"===e.key?a=-1:"ArrowDown"===e.key?a=1:"ArrowLeft"===e.key?o=-1:"ArrowRight"===e.key&&(o=1);else if(t.has(r)&&e instanceof MouseEvent){let i=t.get(r);o=e.pageX-i.dragStartX,a=e.pageY-i.dragStartY}else if(t.has(r)&&e instanceof TouchEvent){let{pageX:i,pageY:n}=e.changedTouches[0],{dragStartX:s,dragStartY:l}=t.get(r);o=i-s,a=n-l}if(0!==o||0!==a){let e=Math.min(Math.max(0,n.offsetLeft+o),s.width-n.offsetWidth),t=Math.min(Math.max(0,n.offsetTop+a),s.height-n.offsetHeight);n.style.left=`${e}px`,n.style.top=`${t}px`,d(r,{x:e,y:t,width:n.offsetWidth,height:n.offsetHeight})}if(e instanceof MouseEvent)t.set(r,{dragStartX:e.pageX,dragStartY:e.pageY});else if(e instanceof TouchEvent){let{pageX:i,pageY:n}=e.changedTouches[0];t.set(r,{dragStartX:i,dragStartY:n})}}function n(t){let r,n,o,c=t.target;if(!(c instanceof HTMLElement))return;let d=s(c);if(!(d instanceof u))return;let{box:h}=i.get(d)||{};if(!h)return;let f=d.getBoundingClientRect();if(t instanceof KeyboardEvent){if("Escape"===t.key)return l(d);if("-"===t.key&&(o=-10),"="===t.key&&(o=10),!o)return;r=h.offsetWidth+o,n=h.offsetHeight+o,e.set(d,{startX:h.offsetLeft,startY:h.offsetTop})}else if(t instanceof MouseEvent){let i=e.get(d);if(!i)return;r=t.pageX-i.startX-f.left-window.pageXOffset,n=t.pageY-i.startY-f.top-window.pageYOffset}else if(t instanceof TouchEvent){let i=e.get(d);if(!i)return;r=t.changedTouches[0].pageX-i.startX-f.left-window.pageXOffset,n=t.changedTouches[0].pageY-i.startY-f.top-window.pageYOffset}r&&n&&a(d,r,n,!(t instanceof KeyboardEvent))}function s(e){let t=e.getRootNode();return t instanceof ShadowRoot?t.host:e}function o(t){let o=t.currentTarget;if(!(o instanceof HTMLElement))return;let a=s(o);if(!(a instanceof u))return;let{box:l}=i.get(a)||{};if(!l)return;let c=t.target;if(c instanceof HTMLElement)if(c.hasAttribute("data-direction")){let i=c.getAttribute("data-direction")||"";a.addEventListener("mousemove",n),a.addEventListener("touchmove",n,{passive:!0}),["nw","se"].indexOf(i)>=0&&a.classList.add("nwse"),["ne","sw"].indexOf(i)>=0&&a.classList.add("nesw"),e.set(a,{startX:l.offsetLeft+(["se","ne"].indexOf(i)>=0?0:l.offsetWidth),startY:l.offsetTop+(["se","sw"].indexOf(i)>=0?0:l.offsetHeight)}),n(t)}else a.addEventListener("mousemove",r),a.addEventListener("touchmove",r,{passive:!0})}function a(t,r,n,s=!0){let o=Math.max(Math.abs(r),Math.abs(n),10),l=e.get(t);if(!l)return;let{box:c,image:u}=i.get(t)||{};if(!c||!u)return;o=Math.min(o,n>0?u.height-l.startY:l.startY,r>0?u.width-l.startX:l.startX);let h=s?Math.round(Math.max(0,r>0?l.startX:l.startX-o)):c.offsetLeft,f=s?Math.round(Math.max(0,n>0?l.startY:l.startY-o)):c.offsetTop;c.style.left=`${h}px`,c.style.top=`${f}px`,c.style.width=`${o}px`,c.style.height=`${o}px`,d(t,{x:h,y:f,width:o,height:o})}function l(t){let{image:r}=i.get(t)||{};if(!r)return;let n=Math.round(r.clientWidth>r.clientHeight?r.clientHeight:r.clientWidth);e.set(t,{startX:(r.clientWidth-n)/2,startY:(r.clientHeight-n)/2}),a(t,n,n)}function c(e){let i=e.currentTarget;i instanceof u&&(t.delete(i),i.classList.remove("nwse","nesw"),i.removeEventListener("mousemove",n),i.removeEventListener("mousemove",r),i.removeEventListener("touchmove",n),i.removeEventListener("touchmove",r))}function d(e,t){let{image:r}=i.get(e)||{};if(!r)return;let n=r.naturalWidth/r.width;for(let i in t){let r=Math.round(t[i]*n);t[i]=r;let s=e.querySelector(`[data-image-crop-input='${i}']`);s instanceof HTMLInputElement&&(s.value=r.toString())}e.dispatchEvent(new CustomEvent("image-crop-change",{bubbles:!0,detail:t}))}class u extends HTMLElement{connectedCallback(){if(i.has(this))return;let e=this.attachShadow({mode:"open"});e.innerHTML=`
`;let t=e.querySelector("[data-crop-box]");if(!(t instanceof HTMLElement))return;let s=e.querySelector("img");s instanceof HTMLImageElement&&(i.set(this,{box:t,image:s}),s.addEventListener("load",()=>{this.loaded=!0,l(this)}),this.addEventListener("mouseleave",c),this.addEventListener("touchend",c),this.addEventListener("mouseup",c),t.addEventListener("mousedown",o),t.addEventListener("touchstart",o,{passive:!0}),this.addEventListener("keydown",r),this.addEventListener("keydown",n),this.src&&(s.src=this.src))}static get observedAttributes(){return["src"]}get src(){return this.getAttribute("src")}set src(e){e?this.setAttribute("src",e):this.removeAttribute("src")}get loaded(){return this.hasAttribute("loaded")}set loaded(e){e?this.setAttribute("loaded",""):this.removeAttribute("loaded")}attributeChangedCallback(e,t,r){let{image:n}=i.get(this)||{};"src"===e&&(this.loaded=!1,n&&(n.src=r))}}window.customElements.get("image-crop")||(window.ImageCropElement=u,window.customElements.define("image-crop",u))},28078(e,t,i){i.d(t,{T:()=>m});var r,n,s,o,a,l,c,d,u=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)},h=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i};let f=new WeakMap,p=null;class m extends HTMLElement{constructor(){super(...arguments),r.add(this),n.set(this,!1),s.set(this,new IntersectionObserver(e=>{for(let t of e)if(t.isIntersecting){let{target:e}=t;if(u(this,s,"f").unobserve(e),!(e instanceof m))return;"lazy"===e.loading&&u(this,r,"m",o).call(this)}},{rootMargin:"0px 0px 256px 0px",threshold:.01}))}static define(e="include-fragment",t=customElements){return t.define(e,this),this}static setCSPTrustedTypesPolicy(e){p=null===e?e:Promise.resolve(e)}static get observedAttributes(){return["src","loading"]}get src(){let e=this.getAttribute("src");if(!e)return"";{let t=this.ownerDocument.createElement("a");return t.href=e,t.href}}set src(e){this.setAttribute("src",e)}get loading(){return"lazy"===this.getAttribute("loading")?"lazy":"eager"}set loading(e){this.setAttribute("loading",e)}get accept(){return this.getAttribute("accept")||""}set accept(e){this.setAttribute("accept",e)}get data(){return u(this,r,"m",l).call(this)}attributeChangedCallback(e,t){"src"===e?this.isConnected&&"eager"===this.loading&&u(this,r,"m",o).call(this):"loading"===e&&this.isConnected&&"eager"!==t&&"eager"===this.loading&&u(this,r,"m",o).call(this)}connectedCallback(){if(!this.shadowRoot){this.attachShadow({mode:"open"});let e=document.createElement("style");e.textContent=":host {display: block;}",this.shadowRoot.append(e,document.createElement("slot"))}this.src&&"eager"===this.loading&&u(this,r,"m",o).call(this),"lazy"===this.loading&&u(this,s,"f").observe(this)}request(){let e=this.src;if(!e)throw Error("missing src");return new Request(e,{method:"GET",credentials:"same-origin",headers:{Accept:this.accept||"text/html"}})}load(){return u(this,r,"m",l).call(this)}fetch(e){return fetch(e)}refetch(){f.delete(this),u(this,r,"m",o).call(this)}}n=new WeakMap,s=new WeakMap,r=new WeakSet,o=async function(){if(!u(this,n,"f")){h(this,n,!0,"f"),u(this,s,"f").unobserve(this);try{let e=await u(this,r,"m",a).call(this);if(e instanceof Error)throw e;let t=document.createElement("template");t.innerHTML=e;let i=document.importNode(t.content,!0);if(!this.dispatchEvent(new CustomEvent("include-fragment-replace",{cancelable:!0,detail:{fragment:i}})))return void h(this,n,!1,"f");this.replaceWith(i),this.dispatchEvent(new CustomEvent("include-fragment-replaced"))}catch(e){this.classList.add("is-error")}finally{h(this,n,!1,"f")}}},a=async function(){let e=this.src,t=f.get(this);if(t&&t.src===e)return t.data;{let t;return t=e?u(this,r,"m",d).call(this):Promise.reject(Error("missing src")),f.set(this,{src:e,data:t}),t}},l=async function(){let e=await u(this,r,"m",a).call(this);if(e instanceof Error)throw e;return e.toString()},c=async function(e,t){for(let i of(await new Promise(e=>setTimeout(e,0)),e))this.dispatchEvent(t?new CustomEvent(i,{detail:{error:t}}):new Event(i))},d=async function(){try{var e;await u(this,r,"m",c).call(this,["loadstart"]);let t=await this.fetch(this.request()),i=t.headers.get("Content-Type");if(!((e=this.accept)&&e.split(",").find(e=>e.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}`);if(200!==t.status)throw Error(`Failed to load resource: the server responded with a status of ${t.status}`);let n=await t.text(),s=n;return p&&(s=(await p).createHTML(n,t)),u(this,r,"m",c).call(this,["load","loadend"]),s}catch(e){throw u(this,r,"m",c).call(this,["error","loadend"],e),e}};let g="u">typeof globalThis?globalThis:window;try{g.IncludeFragmentElement=m.define()}catch(e){if(!(g.DOMException&&e instanceof DOMException&&"NotSupportedError"===e.name)&&!(e instanceof ReferenceError))throw e}},72705(e,t,i){i.d(t,{A:()=>h});let r=new WeakMap,n=null;function s(e,t){return e.closest("task-lists")===t.closest("task-lists")}function o(e){if(e.currentTarget!==e.target)return;let t=e.currentTarget;if(!(t instanceof Element))return;let i=t.closest(".contains-task-list");if(!i||(t.classList.add("is-ghost"),e.dataTransfer&&e.dataTransfer.setData("text/plain",(t.textContent||"").trim()),!t.parentElement))return;let s=Array.from(t.parentElement.children),o=s.indexOf(t),a=r.get(t);a&&a.sortStarted(i),n={didDrop:!1,dragging:t,dropzone:t,sourceList:i,sourceSibling:s[o+1]||null,sourceIndex:o}}function a(e){if(!n)return;let t=e.currentTarget;t instanceof Element&&(s(n.dragging,t)?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),n.dropzone!==t&&(n.dragging.classList.add("is-dragging"),n.dropzone=t,function(e,t){if(e.parentNode===t.parentNode){let i=e;for(;i;){if(i===t)return!0;i=i.previousElementSibling}}return!1}(n.dragging,t)?t.before(n.dragging):t.after(n.dragging))):e.stopPropagation())}function l(e){if(!n)return;e.preventDefault(),e.stopPropagation();let t=e.currentTarget;if(!(t instanceof Element)||(n.didDrop=!0,!n.dragging.parentElement))return;let i=Array.from(n.dragging.parentElement.children).indexOf(n.dragging),s=t.closest(".contains-task-list");if(!s||n.sourceIndex===i&&n.sourceList===s)return;n.sourceList===s&&n.sourceIndex{let t=e.target;t instanceof HTMLInputElement&&t.classList.contains("task-list-item-checkbox")&&this.dispatchEvent(new CustomEvent("task-lists-check",{bubbles:!0,detail:{position:function(e){let t=E(e);if(!t)throw Error(".contains-task-list not found");let i=e.closest(".task-list-item"),r=Array.from(t.children).filter(e=>"LI"===e.tagName),n=i?r.indexOf(i):-1;return[function(e){let t=e.closest("task-lists");if(!t)throw Error("parent not found");return L(t).indexOf(e)}(t),n]}(t),checked:t.checked}}))});let e=new MutationObserver(y.bind(null,this));u.set(this,e),e.observe(this,{childList:!0,subtree:!0}),y(this)}disconnectedCallback(){let e=u.get(this);e&&e.disconnect()}get disabled(){return this.hasAttribute("disabled")}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get sortable(){return this.hasAttribute("sortable")}set sortable(e){e?this.setAttribute("sortable",""):this.removeAttribute("sortable")}static get observedAttributes(){return["disabled"]}attributeChangedCallback(e,t,i){t!==i&&"disabled"===e&&A(this)}}let f=document.createElement("template"),p=document.createElement("span");p.classList.add("handle");let m=document.createElementNS("http://www.w3.org/2000/svg","svg");m.classList.add("drag-handle"),m.setAttribute("aria-hidden","true"),m.setAttribute("width","16"),m.setAttribute("height","16");let g=document.createElementNS("http://www.w3.org/2000/svg","path");g.setAttribute("d","M10 13a1 1 0 100-2 1 1 0 000 2zm-4 0a1 1 0 100-2 1 1 0 000 2zm1-5a1 1 0 11-2 0 1 1 0 012 0zm3 1a1 1 0 100-2 1 1 0 000 2zm1-5a1 1 0 11-2 0 1 1 0 012 0zM6 5a1 1 0 100-2 1 1 0 000 2z"),f.content.appendChild(p),p.appendChild(m),m.appendChild(g);let b=new WeakMap;function v(e){let t=e.currentTarget;if(!(t instanceof Element))return;let i=t.closest("task-lists");i instanceof h&&i.sortable&&!i.disabled&&t.classList.add("hovered")}function w(e){let t=e.currentTarget;t instanceof Element&&t.classList.remove("hovered")}function E(e){let t=e.parentElement;return t?t.closest(".contains-task-list"):null}function y(e){for(let t of e.querySelectorAll(".contains-task-list > .task-list-item"))E(t)===function e(t){let i=E(t);return i?e(i)||i:null}(t)&&function(e){if(b.get(e))return;b.set(e,!0);let t=e.closest("task-lists");if(!(t instanceof h)||t.querySelectorAll(".task-list-item").length<=1)return;let i=f.content.cloneNode(!0),n=i.querySelector(".handle");if(e.prepend(i),!n)throw Error("handle not found");n.addEventListener("mouseenter",x),n.addEventListener("mouseleave",S),r.set(e,{sortStarted:T,sortFinished:C}),e.addEventListener("dragstart",o),e.addEventListener("dragenter",a),e.addEventListener("dragend",c),e.addEventListener("drop",l),e.addEventListener("dragover",d),e.addEventListener("mouseenter",v),e.addEventListener("mouseleave",w)}(t);A(e)}function A(e){for(let t of e.querySelectorAll(".task-list-item"))t.classList.toggle("enabled",!e.disabled);for(let t of e.querySelectorAll(".task-list-item-checkbox"))t instanceof HTMLInputElement&&(t.disabled=e.disabled)}function L(e){return Array.from(e.querySelectorAll("ol, ul")).filter(e=>!e.closest("tracking-block"))}let k=new WeakMap;function T(e){let t=e.closest("task-lists");if(!t)throw Error("parent not found");k.set(t,L(t))}function C({src:e,dst:t}){let i=e.list.closest("task-lists");if(!i)return;let r=k.get(i);r&&(k.delete(i),i.dispatchEvent(new CustomEvent("task-lists-move",{bubbles:!0,detail:{src:[r.indexOf(e.list),e.index],dst:[r.indexOf(t.list),t.index]}})))}function x(e){let t=e.currentTarget;if(!(t instanceof Element))return;let i=t.closest(".task-list-item");if(!i)return;let r=i.closest("task-lists");r instanceof h&&r.sortable&&!r.disabled&&i.setAttribute("draggable","true")}function S(e){if(n)return;let t=e.currentTarget;if(!(t instanceof Element))return;let i=t.closest(".task-list-item");i&&i.setAttribute("draggable","false")}window.customElements.get("task-lists")||(window.TaskListsElement=h,window.customElements.define("task-lists",h))},44911(){let e="complete"===document.readyState?Promise.resolve():new Promise(e=>{window.addEventListener("load",e)});class t extends HTMLElement{async connectedCallback(){await e,this.content&&await i(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 e=this.getAttribute("data-lines");try{return e?JSON.parse(e):[]}catch(e){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(e){if(e>0x7fffffff||e<0)throw new DOMException("Value is negative or greater than the allowed amount");this.setAttribute("data-character-delay",String(e))}get lineDelay(){return this.prefersReducedMotion?0:Math.max(0,Math.min(Math.floor(Number(this.getAttribute("data-line-delay"))),0x7fffffff))||40}set lineDelay(e){if(e>0x7fffffff||e<0)throw new DOMException("Value is negative or greater than the allowed amount");this.setAttribute("data-line-delay",String(e))}}async function i(e,t,i,n){for(let s=0;s{setTimeout(t,e)})}window.customElements.get("typing-effect")||(window.TypingEffectElement=t,window.customElements.define("typing-effect",t))},11937(e,t,i){i.d(t,{K1:()=>r.K1,U0:()=>n.U,Z0:()=>r.Z0,tp:()=>r.tp});var r=i(55966),n=i(84366);i(23635)}}]); //# sourceMappingURL=74071-93ba74c3d7e6b111-7c1211cd2014ebe5.js.map