aboutsummaryrefslogtreecommitdiff
path: root/archive/Problem 10 Brute Force · Discussion #15 · Ta180m_Idiot-Code-Golf_files/vendors-node_modules_github_clipboard-copy-element_dist_index.js
diff options
context:
space:
mode:
Diffstat (limited to 'archive/Problem 10 Brute Force · Discussion #15 · Ta180m_Idiot-Code-Golf_files/vendors-node_modules_github_clipboard-copy-element_dist_index.js')
-rw-r--r--archive/Problem 10 Brute Force · Discussion #15 · Ta180m_Idiot-Code-Golf_files/vendors-node_modules_github_clipboard-copy-element_dist_index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/archive/Problem 10 Brute Force · Discussion #15 · Ta180m_Idiot-Code-Golf_files/vendors-node_modules_github_clipboard-copy-element_dist_index.js b/archive/Problem 10 Brute Force · Discussion #15 · Ta180m_Idiot-Code-Golf_files/vendors-node_modules_github_clipboard-copy-element_dist_index.js
new file mode 100644
index 0000000..69880ed
--- /dev/null
+++ b/archive/Problem 10 Brute Force · Discussion #15 · Ta180m_Idiot-Code-Golf_files/vendors-node_modules_github_clipboard-copy-element_dist_index.js
@@ -0,0 +1,3 @@
+"use strict";(()=>{var V=Object.defineProperty;var o=(U,I)=>V(U,"name",{value:I,configurable:!0});(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_github_clipboard-copy-element_dist_index_esm_js-node_modules_delegated-e-e4591b","node_modules_delegated-events_dist_index_js"],{76745:(U,I,H)=>{H.d(I,{Z:()=>j});function b(c){const d=document.createElement("pre");return d.style.width="1px",d.style.height="1px",d.style.position="fixed",d.style.top="5px",d.textContent=c,d}o(b,"createNode");function E(c){if("clipboard"in navigator)return navigator.clipboard.writeText(c.textContent);const d=getSelection();if(d==null)return Promise.reject(new Error);d.removeAllRanges();const k=document.createRange();return k.selectNodeContents(c),d.addRange(k),document.execCommand("copy"),d.removeAllRanges(),Promise.resolve()}o(E,"copyNode");function _(c){if("clipboard"in navigator)return navigator.clipboard.writeText(c);const d=document.body;if(!d)return Promise.reject(new Error);const k=b(c);return d.appendChild(k),E(k),d.removeChild(k),Promise.resolve()}o(_,"copyText");function D(c){const d=c.getAttribute("for"),k=c.getAttribute("value");function L(){c.dispatchEvent(new CustomEvent("clipboard-copy",{bubbles:!0}))}if(o(L,"trigger"),k)_(k).then(L);else if(d){const C="getRootNode"in Element.prototype?c.getRootNode():c.ownerDocument;if(!(C instanceof Document||"ShadowRoot"in window&&C instanceof ShadowRoot))return;const N=C.getElementById(d);N&&q(N).then(L)}}o(D,"copy");function q(c){return c instanceof HTMLInputElement||c instanceof HTMLTextAreaElement?_(c.value):c instanceof HTMLAnchorElement&&c.hasAttribute("href")?_(c.href):E(c)}o(q,"copyTarget");function M(c){const d=c.currentTarget;d instanceof HTMLElement&&D(d)}o(M,"clicked");function A(c){if(c.key===" "||c.key==="Enter"){const d=c.currentTarget;d instanceof HTMLElement&&(c.preventDefault(),D(d))}}o(A,"keydown");function R(c){c.currentTarget.addEventListener("keydown",A)}o(R,"focused");function T(c){c.currentTarget.removeEventListener("keydown",A)}o(T,"blurred");class S extends HTMLElement{constructor(){super();this.addEventListener("click",M),this.addEventListener("focus",R),this.addEventListener("blur",T)}connectedCallback(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button")}get value(){return this.getAttribute("value")||""}set value(d){this.setAttribute("value",d)}}o(S,"ClipboardCopyElement"),window.customElements.get("clipboard-copy")||(window.ClipboardCopyElement=S,window.customElements.define("clipboard-copy",S));const j=S},59753:(U,I,H)=>{H.d(I,{f:()=>B,on:()=>W});function b(){if(!(this instanceof b))return new b;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}o(b,"SelectorSet");var E=window.document.documentElement,_=E.matches||E.webkitMatchesSelector||E.mozMatchesSelector||E.oMatchesSelector||E.msMatchesSelector;b.prototype.matchesSelector=function(e,t){return _.call(e,t)},b.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},b.prototype.indexes=[];var D=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;b.prototype.indexes.push({name:"ID",selector:o(function(t){var n;if(n=t.match(D))return n[0].slice(1)},"matchIdSelector"),element:o(function(t){if(t.id)return[t.id]},"getElementId")});var q=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;b.prototype.indexes.push({name:"CLASS",selector:o(function(t){var n;if(n=t.match(q))return n[0].slice(1)},"matchClassSelector"),element:o(function(t){var n=t.className;if(n){if(typeof n=="string")return n.split(/\s/);if(typeof n=="object"&&"baseVal"in n)return n.baseVal.split(/\s/)}},"getElementClassNames")});var M=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;b.prototype.indexes.push({name:"TAG",selector:o(function(t){var n;if(n=t.match(M))return n[0].toUpperCase()},"matchTagSelector"),element:o(function(t){return[t.nodeName.toUpperCase()]},"getElementTagName")}),b.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}};var A;typeof window.Map=="function"?A=window.Map:A=function(){function e(){this.map={}}return o(e,"Map"),e.prototype.get=function(t){return this.map[t+" "]},e.prototype.set=function(t,n){this.map[t+" "]=n},e}();var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function T(e,t){e=e.slice(0).concat(e.default);var n=e.length,u,i,f,l,g=t,y,w,v=[];do if(R.exec(""),(f=R.exec(g))&&(g=f[3],f[2]||!g)){for(u=0;u<n;u++)if(w=e[u],y=w.selector(f[1])){for(i=v.length,l=!1;i--;)if(v[i].index===w&&v[i].key===y){l=!0;break}l||v.push({index:w,key:y});break}}while(f);return v}o(T,"parseSelectorIndexes");function S(e,t){var n,u,i;for(n=0,u=e.length;n<u;n++)if(i=e[n],t.isPrototypeOf(i))return i}o(S,"findByPrototype"),b.prototype.logDefaultIndexUsed=function(){},b.prototype.add=function(e,t){var n,u,i,f,l,g,y,w,v=this.activeIndexes,x=this.selectors,P=this.selectorObjects;if(typeof e=="string"){for(n={id:this.uid++,selector:e,data:t},P[n.id]=n,y=T(this.indexes,e),u=0;u<y.length;u++)w=y[u],f=w.key,i=w.index,l=S(v,i),l||(l=Object.create(i),l.map=new A,v.push(l)),i===this.indexes.default&&this.logDefaultIndexUsed(n),g=l.map.get(f),g||(g=[],l.map.set(f,g)),g.push(n);this.size++,x.push(e)}},b.prototype.remove=function(e,t){if(typeof e=="string"){var n,u,i,f,l,g,y,w,v=this.activeIndexes,x=this.selectors=[],P=this.selectorObjects,K={},z=arguments.length===1;for(n=T(this.indexes,e),i=0;i<n.length;i++)for(u=n[i],f=v.length;f--;)if(g=v[f],u.index.isPrototypeOf(g)){if(y=g.map.get(u.key),y)for(l=y.length;l--;)w=y[l],w.selector===e&&(z||w.data===t)&&(y.splice(l,1),K[w.id]=!0);break}for(i in K)delete P[i],this.size--;for(i in P)x.push(P[i].selector)}};function j(e,t){return e.id-t.id}o(j,"sortById"),b.prototype.queryAll=function(e){if(!this.selectors.length)return[];var t={},n=[],u=this.querySelectorAll(this.selectors.join(", "),e),i,f,l,g,y,w,v,x;for(i=0,l=u.length;i<l;i++)for(y=u[i],w=this.matches(y),f=0,g=w.length;f<g;f++)x=w[f],t[x.id]?v=t[x.id]:(v={id:x.id,selector:x.selector,data:x.data,elements:[]},t[x.id]=v,n.push(v)),v.elements.push(y);return n.sort(j)},b.prototype.matches=function(e){if(!e)return[];var t,n,u,i,f,l,g,y,w,v,x,P=this.activeIndexes,K={},z=[];for(t=0,i=P.length;t<i;t++)if(g=P[t],y=g.element(e),y){for(n=0,f=y.length;n<f;n++)if(w=g.map.get(y[n]))for(u=0,l=w.length;u<l;u++)v=w[u],x=v.id,!K[x]&&this.matchesSelector(e,v.selector)&&(K[x]=!0,z.push(v))}return z.sort(j)};var c={},d={},k=new WeakMap,L=new WeakMap,C=new WeakMap,N=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function a(e,t,n){var u=e[t];return e[t]=function(){return n.apply(e,arguments),u.apply(e,arguments)},e}o(a,"before");function s(e,t,n){var u=[],i=t;do{if(i.nodeType!==1)break;var f=e.matches(i);if(f.length){var l={node:i,observers:f};n?u.unshift(l):u.push(l)}}while(i=i.parentElement);return u}o(s,"dist_matches");function r(){k.set(this,!0)}o(r,"trackPropagation");function m(){k.set(this,!0),L.set(this,!0)}o(m,"trackImmediate");function h(){return C.get(this)||null}o(h,"getCurrentTarget");function p(e,t){!N||Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:t||N.get})}o(p,"defineCurrentTarget");function F(e){try{return e.eventPhase,!0}catch{return!1}}o(F,"canDispatch");function O(e){if(!!F(e)){var t=e.eventPhase===1?d:c,n=t[e.type];if(!!n){var u=s(n,e.target,e.eventPhase===1);if(!!u.length){a(e,"stopPropagation",r),a(e,"stopImmediatePropagation",m),p(e,h);for(var i=0,f=u.length;i<f&&!k.get(e);i++){var l=u[i];C.set(e,l.node);for(var g=0,y=l.observers.length;g<y&&!L.get(e);g++)l.observers[g].data.call(l.node,e)}C.delete(e),p(e)}}}}o(O,"dispatch");function W(e,t,n){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=!!u.capture,f=i?d:c,l=f[e];l||(l=new b,f[e]=l,document.addEventListener(e,O,i)),l.add(t,n)}o(W,"on");function G(e,t,n){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=!!u.capture,f=i?d:c,l=f[e];!l||(l.remove(t,n),!l.size&&(delete f[e],document.removeEventListener(e,O,i)))}o(G,"off");function B(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}o(B,"fire")},11793:(U,I,H)=>{H.d(I,{EL:()=>M,N9:()=>C,Tz:()=>N});class b{constructor(s){this.children=[],this.parent=s}delete(s){const r=this.children.indexOf(s);return r===-1?!1:(this.children=this.children.slice(0,r).concat(this.children.slice(r+1)),this.children.length===0&&this.parent.delete(this),!0)}add(s){return this.children.push(s),this}}o(b,"Leaf");class E{constructor(s){this.parent=null,this.children={},this.parent=s||null}get(s){return this.children[s]}insert(s){let r=this;for(let m=0;m<s.length;m+=1){const h=s[m];let p=r.get(h);if(m===s.length-1)return p instanceof E&&(r.delete(p),p=null),p||(p=new b(r),r.children[h]=p),p;p instanceof b&&(p=null),p||(p=new E(r),r.children[h]=p),r=p}return r}delete(s){for(const r in this.children)if(this.children[r]===s){const h=delete this.children[r];return Object.keys(this.children).length===0&&this.parent&&this.parent.delete(this),h}return!1}}o(E,"RadixTrie");function _(a){if(!(a instanceof HTMLElement))return!1;const s=a.nodeName.toLowerCase(),r=(a.getAttribute("type")||"").toLowerCase();return s==="select"||s==="textarea"||s==="input"&&r!=="submit"&&r!=="reset"&&r!=="checkbox"&&r!=="radio"||a.isContentEditable}o(_,"isFormField");function D(a,s){const r=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:s}});!a.dispatchEvent(r)||(_(a)?a.focus():a.click())}o(D,"fireDeterminedAction");function q(a){const s=[];let r=[""],m=!1;for(let h=0;h<a.length;h++){if(m&&a[h]===","){s.push(r),r=[""],m=!1;continue}if(a[h]===" "){r.push(""),m=!1;continue}else a[h]==="+"?m=!1:m=!0;r[r.length-1]+=a[h]}return s.push(r),s.map(h=>h.filter(p=>p!=="")).filter(h=>h.length>0)}o(q,"expandHotkeyToEdges");function M(a){const{ctrlKey:s,altKey:r,metaKey:m,key:h}=a,p=[],F=[s,r,m,R(a)];for(const[O,W]of F.entries())W&&p.push(A[O]);return A.includes(h)||p.push(h),p.join("+")}o(M,"hotkey");const A=["Control","Alt","Meta","Shift"];function R(a){const{shiftKey:s,code:r,key:m}=a;return s&&!(r.startsWith("Key")&&m.toUpperCase()===m)}o(R,"showShift");const T=new E,S=new WeakMap;let j=T,c=null,d=[];function k(){d=[],c=null,j=T}o(k,"resetTriePosition");function L(a){if(a.defaultPrevented||!(a.target instanceof Node))return;if(_(a.target)){const r=a.target;if(!r.id||!r.ownerDocument.querySelector(`[data-hotkey-scope="${r.id}"]`))return}c!=null&&window.clearTimeout(c),c=window.setTimeout(k,1500);const s=j.get(M(a));if(!s){k();return}if(d.push(M(a)),j=s,s instanceof b){const r=a.target;let m=!1,h;const p=_(r);for(let F=s.children.length-1;F>=0;F-=1){h=s.children[F];const O=h.getAttribute("data-hotkey-scope");if(!p&&!O||p&&r.id===O){m=!0;break}}h&&m&&(D(h,d),a.preventDefault()),k()}}o(L,"keyDownHandler");function C(a,s){Object.keys(T.children).length===0&&document.addEventListener("keydown",L);const m=q(s||a.getAttribute("data-hotkey")||"").map(h=>T.insert(h).add(a));S.set(a,m)}o(C,"install");function N(a){const s=S.get(a);if(s&&s.length)for(const r of s)r&&r.delete(a);Object.keys(T.children).length===0&&document.removeEventListener("keydown",L)}o(N,"uninstall")}}]);})();
+
+//# sourceMappingURL=vendors-node_modules_github_clipboard-copy-element_dist_index_esm_js-node_modules_delegated-e-e4591b-ad1685fb2049.js.map \ No newline at end of file