performance.mark("js-parse-end:63225-0b2c29213bdfc714.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["63225"],{62044(e,t,n){n.d(t,{A:()=>a});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)}}(()=>i(this,!0)),this.boundFilterResults=()=>{i(this,!1)}}static get observedAttributes(){return["aria-owns"]}attributeChangedCallback(e,t){t&&"aria-owns"===e&&i(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 i(e,t=!1){var n,r,a,l,o;let c,u,d,h=e.input;if(!h)return;let f=h.value.trim(),p=e.getAttribute("aria-owns");if(!p)return;let g=document.getElementById(p);if(!g)return;let m=g.hasAttribute("data-filter-list")?g:g.querySelector("[data-filter-list]");if(!m||(e.dispatchEvent(new CustomEvent("filter-input-start",{bubbles:!0})),t&&e.currentQuery===f))return;e.currentQuery=f;let b=e.filter||s,v=m.childElementCount,E=0,w=!1;for(let e of Array.from(m.children)){if(!(e instanceof HTMLElement))continue;let t=(((n=e).querySelector("[data-filter-item-text]")||n).textContent||"").trim(),r=b(e,t,f);!0===r.hideNew&&(w=r.hideNew),e.hidden=!r.match,r.match&&E++}let y=g.querySelector("[data-filter-new-item]"),A=!!y&&f.length>0&&!w;y instanceof HTMLElement&&(y.hidden=!A,A&&(r=y,a=f,(c=r.querySelector("[data-filter-new-item-text]"))&&(c.textContent=a),((u=r.querySelector("[data-filter-new-item-value]"))instanceof HTMLInputElement||u instanceof HTMLButtonElement)&&(u.value=a))),l=g,o=E>0||A,(d=l.querySelector("[data-filter-empty-state]"))instanceof HTMLElement&&(d.hidden=o),e.dispatchEvent(new CustomEvent("filter-input-updated",{bubbles:!0,detail:{count:E,total:v}}))}function s(e,t,n){return{match:-1!==t.toLowerCase().indexOf(n.toLowerCase()),hideNew:t===n}}let a=r;window.customElements.get("filter-input")||(window.FilterInputElement=r,window.customElements.define("filter-input",r))},66661(e,t,n){function r(e){let t=e.parentNode;if(null===t||!(t instanceof HTMLElement))throw Error();let n=0;t instanceof HTMLOListElement&&1!==t.start&&(n=t.start-1);let r=t.children;for(let t=0;tl,g:()=>o});let i=0;function s(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}let a={INPUT:e=>e instanceof HTMLInputElement&&e.checked?"[x] ":"[ ] ",CODE(e){let t=e.textContent||"";return e.parentNode&&"PRE"===e.parentNode.nodeName?(e.textContent=`\`\`\` ${t.replace(/\n+$/,"")} \`\`\` `,e):t.indexOf("`")>=0?`\`\` ${t} \`\``:`\`${t}\``},P(e){let t=document.createElement("p");return t.textContent=(e.textContent||"").replace(/<(\/?)(pre|strong|weak|em)>/g,"\\<$1$2\\>"),t},STRONG:e=>`**${e.textContent||""}**`,EM:e=>`_${e.textContent||""}_`,DEL:e=>`~${e.textContent||""}~`,BLOCKQUOTE(e){let t=(e.textContent||"").trim().replace(/^/gm,"> "),n=document.createElement("pre");return n.textContent=`${t} `,n},A(e){let t=e.textContent||"",n=e.getAttribute("href");return/^https?:/.test(t)&&t===n?t:n?`[${t}](${n})`:t},IMG(e){let t=e.getAttribute("alt")||"",n=e.getAttribute("src");if(!n)throw Error();let r=e.hasAttribute("width")?` width="${s(e.getAttribute("width")||"")}"`:"",i=e.hasAttribute("height")?` height="${s(e.getAttribute("height")||"")}"`:"";return r||i?`${s(t)}`:`![${t}](${n})`},LI(e){let t,n,s=e.parentNode;if(!s)throw Error();let a="";if(t=e.childNodes[0],n=e.childNodes[1],!t||!(e.childNodes.length<3)||"OL"!==t.nodeName&&"UL"!==t.nodeName||n&&(n.nodeType!==Node.TEXT_NODE||(n.textContent||"").trim()))if("OL"===s.nodeName)if(i>0&&!s.previousSibling){let t=r(e)+i+1;a=`${t}\\. `}else a=`${r(e)+1}. `;else a="* ";let l=a.replace(/\S/g," "),o=(e.textContent||"").trim().replace(/^/gm,l),c=document.createElement("pre");return c.textContent=o.replace(l,a),c},OL(e){let t=document.createElement("li");return t.appendChild(document.createElement("br")),e.append(t),e},H1(e){let t=parseInt(e.nodeName.slice(1));return e.prepend(`${Array(t+1).join("#")} `),e},UL:e=>e};a.UL=a.OL;for(let e=2;e<=6;++e)a[`H${e}`]=a.H1;class l{constructor(){this.selection=window.getSelection(),this.processSelectionText=e=>e}closest(e){let t=this.range.startContainer,n=t instanceof Element?t:t.parentElement;return n?n.closest(e):null}get active(){var e;return((null==(e=this.selection)?void 0:e.rangeCount)||0)>0}get range(){var e;return(null==(e=this.selection)?void 0:e.rangeCount)?this.selection.getRangeAt(0):new Range}set range(e){var t,n;null==(t=this.selection)||t.removeAllRanges(),null==(n=this.selection)||n.addRange(e)}set processSelectionTextFn(e){this.processSelectionText=e}get selectionText(){var e;return this.processSelectionText((null==(e=this.selection)?void 0:e.toString().trim())||"")}get quotedText(){return`> ${this.selectionText.replace(/\n/g,"\n> ")} `}select(e){this.selection&&(this.selection.removeAllRanges(),this.selection.selectAllChildren(e))}insert(e){e.value?e.value=`${e.value} ${this.quotedText}`:e.value=this.quotedText,e.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1})),e.focus(),e.selectionStart=e.value.length,e.scrollTop=e.scrollHeight}}class o extends l{constructor(e="",t){super(),this.scopeSelector=e,this.callback=t}get selectionText(){var e,t;if(!this.selection)return"";let n=function(e,t){let n=e.startContainer;if(!n||!n.parentNode||!(n.parentNode instanceof HTMLElement))throw Error("the range must start within an HTMLElement");let s=n.parentNode,a=e.cloneContents();if(t){let e=a.querySelector(t);e&&(a=document.createDocumentFragment()).appendChild(e)}i=0;let l=s.closest("li");if(s.closest("pre")){let e=document.createElement("pre");e.appendChild(a),(a=document.createDocumentFragment()).appendChild(e)}else if(l&&l.parentNode&&("OL"===l.parentNode.nodeName&&(i=r(l)),!a.querySelector("li"))){let e=document.createElement("li");if(!l.parentNode)throw Error();let t=document.createElement(l.parentNode.nodeName);e.appendChild(a),t.appendChild(e),(a=document.createDocumentFragment()).appendChild(t)}return a}(this.range,null!=(e=this.scopeSelector)?e:"");null==(t=this.callback)||t.call(this,n);let s=document.createNodeIterator(n,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.nodeName in a&&!function(e){if(e instanceof HTMLAnchorElement&&1===e.childNodes.length){let t=e.childNodes[0];if(t instanceof HTMLImageElement)return t.src===e.href}return!1}(e)&&("IMG"===e.nodeName||null!=e.firstChild||"INPUT"===e.nodeName&&e instanceof HTMLInputElement&&"checkbox"===e.type)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),l=[],o=s.nextNode();for(;o;)o instanceof HTMLElement&&l.push(o),o=s.nextNode();for(let e of(l.reverse(),l))e.replaceWith(a[e.nodeName](e));let c=document.body;if(!c)return"";let u=document.createElement("div");u.appendChild(n),u.style.cssText="position:absolute;left:-9999px;",c.appendChild(u);let d="";try{let e=document.createRange();e.selectNodeContents(u),this.selection.removeAllRanges(),this.selection.addRange(e),d=this.selection.toString(),this.selection.removeAllRanges(),e.detach()}finally{c.removeChild(u)}return this.processSelectionText(d.trim())}}},27552(e,t,n){n.d(t,{A:()=>l});let r=new WeakMap;class i extends HTMLElement{constructor(){super();const e=s.bind(null,this,!0),t={currentQuery:null,oninput:function(e){let t;return function(n){clearTimeout(t),t=setTimeout(()=>{clearTimeout(t),e(n)},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,n){let i,s=e.input;if(!s)return;let l=r.get(e);if(!l)return;let o=s.value;if(t&&l.currentQuery===o)return;l.currentQuery=o;let c=e.src;if(!c)return;let u=document.getElementById(e.getAttribute("aria-owns")||"");if(!u)return;let d=new URL(c,window.location.href),h=new URLSearchParams(d.search);h.append(e.getAttribute("param")||"q",o),d.search=h.toString(),l.controller?l.controller.abort():(e.dispatchEvent(new CustomEvent("loadstart")),e.setAttribute("loading","")),l.controller="AbortController"in window?new AbortController:{signal:null,abort(){}};let f="";try{i=await a(e,d.toString(),{signal:l.controller.signal,credentials:"same-origin",headers:{accept:"text/fragment+html"}}),f=await i.text(),e.removeAttribute("loading"),l.controller=null}catch(t){t instanceof Error&&"AbortError"!==t.name&&(e.removeAttribute("loading"),l.controller=null);return}i&&i.ok?(u.innerHTML=f,e.dispatchEvent(new CustomEvent("remote-input-success",{bubbles:!0,detail:{eventType:n?n.type:void 0}}))):e.dispatchEvent(new CustomEvent("remote-input-error",{bubbles:!0}))}async function a(e,t,n){try{let r=await fetch(t,n);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 l=i;window.customElements.get("remote-input")||(window.RemoteInputElement=i,window.customElements.define("remote-input",i))},49728(e,t,n){function r(e){return Array.from(e.querySelectorAll('[role="tablist"] [role="tab"]')).filter(t=>t instanceof HTMLElement&&t.closest(e.tagName)===e)}n.d(t,{A:()=>i});class i 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 n=r(this),i=n.indexOf(n.find(e=>e.matches('[aria-selected="true"]')));if("ArrowRight"===e.code){let e=i+1;e>=n.length&&(e=0),s(this,e)}else if("ArrowLeft"===e.code){let e=i-1;e<0&&(e=n.length-1),s(this,e)}else"Home"===e.code?(s(this,0),e.preventDefault()):"End"===e.code&&(s(this,n.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 n=e.target.closest('[role="tab"]');n instanceof HTMLElement&&n.closest('[role="tablist"]')&&s(this,t.indexOf(n))})}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 n=r(e),i=Array.from(e.querySelectorAll('[role="tabpanel"]')).filter(t=>t.closest(e.tagName)===e),s=n[t],a=i[t];if(e.dispatchEvent(new CustomEvent("tab-container-change",{bubbles:!0,cancelable:!0,detail:{relatedTarget:a}}))){for(let e of n)e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1");for(let e of i)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(),a.hidden=!1,e.dispatchEvent(new CustomEvent("tab-container-changed",{bubbles:!0,detail:{relatedTarget:a}}))}}window.customElements.get("tab-container")||(window.TabContainerElement=i,window.customElements.define("tab-container",i))},5497(e,t,n){n.d(t,{A:()=>r});function r(e,t){var n,r,i,s=(void 0===t?{}:t).viewportMarginBottom,a=void 0===s?100:s,l=null,o=!1;function c(t){if(n!==t.clientX||r!==t.clientY){var s=e.style.height;i&&i!==s&&(o=!0,e.style.maxHeight="",e.removeEventListener("mousemove",c)),i=s}n=t.clientX,r=t.clientY}var u=e.ownerDocument,d=u.documentElement;function h(){if(!o&&e.value!==l&&(!(e.offsetWidth<=0)||!(e.offsetHeight<=0))){var t=function(){for(var t=0,n=e;n!==u.body&&null!==n;)t+=n.offsetTop||0,n=n.offsetParent;var r=t-u.defaultView.pageYOffset,i=d.clientHeight-(r+e.offsetHeight);return{top:r,bottom:i}}(),n=t.top,r=t.bottom;if(!(n<0)&&!(r<0)){var s=getComputedStyle(e),c=Math.ceil(parseFloat(s.borderTopWidth)),h=Math.ceil(parseFloat(s.borderBottomWidth)),f="border-box"===s.boxSizing,p=parseFloat(s.height)+r;e.style.maxHeight=p-(rl,ai:()=>i,fN:()=>a,qA:()=>o});var r=-1/0,i=1/0;function s(e,t,n,i){for(var s=e.length,a=t.length,l=e.toLowerCase(),o=t.toLowerCase(),c=function(e){for(var t=e.length,n=Array(t),r="/",i=0;i1024)return r;var l=Array(n),o=Array(n);return s(e,t,l,o),o[n-1][a-1]}function l(e,t){var n=e.length,i=t.length,a=Array(n);if(!n||!i)return a;if(n===i){for(var l=0;l1024)return a;var o=Array(n),c=Array(n);s(e,t,o,c);for(var u=!1,l=n-1,d=i-1;l>=0;l--)for(;d>=0;d--)if(o[l][d]!==r&&(u||o[l][d]===c[l][d])){u=l&&d&&c[l][d]===o[l-1][d-1]+1,a[l]=d--;break}return a}function o(e,t){e=e.toLowerCase(),t=t.toLowerCase();for(var n=e.length,r=0,i=0;rm});var r,i,s,a,l=n(29941),o=n(11937),c=function(e,t,n,r){if("a"===n&&!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"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},u=function(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n};function d(e){document.activeElement!==e&&e?.focus()}let h=[];function f(e){let t=e.target,n=t?.closest("button");if(!n||n.hasAttribute("disabled")||"true"===n.getAttribute("aria-disabled"))return;let r=n?.getAttribute("data-show-dialog-id");if(r){e.stopPropagation();let t=document.getElementById(r);if(t instanceof m){t.openButton=n,t.show(),e.preventDefault();return}}if(h.length&&(r=n.getAttribute("data-close-dialog-id")||n.getAttribute("data-submit-dialog-id"))){let e=document.getElementById(r);if(e instanceof m){let t=h.findIndex(e=>e.id===r);h.splice(t,1),e.close(n.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 g(e){let t=e.target;if(t?.closest("button"))return;let n=h[h.length-1];!n||t.closest(`#${n.getAttribute("id")}`)||t.ownerDocument.addEventListener("mouseup",e=>{e.target===t&&(h.pop(),n.close())},{once:!0})}class m extends HTMLElement{constructor(){super(...arguments),r.add(this),i.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,i,"f").signal.aborted&&u(this,i,new AbortController,"f"),(0,l.iE)(this,this.querySelector("[autofocus]"),c(this,i,"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,i,"f").abort();let e=this.openButton?.closest("details")||this.openButton?.closest("action-menu");e?d((0,o.Z0)(e)):d(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",g),this.addEventListener("keydown",e=>c(this,r,"m",a).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}}i=new WeakMap,r=new WeakSet,s=function(){return this.parentElement?.hasAttribute("data-modal-dialog-overlay")?this.parentElement:null},a=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=m,window.customElements.define("modal-dialog",m))},15955(e,t,n){n.d(t,{A:()=>r});function r(e){let t=!1,n=null;function r(e,t,n,i=!1){t instanceof HTMLInputElement&&(t.indeterminate=i,t.checked!==n&&(t.checked=n,setTimeout(()=>{let n=new CustomEvent("change",{bubbles:!0,cancelable:!1,detail:{relatedTarget:e}});t.dispatchEvent(n)})))}function i(i){let s=i.target;s instanceof Element&&(s.hasAttribute("data-check-all")?function(t){if(t instanceof CustomEvent&&t.detail){let{relatedTarget:e}=t.detail;if(e&&e.hasAttribute("data-check-all-item"))return}let i=t.target;if(i instanceof HTMLInputElement){for(let t of(n=null,e.querySelectorAll("[data-check-all-item]")))r(i,t,i.checked);i.indeterminate=!1,a()}}(i):s.hasAttribute("data-check-all-item")&&function(i){if(i instanceof CustomEvent&&i.detail){let{relatedTarget:e}=i.detail;if(e&&(e.hasAttribute("data-check-all")||e.hasAttribute("data-check-all-item")))return}let s=i.target;if(!(s instanceof HTMLInputElement))return;let l=Array.from(e.querySelectorAll("[data-check-all-item]"));if(t&&n){let[e,t]=[l.indexOf(n),l.indexOf(s)].sort();for(let n of l.slice(e,+t+1||9e9))r(s,n,s.checked)}t=!1,n=s;let o=e.querySelector("[data-check-all]");if(o){let e=l.length,t=l.filter(e=>e instanceof HTMLInputElement&&e.checked).length;r(s,o,t===e,e>t&&t>0)}a()}(i))}function s(e){e.target instanceof Element&&(e.target instanceof HTMLLabelElement&&e.target.control||e.target).hasAttribute("data-check-all-item")&&(t=e.shiftKey)}function a(){let t=e.querySelector("[data-check-all-count]");t&&(t.textContent=e.querySelectorAll("[data-check-all-item]:checked").length.toString())}return e.addEventListener("mousedown",s),e.addEventListener("change",i),{unsubscribe:()=>{e.removeEventListener("mousedown",s),e.removeEventListener("change",i)}}}},81387(e,t,n){n.d(t,{XX:()=>A,qy:()=>S,_3:()=>H});let r=new Map;function i(e){if(r.has(e))return r.get(e);let t=e.length,n=0,i=0,s=0,a=[];for(let r=0;rn&&(a.push(Object.freeze({type:"string",start:n,end:i,value:e.slice(n,i)})),n=i),a.push(Object.freeze({type:"part",start:i,end:r+2,value:e.slice(n+2,r).trim()})),r+=1,n=r+1)}return n"string"==typeof e?e:e.value).join("");this.element.setAttributeNS(this.attr.namespaceURI,this.attr.name,e)}}}let c=new WeakMap;class u{constructor(e,t){this.expression=t,c.set(this,[e]),e.textContent=""}get value(){return c.get(this).map(e=>e.textContent).join("")}set value(e){this.replace(e)}get previousSibling(){return c.get(this)[0].previousSibling}get nextSibling(){return c.get(this)[c.get(this).length-1].nextSibling}replace(...e){let t=e.map(e=>"string"==typeof e?new Text(e):e);for(let e of(t.length||t.push(new Text("")),c.get(this)[0].before(...t),c.get(this)))e.remove();c.set(this,t)}}function d(e){return{processCallback(t,n,r){var i;if("object"==typeof r&&r){for(let t of n)if(t.expression in r){let n=null!=(i=r[t.expression])?i:"";e(t,n)}}}}}function h(e,t){e.value=String(t)}function f(e,t){return"boolean"==typeof t&&e instanceof l&&"boolean"==typeof e.element[e.attributeName]&&(e.booleanValue=t,!0)}let p=d(h);d((e,t)=>{f(e,t)||h(e,t)});let g=new WeakMap,m=new WeakMap;class b extends DocumentFragment{constructor(e,t,n=p){var r,s;super(),Object.getPrototypeOf(this)!==b.prototype&&Object.setPrototypeOf(this,b.prototype),this.appendChild(e.content.cloneNode(!0)),m.set(this,Array.from(function*(e){let t,n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,null,!1);for(;t=n.nextNode();)if(t instanceof Element&&t.hasAttributes())for(let e=0;ee+t+(n{let n=e(...t);return L.add(n),n}}let T=new WeakMap;class x{constructor(e,t){this.element=e,this.type=t,this.element.addEventListener(this.type,this),T.get(this.element).set(this.type,this)}set(e){"function"==typeof e?this.handleEvent=e.bind(this.element):"object"==typeof e&&"function"==typeof e.handleEvent?this.handleEvent=e.handleEvent.bind(e):(this.element.removeEventListener(this.type,this),T.get(this.element).delete(this.type))}static for(e){T.has(e.element)||T.set(e.element,new Map);let t=e.attributeName.slice(2),n=T.get(e.element);return n.has(t)?n.get(t):new x(e.element,t)}}function k(e,t){L.has(t)&&(t(e),1)||f(e,t)||e instanceof l&&e.attributeName.startsWith("on")&&(x.for(e).set(t),e.element.removeAttributeNS(e.attributeNamespace,e.attributeName),1)||t instanceof y&&e instanceof u&&(t.renderInto(e),1)||t instanceof DocumentFragment&&e instanceof u&&(t.childNodes.length&&e.replace(...t.childNodes),1)||function(e,t){if(!("object"==typeof t&&Symbol.iterator in t))return!1;if(!(e instanceof u))return e.value=Array.from(t).join(" "),!0;{let n=[];for(let e of t)if(e instanceof y){let t=document.createDocumentFragment();e.renderInto(t),n.push(...t.childNodes)}else e instanceof DocumentFragment?n.push(...e.childNodes):n.push(String(e));return n.length&&e.replace(...n),!0}}(e,t)||h(e,t)}let N=d(k);function S(e,...t){return new y(e,t,N)}let M=new WeakMap;C((...e)=>t=>{M.has(t)||M.set(t,{i:e.length});let n=M.get(t);for(let r=0;r{rt=>{var n,r;if(!(t instanceof u))return;let i=document.createElement("template");i.innerHTML=null!=(r=null==(n=y.cspTrustedTypesPolicy)?void 0:n.createHTML(e))?r:e;let s=document.importNode(i.content,!0);t.replace(...s.childNodes)})},72705(e,t,n){n.d(t,{A:()=>h});let r=new WeakMap,i=null;function s(e,t){return e.closest("task-lists")===t.closest("task-lists")}function a(e){if(e.currentTarget!==e.target)return;let t=e.currentTarget;if(!(t instanceof Element))return;let n=t.closest(".contains-task-list");if(!n||(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),a=s.indexOf(t),l=r.get(t);l&&l.sortStarted(n),i={didDrop:!1,dragging:t,dropzone:t,sourceList:n,sourceSibling:s[a+1]||null,sourceIndex:a}}function l(e){if(!i)return;let t=e.currentTarget;t instanceof Element&&(s(i.dragging,t)?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),i.dropzone!==t&&(i.dragging.classList.add("is-dragging"),i.dropzone=t,function(e,t){if(e.parentNode===t.parentNode){let n=e;for(;n;){if(n===t)return!0;n=n.previousElementSibling}}return!1}(i.dragging,t)?t.before(i.dragging):t.after(i.dragging))):e.stopPropagation())}function o(e){if(!i)return;e.preventDefault(),e.stopPropagation();let t=e.currentTarget;if(!(t instanceof Element)||(i.didDrop=!0,!i.dragging.parentElement))return;let n=Array.from(i.dragging.parentElement.children).indexOf(i.dragging),s=t.closest(".contains-task-list");if(!s||i.sourceIndex===n&&i.sourceList===s)return;i.sourceList===s&&i.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=w(e);if(!t)throw Error(".contains-task-list not found");let n=e.closest(".task-list-item"),r=Array.from(t.children).filter(e=>"LI"===e.tagName),i=n?r.indexOf(n):-1;return[function(e){let t=e.closest("task-lists");if(!t)throw Error("parent not found");return L(t).indexOf(e)}(t),i]}(t),checked:t.checked}}))});let e=new MutationObserver(y.bind(null,this));d.set(this,e),e.observe(this,{childList:!0,subtree:!0}),y(this)}disconnectedCallback(){let e=d.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,n){t!==n&&"disabled"===e&&A(this)}}let f=document.createElement("template"),p=document.createElement("span");p.classList.add("handle");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.classList.add("drag-handle"),g.setAttribute("aria-hidden","true"),g.setAttribute("width","16"),g.setAttribute("height","16");let m=document.createElementNS("http://www.w3.org/2000/svg","path");m.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(g),g.appendChild(m);let b=new WeakMap;function v(e){let t=e.currentTarget;if(!(t instanceof Element))return;let n=t.closest("task-lists");n instanceof h&&n.sortable&&!n.disabled&&t.classList.add("hovered")}function E(e){let t=e.currentTarget;t instanceof Element&&t.classList.remove("hovered")}function w(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"))w(t)===function e(t){let n=w(t);return n?e(n)||n: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 n=f.content.cloneNode(!0),i=n.querySelector(".handle");if(e.prepend(n),!i)throw Error("handle not found");i.addEventListener("mouseenter",k),i.addEventListener("mouseleave",N),r.set(e,{sortStarted:T,sortFinished:x}),e.addEventListener("dragstart",a),e.addEventListener("dragenter",l),e.addEventListener("dragend",c),e.addEventListener("drop",o),e.addEventListener("dragover",u),e.addEventListener("mouseenter",v),e.addEventListener("mouseleave",E)}(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 C=new WeakMap;function T(e){let t=e.closest("task-lists");if(!t)throw Error("parent not found");C.set(t,L(t))}function x({src:e,dst:t}){let n=e.list.closest("task-lists");if(!n)return;let r=C.get(n);r&&(C.delete(n),n.dispatchEvent(new CustomEvent("task-lists-move",{bubbles:!0,detail:{src:[r.indexOf(e.list),e.index],dst:[r.indexOf(t.list),t.index]}})))}function k(e){let t=e.currentTarget;if(!(t instanceof Element))return;let n=t.closest(".task-list-item");if(!n)return;let r=n.closest("task-lists");r instanceof h&&r.sortable&&!r.disabled&&n.setAttribute("draggable","true")}function N(e){if(i)return;let t=e.currentTarget;if(!(t instanceof Element))return;let n=t.closest(".task-list-item");n&&n.setAttribute("draggable","false")}window.customElements.get("task-lists")||(window.TaskListsElement=h,window.customElements.define("task-lists",h))},74043(e,t,n){function r(e){let t="==".slice(0,(4-e.length%4)%4),n=atob(e.replace(/-/g,"+").replace(/_/g,"/")+t),r=new ArrayBuffer(n.length),i=new Uint8Array(r);for(let e=0;ew,Jt:()=>A,PG:()=>v,d5:()=>E,vt:()=>y});var s="copy",a="convert";function l(e,t,n){if(t===s)return n;if(t===a)return e(n);if(t instanceof Array)return n.map(n=>l(e,t[0],n));if(t instanceof Object){let r={};for(let[i,s]of Object.entries(t)){if(s.derive){let e=s.derive(n);void 0!==e&&(n[i]=e)}if(!(i in n)){if(s.required)throw Error(`Missing key: ${i}`);continue}if(null==n[i]){r[i]=null;continue}r[i]=l(e,s.schema,n[i])}return r}}function o(e,t){return{required:!0,schema:e,derive:t}}function c(e){return{required:!0,schema:e}}function u(e){return{required:!1,schema:e}}var d={type:c(s),id:c(a),transports:u(s)},h={appid:u(s),appidExclude:u(s),credProps:u(s)},f={appid:u(s),appidExclude:u(s),credProps:u(s)},p={publicKey:c({rp:c(s),user:c({id:c(a),name:c(s),displayName:c(s)}),challenge:c(a),pubKeyCredParams:c(s),timeout:u(s),excludeCredentials:u([d]),authenticatorSelection:u(s),attestation:u(s),extensions:u(h)}),signal:u(s)},g={type:c(s),id:c(s),rawId:c(a),authenticatorAttachment:u(s),response:c({clientDataJSON:c(a),attestationObject:c(a),transports:o(s,e=>{var t;return(null==(t=e.getTransports)?void 0:t.call(e))||[]})}),clientExtensionResults:o(f,e=>e.getClientExtensionResults())},m={mediation:u(s),publicKey:c({challenge:c(a),timeout:u(s),rpId:u(s),allowCredentials:u([d]),userVerification:u(s),extensions:u(h)}),signal:u(s)},b={type:c(s),id:c(s),rawId:c(a),authenticatorAttachment:u(s),response:c({clientDataJSON:c(a),authenticatorData:c(a),signature:c(a),userHandle:c(a)}),clientExtensionResults:o(f,e=>e.getClientExtensionResults())};function v(e){return l(r,p,e)}function E(e){return l(r,m,e)}function w(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}async function y(e){let t=await navigator.credentials.create(e);return t.toJSON=()=>l(i,g,t),t}async function A(e){let t=await navigator.credentials.get(e);return t.toJSON=()=>l(i,b,t),t}},11937(e,t,n){n.d(t,{K1:()=>r.K1,U0:()=>i.U,Z0:()=>r.Z0,tp:()=>r.tp});var r=n(55966),i=n(84366);n(23635)}}]); //# sourceMappingURL=63225-0b2c29213bdfc714-077258bd6ce363e0.js.map