Files
USB4VC/resources/IBM PC AT Keyboard Protocol · tmk_tmk_keyboard Wiki_files/5724-640299416084.js
2022-05-18 23:34:29 +01:00

3 lines
10 KiB
JavaScript

"use strict";(()=>{var ae=Object.defineProperty;var s=(V,T)=>ae(V,"name",{value:T,configurable:!0});(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[5724],{64463:(V,T,B)=>{B.d(T,{N7:()=>re});var w=B(8439),M=null,R=null,_=[];function P(e,t){var n=[];function i(){var l=n;n=[],t(l)}s(i,"processBatchQueue");function r(){for(var l=arguments.length,c=Array(l),x=0;x<l;x++)c[x]=arguments[x];n.push(c),n.length===1&&N(e,i)}return s(r,"scheduleBatchQueue"),r}s(P,"scheduleBatch");function N(e,t){R||(R=new MutationObserver(L)),M||(M=e.createElement("div"),R.observe(M,{attributes:!0})),_.push(t),M.setAttribute("data-twiddle",""+Date.now())}s(N,"scheduleMacroTask");function L(){var e=_;_=[];for(var t=0;t<e.length;t++)try{e[t]()}catch(n){setTimeout(function(){throw n},0)}}s(L,"handleMutations");var F=new WeakMap,E=new WeakMap,O=new WeakMap,A=new WeakMap;function a(e,t){for(var n=0;n<t.length;n++){var i=t[n],r=i[0],l=i[1],c=i[2];r===h?(u(c,l),o(c,l)):r===g?d(c,l):r===v&&f(e.observers,l)}}s(a,"applyChanges");function u(e,t){if(t instanceof e.elementConstructor){var n=F.get(t);if(n||(n=[],F.set(t,n)),n.indexOf(e.id)===-1){var i=void 0;if(e.initialize&&(i=e.initialize.call(void 0,t)),i){var r=E.get(t);r||(r={},E.set(t,r)),r[""+e.id]=i}n.push(e.id)}}}s(u,"runInit");function o(e,t){if(t instanceof e.elementConstructor){var n=A.get(t);if(n||(n=[],A.set(t,n)),n.indexOf(e.id)===-1){e.elements.push(t);var i=E.get(t),r=i?i[""+e.id]:null;if(r&&r.add&&r.add.call(void 0,t),e.subscribe){var l=e.subscribe.call(void 0,t);if(l){var c=O.get(t);c||(c={},O.set(t,c)),c[""+e.id]=l}}e.add&&e.add.call(void 0,t),n.push(e.id)}}}s(o,"runAdd");function d(e,t){if(t instanceof e.elementConstructor){var n=A.get(t);if(!!n){var i=e.elements.indexOf(t);if(i!==-1&&e.elements.splice(i,1),i=n.indexOf(e.id),i!==-1){var r=E.get(t),l=r?r[""+e.id]:null;if(l&&l.remove&&l.remove.call(void 0,t),e.subscribe){var c=O.get(t),x=c?c[""+e.id]:null;x&&x.unsubscribe&&x.unsubscribe()}e.remove&&e.remove.call(void 0,t),n.splice(i,1)}n.length===0&&A.delete(t)}}}s(d,"runRemove");function f(e,t){var n=A.get(t);if(!!n){for(var i=n.slice(0),r=0;r<i.length;r++){var l=e[i[r]];if(!!l){var c=l.elements.indexOf(t);c!==-1&&l.elements.splice(c,1);var x=E.get(t),b=x?x[""+l.id]:null;b&&b.remove&&b.remove.call(void 0,t);var k=O.get(t),D=k?k[""+l.id]:null;D&&D.unsubscribe&&D.unsubscribe(),l.remove&&l.remove.call(void 0,t)}}A.delete(t)}}s(f,"runRemoveAll");var p=null;function m(e){if(p===null){var t=e.createElement("div"),n=e.createElement("div"),i=e.createElement("div");t.appendChild(n),n.appendChild(i),t.innerHTML="",p=i.parentNode!==n}return p}s(m,"detectInnerHTMLReplacementBuggy");function y(e){return"matches"in e||"webkitMatchesSelector"in e||"mozMatchesSelector"in e||"oMatchesSelector"in e||"msMatchesSelector"in e}s(y,"supportsSelectorMatching");var h=1,g=2,v=3;function S(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];r.type==="childList"?(I(e,t,r.addedNodes),U(e,t,r.removedNodes)):r.type==="attributes"&&C(e,t,r.target)}m(e.ownerDocument)&&G(e,t)}s(S,"handleMutations$1");function I(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];if(y(r))for(var l=e.selectorSet.matches(r),c=0;c<l.length;c++){var x=l[c].data;t.push([h,r,x])}if("querySelectorAll"in r)for(var b=e.selectorSet.queryAll(r),k=0;k<b.length;k++)for(var D=b[k],ie=D.data,K=D.elements,j=0;j<K.length;j++)t.push([h,K[j],ie])}}s(I,"addNodes");function U(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];if("querySelectorAll"in r){t.push([v,r]);for(var l=r.querySelectorAll("*"),c=0;c<l.length;c++)t.push([v,l[c]])}}}s(U,"removeNodes");function C(e,t,n){if(y(n))for(var i=e.selectorSet.matches(n),r=0;r<i.length;r++){var l=i[r].data;t.push([h,n,l])}if("querySelectorAll"in n){var c=A.get(n);if(c)for(var x=0;x<c.length;x++){var b=e.observers[c[x]];b&&(e.selectorSet.matchesSelector(n,b.selector)||t.push([g,n,b]))}}}s(C,"revalidateObservers");function Q(e,t,n){if("querySelectorAll"in n){C(e,t,n);for(var i=n.querySelectorAll("*"),r=0;r<i.length;r++)C(e,t,i[r])}}s(Q,"revalidateDescendantObservers");function Z(e,t,n){for(var i=0;i<n.length;i++)for(var r=n[i],l=r.form?r.form.elements:e.rootNode.querySelectorAll("input"),c=0;c<l.length;c++)C(e,t,l[c])}s(Z,"revalidateInputObservers");function G(e,t){for(var n=0;n<e.observers.length;n++){var i=e.observers[n];if(i)for(var r=i.elements,l=0;l<r.length;l++){var c=r[l];c.parentNode||t.push([v,c])}}}s(G,"revalidateOrphanedElements");function X(e,t){var n=e.readyState;n==="interactive"||n==="complete"?N(e,t):e.addEventListener("DOMContentLoaded",N(e,t))}s(X,"whenReady");var J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y=0;function q(e){this.rootNode=e.nodeType===9?e.documentElement:e,this.ownerDocument=e.nodeType===9?e:e.ownerDocument,this.observers=[],this.selectorSet=new w.Z,this.mutationObserver=new MutationObserver(ee.bind(this,this)),this._scheduleAddRootNodes=P(this.ownerDocument,z.bind(this,this)),this._handleThrottledChangedTargets=P(this.ownerDocument,ne.bind(this,this)),this.rootNode.addEventListener("change",te.bind(this,this),!1),X(this.ownerDocument,$.bind(this,this))}s(q,"SelectorObserver"),q.prototype.disconnect=function(){this.mutationObserver.disconnect()},q.prototype.observe=function(e,t){var n=void 0;typeof t=="function"?n={selector:e,initialize:t}:(typeof t=="undefined"?"undefined":J(t))==="object"?(n=t,n.selector=e):n=e;var i=this,r={id:Y++,selector:n.selector,initialize:n.initialize,add:n.add,remove:n.remove,subscribe:n.subscribe,elements:[],elementConstructor:n.hasOwnProperty("constructor")?n.constructor:this.ownerDocument.defaultView.Element,abort:s(function(){i._abortObserving(r)},"abort")};return this.selectorSet.add(r.selector,r),this.observers[r.id]=r,this._scheduleAddRootNodes(),r},q.prototype._abortObserving=function(e){for(var t=e.elements,n=0;n<t.length;n++)d(e,t[n]);this.selectorSet.remove(e.selector,e),delete this.observers[e.id]},q.prototype.triggerObservers=function(e){var t=[];Q(this,t,e),a(this,t)};function $(e){e.mutationObserver.observe(e.rootNode,{childList:!0,attributes:!0,subtree:!0}),e._scheduleAddRootNodes()}s($,"onReady");function z(e){var t=[];I(e,t,[e.rootNode]),a(e,t)}s(z,"addRootNodes");function ee(e,t){var n=[];S(e,n,t),a(e,n)}s(ee,"handleRootMutations");function te(e,t){e._handleThrottledChangedTargets(t.target)}s(te,"handleChangeEvents");function ne(e,t){var n=[];Z(e,n,t),a(e,n)}s(ne,"handleChangedTargets");var W=void 0;function H(){return W||(W=new q(window.document)),W}s(H,"getDocumentObserver");function re(){var e;return(e=H()).observe.apply(e,arguments)}s(re,"observe");function oe(){var e;return(e=H()).triggerObservers.apply(e,arguments)}s(oe,"triggerObservers");var se=null},8439:(V,T,B)=>{B.d(T,{Z:()=>w});function w(){if(!(this instanceof w))return new w;this.size=0,this.uid=0,this.selectors=[],this.indexes=Object.create(this.indexes),this.activeIndexes=[]}s(w,"SelectorSet");var M=window.document.documentElement,R=M.matches||M.webkitMatchesSelector||M.mozMatchesSelector||M.oMatchesSelector||M.msMatchesSelector;w.prototype.matchesSelector=function(a,u){return R.call(a,u)},w.prototype.querySelectorAll=function(a,u){return u.querySelectorAll(a)},w.prototype.indexes=[];var _=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;w.prototype.indexes.push({name:"ID",selector:s(function(u){var o;if(o=u.match(_))return o[0].slice(1)},"matchIdSelector"),element:s(function(u){if(u.id)return[u.id]},"getElementId")});var P=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;w.prototype.indexes.push({name:"CLASS",selector:s(function(u){var o;if(o=u.match(P))return o[0].slice(1)},"matchClassSelector"),element:s(function(u){var o=u.className;if(o){if(typeof o=="string")return o.split(/\s/);if(typeof o=="object"&&"baseVal"in o)return o.baseVal.split(/\s/)}},"getElementClassNames")});var N=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;w.prototype.indexes.push({name:"TAG",selector:s(function(u){var o;if(o=u.match(N))return o[0].toUpperCase()},"matchTagSelector"),element:s(function(u){return[u.nodeName.toUpperCase()]},"getElementTagName")}),w.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}};var L;typeof window.Map=="function"?L=window.Map:L=function(){function a(){this.map={}}return s(a,"Map"),a.prototype.get=function(u){return this.map[u+" "]},a.prototype.set=function(u,o){this.map[u+" "]=o},a}();var F=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function E(a,u){a=a.slice(0).concat(a.default);var o=a.length,d,f,p,m,y=u,h,g,v=[];do if(F.exec(""),(p=F.exec(y))&&(y=p[3],p[2]||!y)){for(d=0;d<o;d++)if(g=a[d],h=g.selector(p[1])){for(f=v.length,m=!1;f--;)if(v[f].index===g&&v[f].key===h){m=!0;break}m||v.push({index:g,key:h});break}}while(p);return v}s(E,"parseSelectorIndexes");function O(a,u){var o,d,f;for(o=0,d=a.length;o<d;o++)if(f=a[o],u.isPrototypeOf(f))return f}s(O,"findByPrototype"),w.prototype.logDefaultIndexUsed=function(){},w.prototype.add=function(a,u){var o,d,f,p,m,y,h,g,v=this.activeIndexes,S=this.selectors;if(typeof a=="string"){for(o={id:this.uid++,selector:a,data:u},h=E(this.indexes,a),d=0;d<h.length;d++)g=h[d],p=g.key,f=g.index,m=O(v,f),m||(m=Object.create(f),m.map=new L,v.push(m)),f===this.indexes.default&&this.logDefaultIndexUsed(o),y=m.map.get(p),y||(y=[],m.map.set(p,y)),y.push(o);this.size++,S.push(a)}},w.prototype.remove=function(a,u){if(typeof a=="string"){var o,d,f,p,m,y,h,g,v=this.activeIndexes,S={},I=arguments.length===1;for(o=E(this.indexes,a),f=0;f<o.length;f++)for(d=o[f],p=v.length;p--;)if(y=v[p],d.index.isPrototypeOf(y)){if(h=y.map.get(d.key),h)for(m=h.length;m--;)g=h[m],g.selector===a&&(I||g.data===u)&&(h.splice(m,1),S[g.id]=!0);break}this.size-=Object.keys(S).length}};function A(a,u){return a.id-u.id}s(A,"sortById"),w.prototype.queryAll=function(a){if(!this.selectors.length)return[];var u={},o=[],d=this.querySelectorAll(this.selectors.join(", "),a),f,p,m,y,h,g,v,S;for(f=0,m=d.length;f<m;f++)for(h=d[f],g=this.matches(h),p=0,y=g.length;p<y;p++)S=g[p],u[S.id]?v=u[S.id]:(v={id:S.id,selector:S.selector,data:S.data,elements:[]},u[S.id]=v,o.push(v)),v.elements.push(h);return o.sort(A)},w.prototype.matches=function(a){if(!a)return[];var u,o,d,f,p,m,y,h,g,v,S,I=this.activeIndexes,U={},C=[];for(u=0,f=I.length;u<f;u++)if(y=I[u],h=y.element(a),h){for(o=0,p=h.length;o<p;o++)if(g=y.map.get(h[o]))for(d=0,m=g.length;d<m;d++)v=g[d],S=v.id,!U[S]&&this.matchesSelector(a,v.selector)&&(U[S]=!0,C.push(v))}return C.sort(A)}}}]);})();
//# sourceMappingURL=5724-f0f12028d795.js.map