mirror of
https://github.com/dekuNukem/USB4VC.git
synced 2025-10-31 11:26:46 -07:00
3 lines
10 KiB
JavaScript
3 lines
10 KiB
JavaScript
"use strict";(()=>{var K=Object.defineProperty;var u=(W,C)=>K(W,"name",{value:C,configurable:!0});(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[93,9753],{59753:(W,C,H)=>{H.d(C,{f:()=>V,on:()=>z});function g(){if(!(this instanceof g))return new g;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}u(g,"SelectorSet");var w=window.document.documentElement,q=w.matches||w.webkitMatchesSelector||w.mozMatchesSelector||w.oMatchesSelector||w.msMatchesSelector;g.prototype.matchesSelector=function(e,r){return q.call(e,r)},g.prototype.querySelectorAll=function(e,r){return r.querySelectorAll(e)},g.prototype.indexes=[];var P=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;g.prototype.indexes.push({name:"ID",selector:u(function(r){var n;if(n=r.match(P))return n[0].slice(1)},"matchIdSelector"),element:u(function(r){if(r.id)return[r.id]},"getElementId")});var j=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;g.prototype.indexes.push({name:"CLASS",selector:u(function(r){var n;if(n=r.match(j))return n[0].slice(1)},"matchClassSelector"),element:u(function(r){var n=r.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 B=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;g.prototype.indexes.push({name:"TAG",selector:u(function(r){var n;if(n=r.match(B))return n[0].toUpperCase()},"matchTagSelector"),element:u(function(r){return[r.nodeName.toUpperCase()]},"getElementTagName")}),g.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}};var I;typeof window.Map=="function"?I=window.Map:I=function(){function e(){this.map={}}return u(e,"Map"),e.prototype.get=function(r){return this.map[r+" "]},e.prototype.set=function(r,n){this.map[r+" "]=n},e}();var _=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function O(e,r){e=e.slice(0).concat(e.default);var n=e.length,c,o,l,a,d=r,p,h,m=[];do if(_.exec(""),(l=_.exec(d))&&(d=l[3],l[2]||!d)){for(c=0;c<n;c++)if(h=e[c],p=h.selector(l[1])){for(o=m.length,a=!1;o--;)if(m[o].index===h&&m[o].key===p){a=!0;break}a||m.push({index:h,key:p});break}}while(l);return m}u(O,"parseSelectorIndexes");function M(e,r){var n,c,o;for(n=0,c=e.length;n<c;n++)if(o=e[n],r.isPrototypeOf(o))return o}u(M,"findByPrototype"),g.prototype.logDefaultIndexUsed=function(){},g.prototype.add=function(e,r){var n,c,o,l,a,d,p,h,m=this.activeIndexes,v=this.selectors,S=this.selectorObjects;if(typeof e=="string"){for(n={id:this.uid++,selector:e,data:r},S[n.id]=n,p=O(this.indexes,e),c=0;c<p.length;c++)h=p[c],l=h.key,o=h.index,a=M(m,o),a||(a=Object.create(o),a.map=new I,m.push(a)),o===this.indexes.default&&this.logDefaultIndexUsed(n),d=a.map.get(l),d||(d=[],a.map.set(l,d)),d.push(n);this.size++,v.push(e)}},g.prototype.remove=function(e,r){if(typeof e=="string"){var n,c,o,l,a,d,p,h,m=this.activeIndexes,v=this.selectors=[],S=this.selectorObjects,F={},U=arguments.length===1;for(n=O(this.indexes,e),o=0;o<n.length;o++)for(c=n[o],l=m.length;l--;)if(d=m[l],c.index.isPrototypeOf(d)){if(p=d.map.get(c.key),p)for(a=p.length;a--;)h=p[a],h.selector===e&&(U||h.data===r)&&(p.splice(a,1),F[h.id]=!0);break}for(o in F)delete S[o],this.size--;for(o in S)v.push(S[o].selector)}};function D(e,r){return e.id-r.id}u(D,"sortById"),g.prototype.queryAll=function(e){if(!this.selectors.length)return[];var r={},n=[],c=this.querySelectorAll(this.selectors.join(", "),e),o,l,a,d,p,h,m,v;for(o=0,a=c.length;o<a;o++)for(p=c[o],h=this.matches(p),l=0,d=h.length;l<d;l++)v=h[l],r[v.id]?m=r[v.id]:(m={id:v.id,selector:v.selector,data:v.data,elements:[]},r[v.id]=m,n.push(m)),m.elements.push(p);return n.sort(D)},g.prototype.matches=function(e){if(!e)return[];var r,n,c,o,l,a,d,p,h,m,v,S=this.activeIndexes,F={},U=[];for(r=0,o=S.length;r<o;r++)if(d=S[r],p=d.element(e),p){for(n=0,l=p.length;n<l;n++)if(h=d.map.get(p[n]))for(c=0,a=h.length;c<a;c++)m=h[c],v=m.id,!F[v]&&this.matchesSelector(e,m.selector)&&(F[v]=!0,U.push(m))}return U.sort(D)};var A={},x={},T=new WeakMap,L=new WeakMap,b=new WeakMap,y=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function R(e,r,n){var c=e[r];return e[r]=function(){return n.apply(e,arguments),c.apply(e,arguments)},e}u(R,"before");function s(e,r,n){var c=[],o=r;do{if(o.nodeType!==1)break;var l=e.matches(o);if(l.length){var a={node:o,observers:l};n?c.unshift(a):c.push(a)}}while(o=o.parentElement);return c}u(s,"dist_matches");function t(){T.set(this,!0)}u(t,"trackPropagation");function i(){T.set(this,!0),L.set(this,!0)}u(i,"trackImmediate");function f(){return b.get(this)||null}u(f,"getCurrentTarget");function E(e,r){!y||Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:r||y.get})}u(E,"defineCurrentTarget");function N(e){try{return e.eventPhase,!0}catch{return!1}}u(N,"canDispatch");function k(e){if(!!N(e)){var r=e.eventPhase===1?x:A,n=r[e.type];if(!!n){var c=s(n,e.target,e.eventPhase===1);if(!!c.length){R(e,"stopPropagation",t),R(e,"stopImmediatePropagation",i),E(e,f);for(var o=0,l=c.length;o<l&&!T.get(e);o++){var a=c[o];b.set(e,a.node);for(var d=0,p=a.observers.length;d<p&&!L.get(e);d++)a.observers[d].data.call(a.node,e)}b.delete(e),E(e)}}}}u(k,"dispatch");function z(e,r,n){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=!!c.capture,l=o?x:A,a=l[e];a||(a=new g,l[e]=a,document.addEventListener(e,k,o)),a.add(r,n)}u(z,"on");function G(e,r,n){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=!!c.capture,l=o?x:A,a=l[e];!a||(a.remove(r,n),!a.size&&(delete l[e],document.removeEventListener(e,k,o)))}u(G,"off");function V(e,r,n){return e.dispatchEvent(new CustomEvent(r,{bubbles:!0,cancelable:!0,detail:n}))}u(V,"fire")},14840:(W,C,H)=>{H.d(C,{Z:()=>R});const g="data-close-dialog",w=`[${g}]`;function q(s){let t=Array.from(s.querySelectorAll("[autofocus]")).filter(j)[0];t||(t=s,s.setAttribute("tabindex","-1")),t.focus()}u(q,"autofocus");function P(s){const t=s.currentTarget;t instanceof Element&&(s.key==="Escape"||s.key==="Esc"?(A(t,!1),s.stopPropagation()):s.key==="Tab"&&I(s))}u(P,"keydown");function j(s){return s.tabIndex>=0&&!s.disabled&&B(s)}u(j,"focusable");function B(s){return!s.hidden&&(!s.type||s.type!=="hidden")&&(s.offsetWidth>0||s.offsetHeight>0)}u(B,"visible");function I(s){if(!(s.currentTarget instanceof Element))return;const t=s.currentTarget.querySelector("details-dialog");if(!t)return;s.preventDefault();const i=Array.from(t.querySelectorAll("*")).filter(j);if(i.length===0)return;const f=s.shiftKey?-1:1,E=t.getRootNode(),N=t.contains(E.activeElement)?E.activeElement:null;let k=f===-1?-1:0;if(N instanceof HTMLElement){const z=i.indexOf(N);z!==-1&&(k=z+f)}k<0?k=i.length-1:k=k%i.length,i[k].focus()}u(I,"restrictTabBehavior");function _(s){const t=s.querySelector("details-dialog");return t instanceof y?t.dispatchEvent(new CustomEvent("details-dialog-close",{bubbles:!0,cancelable:!0})):!0}u(_,"allowClosingDialog");function O(s){if(!(s.currentTarget instanceof Element))return;const t=s.currentTarget.closest("details");!t||!t.hasAttribute("open")||_(t)||(s.preventDefault(),s.stopPropagation())}u(O,"onSummaryClick");function M(s){const t=s.currentTarget;if(!(t instanceof Element))return;const i=t.querySelector("details-dialog");if(i instanceof y)if(t.hasAttribute("open")){const f="getRootNode"in i?i.getRootNode():document;f.activeElement instanceof HTMLElement&&b.set(i,{details:t,activeElement:f.activeElement}),q(i),t.addEventListener("keydown",P)}else{for(const E of i.querySelectorAll("form"))E.reset();const f=D(t,i);f&&f.focus(),t.removeEventListener("keydown",P)}}u(M,"toggle");function D(s,t){const i=b.get(t);return i&&i.activeElement instanceof HTMLElement?i.activeElement:s.querySelector("summary")}u(D,"findFocusElement");function A(s,t){t!==s.hasAttribute("open")&&(t?s.setAttribute("open",""):_(s)&&s.removeAttribute("open"))}u(A,"toggleDetails");function x(s){const t=s.currentTarget;if(!(t instanceof Element))return;const i=t.querySelector("details-dialog");if(!(i instanceof y))return;const f=i.querySelector("include-fragment:not([src])");if(!f)return;const E=i.src;E!==null&&(f.addEventListener("loadend",()=>{t.hasAttribute("open")&&q(i)}),f.setAttribute("src",E),L(t))}u(x,"loadIncludeFragment");function T(s,t,i){L(s),t&&s.addEventListener("toggle",x,{once:!0}),t&&i&&s.addEventListener("mouseover",x,{once:!0})}u(T,"updateIncludeFragmentEventListeners");function L(s){s.removeEventListener("toggle",x),s.removeEventListener("mouseover",x)}u(L,"removeIncludeFragmentEventListeners");const b=new WeakMap;class y extends HTMLElement{static get CLOSE_ATTR(){return g}static get CLOSE_SELECTOR(){return w}constructor(){super();b.set(this,{details:null,activeElement:null}),this.addEventListener("click",function({target:t}){if(!(t instanceof Element))return;const i=t.closest("details");i&&t.closest(w)&&A(i,!1)})}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",t||"")}get preload(){return this.hasAttribute("preload")}set preload(t){t?this.setAttribute("preload",""):this.removeAttribute("preload")}connectedCallback(){this.setAttribute("role","dialog"),this.setAttribute("aria-modal","true");const t=b.get(this);if(!t)return;const i=this.parentElement;if(!i)return;const f=i.querySelector("summary");f&&(f.hasAttribute("role")||f.setAttribute("role","button"),f.addEventListener("click",O,{capture:!0})),i.addEventListener("toggle",M),t.details=i,T(i,this.src,this.preload)}disconnectedCallback(){const t=b.get(this);if(!t)return;const{details:i}=t;if(!i)return;i.removeEventListener("toggle",M),L(i);const f=i.querySelector("summary");f&&f.removeEventListener("click",O,{capture:!0}),t.details=null}toggle(t){const i=b.get(this);if(!i)return;const{details:f}=i;!f||A(f,t)}static get observedAttributes(){return["src","preload"]}attributeChangedCallback(){const t=b.get(this);if(!t)return;const{details:i}=t;!i||T(i,this.src,this.preload)}}u(y,"DetailsDialogElement");const R=y;window.customElements.get("details-dialog")||(window.DetailsDialogElement=y,window.customElements.define("details-dialog",y))}}]);})();
|
|
|
|
//# sourceMappingURL=93-6263ab776eb8.js.map
|