mirror of
https://github.com/dekuNukem/USB4VC.git
synced 2025-10-31 11:26:46 -07:00
3 lines
14 KiB
JavaScript
3 lines
14 KiB
JavaScript
"use strict";(()=>{var D=Object.defineProperty;var c=(x,C)=>D(x,"name",{value:C,configurable:!0});(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[7077],{46263:(x,C,N)=>{N.d(C,{D:()=>b,P:()=>p});function p(w,m=0,{start:y=!0,middle:u=!0,once:_=!1}={}){let h=0,l,f=!1;function v(...k){if(f)return;const T=Date.now()-h;h=Date.now(),y?(y=!1,w.apply(this,k),_&&v.cancel()):(u&&T<m||!u)&&(clearTimeout(l),l=setTimeout(()=>{h=Date.now(),w.apply(this,k),_&&v.cancel()},u?m-T:m))}return c(v,"fn"),v.cancel=()=>{clearTimeout(l),f=!0},v}c(p,"throttle");function b(w,m=0,{start:y=!1,middle:u=!1,once:_=!1}={}){return p(w,m,{start:y,middle:u,once:_})}c(b,"debounce")},11793:(x,C,N)=>{N.d(C,{EL:()=>u,N9:()=>W,Tz:()=>S});class p{constructor(o){this.children=[],this.parent=o}delete(o){const r=this.children.indexOf(o);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(o){return this.children.push(o),this}}c(p,"Leaf");class b{constructor(o){this.parent=null,this.children={},this.parent=o||null}get(o){return this.children[o]}insert(o){let r=this;for(let g=0;g<o.length;g+=1){const d=o[g];let n=r.get(d);if(g===o.length-1)return n instanceof b&&(r.delete(n),n=null),n||(n=new p(r),r.children[d]=n),n;n instanceof p&&(n=null),n||(n=new b(r),r.children[d]=n),r=n}return r}delete(o){for(const r in this.children)if(this.children[r]===o){const d=delete this.children[r];return Object.keys(this.children).length===0&&this.parent&&this.parent.delete(this),d}return!1}}c(b,"RadixTrie");function w(a){if(!(a instanceof HTMLElement))return!1;const o=a.nodeName.toLowerCase(),r=(a.getAttribute("type")||"").toLowerCase();return o==="select"||o==="textarea"||o==="input"&&r!=="submit"&&r!=="reset"&&r!=="checkbox"&&r!=="radio"||a.isContentEditable}c(w,"isFormField");function m(a,o){const r=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:o}});!a.dispatchEvent(r)||(w(a)?a.focus():a.click())}c(m,"fireDeterminedAction");function y(a){const o=[];let r=[""],g=!1;for(let d=0;d<a.length;d++){if(g&&a[d]===","){o.push(r),r=[""],g=!1;continue}if(a[d]===" "){r.push(""),g=!1;continue}else a[d]==="+"?g=!1:g=!0;r[r.length-1]+=a[d]}return o.push(r),o.map(d=>d.filter(n=>n!=="")).filter(d=>d.length>0)}c(y,"expandHotkeyToEdges");function u(a){const{ctrlKey:o,altKey:r,metaKey:g,key:d}=a,n=[],e=[o,r,g,h(a)];for(const[t,i]of e.entries())i&&n.push(_[t]);return _.includes(d)||n.push(d),n.join("+")}c(u,"hotkey");const _=["Control","Alt","Meta","Shift"];function h(a){const{shiftKey:o,code:r,key:g}=a;return o&&!(r.startsWith("Key")&&g.toUpperCase()===g)}c(h,"showShift");const l=new b,f=new WeakMap;let v=l,k=null,T=[];function P(){T=[],k=null,v=l}c(P,"resetTriePosition");function I(a){if(a.defaultPrevented||!(a.target instanceof Node))return;if(w(a.target)){const r=a.target;if(!r.id||!r.ownerDocument.querySelector(`[data-hotkey-scope="${r.id}"]`))return}k!=null&&window.clearTimeout(k),k=window.setTimeout(P,1500);const o=v.get(u(a));if(!o){P();return}if(T.push(u(a)),v=o,o instanceof p){const r=a.target;let g=!1,d;const n=w(r);for(let e=o.children.length-1;e>=0;e-=1){d=o.children[e];const t=d.getAttribute("data-hotkey-scope");if(!n&&!t||n&&r.id===t){g=!0;break}}d&&g&&(m(d,T),a.preventDefault()),P()}}c(I,"keyDownHandler");function W(a,o){Object.keys(l.children).length===0&&document.addEventListener("keydown",I);const g=y(o||a.getAttribute("data-hotkey")||"").map(d=>l.insert(d).add(a));f.set(a,g)}c(W,"install");function S(a){const o=f.get(a);if(o&&o.length)for(const r of o)r&&r.delete(a);Object.keys(l.children).length===0&&document.removeEventListener("keydown",I)}c(S,"uninstall")},86058:(x,C,N)=>{N.d(C,{R:()=>_});function p(){let h;try{h=window.top.document.referrer}catch{if(window.parent)try{h=window.parent.document.referrer}catch{}}return h===""&&(h=document.referrer),h}c(p,"getReferrer");function b(){try{return`${screen.width}x${screen.height}`}catch{return"unknown"}}c(b,"getScreenResolution");function w(){let h=0,l=0;try{return typeof window.innerWidth=="number"?(l=window.innerWidth,h=window.innerHeight):document.documentElement!=null&&document.documentElement.clientWidth!=null?(l=document.documentElement.clientWidth,h=document.documentElement.clientHeight):document.body!=null&&document.body.clientWidth!=null&&(l=document.body.clientWidth,h=document.body.clientHeight),`${l}x${h}`}catch{return"unknown"}}c(w,"getBrowserResolution");function m(){return navigator.languages?navigator.languages.join(","):navigator.language||""}c(m,"getBrowserLanguages");function y(){return{referrer:p(),user_agent:navigator.userAgent,screen_resolution:b(),browser_resolution:w(),browser_languages:m(),pixel_ratio:window.devicePixelRatio,timestamp:Date.now(),tz_seconds:new Date().getTimezoneOffset()*-60}}c(y,"getRequestContext");var u=N(82918);class _{constructor(l){this.options=l}get collectorUrl(){return this.options.collectorUrl}get clientId(){return this.options.clientId?this.options.clientId:(0,u.b)()}createEvent(l){return{page:location.href,title:document.title,context:{...this.options.baseContext,...l}}}sendPageView(l){const f=this.createEvent(l);this.send({page_views:[f]})}sendEvent(l,f){const v={...this.createEvent(f),type:l};this.send({events:[v]})}send({page_views:l,events:f}){const v={client_id:this.clientId,page_views:l,events:f,request_context:y()},k=JSON.stringify(v);try{if(navigator.sendBeacon){navigator.sendBeacon(this.collectorUrl,k);return}}catch{}fetch(this.collectorUrl,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:k,keepalive:!1})}}c(_,"AnalyticsClient")},82918:(x,C,N)=>{N.d(C,{b:()=>y});let p;function b(){return`${Math.round(Math.random()*(Math.pow(2,31)-1))}.${Math.round(Date.now()/1e3)}`}c(b,"generateClientId");function w(u){const _=`GH1.1.${u}`,h=Date.now(),l=new Date(h+1*365*86400*1e3).toUTCString();let{domain:f}=document;f.endsWith(".github.com")&&(f="github.com"),document.cookie=`_octo=${_}; expires=${l}; path=/; domain=${f}; secure; samesite=lax`}c(w,"setClientIdCookie");function m(){let u;const h=document.cookie.match(/_octo=([^;]+)/g);if(!h)return;let l=[0,0];for(const f of h){const[,v]=f.split("="),[,k,...T]=v.split("."),P=k.split("-").map(Number);P>l&&(l=P,u=T.join("."))}return u}c(m,"getClientIdFromCookie");function y(){try{const u=m();if(u)return u;const _=b();return w(_),_}catch{return p||(p=b()),p}}c(y,"getOrCreateClientId")},88149:(x,C,N)=>{N.d(C,{n:()=>p});function p(b="ha"){let w;const m={},y=document.head.querySelectorAll(`meta[name^="${b}-"]`);for(const u of Array.from(y)){const{name:_,content:h}=u,l=_.replace(`${b}-`,"").replace(/-/g,"_");l==="url"?w=h:m[l]=h}if(!w)throw new Error(`AnalyticsClient ${b}-url meta tag not found`);return{collectorUrl:w,...Object.keys(m).length>0?{baseContext:m}:{}}}c(p,"getOptionsFromMeta")},38772:(x,C,N)=>{N.d(C,{dy:()=>o,sY:()=>r,Au:()=>n});var p=N(69567);const b=new WeakSet;function w(e){return b.has(e)}c(w,"isDirective");function m(e,t){return w(t)?(t(e),!0):!1}c(m,"processDirective");function y(e){return(...t)=>{const i=e(...t);return b.add(i),i}}c(y,"directive");const u=new WeakMap;class _{constructor(t,i){this.element=t,this.type=i,this.element.addEventListener(this.type,this),u.get(this.element).set(this.type,this)}set(t){typeof t=="function"?this.handleEvent=t.bind(this.element):typeof t=="object"&&typeof t.handleEvent=="function"?this.handleEvent=t.handleEvent.bind(t):(this.element.removeEventListener(this.type,this),u.get(this.element).delete(this.type))}static for(t){u.has(t.element)||u.set(t.element,new Map);const i=t.attributeName.slice(2),s=u.get(t.element);return s.has(i)?s.get(i):new _(t.element,i)}}c(_,"EventHandler");function h(e,t){return e instanceof p.sV&&e.attributeName.startsWith("on")?(_.for(e).set(t),e.element.removeAttributeNS(e.attributeNamespace,e.attributeName),!0):!1}c(h,"processEvent");function l(e,t){return t instanceof S&&e instanceof p.GZ?(t.renderInto(e),!0):!1}c(l,"processSubTemplate");function f(e,t){return t instanceof DocumentFragment&&e instanceof p.GZ?(t.childNodes.length&&e.replace(...t.childNodes),!0):!1}c(f,"processDocumentFragment");function v(e){return typeof e=="object"&&Symbol.iterator in e}c(v,"isIterable");function k(e,t){if(!v(t))return!1;if(e instanceof p.GZ){const i=[];for(const s of t)if(s instanceof S){const E=document.createDocumentFragment();s.renderInto(E),i.push(...E.childNodes)}else s instanceof DocumentFragment?i.push(...s.childNodes):i.push(String(s));return i.length&&e.replace(...i),!0}else return e.value=Array.from(t).join(" "),!0}c(k,"processIterable");function T(e,t){m(e,t)||(0,p.W_)(e,t)||h(e,t)||l(e,t)||f(e,t)||k(e,t)||(0,p.Al)(e,t)}c(T,"processPart");const P=new WeakMap,I=new WeakMap,W=new WeakMap;class S{constructor(t,i,s){this.strings=t,this.values=i,this.processor=s}get template(){if(P.has(this.strings))return P.get(this.strings);{const t=document.createElement("template"),i=this.strings.length-1;return t.innerHTML=this.strings.reduce((s,E,F)=>s+E+(F<i?`{{ ${F} }}`:""),""),P.set(this.strings,t),t}}renderInto(t){const i=this.template;if(I.get(t)!==i){I.set(t,i);const s=new p.R(i,this.values,this.processor);W.set(t,s),t instanceof p.GZ?t.replace(...s.children):t.appendChild(s);return}W.get(t).update(this.values)}}c(S,"TemplateResult");const a=(0,p.AQ)(T);function o(e,...t){return new S(e,t,a)}c(o,"html");function r(e,t){e.renderInto(t)}c(r,"render");const g=new WeakMap,d=y((...e)=>t=>{g.has(t)||g.set(t,{i:e.length});const i=g.get(t);for(let s=0;s<e.length;s+=1)e[s]instanceof Promise?Promise.resolve(e[s]).then(E=>{s<i.i&&(i.i=s,T(t,E))}):s<=i.i&&(i.i=s,T(t,e[s]))}),n=y(e=>t=>{if(!(t instanceof p.GZ))return;const i=document.createElement("template");i.innerHTML=e;const s=document.importNode(i.content,!0);t.replace(...s.childNodes)})},69567:(x,C,N)=>{N.d(C,{sV:()=>u,GZ:()=>v,R:()=>d,AQ:()=>k,W_:()=>P,Al:()=>T,XK:()=>W});function*p(n){let e="",t=0,i=!1;for(let s=0;s<n.length;s+=1)n[s]==="{"&&n[s+1]==="{"&&n[s-1]!=="\\"&&!i?(i=!0,e&&(yield{type:"string",start:t,end:s,value:e}),e="{{",t=s,s+=2):n[s]==="}"&&n[s+1]==="}"&&n[s-1]!=="\\"&&i&&(i=!1,yield{type:"part",start:t,end:s+2,value:e.slice(2).trim()},e="",s+=2,t=s),e+=n[s]||"";e&&(yield{type:"string",start:t,end:n.length,value:e})}c(p,"parse");var b=function(n,e,t){if(!e.has(n))throw new TypeError("attempted to set private field on non-instance");return e.set(n,t),t},w=function(n,e){if(!e.has(n))throw new TypeError("attempted to get private field on non-instance");return e.get(n)},m,y;class u{constructor(e,t){this.expression=t,m.set(this,void 0),y.set(this,""),b(this,m,e),w(this,m).updateParent("")}get attributeName(){return w(this,m).attr.name}get attributeNamespace(){return w(this,m).attr.namespaceURI}get value(){return w(this,y)}set value(e){b(this,y,e||""),w(this,m).updateParent(e)}get element(){return w(this,m).element}get booleanValue(){return w(this,m).booleanValue}set booleanValue(e){w(this,m).booleanValue=e}}c(u,"AttributeTemplatePart"),m=new WeakMap,y=new WeakMap;class _{constructor(e,t){this.element=e,this.attr=t,this.partList=[]}get booleanValue(){return this.element.hasAttributeNS(this.attr.namespaceURI,this.attr.name)}set booleanValue(e){if(this.partList.length!==1)throw new DOMException("Operation not supported","NotSupportedError");this.partList[0].value=e?"":null}append(e){this.partList.push(e)}updateParent(e){if(this.partList.length===1&&e===null)this.element.removeAttributeNS(this.attr.namespaceURI,this.attr.name);else{const t=this.partList.map(i=>typeof i=="string"?i:i.value).join("");this.element.setAttributeNS(this.attr.namespaceURI,this.attr.name,t)}}}c(_,"AttributeValueSetter");var h=function(n,e,t){if(!e.has(n))throw new TypeError("attempted to set private field on non-instance");return e.set(n,t),t},l=function(n,e){if(!e.has(n))throw new TypeError("attempted to get private field on non-instance");return e.get(n)},f;class v{constructor(e,t){this.expression=t,f.set(this,void 0),h(this,f,[e]),e.textContent=""}get value(){return l(this,f).map(e=>e.textContent).join("")}set value(e){this.replace(e)}get previousSibling(){return l(this,f)[0].previousSibling}get nextSibling(){return l(this,f)[l(this,f).length-1].nextSibling}replace(...e){const t=e.map(i=>typeof i=="string"?new Text(i):i);t.length||t.push(new Text("")),l(this,f)[0].before(...t);for(const i of l(this,f))i.remove();h(this,f,t)}}c(v,"NodeTemplatePart"),f=new WeakMap;function k(n){return{createCallback(e,t,i){this.processCallback(e,t,i)},processCallback(e,t,i){var s;if(!(typeof i!="object"||!i)){for(const E of t)if(E.expression in i){const F=(s=i[E.expression])!==null&&s!==void 0?s:"";n(E,F)}}}}}c(k,"createProcessor");function T(n,e){n.value=String(e)}c(T,"processPropertyIdentity");function P(n,e){return typeof e=="boolean"&&n instanceof u&&typeof n.element[n.attributeName]=="boolean"?(n.booleanValue=e,!0):!1}c(P,"processBooleanAttribute");const I=k(T),W=k((n,e)=>{P(n,e)||T(n,e)});var S=function(n,e,t){if(!e.has(n))throw new TypeError("attempted to set private field on non-instance");return e.set(n,t),t},a=function(n,e){if(!e.has(n))throw new TypeError("attempted to get private field on non-instance");return e.get(n)},o,r;function*g(n){const e=n.ownerDocument.createTreeWalker(n,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,null,!1);let t;for(;t=e.nextNode();)if(t instanceof Element&&t.hasAttributes())for(let i=0;i<t.attributes.length;i+=1){const s=t.attributes.item(i);if(s&&s.value.includes("{{")){const E=new _(t,s);for(const F of p(s.value))if(F.type==="string")E.append(F.value);else{const A=new u(E,F.value);E.append(A),yield A}}}else if(t instanceof Text&&t.textContent&&t.textContent.includes("{{"))for(const i of p(t.textContent)){i.end<t.textContent.length&&t.splitText(i.end),i.type==="part"&&(yield new v(t,i.value));break}}c(g,"collectParts");class d extends DocumentFragment{constructor(e,t,i=I){var s,E;super();o.set(this,void 0),r.set(this,void 0),Object.getPrototypeOf(this!==d.prototype)&&Object.setPrototypeOf(this,d.prototype),this.appendChild(e.content.cloneNode(!0)),S(this,r,Array.from(g(this))),S(this,o,i),(E=(s=a(this,o)).createCallback)===null||E===void 0||E.call(s,this,a(this,r),t)}update(e){a(this,o).processCallback(this,a(this,r),e)}}c(d,"TemplateInstance"),o=new WeakMap,r=new WeakMap}}]);})();
|
|
|
|
//# sourceMappingURL=7077-58db9af6a118.js.map
|