pint/github-css/fuwaa_fuwaa_ 🥞 comfy fuwaffle pancakes are being served here_files/github-elements-7dc552b55468.js.download

3 lines
37 KiB
Text
Raw Normal View History

"use strict";(()=>{var se=Object.defineProperty;var a=(O,A)=>se(O,"name",{value:A,configurable:!0});(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["github-elements"],{47486:(O,A,m)=>{var b=m(71544),_=m(38257),y=m(14840),g=m(57260),E=m(13002),P=m(73921),B=m(27034),C=m(51941),d=m(88309),o=m(40987),h=m(57852),f=m(88823);window.IncludeFragmentElement.prototype.fetch=n=>(n.headers.append("X-Requested-With","XMLHttpRequest"),window.fetch(n));var c=m(99254),l=m(35803),w=Object.defineProperty,x=Object.getOwnPropertyDescriptor,T=a((n,t,e,s)=>{for(var i=s>1?void 0:s?x(t,e):t,r=n.length-1,u;r>=0;r--)(u=n[r])&&(i=(s?u(t,e,i):u(i))||i);return s&&i&&w(t,e,i),i},"__decorateClass");let D=a(class extends HTMLElement{updateURL(n){const t=n.currentTarget,e=t.getAttribute("data-url")||"";if(this.helpField.value=e,t.matches(".js-git-protocol-clone-url"))for(const s of this.helpTexts)s.textContent=e;for(const s of this.cloneURLButtons)s.classList.remove("selected");t.classList.add("selected")}},"GitCloneHelpElement");T([l.fA],D.prototype,"helpField",2),T([l.GO],D.prototype,"helpTexts",2),T([l.GO],D.prototype,"cloneURLButtons",2),D=T([l.Ih],D);var z=a((n,t,e)=>{if(!t.has(n))throw TypeError("Cannot "+e)},"__accessCheck"),V=a((n,t,e)=>(z(n,t,"read from private field"),e?e.call(n):t.get(n)),"__privateGet"),$=a((n,t,e)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,e)},"__privateAdd"),k=a((n,t,e,s)=>(z(n,t,"write to private field"),s?s.call(n,e):t.set(n,e),e),"__privateSet"),M,I,H,G;function dt(n,t){const e=[];let s=0;for(let i=0;i<n.length;i++){const r=n[i],u=t.indexOf(r,s);if(u===-1)return e;s=u+1,e.push(u)}return e}a(dt,"defaultPositions");class J extends HTMLElement{constructor(){super(...arguments);$(this,M,""),$(this,I,""),$(this,H,void 0),$(this,G,void 0)}get query(){return this.ownerInput?this.ownerInput.value:this.getAttribute("query")||""}set query(t){this.setAttribute("query",t)}get ownerInput(){const t=this.ownerDocument.getElementById(this.getAttribute("data-owner-input")||"");return t instanceof HTMLInputElement?t:null}connectedCallback(){this.handleEvent(),this.ownerInput?.addEventListener("input",this),k(this,H,new MutationObserver(()=>this.handleEvent()))}handleEvent(){V(this,G)&&cancelAnimationFrame(V(this,G)),k(this,G,requestAnimationFrame(()=>this.mark()))}disconnectedCallback(){this.ownerInput?.removeEventListener("input",this),V(this,H).disconnect()}mark(){const t=this.textContent||"",e=this.query;if(t===V(this,M)&&e===V(this,I))return;k(this,M,t),k(this,I,e),V(this,H).disconnect();let s=0;const i=document.createDocumentFragment();for(const r of(this.positions||dt)(e,t)){if(Number(r)!==r||r<s||r>t.length)continue;t.slice(s,r)!==""&&i.appendChild(document.createTextNode(t.slice(s,r))),s=r+1;const p=document.createElement("mark");p.textContent=t[r],i.appendChild(p)}i.appendChild(document.createTextNode(t.slice(s))),this.replaceChildren(i),V(this,H).observe(this,{attributes:!0,childList:!0,subtree:!0})}}a(J,"MarkedTextElement"),M=new WeakMap,I=new WeakMap,H=new WeakMap,G=new WeakMap,J.observedAttributes=["query","data-owner-input"];const q=null;window.customElements.get("marked-text")||(window.MarkedTextElement=J,window.customElements.define("marked-text",J));var Y=m(52641);class W extends HTMLElement{connectedCallback(){this.addEventListener("input",bt)}disconnectedCallback(){this.removeEventListener("input",bt)}}a(W,"PasswordStrengthElement"),window.customElements.get("password-strength")||(window.PasswordStrengthElement=W,window.customElements.define("password-strength",W));function bt(n){const t=n.currentTarget;if(!(t instanceof W))return;const e=n.target;if(!(e instanceof HTMLInputElement))return;const s=e.form;if(!(s instanceof HTMLFormElement))return;const i=ht(e.value,{minimumCharacterCount:Number(t.getAttribute("minimum-character-count")),passphraseLength:Number(t.getAttribute("passphrase-length"))});if(i.valid){e.setCustomValidity("");const r=t.querySelector("dl.form-group");r&&(r.classList.remove("errored"),r.classList.add("succes
//# sourceMappingURL=github-elements-0825d18103df.js.map