mirror of
https://github.com/dekuNukem/USB4VC.git
synced 2025-10-31 11:26:46 -07:00
3 lines
13 KiB
JavaScript
3 lines
13 KiB
JavaScript
"use strict";(()=>{var V=Object.defineProperty;var o=(H,F)=>V(H,"name",{value:F,configurable:!0});(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[7749,9753,2245,6136],{59753:(H,F,W)=>{W.d(F,{f:()=>i,on:()=>K});function m(){if(!(this instanceof m))return new m;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}o(m,"SelectorSet");var x=window.document.documentElement,I=x.matches||x.webkitMatchesSelector||x.mozMatchesSelector||x.oMatchesSelector||x.msMatchesSelector;m.prototype.matchesSelector=function(e,n){return I.call(e,n)},m.prototype.querySelectorAll=function(e,n){return n.querySelectorAll(e)},m.prototype.indexes=[];var L=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;m.prototype.indexes.push({name:"ID",selector:o(function(n){var r;if(r=n.match(L))return r[0].slice(1)},"matchIdSelector"),element:o(function(n){if(n.id)return[n.id]},"getElementId")});var z=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;m.prototype.indexes.push({name:"CLASS",selector:o(function(n){var r;if(r=n.match(z))return r[0].slice(1)},"matchClassSelector"),element:o(function(n){var r=n.className;if(r){if(typeof r=="string")return r.split(/\s/);if(typeof r=="object"&&"baseVal"in r)return r.baseVal.split(/\s/)}},"getElementClassNames")});var T=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;m.prototype.indexes.push({name:"TAG",selector:o(function(n){var r;if(r=n.match(T))return r[0].toUpperCase()},"matchTagSelector"),element:o(function(n){return[n.nodeName.toUpperCase()]},"getElementTagName")}),m.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}};var M;typeof window.Map=="function"?M=window.Map:M=function(){function e(){this.map={}}return o(e,"Map"),e.prototype.get=function(n){return this.map[n+" "]},e.prototype.set=function(n,r){this.map[n+" "]=r},e}();var $=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function A(e,n){e=e.slice(0).concat(e.default);var r=e.length,a,s,d,f,b=n,y,v,w=[];do if($.exec(""),(d=$.exec(b))&&(b=d[3],d[2]||!b)){for(a=0;a<r;a++)if(v=e[a],y=v.selector(d[1])){for(s=w.length,f=!1;s--;)if(w[s].index===v&&w[s].key===y){f=!0;break}f||w.push({index:v,key:y});break}}while(d);return w}o(A,"parseSelectorIndexes");function R(e,n){var r,a,s;for(r=0,a=e.length;r<a;r++)if(s=e[r],n.isPrototypeOf(s))return s}o(R,"findByPrototype"),m.prototype.logDefaultIndexUsed=function(){},m.prototype.add=function(e,n){var r,a,s,d,f,b,y,v,w=this.activeIndexes,k=this.selectors,j=this.selectorObjects;if(typeof e=="string"){for(r={id:this.uid++,selector:e,data:n},j[r.id]=r,y=A(this.indexes,e),a=0;a<y.length;a++)v=y[a],d=v.key,s=v.index,f=R(w,s),f||(f=Object.create(s),f.map=new M,w.push(f)),s===this.indexes.default&&this.logDefaultIndexUsed(r),b=f.map.get(d),b||(b=[],f.map.set(d,b)),b.push(r);this.size++,k.push(e)}},m.prototype.remove=function(e,n){if(typeof e=="string"){var r,a,s,d,f,b,y,v,w=this.activeIndexes,k=this.selectors=[],j=this.selectorObjects,U={},B=arguments.length===1;for(r=A(this.indexes,e),s=0;s<r.length;s++)for(a=r[s],d=w.length;d--;)if(b=w[d],a.index.isPrototypeOf(b)){if(y=b.map.get(a.key),y)for(f=y.length;f--;)v=y[f],v.selector===e&&(B||v.data===n)&&(y.splice(f,1),U[v.id]=!0);break}for(s in U)delete j[s],this.size--;for(s in j)k.push(j[s].selector)}};function O(e,n){return e.id-n.id}o(O,"sortById"),m.prototype.queryAll=function(e){if(!this.selectors.length)return[];var n={},r=[],a=this.querySelectorAll(this.selectors.join(", "),e),s,d,f,b,y,v,w,k;for(s=0,f=a.length;s<f;s++)for(y=a[s],v=this.matches(y),d=0,b=v.length;d<b;d++)k=v[d],n[k.id]?w=n[k.id]:(w={id:k.id,selector:k.selector,data:k.data,elements:[]},n[k.id]=w,r.push(w)),w.elements.push(y);return r.sort(O)},m.prototype.matches=function(e){if(!e)return[];var n,r,a,s,d,f,b,y,v,w,k,j=this.activeIndexes,U={},B=[];for(n=0,s=j.length;n<s;n++)if(b=j[n],y=b.element(e),y){for(r=0,d=y.length;r<d;r++)if(v=b.map.get(y[r]))for(a=0,f=v.length;a<f;a++)w=v[a],k=w.id,!U[k]&&this.matchesSelector(e,w.selector)&&(U[k]=!0,B.push(w))}return B.sort(O)};var S={},P={},C=new WeakMap,q=new WeakMap,E=new WeakMap,D=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(e,n,r){var a=e[n];return e[n]=function(){return r.apply(e,arguments),a.apply(e,arguments)},e}o(l,"before");function u(e,n,r){var a=[],s=n;do{if(s.nodeType!==1)break;var d=e.matches(s);if(d.length){var f={node:s,observers:d};r?a.unshift(f):a.push(f)}}while(s=s.parentElement);return a}o(u,"dist_matches");function c(){C.set(this,!0)}o(c,"trackPropagation");function g(){C.set(this,!0),q.set(this,!0)}o(g,"trackImmediate");function h(){return E.get(this)||null}o(h,"getCurrentTarget");function p(e,n){!D||Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:n||D.get})}o(p,"defineCurrentTarget");function N(e){try{return e.eventPhase,!0}catch{return!1}}o(N,"canDispatch");function _(e){if(!!N(e)){var n=e.eventPhase===1?P:S,r=n[e.type];if(!!r){var a=u(r,e.target,e.eventPhase===1);if(!!a.length){l(e,"stopPropagation",c),l(e,"stopImmediatePropagation",g),p(e,h);for(var s=0,d=a.length;s<d&&!C.get(e);s++){var f=a[s];E.set(e,f.node);for(var b=0,y=f.observers.length;b<y&&!q.get(e);b++)f.observers[b].data.call(f.node,e)}E.delete(e),p(e)}}}}o(_,"dispatch");function K(e,n,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=!!a.capture,d=s?P:S,f=d[e];f||(f=new m,d[e]=f,document.addEventListener(e,_,s)),f.add(n,r)}o(K,"on");function t(e,n,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=!!a.capture,d=s?P:S,f=d[e];!f||(f.remove(n,r),!f.size&&(delete d[e],document.removeEventListener(e,_,s)))}o(t,"off");function i(e,n,r){return e.dispatchEvent(new CustomEvent(n,{bubbles:!0,cancelable:!0,detail:r}))}o(i,"fire")},90420:(H,F,W)=>{W.d(F,{Lj:()=>D,Ih:()=>K,P4:()=>R,fA:()=>S,GO:()=>P});const m=new WeakSet;function x(t){m.add(t),t.shadowRoot&&I(t.shadowRoot),T(t),z(t.ownerDocument)}o(x,"bind");function I(t){T(t),z(t)}o(I,"bindShadow");const L=new WeakMap;function z(t=document){if(L.has(t))return L.get(t);let i=!1;const e=new MutationObserver(r=>{for(const a of r)if(a.type==="attributes"&&a.target instanceof Element)A(a.target);else if(a.type==="childList"&&a.addedNodes.length)for(const s of a.addedNodes)s instanceof Element&&T(s)});e.observe(t,{childList:!0,subtree:!0,attributeFilter:["data-action"]});const n={get closed(){return i},unsubscribe(){i=!0,L.delete(t),e.disconnect()}};return L.set(t,n),n}o(z,"listenForBind");function T(t){for(const i of t.querySelectorAll("[data-action]"))A(i);t instanceof Element&&t.hasAttribute("data-action")&&A(t)}o(T,"bindElements");function M(t){const i=t.currentTarget;for(const e of $(i))if(t.type===e.type){const n=i.closest(e.tag);m.has(n)&&typeof n[e.method]=="function"&&n[e.method](t);const r=i.getRootNode();if(r instanceof ShadowRoot&&m.has(r.host)&&r.host.matches(e.tag)){const a=r.host;typeof a[e.method]=="function"&&a[e.method](t)}}}o(M,"handleEvent");function*$(t){for(const i of(t.getAttribute("data-action")||"").trim().split(/\s+/)){const e=i.lastIndexOf(":"),n=Math.max(0,i.lastIndexOf("#"))||i.length;yield{type:i.slice(0,e),tag:i.slice(e+1,n),method:i.slice(n+1)||"handleEvent"}}}o($,"bindings");function A(t){for(const i of $(t))t.addEventListener(i.type,M)}o(A,"bindActions");function R(t,i){const e=t.tagName.toLowerCase();if(t.shadowRoot){for(const n of t.shadowRoot.querySelectorAll(`[data-target~="${e}.${i}"]`))if(!n.closest(e))return n}for(const n of t.querySelectorAll(`[data-target~="${e}.${i}"]`))if(n.closest(e)===t)return n}o(R,"findTarget");function O(t,i){const e=t.tagName.toLowerCase(),n=[];if(t.shadowRoot)for(const r of t.shadowRoot.querySelectorAll(`[data-targets~="${e}.${i}"]`))r.closest(e)||n.push(r);for(const r of t.querySelectorAll(`[data-targets~="${e}.${i}"]`))r.closest(e)===t&&n.push(r);return n}o(O,"findTargets");function S(t,i){return Object.defineProperty(t,i,{configurable:!0,get(){return R(this,i)}})}o(S,"target");function P(t,i){return Object.defineProperty(t,i,{configurable:!0,get(){return O(this,i)}})}o(P,"targets");function C(t){const i=t.name.replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/(^-|-Element$)/g,"").toLowerCase();window.customElements.get(i)||(window[t.name]=t,window.customElements.define(i,t))}o(C,"register");function q(t){for(const i of t.querySelectorAll("template[data-shadowroot]"))i.parentElement===t&&t.attachShadow({mode:i.getAttribute("data-shadowroot")==="closed"?"closed":"open"}).append(i.content.cloneNode(!0))}o(q,"autoShadowRoot");const E=new WeakMap;function D(t,i){E.has(t)||E.set(t,[]),E.get(t).push(i)}o(D,"attr");function l(t,i){i||(i=u(Object.getPrototypeOf(t)));for(const e of i){const n=t[e],r=c(e);let a={configurable:!0,get(){return this.getAttribute(r)||""},set(s){this.setAttribute(r,s||"")}};typeof n=="number"?a={configurable:!0,get(){return Number(this.getAttribute(r)||0)},set(s){this.setAttribute(r,s)}}:typeof n=="boolean"&&(a={configurable:!0,get(){return this.hasAttribute(r)},set(s){this.toggleAttribute(r,s)}}),Object.defineProperty(t,e,a),e in t&&!t.hasAttribute(r)&&a.set.call(t,n)}}o(l,"initializeAttrs");function u(t){const i=new Set;let e=t;for(;e&&e!==HTMLElement;){const n=E.get(e)||[];for(const r of n)i.add(r);e=Object.getPrototypeOf(e)}return i}o(u,"getAttrNames");function c(t){return`data-${t.replace(/([A-Z]($|[a-z]))/g,"-$1")}`.replace(/--/g,"-").toLowerCase()}o(c,"attrToAttributeName");function g(t){let i=t.observedAttributes||[];Object.defineProperty(t,"observedAttributes",{configurable:!0,get(){return[...u(t.prototype)].map(c).concat(i)},set(e){i=e}})}o(g,"defineObservedAttributes");const h=new WeakSet;function p(t,i){t.toggleAttribute("data-catalyst",!0),customElements.upgrade(t),h.add(t),q(t),l(t),x(t),i&&i.call(t),t.shadowRoot&&I(t.shadowRoot)}o(p,"initializeInstance");function N(t){g(t),C(t)}o(N,"initializeClass");function _(t){return h.has(t)}o(_,"initialized");function K(t){const i=t.prototype.connectedCallback;t.prototype.connectedCallback=function(){p(this,i)},N(t)}o(K,"controller")},11793:(H,F,W)=>{W.d(F,{EL:()=>T,N9:()=>E,Tz:()=>D});class m{constructor(u){this.children=[],this.parent=u}delete(u){const c=this.children.indexOf(u);return c===-1?!1:(this.children=this.children.slice(0,c).concat(this.children.slice(c+1)),this.children.length===0&&this.parent.delete(this),!0)}add(u){return this.children.push(u),this}}o(m,"Leaf");class x{constructor(u){this.parent=null,this.children={},this.parent=u||null}get(u){return this.children[u]}insert(u){let c=this;for(let g=0;g<u.length;g+=1){const h=u[g];let p=c.get(h);if(g===u.length-1)return p instanceof x&&(c.delete(p),p=null),p||(p=new m(c),c.children[h]=p),p;p instanceof m&&(p=null),p||(p=new x(c),c.children[h]=p),c=p}return c}delete(u){for(const c in this.children)if(this.children[c]===u){const h=delete this.children[c];return Object.keys(this.children).length===0&&this.parent&&this.parent.delete(this),h}return!1}}o(x,"RadixTrie");function I(l){if(!(l instanceof HTMLElement))return!1;const u=l.nodeName.toLowerCase(),c=(l.getAttribute("type")||"").toLowerCase();return u==="select"||u==="textarea"||u==="input"&&c!=="submit"&&c!=="reset"&&c!=="checkbox"&&c!=="radio"||l.isContentEditable}o(I,"isFormField");function L(l,u){const c=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:u}});!l.dispatchEvent(c)||(I(l)?l.focus():l.click())}o(L,"fireDeterminedAction");function z(l){const u=[];let c=[""],g=!1;for(let h=0;h<l.length;h++){if(g&&l[h]===","){u.push(c),c=[""],g=!1;continue}if(l[h]===" "){c.push(""),g=!1;continue}else l[h]==="+"?g=!1:g=!0;c[c.length-1]+=l[h]}return u.push(c),u.map(h=>h.filter(p=>p!=="")).filter(h=>h.length>0)}o(z,"expandHotkeyToEdges");function T(l){const{ctrlKey:u,altKey:c,metaKey:g,key:h}=l,p=[],N=[u,c,g,$(l)];for(const[_,K]of N.entries())K&&p.push(M[_]);return M.includes(h)||p.push(h),p.join("+")}o(T,"hotkey");const M=["Control","Alt","Meta","Shift"];function $(l){const{shiftKey:u,code:c,key:g}=l;return u&&!(c.startsWith("Key")&&g.toUpperCase()===g)}o($,"showShift");const A=new x,R=new WeakMap;let O=A,S=null,P=[];function C(){P=[],S=null,O=A}o(C,"resetTriePosition");function q(l){if(l.defaultPrevented||!(l.target instanceof Node))return;if(I(l.target)){const c=l.target;if(!c.id||!c.ownerDocument.querySelector(`[data-hotkey-scope="${c.id}"]`))return}S!=null&&window.clearTimeout(S),S=window.setTimeout(C,1500);const u=O.get(T(l));if(!u){C();return}if(P.push(T(l)),O=u,u instanceof m){const c=l.target;let g=!1,h;const p=I(c);for(let N=u.children.length-1;N>=0;N-=1){h=u.children[N];const _=h.getAttribute("data-hotkey-scope");if(!p&&!_||p&&c.id===_){g=!0;break}}h&&g&&(L(h,P),l.preventDefault()),C()}}o(q,"keyDownHandler");function E(l,u){Object.keys(A.children).length===0&&document.addEventListener("keydown",q);const g=z(u||l.getAttribute("data-hotkey")||"").map(h=>A.insert(h).add(l));R.set(l,g)}o(E,"install");function D(l){const u=R.get(l);if(u&&u.length)for(const c of u)c&&c.delete(l);Object.keys(A.children).length===0&&document.removeEventListener("keydown",q)}o(D,"uninstall")}}]);})();
|
|
|
|
//# sourceMappingURL=7749-412395c3c738.js.map
|