diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f41752..8674031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,21 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [2.0.3](https://github.com/pixu1980/detector-js/compare/v1.3.2...v2.0.3) (2023-05-01) + + +### Features + +* **docs:** improved typedoc docs generation, updated usage ex ([5308768](https://github.com/pixu1980/detector-js/commit/5308768141135b092158b7ebb1ec5c4515ed98c9)) +* **docs:** replaced jsdoc with typedoc ([7595bb9](https://github.com/pixu1980/detector-js/commit/7595bb9c0f0c648c073bfbaa048e36ce7186b4d1)) +* **parcel:** replaced rollup with parcel ([ebe9128](https://github.com/pixu1980/detector-js/commit/ebe9128096d7195bc20e80e93c991ea7aa06b3c8)) +* **ts:** typescript rework ([4838e91](https://github.com/pixu1980/detector-js/commit/4838e9120d11100d026afbc9758dfaf75e5c1d92)) + + +### Bug Fixes + +* **build-broken:** sorry for this, now should work ([754f638](https://github.com/pixu1980/detector-js/commit/754f6389477df0995389eea06801319252d4989f)) + ### [2.0.2](https://github.com/pixu1980/detector-js/compare/v1.3.2...v2.0.2) (2023-04-24) diff --git a/README.md b/README.md index 1e8b07c..9c5c1b8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # detector-js -v2.0.2 +v2.0.3 ## Description DetectorJS, zero-dependency platform/environment detector written in TypeScript @@ -156,10 +156,10 @@ console.log(detector); - [@parcel/packager-ts](https://ghub.io/@parcel/packager-ts): DetectorJS, zero-dependency platform/environment detector written in TypeScript - [@parcel/transformer-typescript-types](https://ghub.io/@parcel/transformer-typescript-types): DetectorJS, zero-dependency platform/environment detector written in TypeScript - [@types/node](https://ghub.io/@types/node): TypeScript definitions for Node.js -- [changelog](https://ghub.io/changelog): Command line tool (and Node module) that generates a changelog in color output, markdown, or json for modules in npmjs.org's registry as well as any public github.com repo. - [lerna](https://ghub.io/lerna): Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository - [parcel](https://ghub.io/parcel): Blazing fast, zero configuration web application bundler - [pkg-2-readme](https://ghub.io/pkg-2-readme): Generate a README.md from package.json contents +- [standard-version](https://ghub.io/standard-version): replacement for `npm version` with automatic CHANGELOG generation - [typedoc](https://ghub.io/typedoc): Create api documentation for TypeScript projects. - [typescript](https://ghub.io/typescript): TypeScript is a language for application scale JavaScript development diff --git a/dist/detector.js.map b/dist/detector.js.map index 90666ba..79aa79c 100644 --- a/dist/detector.js.map +++ b/dist/detector.js.map @@ -1 +1 @@ -{"mappings":";;;;;;;AAAA;AAAA","sources":["src/detector.ts"],"sourcesContent":["'use strict';\n\nimport { Detector } from '@detector-js/detector';\n\nexport { Detector };\n\nif (process.env.NODE_ENV === 'development') {\n const packageJSON = require('../package.json');\n\n console.log(`DetectorJS v${packageJSON.version} initialized`);\n}\n"],"names":[],"version":3,"file":"detector.js.map"} \ No newline at end of file +{"mappings":";;;;;;;AAAA;AAAA","sources":["src/detector.ts"],"sourcesContent":["'use strict';\n\nimport { Detector } from '@detector-js/detector';\n\nexport { Detector };\n"],"names":[],"version":3,"file":"detector.js.map"} \ No newline at end of file diff --git a/docs/assets/highlight.css b/docs/assets/highlight.css index 1c9fe39..bbbe245 100644 --- a/docs/assets/highlight.css +++ b/docs/assets/highlight.css @@ -1,18 +1,18 @@ :root { - --light-hl-0: #000000; - --dark-hl-0: #D4D4D4; - --light-hl-1: #A31515; - --dark-hl-1: #CE9178; - --light-hl-2: #AF00DB; - --dark-hl-2: #C586C0; - --light-hl-3: #001080; - --dark-hl-3: #9CDCFE; - --light-hl-4: #0000FF; - --dark-hl-4: #569CD6; - --light-hl-5: #0070C1; - --dark-hl-5: #4FC1FF; - --light-hl-6: #795E26; - --dark-hl-6: #DCDCAA; + --light-hl-0: #795E26; + --dark-hl-0: #DCDCAA; + --light-hl-1: #000000; + --dark-hl-1: #D4D4D4; + --light-hl-2: #A31515; + --dark-hl-2: #CE9178; + --light-hl-3: #AF00DB; + --dark-hl-3: #C586C0; + --light-hl-4: #001080; + --dark-hl-4: #9CDCFE; + --light-hl-5: #0000FF; + --dark-hl-5: #569CD6; + --light-hl-6: #0070C1; + --dark-hl-6: #4FC1FF; --light-hl-7: #008000; --dark-hl-7: #6A9955; --light-code-background: #FFFFFF; diff --git a/docs/assets/main.js b/docs/assets/main.js index 932e185..4bd47a2 100644 --- a/docs/assets/main.js +++ b/docs/assets/main.js @@ -1,7 +1,7 @@ "use strict"; -"use strict";(()=>{var be=Object.create;var re=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var we=Object.getOwnPropertyNames;var Te=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty;var Qe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Pe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of we(e))!ke.call(t,i)&&i!==r&&re(t,i,{get:()=>e[i],enumerable:!(n=Se(e,i))||n.enumerable});return t};var Ie=(t,e,r)=>(r=t!=null?be(Te(t)):{},Pe(e||!t||!t.__esModule?re(r,"default",{value:t,enumerable:!0}):r,t));var ae=Qe((se,oe)=>{(function(){var t=function(e){var r=new t.Builder;return r.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),r.searchPipeline.add(t.stemmer),e.call(r,r),r.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(r){e.console&&console.warn&&console.warn(r)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var r=Object.create(null),n=Object.keys(e),i=0;i0){var d=t.utils.clone(r)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(n.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,r){r in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+r),e.label=r,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var r=e.label&&e.label in this.registeredFunctions;r||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var r=new t.Pipeline;return e.forEach(function(n){var i=t.Pipeline.registeredFunctions[n];if(i)r.add(i);else throw new Error("Cannot load unregistered function: "+n)}),r},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(r){t.Pipeline.warnIfFunctionNotRegistered(r),this._stack.push(r)},this)},t.Pipeline.prototype.after=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");n=n+1,this._stack.splice(n,0,r)},t.Pipeline.prototype.before=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");this._stack.splice(n,0,r)},t.Pipeline.prototype.remove=function(e){var r=this._stack.indexOf(e);r!=-1&&this._stack.splice(r,1)},t.Pipeline.prototype.run=function(e){for(var r=this._stack.length,n=0;n1&&(oe&&(n=s),o!=e);)i=n-r,s=r+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(r+=n[u+1]*i[d+1],u+=2,d+=2);return r},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),r=1,n=0;r0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),y;m in s.node.edges?y=s.node.edges[m]:(y=new t.TokenSet,s.node.edges[m]=y),s.str.length==1&&(y.final=!0),i.push({node:y,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return n},t.TokenSet.fromString=function(e){for(var r=new t.TokenSet,n=r,i=0,s=e.length;i=e;r--){var n=this.uncheckedNodes[r],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(r){var n=new t.QueryParser(e,r);n.parse()})},t.Index.prototype.query=function(e){for(var r=new t.Query(this.fields),n=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,r){var n=e[this._ref],i=Object.keys(this._fields);this._documents[n]=r||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,r;do e=this.next(),r=e.charCodeAt(0);while(r>47&&r<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var r=e.next();if(r==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(r.charCodeAt(0)==92){e.escapeCharacter();continue}if(r==":")return t.QueryLexer.lexField;if(r=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(r=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(r=="+"&&e.width()===1||r=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(r.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,r){this.lexer=new t.QueryLexer(e),this.query=r,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var r=e.peekLexeme();if(r!=null)switch(r.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+r.type;throw r.str.length>=1&&(n+=" with value '"+r.str+"'"),new t.QueryParseError(n,r.start,r.end)}},t.QueryParser.parsePresence=function(e){var r=e.consumeLexeme();if(r!=null){switch(r.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+r.str+"'";throw new t.QueryParseError(n,r.start,r.end)}var i=e.peekLexeme();if(i==null){var n="expecting term or field, found nothing";throw new t.QueryParseError(n,r.start,r.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var n="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(n,i.start,i.end)}}},t.QueryParser.parseField=function(e){var r=e.consumeLexeme();if(r!=null){if(e.query.allFields.indexOf(r.str)==-1){var n=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+r.str+"', possible fields: "+n;throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.fields=[r.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,r.start,r.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var r=e.consumeLexeme();if(r!=null){e.currentClause.term=r.str.toLowerCase(),r.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(n==null){e.nextClause();return}switch(n.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new t.QueryParseError(i,n.start,n.end)}}},t.QueryParser.parseEditDistance=function(e){var r=e.consumeLexeme();if(r!=null){var n=parseInt(r.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.editDistance=n;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var r=e.consumeLexeme();if(r!=null){var n=parseInt(r.str,10);if(isNaN(n)){var i="boost must be numeric";throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.boost=n;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,r){typeof define=="function"&&define.amd?define(r):typeof se=="object"?oe.exports=r():e.lunr=r()}(this,function(){return t})})()});var ne=[];function G(t,e){ne.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureActivePageVisible(),this.ensureFocusedElementVisible(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible())}createComponents(e){ne.forEach(r=>{e.querySelectorAll(r.selector).forEach(n=>{n.dataset.hasInstance||(new r.constructor({el:n,app:this}),n.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),r=e?.parentElement;for(;r&&!r.classList.contains(".tsd-navigation");)r instanceof HTMLDetailsElement&&e?.parentElement?.parentElement!==r&&(r.open=!0),r=r.parentElement;if(e){let n=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=n}}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let r=e.parentElement;for(;r&&r.tagName!=="SECTION";)r=r.parentElement;if(r&&r.offsetParent==null){this.alwaysVisibleMember=r,r.classList.add("always-visible");let n=document.createElement("p");n.classList.add("warning"),n.textContent="This member is normally hidden due to your filter settings.",r.prepend(n)}}};var ie=(t,e=100)=>{let r;return()=>{clearTimeout(r),r=setTimeout(()=>t(),e)}};var ce=Ie(ae());function de(){let t=document.getElementById("tsd-search");if(!t)return;let e=document.getElementById("tsd-search-script");t.classList.add("loading"),e&&(e.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),e.addEventListener("load",()=>{t.classList.remove("loading"),t.classList.add("ready")}),window.searchData&&t.classList.remove("loading"));let r=document.querySelector("#tsd-search input"),n=document.querySelector("#tsd-search .results");if(!r||!n)throw new Error("The input field or the result list wrapper was not found");let i=!1;n.addEventListener("mousedown",()=>i=!0),n.addEventListener("mouseup",()=>{i=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{i||(i=!1,t.classList.remove("has-focus"))});let s={base:t.dataset.base+"/"};Ce(t,n,r,s)}function Ce(t,e,r,n){r.addEventListener("input",ie(()=>{_e(t,e,r,n)},200));let i=!1;r.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Re(e,r):s.key=="Escape"?r.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),r.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!r.matches(":focus")&&s.key==="/"&&(r.focus(),s.preventDefault())})}function Oe(t,e){t.index||window.searchData&&(e.classList.remove("loading"),e.classList.add("ready"),t.data=window.searchData,t.index=ce.Index.load(window.searchData.index))}function _e(t,e,r,n){if(Oe(n,t),!n.index||!n.data)return;e.textContent="";let i=r.value.trim(),s=i?n.index.search(`*${i}*`):[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o${le(l.parent,i)}.${u}`);let d=document.createElement("li");d.classList.value=l.classes??"";let m=document.createElement("a");m.href=n.base+l.url,m.innerHTML=u,d.append(m),e.appendChild(d)}}function ue(t,e){let r=t.querySelector(".current");if(!r)r=t.querySelector(e==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let n=r;if(e===1)do n=n.nextElementSibling??void 0;while(n instanceof HTMLElement&&n.offsetParent==null);else do n=n.previousElementSibling??void 0;while(n instanceof HTMLElement&&n.offsetParent==null);n&&(r.classList.remove("current"),n.classList.add("current"))}}function Re(t,e){let r=t.querySelector(".current");if(r||(r=t.querySelector("li:first-child")),r){let n=r.querySelector("a");n&&(window.location.href=n.href),e.blur()}}function le(t,e){if(e==="")return t;let r=t.toLocaleLowerCase(),n=e.toLocaleLowerCase(),i=[],s=0,o=r.indexOf(n);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+n.length))}`),s=o+n.length,o=r.indexOf(n,s);return i.push(K(t.substring(s))),i.join("")}var Fe={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>Fe[e])}var P=class{constructor(e){this.el=e.el,this.app=e.app}};var M="mousedown",fe="mousemove",N="mouseup",J={x:0,y:0},he=!1,ee=!1,Me=!1,D=!1,pe=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(pe?"is-mobile":"not-mobile");pe&&"ontouchstart"in document.documentElement&&(Me=!0,M="touchstart",fe="touchmove",N="touchend");document.addEventListener(M,t=>{ee=!0,D=!1;let e=M=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(fe,t=>{if(ee&&!D){let e=M=="touchstart"?t.targetTouches[0]:t,r=J.x-(e.pageX||0),n=J.y-(e.pageY||0);D=Math.sqrt(r*r+n*n)>10}});document.addEventListener(N,()=>{ee=!1});document.addEventListener("click",t=>{he&&(t.preventDefault(),t.stopImmediatePropagation(),he=!1)});var X=class extends P{constructor(r){super(r);this.className=this.el.dataset.toggle||"",this.el.addEventListener(N,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(M,n=>this.onDocumentPointerDown(n)),document.addEventListener(N,n=>this.onDocumentPointerUp(n))}setActive(r){if(this.active==r)return;this.active=r,document.documentElement.classList.toggle("has-"+this.className,r),this.el.classList.toggle("active",r);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(r){D||(this.setActive(!0),r.preventDefault())}onDocumentPointerDown(r){if(this.active){if(r.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(r){if(!D&&this.active&&r.target.closest(".col-sidebar")){let n=r.target.closest("a");if(n){let i=window.location.href;i.indexOf("#")!=-1&&(i=i.substring(0,i.indexOf("#"))),n.href.substring(0,i.length)==i&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var me=document.head.appendChild(document.createElement("style"));me.dataset.for="filters";var Y=class extends P{constructor(r){super(r);this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),me.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`}fromLocalStorage(){let r=Q.getItem(this.key);return r?r==="true":this.el.checked}setLocalStorage(r){Q.setItem(this.key,r.toString()),this.value=r,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let n=Array.from(r.querySelectorAll(".tsd-index-link")).every(i=>i.offsetParent==null);r.style.display=n?"none":"block"})}};var Z=class extends P{constructor(r){super(r);this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update()),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ve(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ye(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ye(t.value)})}function ye(t){document.documentElement.dataset.theme=t}addEventListener("load",()=>{de(),G(X,"a[data-toggle]"),G(Z,".tsd-index-accordion"),G(Y,".tsd-filter-item input[type=checkbox]");let t=document.getElementById("tsd-theme");t&&ve(t);let e=new U;Object.defineProperty(window,"app",{value:e})});})(); +"use strict";(()=>{var Se=Object.create;var re=Object.defineProperty;var we=Object.getOwnPropertyDescriptor;var Te=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty;var Pe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ie=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Te(e))!Qe.call(t,i)&&i!==r&&re(t,i,{get:()=>e[i],enumerable:!(n=we(e,i))||n.enumerable});return t};var Ce=(t,e,r)=>(r=t!=null?Se(ke(t)):{},Ie(e||!t||!t.__esModule?re(r,"default",{value:t,enumerable:!0}):r,t));var ae=Pe((se,oe)=>{(function(){var t=function(e){var r=new t.Builder;return r.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),r.searchPipeline.add(t.stemmer),e.call(r,r),r.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(r){e.console&&console.warn&&console.warn(r)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var r=Object.create(null),n=Object.keys(e),i=0;i0){var d=t.utils.clone(r)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(n.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,r){r in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+r),e.label=r,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var r=e.label&&e.label in this.registeredFunctions;r||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var r=new t.Pipeline;return e.forEach(function(n){var i=t.Pipeline.registeredFunctions[n];if(i)r.add(i);else throw new Error("Cannot load unregistered function: "+n)}),r},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(r){t.Pipeline.warnIfFunctionNotRegistered(r),this._stack.push(r)},this)},t.Pipeline.prototype.after=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");n=n+1,this._stack.splice(n,0,r)},t.Pipeline.prototype.before=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");this._stack.splice(n,0,r)},t.Pipeline.prototype.remove=function(e){var r=this._stack.indexOf(e);r!=-1&&this._stack.splice(r,1)},t.Pipeline.prototype.run=function(e){for(var r=this._stack.length,n=0;n1&&(oe&&(n=s),o!=e);)i=n-r,s=r+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(r+=n[u+1]*i[d+1],u+=2,d+=2);return r},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),r=1,n=0;r0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),y;m in s.node.edges?y=s.node.edges[m]:(y=new t.TokenSet,s.node.edges[m]=y),s.str.length==1&&(y.final=!0),i.push({node:y,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return n},t.TokenSet.fromString=function(e){for(var r=new t.TokenSet,n=r,i=0,s=e.length;i=e;r--){var n=this.uncheckedNodes[r],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(r){var n=new t.QueryParser(e,r);n.parse()})},t.Index.prototype.query=function(e){for(var r=new t.Query(this.fields),n=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,r){var n=e[this._ref],i=Object.keys(this._fields);this._documents[n]=r||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,r;do e=this.next(),r=e.charCodeAt(0);while(r>47&&r<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var r=e.next();if(r==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(r.charCodeAt(0)==92){e.escapeCharacter();continue}if(r==":")return t.QueryLexer.lexField;if(r=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(r=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(r=="+"&&e.width()===1||r=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(r.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,r){this.lexer=new t.QueryLexer(e),this.query=r,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var r=e.peekLexeme();if(r!=null)switch(r.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+r.type;throw r.str.length>=1&&(n+=" with value '"+r.str+"'"),new t.QueryParseError(n,r.start,r.end)}},t.QueryParser.parsePresence=function(e){var r=e.consumeLexeme();if(r!=null){switch(r.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+r.str+"'";throw new t.QueryParseError(n,r.start,r.end)}var i=e.peekLexeme();if(i==null){var n="expecting term or field, found nothing";throw new t.QueryParseError(n,r.start,r.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var n="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(n,i.start,i.end)}}},t.QueryParser.parseField=function(e){var r=e.consumeLexeme();if(r!=null){if(e.query.allFields.indexOf(r.str)==-1){var n=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+r.str+"', possible fields: "+n;throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.fields=[r.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,r.start,r.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var r=e.consumeLexeme();if(r!=null){e.currentClause.term=r.str.toLowerCase(),r.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(n==null){e.nextClause();return}switch(n.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new t.QueryParseError(i,n.start,n.end)}}},t.QueryParser.parseEditDistance=function(e){var r=e.consumeLexeme();if(r!=null){var n=parseInt(r.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.editDistance=n;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var r=e.consumeLexeme();if(r!=null){var n=parseInt(r.str,10);if(isNaN(n)){var i="boost must be numeric";throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.boost=n;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,r){typeof define=="function"&&define.amd?define(r):typeof se=="object"?oe.exports=r():e.lunr=r()}(this,function(){return t})})()});var ne=[];function G(t,e){ne.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureActivePageVisible(),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible())}createComponents(e){ne.forEach(r=>{e.querySelectorAll(r.selector).forEach(n=>{n.dataset.hasInstance||(new r.constructor({el:n,app:this}),n.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),r=e?.parentElement;for(;r&&!r.classList.contains(".tsd-navigation");)r instanceof HTMLDetailsElement&&(r.open=!0),r=r.parentElement;if(e){let n=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=n}}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let r=e.parentElement;for(;r&&r.tagName!=="SECTION";)r=r.parentElement;if(r&&r.offsetParent==null){this.alwaysVisibleMember=r,r.classList.add("always-visible");let n=document.createElement("p");n.classList.add("warning"),n.textContent="This member is normally hidden due to your filter settings.",r.prepend(n)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let r;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(r),r=setTimeout(()=>{e.classList.remove("visible"),r=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let r;return()=>{clearTimeout(r),r=setTimeout(()=>t(),e)}};var ce=Ce(ae());function de(){let t=document.getElementById("tsd-search");if(!t)return;let e=document.getElementById("tsd-search-script");t.classList.add("loading"),e&&(e.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),e.addEventListener("load",()=>{t.classList.remove("loading"),t.classList.add("ready")}),window.searchData&&t.classList.remove("loading"));let r=document.querySelector("#tsd-search input"),n=document.querySelector("#tsd-search .results");if(!r||!n)throw new Error("The input field or the result list wrapper was not found");let i=!1;n.addEventListener("mousedown",()=>i=!0),n.addEventListener("mouseup",()=>{i=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{i||(i=!1,t.classList.remove("has-focus"))});let s={base:t.dataset.base+"/"};Oe(t,n,r,s)}function Oe(t,e,r,n){r.addEventListener("input",ie(()=>{Re(t,e,r,n)},200));let i=!1;r.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Fe(e,r):s.key=="Escape"?r.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),r.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!r.matches(":focus")&&s.key==="/"&&(r.focus(),s.preventDefault())})}function _e(t,e){t.index||window.searchData&&(e.classList.remove("loading"),e.classList.add("ready"),t.data=window.searchData,t.index=ce.Index.load(window.searchData.index))}function Re(t,e,r,n){if(_e(n,t),!n.index||!n.data)return;e.textContent="";let i=r.value.trim(),s=i?n.index.search(`*${i}*`):[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o${le(l.parent,i)}.${u}`);let d=document.createElement("li");d.classList.value=l.classes??"";let m=document.createElement("a");m.href=n.base+l.url,m.innerHTML=u,d.append(m),e.appendChild(d)}}function ue(t,e){let r=t.querySelector(".current");if(!r)r=t.querySelector(e==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let n=r;if(e===1)do n=n.nextElementSibling??void 0;while(n instanceof HTMLElement&&n.offsetParent==null);else do n=n.previousElementSibling??void 0;while(n instanceof HTMLElement&&n.offsetParent==null);n&&(r.classList.remove("current"),n.classList.add("current"))}}function Fe(t,e){let r=t.querySelector(".current");if(r||(r=t.querySelector("li:first-child")),r){let n=r.querySelector("a");n&&(window.location.href=n.href),e.blur()}}function le(t,e){if(e==="")return t;let r=t.toLocaleLowerCase(),n=e.toLocaleLowerCase(),i=[],s=0,o=r.indexOf(n);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+n.length))}`),s=o+n.length,o=r.indexOf(n,s);return i.push(K(t.substring(s))),i.join("")}var Me={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>Me[e])}var P=class{constructor(e){this.el=e.el,this.app=e.app}};var M="mousedown",fe="mousemove",N="mouseup",J={x:0,y:0},he=!1,ee=!1,De=!1,D=!1,pe=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(pe?"is-mobile":"not-mobile");pe&&"ontouchstart"in document.documentElement&&(De=!0,M="touchstart",fe="touchmove",N="touchend");document.addEventListener(M,t=>{ee=!0,D=!1;let e=M=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(fe,t=>{if(ee&&!D){let e=M=="touchstart"?t.targetTouches[0]:t,r=J.x-(e.pageX||0),n=J.y-(e.pageY||0);D=Math.sqrt(r*r+n*n)>10}});document.addEventListener(N,()=>{ee=!1});document.addEventListener("click",t=>{he&&(t.preventDefault(),t.stopImmediatePropagation(),he=!1)});var X=class extends P{constructor(r){super(r);this.className=this.el.dataset.toggle||"",this.el.addEventListener(N,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(M,n=>this.onDocumentPointerDown(n)),document.addEventListener(N,n=>this.onDocumentPointerUp(n))}setActive(r){if(this.active==r)return;this.active=r,document.documentElement.classList.toggle("has-"+this.className,r),this.el.classList.toggle("active",r);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(r){D||(this.setActive(!0),r.preventDefault())}onDocumentPointerDown(r){if(this.active){if(r.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(r){if(!D&&this.active&&r.target.closest(".col-sidebar")){let n=r.target.closest("a");if(n){let i=window.location.href;i.indexOf("#")!=-1&&(i=i.substring(0,i.indexOf("#"))),n.href.substring(0,i.length)==i&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var me=document.head.appendChild(document.createElement("style"));me.dataset.for="filters";var Y=class extends P{constructor(r){super(r);this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),me.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`}fromLocalStorage(){let r=Q.getItem(this.key);return r?r==="true":this.el.checked}setLocalStorage(r){Q.setItem(this.key,r.toString()),this.value=r,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let n=Array.from(r.querySelectorAll(".tsd-index-link")).every(i=>i.offsetParent==null);r.style.display=n?"none":"block"})}};var Z=class extends P{constructor(r){super(r);this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update()),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ve(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ye(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ye(t.value)})}function ye(t){document.documentElement.dataset.theme=t}de();G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var ge=document.getElementById("tsd-theme");ge&&ve(ge);var Ae=new U;Object.defineProperty(window,"app",{value:Ae});})(); /*! Bundled license information: lunr/lunr.js: diff --git a/docs/assets/style.css b/docs/assets/style.css index da6c789..5b96717 100644 --- a/docs/assets/style.css +++ b/docs/assets/style.css @@ -51,13 +51,13 @@ --dark-color-text-aside: #dddddd; --dark-color-link: #00aff4; - --dark-color-ts-project: #e14dff; + --dark-color-ts-project: #e358ff; --dark-color-ts-module: var(--dark-color-ts-project); --dark-color-ts-namespace: var(--dark-color-ts-project); --dark-color-ts-enum: #f4d93e; --dark-color-ts-enum-member: var(--dark-color-ts-enum); --dark-color-ts-variable: #798dff; - --dark-color-ts-function: #9772ff; + --dark-color-ts-function: #a280ff; --dark-color-ts-class: #8ac4ff; --dark-color-ts-interface: #6cff87; --dark-color-ts-constructor: var(--dark-color-ts-class); @@ -262,6 +262,16 @@ h6 { line-height: 1.2; } +h1 > a, +h2 > a, +h3 > a, +h4 > a, +h5 > a, +h6 > a { + text-decoration: none; + color: var(--color-text); +} + h1 { font-size: 1.875rem; margin: 0.67rem 0; @@ -296,12 +306,6 @@ h6 { text-transform: uppercase; } -pre { - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; -} - dl, menu, ol, @@ -426,13 +430,29 @@ pre { } pre { + position: relative; + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; padding: 10px; - border: 0.1em solid var(--color-accent); + border: 1px solid var(--color-accent); } pre code { padding: 0; font-size: 100%; } +pre > button { + position: absolute; + top: 10px; + right: 10px; + opacity: 0; + transition: opacity 0.1s; + box-sizing: border-box; +} +pre:hover > button, +pre > button.visible { + opacity: 1; +} blockquote { margin: 1em 0; @@ -676,7 +696,12 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { .tsd-navigation.settings { margin: 1rem 0; } +.tsd-navigation > a, +.tsd-navigation .tsd-accordion-summary { + width: calc(100% - 0.5rem); +} .tsd-navigation a, +.tsd-navigation summary > span, .tsd-page-navigation a { display: inline-flex; align-items: center; @@ -685,14 +710,6 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { text-decoration: none; box-sizing: border-box; } -.tsd-navigation a { - /* why 3rem? No idea, but it seems to work. */ - width: calc(100% - 3rem); -} -.tsd-page-navigation a { - /* why is this different? */ - width: 100%; -} .tsd-navigation a.current, .tsd-page-navigation a.current { background: var(--color-active-menu-item); @@ -703,7 +720,8 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { } .tsd-navigation ul, .tsd-page-navigation ul { - margin: 0; + margin-top: 0; + margin-bottom: 0; padding: 0; list-style: none; } @@ -712,18 +730,24 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { padding: 0; max-width: 100%; } -.tsd-nested-navigation > li > a { +.tsd-nested-navigation { margin-left: 3rem; } .tsd-nested-navigation > li > details { - margin-left: 1.5rem; + margin-left: -1.5rem; } -.tsd-small-nested-navigation > li > a { +.tsd-small-nested-navigation { margin-left: 1.5rem; } .tsd-small-nested-navigation > li > details { - margin-left: 0; + margin-left: -1.5rem; +} + +.tsd-nested-navigation > li > a, +.tsd-nested-navigation > li > span { + width: calc(100% - 1.75rem - 0.5rem); } + .tsd-page-navigation ul { padding-left: 1.75rem; } @@ -745,6 +769,11 @@ a.tsd-index-link { align-items: center; color: var(--color-text); } +.tsd-accordion-summary { + list-style-type: none; + display: flex; + align-items: center; +} .tsd-accordion-summary, .tsd-accordion-summary a { user-select: none; @@ -752,21 +781,19 @@ a.tsd-index-link { -webkit-user-select: none; -ms-user-select: none; - display: flex; - align-items: center; cursor: pointer; } +.tsd-accordion-summary a { + flex-grow: 1; +} .tsd-accordion-summary > * { margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; } -.tsd-accordion-summary::-webkit-details-marker { - display: none; -} -.tsd-index-accordion .tsd-accordion-summary svg { - margin-right: 0.25rem; +.tsd-index-accordion .tsd-accordion-summary > svg { + margin-left: 0.25rem; } .tsd-index-content > :not(:first-child) { margin-top: 0.75rem; diff --git a/docs/classes/_detector_js_core.Asserts.html b/docs/classes/_detector_js_core.Asserts.html index 61e39a8..0cff089 100644 --- a/docs/classes/_detector_js_core.Asserts.html +++ b/docs/classes/_detector_js_core.Asserts.html @@ -1,4 +1,4 @@ -Asserts | DetectorJS - v2.0.2
+Asserts | DetectorJS - v2.0.3
  • Preparing search index...
  • -
  • The search index is not available
DetectorJS - v2.0.2
+
  • The search index is not available
  • DetectorJS - v2.0.3
    @@ -24,7 +24,7 @@

    Hierarchy

    • Asserts
    +
  • Defined in asserts.ts:7
  • @@ -64,7 +64,7 @@
    assert: safe: boolean = false

    Returns any

    +
  • Defined in asserts.ts:8
    • @@ -73,8 +73,6 @@
    @@ -88,9 +86,10 @@
    Optional Optional safe: boolean = false

    executes asserts in a safe mode (try/catch)

    -

    Returns boolean

      @@ -99,8 +98,6 @@
    -

    Returns boolean

    +
  • Defined in asserts.ts:54
  • @@ -26,7 +26,7 @@

    Hierarchy

    • CssFlagsClass
    +
  • Defined in cssFlagsClass.ts:10
  • @@ -88,7 +88,7 @@
    Optional Returns CssFlagsClass
    +
  • Defined in cssFlagsClass.ts:31
  • Properties

    @@ -96,47 +96,47 @@
    +
  • Defined in flagsClass.ts:8
  • #cssFlagsPrefix: string
    +
  • Defined in cssFlagsClass.ts:17
  • #document: Document
    +
  • Defined in flagsClass.ts:36
  • #flags: any
    +
  • Defined in cssFlagsClass.ts:11
  • #navigator: Navigator
    +
  • Defined in flagsClass.ts:30
  • #process: any
    +
  • Defined in flagsClass.ts:24
  • #root: Window & typeof globalThis
    +
  • Defined in flagsClass.ts:18
  • #ua: string
    +
  • Defined in flagsClass.ts:42
  • Accessors

    @@ -147,7 +147,7 @@ +
  • Defined in flagsClass.ts:10
  • set booleanFlagsValuePropertyName(booleanFlagsValuePropertyName): void
  • @@ -158,7 +158,7 @@
    booleanFlagsValuePropertyName: Returns void
  • +
  • Defined in flagsClass.ts:14
  • +
  • Defined in cssFlagsClass.ts:19
  • +
  • Defined in flagsClass.ts:38
  • +
  • Defined in cssFlagsClass.ts:13
  • +
  • Defined in flagsClass.ts:32
  • +
  • Defined in flagsClass.ts:26
  • +
  • Defined in flagsClass.ts:20
  • +
  • Defined in flagsClass.ts:44
  • Methods

    @@ -228,40 +228,37 @@
    +
  • Defined in cssFlagsClass.ts:47
  • +
  • Defined in flagsClass.ts:106
  • +
  • Defined in flagsClass.ts:71
  • @@ -27,7 +27,7 @@

    Hierarchy

  • CssFlagsClass
  • CssFlagsClass
  • +
  • Defined in flagsClass.ts:7
  • @@ -78,39 +78,39 @@

    Parameters

    Optional ua: null | string = null

    Returns FlagsClass

    +
  • Defined in flagsClass.ts:54
  • Properties

    #booleanFlagsValuePropertyName: string
    +
  • Defined in flagsClass.ts:8
  • #document: Document
    +
  • Defined in flagsClass.ts:36
  • #navigator: Navigator
    +
  • Defined in flagsClass.ts:30
  • #process: any
    +
  • Defined in flagsClass.ts:24
  • #root: Window & typeof globalThis
    +
  • Defined in flagsClass.ts:18
  • #ua: string
    +
  • Defined in flagsClass.ts:42
  • Accessors

    @@ -120,7 +120,7 @@

    Returns void

    +
  • Defined in flagsClass.ts:14
  • +
  • Defined in flagsClass.ts:38
  • +
  • Defined in flagsClass.ts:32
  • +
  • Defined in flagsClass.ts:26
  • +
  • Defined in flagsClass.ts:20
  • +
  • Defined in flagsClass.ts:44
  • Methods

    @@ -179,25 +179,23 @@
    +
  • Defined in flagsClass.ts:106
    • -

      Returns

      Member Of

      FlagsClass

      Returns {}

      +
    • Defined in flagsClass.ts:71
    • @@ -26,7 +26,7 @@

      Hierarchy

      • Detector
      +
    • Defined in detector/lib/detector.ts:20
    • @@ -99,30 +99,30 @@
      Optional Returns Detector
      +
    • Defined in detector/lib/detector.ts:42
    • Properties

      #cssFlags: null | string[]
      +
    • Defined in detector/lib/detector.ts:22
    • #cssFlagsPrefix: string
      +
    • Defined in detector/lib/detector.ts:23
    • #private: any
      +
    • Defined in core/dist/core.types.d.ts:39
    • #values: boolean
      +
    • Defined in detector/lib/detector.ts:21
    • browser: {}
      @@ -130,7 +130,7 @@
      +
    • Defined in detector/lib/detector.ts:26
    • cpu: {}
      @@ -138,27 +138,27 @@
      +
    • Defined in detector/lib/detector.ts:30
    • device: any
      +
    • Defined in detector/lib/detector.ts:29
    • engine: any
      +
    • Defined in detector/lib/detector.ts:27
    • feature: any
      +
    • Defined in detector/lib/detector.ts:25
    • gpu: any
      +
    • Defined in detector/lib/detector.ts:31
    • os: {}
      @@ -166,12 +166,12 @@
        +
      • Defined in detector/lib/detector.ts:28
      • platform: string
        +
      • Defined in detector/lib/detector.ts:32
      • Accessors

        @@ -182,7 +182,7 @@ +
      • Defined in core/dist/core.types.d.ts:40
      • set booleanFlagsValuePropertyName(booleanFlagsValuePropertyName): void
      • @@ -193,7 +193,7 @@
        booleanFlagsValuePropertyName: Returns void
      • +
      • Defined in core/dist/core.types.d.ts:41
      • +
      • Defined in core/dist/core.types.d.ts:45
      • +
      • Defined in core/dist/core.types.d.ts:44
      • +
      • Defined in core/dist/core.types.d.ts:43
      • +
      • Defined in core/dist/core.types.d.ts:42
      • +
      • Defined in core/dist/core.types.d.ts:46
      • Methods

        @@ -251,7 +251,7 @@

        Member Of

        Detector

        Returns void

        +
      • Defined in detector/lib/detector.ts:128
      • +
      • Defined in detector/lib/detector.ts:185
      • +
      • Defined in detector/lib/detector.ts:169
      • +
      • Defined in detector/lib/detector.ts:108
      • +
      • Defined in detector/lib/detector.ts:86
      • +
      • Defined in detector/lib/detector.ts:205
      • +
      • Defined in detector/lib/detector.ts:148
      • +
      • Defined in detector/lib/detector.ts:221
      • +
      • Defined in detector/lib/detector.ts:242
        • -

          Returns

          Member Of

          FlagsClass

          Returns any

        +
      • Defined in core/dist/core.types.d.ts:69
        • -

          Returns

          Member Of

          FlagsClass

          Returns {}

          +
        • Defined in core/dist/core.types.d.ts:61
        • @@ -26,7 +26,7 @@

          Hierarchy

          • AudioFeature
          +
        • Defined in feature/lib/audioFeature.ts:10
        • @@ -94,31 +94,31 @@
          Optional Returns AudioFeature
          +
        • Defined in feature/lib/audioFeature.ts:32
        • Properties

          #audioElement: HTMLAudioElement
          +
        • Defined in feature/lib/audioFeature.ts:11
        • #private: any
          +
        • Defined in core/dist/core.types.d.ts:79
        • #private: any
          +
        • Defined in core/dist/core.types.d.ts:39
        • context: boolean
          +
        • Defined in feature/lib/audioFeature.ts:13
        • formats: {
              m4a: boolean;
              mp3: boolean;
              ogg: boolean;
              opus: boolean;
              wav: boolean;
              webm: boolean;
          }
          @@ -138,7 +138,7 @@
          wav
          webm: boolean
          +
        • Defined in feature/lib/audioFeature.ts:15
        • Accessors

          @@ -149,7 +149,7 @@ +
        • Defined in core/dist/core.types.d.ts:40
        • set booleanFlagsValuePropertyName(booleanFlagsValuePropertyName): void
        • @@ -160,7 +160,7 @@
          booleanFlagsValuePropertyName: Returns void
        • +
        • Defined in core/dist/core.types.d.ts:41
        • +
        • Defined in core/dist/core.types.d.ts:81
        • +
        • Defined in core/dist/core.types.d.ts:45
        • +
        • Defined in core/dist/core.types.d.ts:80
        • +
        • Defined in core/dist/core.types.d.ts:44
        • +
        • Defined in core/dist/core.types.d.ts:43
        • +
        • Defined in core/dist/core.types.d.ts:42
          • @@ -225,7 +225,7 @@

            Member Of

            AudioFeature

          Returns boolean

          +
        • Defined in feature/lib/audioFeature.ts:76
        • +
        • Defined in core/dist/core.types.d.ts:46
        • Methods

          @@ -247,33 +247,31 @@

          Memberof

          AudioFeature

          Returns void

          +
        • Defined in feature/lib/audioFeature.ts:54
        • +
        • Defined in feature/lib/audioFeature.ts:99
        • +
        • Defined in feature/lib/audioFeature.ts:182
        • +
        • Defined in feature/lib/audioFeature.ts:110
        • +
        • Defined in feature/lib/audioFeature.ts:140
        • +
        • Defined in feature/lib/audioFeature.ts:154
        • +
        • Defined in feature/lib/audioFeature.ts:168
        • +
        • Defined in feature/lib/audioFeature.ts:124
          • -

            Returns

            object

            -

            Member Of

            CssFlagsClass

            -

            Returns string[]

          +
        • Defined in core/dist/core.types.d.ts:98
          • -

            Returns

            Member Of

            FlagsClass

            Returns any

          +
        • Defined in core/dist/core.types.d.ts:69
          • -

            Returns

            Member Of

            FlagsClass

            Returns {}

            +
          • Defined in core/dist/core.types.d.ts:61
          • @@ -26,7 +26,7 @@

            Hierarchy

            • Feature
            +
          • Defined in feature/lib/feature.ts:10
          • @@ -162,161 +162,161 @@
            Optional Returns Feature
            +
          • Defined in feature/lib/feature.ts:49
          • Properties

            #canvas: HTMLCanvasElement
            +
          • Defined in feature/lib/feature.ts:13
          • #cssPrefixes: string[]
            +
          • Defined in feature/lib/feature.ts:11
          • #div: HTMLDivElement
            +
          • Defined in feature/lib/feature.ts:14
          • #img: HTMLImageElement
            +
          • Defined in feature/lib/feature.ts:16
          • #input: HTMLInputElement
            +
          • Defined in feature/lib/feature.ts:15
          • #private: any
            +
          • Defined in core/dist/core.types.d.ts:79
          • #private: any
            +
          • Defined in core/dist/core.types.d.ts:39
          • #script: HTMLScriptElement
            +
          • Defined in feature/lib/feature.ts:12
          • #xmlHttpRequest: XMLHttpRequest
            +
          • Defined in feature/lib/feature.ts:17
          • addEventListener: boolean
            +
          • Defined in feature/lib/feature.ts:19
          • asyncScript: boolean
            +
          • Defined in feature/lib/feature.ts:20
          • battery: boolean
            +
          • Defined in feature/lib/feature.ts:21
          • cors: boolean
            +
          • Defined in feature/lib/feature.ts:22
          • deferScript: boolean
            +
          • Defined in feature/lib/feature.ts:23
          • file: boolean
            +
          • Defined in feature/lib/feature.ts:24
          • fileSystem: boolean
            +
          • Defined in feature/lib/feature.ts:25
          • fullscreen: boolean
            +
          • Defined in feature/lib/feature.ts:26
          • fullscreenKeyboard: boolean
            +
          • Defined in feature/lib/feature.ts:27
          • geolocation: boolean
            +
          • Defined in feature/lib/feature.ts:28
          • historyAPI: boolean
            +
          • Defined in feature/lib/feature.ts:29
          • littleEndian: boolean
            +
          • Defined in feature/lib/feature.ts:30
          • localStorage: boolean
            +
          • Defined in feature/lib/feature.ts:31
          • matchMedia: boolean
            +
          • Defined in feature/lib/feature.ts:32
          • querySelector: boolean
            +
          • Defined in feature/lib/feature.ts:33
          • querySelectorAll: boolean
            +
          • Defined in feature/lib/feature.ts:34
          • serviceWorker: boolean
            +
          • Defined in feature/lib/feature.ts:35
          • typedArray: boolean
            +
          • Defined in feature/lib/feature.ts:36
          • userMedia: boolean
            +
          • Defined in feature/lib/feature.ts:37
          • vibration: boolean
            +
          • Defined in feature/lib/feature.ts:38
          • worker: boolean
            +
          • Defined in feature/lib/feature.ts:39
          • Accessors

            @@ -327,7 +327,7 @@ +
          • Defined in core/dist/core.types.d.ts:40
          • set booleanFlagsValuePropertyName(booleanFlagsValuePropertyName): void
          • @@ -338,7 +338,7 @@
            booleanFlagsValuePropertyName: Returns void
          • +
          • Defined in core/dist/core.types.d.ts:41
            • @@ -349,7 +349,7 @@

              Member Of

              Feature

            Returns boolean

            +
          • Defined in feature/lib/feature.ts:652
            • @@ -360,7 +360,7 @@

              Member Of

              Feature

            Returns boolean

            +
          • Defined in feature/lib/feature.ts:604
          • +
          • Defined in feature/lib/feature.ts:592
          • +
          • Defined in feature/lib/feature.ts:526
          • +
          • Defined in core/dist/core.types.d.ts:81
          • +
          • Defined in feature/lib/feature.ts:544
          • +
          • Defined in feature/lib/feature.ts:556
          • +
          • Defined in feature/lib/feature.ts:568
          • +
          • Defined in feature/lib/feature.ts:580
          • +
          • Defined in feature/lib/feature.ts:830
          • +
          • Defined in core/dist/core.types.d.ts:45
          • +
          • Defined in core/dist/core.types.d.ts:80
          • +
          • Defined in feature/lib/feature.ts:763
          • +
          • Defined in core/dist/core.types.d.ts:44
          • +
          • Defined in feature/lib/feature.ts:818
          • +
          • Defined in feature/lib/feature.ts:489
          • +
          • Defined in feature/lib/feature.ts:616
          • +
          • Defined in feature/lib/feature.ts:478
          • +
          • Defined in feature/lib/feature.ts:782
          • +
          • Defined in feature/lib/feature.ts:500
          • +
          • Defined in core/dist/core.types.d.ts:43
          • +
          • Defined in feature/lib/feature.ts:515
          • +
          • Defined in feature/lib/feature.ts:640
          • +
          • Defined in core/dist/core.types.d.ts:42
          • +
          • Defined in feature/lib/feature.ts:806
          • +
          • Defined in feature/lib/feature.ts:794
          • +
          • Defined in feature/lib/feature.ts:664
          • +
          • Defined in feature/lib/feature.ts:742
          • +
          • Defined in core/dist/core.types.d.ts:46
          • +
          • Defined in feature/lib/feature.ts:628
          • +
          • Defined in feature/lib/feature.ts:709
          • +
          • Defined in feature/lib/feature.ts:730
          • +
          • Defined in feature/lib/feature.ts:683
          • Methods

            @@ -701,14 +701,13 @@

            Memberof

            Feature

            Returns void

            +
          • Defined in feature/lib/feature.ts:172
            • -

              Returns

              Member Of

              Feature

              @@ -720,14 +719,13 @@
              prop: Optional prefixes: string[] = ...

            Returns null | string

            +
          • Defined in feature/lib/feature.ts:86
            • -

              Returns

              Member Of

              Feature

              @@ -739,14 +737,13 @@
              prop: Optional prefixes: string[] = ...

            Returns boolean

            +
          • Defined in feature/lib/feature.ts:117
            • -

              Returns

              Member Of

              Feature

              @@ -758,14 +755,13 @@
              prop: value: any

            Returns boolean

            +
          • Defined in feature/lib/feature.ts:161
            • -

              Returns

              Member Of

              Feature

              @@ -777,321 +773,297 @@
              prop: value: any

            Returns null | string

            +
          • Defined in feature/lib/feature.ts:130
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:215
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:226
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:237
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:248
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:259
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:270
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:281
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:292
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:308
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:319
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:330
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:341
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:355
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:380
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:391
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:402
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:413
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:424
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:435
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:451
            • -

              Returns

              boolean

              -

              Member Of

              Feature

              -

              Returns boolean

            +
          • Defined in feature/lib/feature.ts:467
            • -

              Returns

              object

              -

              Member Of

              CssFlagsClass

              -

              Returns string[]

            +
          • Defined in core/dist/core.types.d.ts:98
            • -

              Returns

              Member Of

              FlagsClass

              Returns any

            +
          • Defined in core/dist/core.types.d.ts:69
            • -

              Returns

              Member Of

              FlagsClass

              Returns {}

              +
            • Defined in core/dist/core.types.d.ts:61
            • @@ -26,7 +26,7 @@

              Hierarchy

              • VideoFeature
              +
            • Defined in feature/lib/videoFeature.ts:10
            • @@ -89,7 +89,7 @@
              Optional Returns VideoFeature
              +
            • Defined in feature/lib/videoFeature.ts:27
            • Properties

              @@ -97,18 +97,18 @@
              +
            • Defined in core/dist/core.types.d.ts:79
            • #private: any
              +
            • Defined in core/dist/core.types.d.ts:39
            • #videoElement: HTMLVideoElement
              +
            • Defined in feature/lib/videoFeature.ts:11
            • formats: {
                  mp4: boolean;
                  ogv: boolean;
                  webm: boolean;
              }
              @@ -122,7 +122,7 @@
              ogv
              webm: boolean
              +
            • Defined in feature/lib/videoFeature.ts:13
            • Accessors

              @@ -133,7 +133,7 @@ +
            • Defined in core/dist/core.types.d.ts:40
            • set booleanFlagsValuePropertyName(booleanFlagsValuePropertyName): void
            • @@ -144,7 +144,7 @@
              booleanFlagsValuePropertyName: Returns void
            • +
            • Defined in core/dist/core.types.d.ts:41
            • +
            • Defined in core/dist/core.types.d.ts:81
            • +
            • Defined in core/dist/core.types.d.ts:45
            • +
            • Defined in core/dist/core.types.d.ts:80
            • +
            • Defined in core/dist/core.types.d.ts:44
            • +
            • Defined in core/dist/core.types.d.ts:43
            • +
            • Defined in core/dist/core.types.d.ts:42
              • @@ -209,7 +209,7 @@

                Member Of

                VideoFeature

              Returns boolean

              +
            • Defined in feature/lib/videoFeature.ts:66
            • +
            • Defined in core/dist/core.types.d.ts:46
            • Methods

              @@ -231,87 +231,81 @@

              Memberof

              VideoFeature

              Returns void

              +
            • Defined in feature/lib/videoFeature.ts:44
            • +
            • Defined in feature/lib/videoFeature.ts:88
            • +
            • Defined in feature/lib/videoFeature.ts:106
            • +
            • Defined in feature/lib/videoFeature.ts:124
              • -

                Returns

                object

                -

                Member Of

                CssFlagsClass

                -

                Returns string[]

              +
            • Defined in core/dist/core.types.d.ts:98
              • -

                Returns

                Member Of

                FlagsClass

                Returns any

              +
            • Defined in core/dist/core.types.d.ts:69
              • -

                Returns

                Member Of

                FlagsClass

                Returns {}

                +
              • Defined in core/dist/core.types.d.ts:61
              • @@ -23,7 +23,7 @@

                Hierarchy

                • CPU
                +
              • Defined in hardware/lib/cpu.ts:3
              • @@ -99,7 +99,7 @@
                cssFlagsPrefix: Returns CPU
                +
              • Defined in hardware/lib/cpu.ts:18
              • Properties

                @@ -107,73 +107,73 @@
                +
              • Defined in core/dist/core.types.d.ts:79
              • #private: any
                +
              • Defined in core/dist/core.types.d.ts:39
              • amd: boolean
                +
              • Defined in hardware/lib/cpu.ts:15
              • architecture: string
                +
              • Defined in hardware/lib/cpu.ts:6
              • arm: boolean
                +
              • Defined in hardware/lib/cpu.ts:13
              • avr: boolean
                +
              • Defined in hardware/lib/cpu.ts:12
              • cores: number
                +
              • Defined in hardware/lib/cpu.ts:5
              • intel: boolean
                +
              • Defined in hardware/lib/cpu.ts:16
              • irix: boolean
                +
              • Defined in hardware/lib/cpu.ts:9
              • mips: boolean
                +
              • Defined in hardware/lib/cpu.ts:10
              • platform: string
                +
              • Defined in hardware/lib/cpu.ts:4
              • powerPC: boolean
                +
              • Defined in hardware/lib/cpu.ts:14
              • risc: boolean
                +
              • Defined in hardware/lib/cpu.ts:11
              • sparc: boolean
                +
              • Defined in hardware/lib/cpu.ts:8
              • Accessors

                @@ -184,7 +184,7 @@ +
              • Defined in core/dist/core.types.d.ts:40
              • set booleanFlagsValuePropertyName(booleanFlagsValuePropertyName): void
              • @@ -195,7 +195,7 @@
                booleanFlagsValuePropertyName: Returns void
              • +
              • Defined in core/dist/core.types.d.ts:41
              • +
              • Defined in core/dist/core.types.d.ts:81
              • +
              • Defined in core/dist/core.types.d.ts:45
              • +
              • Defined in core/dist/core.types.d.ts:80
              • +
              • Defined in core/dist/core.types.d.ts:44
              • +
              • Defined in core/dist/core.types.d.ts:43
              • +
              • Defined in core/dist/core.types.d.ts:42
              • +
              • Defined in core/dist/core.types.d.ts:46
              • Methods

                @@ -267,197 +267,182 @@
                +
              • Defined in hardware/lib/cpu.ts:170
                • -

                  Returns

                  string

                  -

                  Member Of

                  CPU

                  -

                  Returns any

                +
              • Defined in hardware/lib/cpu.ts:67
                • -

                  Returns

                  boolean

                  -

                  Member Of

                  CPU

                  -

                  Returns boolean

                +
              • Defined in hardware/lib/cpu.ts:148
                • -

                  Returns

                  boolean

                  -

                  Member Of

                  CPU

                  -

                  Returns boolean

                +
              • Defined in hardware/lib/cpu.ts:137
                • -

                  Returns

                  number

                  -

                  Member Of

                  CPU

                  -

                  Returns number

                +
              • Defined in hardware/lib/cpu.ts:45
                • -

                  Returns

                  boolean

                  -

                  Member Of

                  CPU

                  -

                  Returns boolean

                +
              • Defined in hardware/lib/cpu.ts:194
                • -

                  Returns

                  boolean

                  -

                  Member Of

                  CPU

                  -

                  Returns boolean

                +
              • Defined in hardware/lib/cpu.ts:104
                • -

                  Returns

                  boolean

                  -

                  Member Of

                  CPU

                  -

                  Returns boolean

                +
              • Defined in hardware/lib/cpu.ts:115
                • -

                  Returns

                  string

                  -

                  Member Of

                  CPU

                  -

                  Returns string

                +
              • Defined in hardware/lib/cpu.ts:56
                • -

                  Returns

                  boolean

                  -

                  Member Of

                  CPU

                  -

                  Returns boolean

                +
              • Defined in hardware/lib/cpu.ts:159
                • -

                  Returns

                  boolean

                  -

                  Member Of

                  CPU

                  -

                  Returns boolean

                +
              • Defined in hardware/lib/cpu.ts:126
                • -

                  Returns

                  boolean

                  -

                  Member Of

                  CPU

                  -

                  Returns boolean

                +
              • Defined in hardware/lib/cpu.ts:93
                • -

                  Returns

                  object

                  -

                  Member Of

                  CssFlagsClass

                  -

                  Returns string[]

                +
              • Defined in core/dist/core.types.d.ts:98
                • -

                  Returns

                  Member Of

                  FlagsClass

                  Returns any

                +
              • Defined in core/dist/core.types.d.ts:69
                • -

                  Returns

                  Member Of

                  FlagsClass

                  Returns {}

                  +
                • Defined in core/dist/core.types.d.ts:61
                • @@ -26,7 +26,7 @@

                  Hierarchy

                  • Device
                  +
                • Defined in hardware/lib/device.ts:10
                • @@ -82,7 +82,7 @@
                  Optional Returns Device
                  +
                • Defined in hardware/lib/device.ts:19
                • Properties

                  @@ -90,13 +90,13 @@
                  +
                • Defined in core/dist/core.types.d.ts:79
                • #private: any
                  +
                • Defined in core/dist/core.types.d.ts:39
                • Accessors

                  @@ -107,7 +107,7 @@ +
                • Defined in core/dist/core.types.d.ts:40
                • set booleanFlagsValuePropertyName(booleanFlagsValuePropertyName): void
                • @@ -118,7 +118,7 @@
                  booleanFlagsValuePropertyName: Returns void
                • +
                • Defined in core/dist/core.types.d.ts:41
                • +
                • Defined in core/dist/core.types.d.ts:81
                • +
                • Defined in core/dist/core.types.d.ts:45
                • +
                • Defined in core/dist/core.types.d.ts:80
                • +
                • Defined in core/dist/core.types.d.ts:44
                • +
                • Defined in core/dist/core.types.d.ts:43
                • +
                • Defined in core/dist/core.types.d.ts:42
                • +
                • Defined in core/dist/core.types.d.ts:46
                • Methods

                  @@ -190,41 +190,38 @@
                  +
                • Defined in core/dist/core.types.d.ts:98
                  • -

                    Returns

                    Member Of

                    FlagsClass

                    Returns any

                  +
                • Defined in core/dist/core.types.d.ts:69
                  • -

                    Returns

                    Member Of

                    FlagsClass

                    Returns {}

                    +
                  • Defined in core/dist/core.types.d.ts:61
                  • @@ -26,7 +26,7 @@

                    Hierarchy

                    • GPU
                    +
                  • Defined in hardware/lib/gpu.ts:10
                  • @@ -91,14 +91,14 @@
                    Optional Returns GPU
                    +
                  • Defined in hardware/lib/gpu.ts:28
                  • Properties

                    #canvas: HTMLCanvasElement
                    +
                  • Defined in hardware/lib/gpu.ts:17
                  • #info: {
                        model: string;
                        renderer: string;
                        vendor: string;
                        webGLRenderer: string;
                        webGLVendor: string;
                    }
                    @@ -116,44 +116,44 @@
                    webGLRenderer
                    webGLVendor: string
                    +
                  • Defined in hardware/lib/gpu.ts:18
                  • #private: any
                    +
                  • Defined in core/dist/core.types.d.ts:79
                  • #private: any
                    +
                  • Defined in core/dist/core.types.d.ts:39
                  • model: string
                    +
                  • Defined in hardware/lib/gpu.ts:14
                  • renderer: string
                    +
                  • Defined in hardware/lib/gpu.ts:15
                  • vendor: string
                    +
                  • Defined in hardware/lib/gpu.ts:13
                  • webGLRenderer: string
                    +
                  • Defined in hardware/lib/gpu.ts:12
                  • webGLVendor: string
                    +
                  • Defined in hardware/lib/gpu.ts:11
                  • Accessors

                    @@ -164,7 +164,7 @@ +
                  • Defined in core/dist/core.types.d.ts:40
                  • set booleanFlagsValuePropertyName(booleanFlagsValuePropertyName): void
                  • @@ -175,7 +175,7 @@
                    booleanFlagsValuePropertyName: Returns void
                  • +
                  • Defined in core/dist/core.types.d.ts:41
                  • +
                  • Defined in core/dist/core.types.d.ts:81
                  • +
                  • Defined in core/dist/core.types.d.ts:45
                  • +
                  • Defined in core/dist/core.types.d.ts:80
                  • +
                  • Defined in core/dist/core.types.d.ts:44
                  • +
                  • Defined in core/dist/core.types.d.ts:43
                  • +
                  • Defined in core/dist/core.types.d.ts:42
                  • +
                  • Defined in core/dist/core.types.d.ts:46
                  • Methods

                    @@ -251,18 +251,17 @@

                    Member Of

                    GPU

                    Returns void

                    +
                  • Defined in hardware/lib/gpu.ts:46
                    • -

                      Returns

                      object

                      -

                      Member Of

                      GPU

                      -

                      Returns {
                          model: string;
                          renderer: string;
                          vendor: string;
                          webGLRenderer: string;
                          webGLVendor: string;
                      }

                      +

                      Returns {
                          model: string;
                          renderer: string;
                          vendor: string;
                          webGLRenderer: string;
                          webGLVendor: string;
                      }

                      object

                      +
                      • model: string
                      • @@ -275,48 +274,45 @@
                        webGLRenderer
                        webGLVendor: string
                    +
                  • Defined in hardware/lib/gpu.ts:72
                    • -

                      Returns

                      object

                      -

                      Member Of

                      CssFlagsClass

                      -

                      Returns string[]

                    +
                  • Defined in core/dist/core.types.d.ts:98
                    • -

                      Returns

                      Member Of

                      FlagsClass

                      Returns any

                    +
                  • Defined in core/dist/core.types.d.ts:69
                    • -

                      Returns

                      Member Of

                      FlagsClass

                      Returns {}

                      +
                    • Defined in core/dist/core.types.d.ts:61
                    • @@ -26,7 +26,7 @@

                      Hierarchy

                      • Platform
                      +
                    • Defined in hardware/lib/platform.ts:9
                    • @@ -89,7 +89,7 @@
                      Optional Returns Platform
                      +
                    • Defined in hardware/lib/platform.ts:18
                    • Properties

                      @@ -97,13 +97,13 @@
                      +
                    • Defined in core/dist/core.types.d.ts:79
                    • #private: any
                      +
                    • Defined in core/dist/core.types.d.ts:39
                    • Accessors

                      @@ -114,7 +114,7 @@ +
                    • Defined in core/dist/core.types.d.ts:40
                    • set booleanFlagsValuePropertyName(booleanFlagsValuePropertyName): void
                    • @@ -125,7 +125,7 @@
                      booleanFlagsValuePropertyName: Returns void
                    • +
                    • Defined in core/dist/core.types.d.ts:41
                      • @@ -136,7 +136,7 @@

                        Member Of

                        Platform

                      Returns boolean

                      +
                    • Defined in hardware/lib/platform.ts:28
                      • @@ -147,7 +147,7 @@

                        Memberof

                        Platform

                      Returns boolean

                      +
                    • Defined in hardware/lib/platform.ts:38
                    • +
                    • Defined in core/dist/core.types.d.ts:81
                    • +
                    • Defined in hardware/lib/platform.ts:148
                    • +
                    • Defined in core/dist/core.types.d.ts:45
                    • +
                    • Defined in core/dist/core.types.d.ts:80
                    • +
                    • Defined in hardware/lib/platform.ts:93
                    • +
                    • Defined in core/dist/core.types.d.ts:44
                    • +
                    • Defined in core/dist/core.types.d.ts:43
                    • +
                    • Defined in core/dist/core.types.d.ts:42
                    • +
                    • Defined in hardware/lib/platform.ts:82
                    • +
                    • Defined in hardware/lib/platform.ts:71
                    • +
                    • Defined in hardware/lib/platform.ts:51
                    • +
                    • Defined in core/dist/core.types.d.ts:46
                    • Methods

                      @@ -274,27 +274,25 @@
                      +
                    • Defined in core/dist/core.types.d.ts:98
                      • -

                        Returns

                        Member Of

                        FlagsClass

                        Returns any

                      +
                    • Defined in core/dist/core.types.d.ts:69
                    • +
                    • Defined in hardware/lib/platform.ts:152
                    • @@ -26,7 +26,7 @@

                      Hierarchy

                      • Browser
                      +
                    • Defined in software/lib/browser.ts:10
                    • @@ -190,7 +190,7 @@
                      Optional Returns Browser
                      +
                    • Defined in software/lib/browser.ts:23
                    • Properties

                      @@ -198,33 +198,33 @@
                      +
                    • Defined in core/dist/core.types.d.ts:79
                    • #private: any
                      +
                    • Defined in core/dist/core.types.d.ts:39
                    • #reStrVer: string
                      +
                    • Defined in software/lib/browser.ts:12
                    • #reStrVerNum: string
                      +
                    • Defined in software/lib/browser.ts:11
                    • #reVer: RegExp
                      +
                    • Defined in software/lib/browser.ts:13
                    • version: any
                      +
                    • Defined in software/lib/browser.ts:14
                    • Accessors

                      @@ -237,7 +237,7 @@

                      Member Of

                      Browser

                      Returns boolean

                      +
                    • Defined in software/lib/browser.ts:73
                      • @@ -248,7 +248,7 @@

                        Member Of

                        Browser

                      Returns boolean

                      +
                    • Defined in software/lib/browser.ts:992
                    • +
                    • Defined in software/lib/browser.ts:84
                    • +
                    • Defined in software/lib/browser.ts:95
                    • +
                    • Defined in software/lib/browser.ts:106
                    • +
                    • Defined in software/lib/browser.ts:119
                    • +
                    • Defined in software/lib/browser.ts:130
                    • +
                    • Defined in software/lib/browser.ts:141
                    • +
                    • Defined in software/lib/browser.ts:152
                    • +
                    • Defined in software/lib/browser.ts:163
                    • +
                    • Defined in software/lib/browser.ts:177
                    • +
                    • Defined in software/lib/browser.ts:188
                    • +
                    • Defined in software/lib/browser.ts:1018
                    • +
                    • Defined in software/lib/browser.ts:1005
                    • +
                    • Defined in software/lib/browser.ts:1037
                    • +
                    • Defined in software/lib/browser.ts:199
                    • +
                    • Defined in software/lib/browser.ts:210
                    • +
                    • Defined in software/lib/browser.ts:221
                    • +
                    • Defined in software/lib/browser.ts:232
                    • +
                    • Defined in software/lib/browser.ts:243
                    • +
                    • Defined in software/lib/browser.ts:254
                    • +
                    • Defined in software/lib/browser.ts:1059
                    • +
                    • Defined in software/lib/browser.ts:1048
                    • +
                    • Defined in software/lib/browser.ts:269
                    • +
                    • Defined in software/lib/browser.ts:292
                    • +
                    • Defined in software/lib/browser.ts:303
                    • +
                    • Defined in software/lib/browser.ts:314
                    • +
                    • Defined in software/lib/browser.ts:325
                    • +
                    • Defined in software/lib/browser.ts:1094
                    • +
                    • Defined in software/lib/browser.ts:1072
                    • +
                    • Defined in software/lib/browser.ts:1083
                    • +
                    • Defined in software/lib/browser.ts:336
                    • +
                    • Defined in software/lib/browser.ts:347
                    • +
                    • Defined in software/lib/browser.ts:358
                    • +
                    • Defined in software/lib/browser.ts:1116
                    • +
                    • Defined in software/lib/browser.ts:1105
                    • +
                    • Defined in software/lib/browser.ts:380
                    • +
                    • Defined in software/lib/browser.ts:391
                    • +
                    • Defined in software/lib/browser.ts:402
                    • +
                    • Defined in software/lib/browser.ts:413
                    • +
                    • Defined in software/lib/browser.ts:424
                    • +
                    • Defined in software/lib/browser.ts:435
                    • +
                    • Defined in software/lib/browser.ts:446
                    • +
                    • Defined in software/lib/browser.ts:468
                    • +
                    • Defined in software/lib/browser.ts:457
                    • +
                    • Defined in software/lib/browser.ts:479
                    • +
                    • Defined in software/lib/browser.ts:490
                    • +
                    • Defined in software/lib/browser.ts:501
                    • +
                    • Defined in software/lib/browser.ts:569
                    • +
                    • Defined in software/lib/browser.ts:591
                    • +
                    • Defined in software/lib/browser.ts:512
                    • +
                    • Defined in software/lib/browser.ts:534
                    • +
                    • Defined in software/lib/browser.ts:523
                    • +
                    • Defined in software/lib/browser.ts:547
                    • +
                    • Defined in software/lib/browser.ts:558
                    • +
                    • Defined in software/lib/browser.ts:580
                    • +
                    • Defined in software/lib/browser.ts:624
                    • +
                    • Defined in software/lib/browser.ts:602
                    • +
                    • Defined in software/lib/browser.ts:613
                    • +
                    • Defined in software/lib/browser.ts:635
                    • +
                    • Defined in software/lib/browser.ts:646
                    • +
                    • Defined in software/lib/browser.ts:1183
                    • +
                    • Defined in software/lib/browser.ts:1151
                    • +
                    • Defined in software/lib/browser.ts:1129
                    • +
                    • Defined in software/lib/browser.ts:1162
                    • +
                    • Defined in software/lib/browser.ts:1140
                    • +
                    • Defined in software/lib/browser.ts:657
                    • +
                    • Defined in software/lib/browser.ts:668
                    • +
                    • Defined in software/lib/browser.ts:690
                    • +
                    • Defined in software/lib/browser.ts:679
                    • +
                    • Defined in software/lib/browser.ts:701
                    • +
                    • Defined in software/lib/browser.ts:712
                    • +
                    • Defined in software/lib/browser.ts:734
                    • +
                    • Defined in software/lib/browser.ts:723
                    • +
                    • Defined in software/lib/browser.ts:747
                    • +
                    • Defined in software/lib/browser.ts:758
                    • +
                    • Defined in software/lib/browser.ts:769
                    • +
                    • Defined in software/lib/browser.ts:780
                    • +
                    • Defined in software/lib/browser.ts:1221
                    • +
                    • Defined in software/lib/browser.ts:1200
                    • +
                    • Defined in software/lib/browser.ts:791
                    • +
                    • Defined in software/lib/browser.ts:802
                    • +
                    • Defined in software/lib/browser.ts:813
                    • +
                    • Defined in software/lib/browser.ts:824
                    • +
                    • Defined in software/lib/browser.ts:835
                    • +
                    • Defined in software/lib/browser.ts:846
                    • +
                    • Defined in software/lib/browser.ts:857
                    • +
                    • Defined in software/lib/browser.ts:868
                    • +
                    • Defined in software/lib/browser.ts:879
                    • +
                    • Defined in software/lib/browser.ts:890
                    • +
                    • Defined in software/lib/browser.ts:901
                    • +
                    • Defined in software/lib/browser.ts:913
                    • +
                    • Defined in software/lib/browser.ts:935
                    • +
                    • Defined in software/lib/browser.ts:957
                    • +
                    • Defined in software/lib/browser.ts:946
                    • +
                    • Defined in software/lib/browser.ts:968
                    • +
                    • Defined in software/lib/browser.ts:979
                      • @@ -1302,7 +1302,7 @@ +
                      • Defined in core/dist/core.types.d.ts:40
                    • set booleanFlagsValuePropertyName(booleanFlagsValuePropertyName): void
                    • @@ -1313,7 +1313,7 @@
                      booleanFlagsValuePropertyName: Returns void
                    • +
                    • Defined in core/dist/core.types.d.ts:41
                    • +
                    • Defined in core/dist/core.types.d.ts:81
                    • +
                    • Defined in core/dist/core.types.d.ts:45
                    • +
                    • Defined in core/dist/core.types.d.ts:80
                    • +
                    • Defined in software/lib/browser.ts:369
                    • +
                    • Defined in core/dist/core.types.d.ts:44
                    • +
                    • Defined in core/dist/core.types.d.ts:43
                    • +
                    • Defined in core/dist/core.types.d.ts:42
                    • +
                    • Defined in core/dist/core.types.d.ts:46
                    • +
                    • Defined in software/lib/browser.ts:924
                    • Methods

                      @@ -1407,8 +1407,6 @@

                      Returns boolean

                      +
                    • Defined in software/lib/browser.ts:1247
                    • +
                    • Defined in software/lib/browser.ts:37
                    • +
                    • Defined in software/lib/browser.ts:258
                      • @@ -1454,7 +1453,7 @@

                        Parameters

                        reStr: string = ...

                      Returns boolean

                      +
                    • Defined in software/lib/browser.ts:61
                      • @@ -1472,48 +1471,45 @@
                        Optional Optional inverted: boolean = false

                      Returns void

                      +
                    • Defined in software/lib/browser.ts:1265
                      • -

                        Returns

                        object

                        -

                        Member Of

                        CssFlagsClass

                        -

                        Returns string[]

                      +
                    • Defined in core/dist/core.types.d.ts:98
                      • -

                        Returns

                        Member Of

                        FlagsClass

                        Returns any

                      +
                    • Defined in core/dist/core.types.d.ts:69
                      • -

                        Returns

                        Member Of

                        FlagsClass

                        Returns {}

                        +
                      • Defined in core/dist/core.types.d.ts:61
                      • @@ -26,7 +26,7 @@

                        Hierarchy

                        • Engine
                        +
                      • Defined in software/lib/engine.ts:10
                      • @@ -101,7 +101,7 @@
                        Optional Returns Engine
                        +
                      • Defined in software/lib/engine.ts:21
                      • Properties

                        @@ -109,18 +109,18 @@
                        +
                      • Defined in core/dist/core.types.d.ts:79
                      • #private: any
                        +
                      • Defined in core/dist/core.types.d.ts:39
                      • version: string
                        +
                      • Defined in software/lib/engine.ts:11
                      • Accessors

                        @@ -133,7 +133,7 @@

                        Member Of

                        Engine

                        Returns boolean

                        +
                      • Defined in software/lib/engine.ts:35
                        • @@ -144,7 +144,7 @@

                          Member Of

                          Engine

                        Returns boolean

                        +
                      • Defined in software/lib/engine.ts:175
                      • +
                      • Defined in software/lib/engine.ts:195
                      • +
                      • Defined in software/lib/engine.ts:208
                      • +
                      • Defined in software/lib/engine.ts:46
                      • +
                      • Defined in software/lib/engine.ts:68
                      • +
                      • Defined in software/lib/engine.ts:79
                      • +
                      • Defined in software/lib/engine.ts:90
                      • +
                      • Defined in software/lib/engine.ts:101
                      • +
                      • Defined in software/lib/engine.ts:112
                      • +
                      • Defined in software/lib/engine.ts:123
                      • +
                      • Defined in software/lib/engine.ts:136
                      • +
                      • Defined in software/lib/engine.ts:160
                      • +
                      • Defined in software/lib/engine.ts:222
                        • @@ -285,7 +285,7 @@ +
                        • Defined in core/dist/core.types.d.ts:40
                      • set booleanFlagsValuePropertyName(booleanFlagsValuePropertyName): void
                      • @@ -296,7 +296,7 @@
                        booleanFlagsValuePropertyName: Returns void
                      • +
                      • Defined in core/dist/core.types.d.ts:41
                      • +
                      • Defined in core/dist/core.types.d.ts:81
                      • +
                      • Defined in core/dist/core.types.d.ts:45
                      • +
                      • Defined in core/dist/core.types.d.ts:80
                      • +
                      • Defined in software/lib/engine.ts:57
                      • +
                      • Defined in core/dist/core.types.d.ts:44
                      • +
                      • Defined in core/dist/core.types.d.ts:43
                      • +
                      • Defined in core/dist/core.types.d.ts:42
                      • +
                      • Defined in core/dist/core.types.d.ts:46
                      • +
                      • Defined in software/lib/engine.ts:147
                      • Methods

                        @@ -390,8 +390,6 @@

                        Returns boolean

                        +
                      • Defined in software/lib/engine.ts:239
                        • @@ -419,48 +418,45 @@

                          Parameters

                          Optional version: null = null

                        Returns void

                        +
                      • Defined in software/lib/engine.ts:263
                        • -

                          Returns

                          object

                          -

                          Member Of

                          CssFlagsClass

                          -

                          Returns string[]

                        +
                      • Defined in core/dist/core.types.d.ts:98
                        • -

                          Returns

                          Member Of

                          FlagsClass

                          Returns any

                        +
                      • Defined in core/dist/core.types.d.ts:69
                        • -

                          Returns

                          Member Of

                          FlagsClass

                          Returns {}

                          +
                        • Defined in core/dist/core.types.d.ts:61
                        • @@ -26,7 +26,7 @@

                          Hierarchy

                          • OS
                          +
                        • Defined in software/lib/os.ts:14
                        • @@ -122,7 +122,7 @@
                          Optional Returns OS
                          +
                        • Defined in software/lib/os.ts:26
                        • Properties

                          @@ -130,23 +130,23 @@
                          +
                        • Defined in core/dist/core.types.d.ts:79
                        • #private: any
                          +
                        • Defined in core/dist/core.types.d.ts:39
                        • version: string
                          +
                        • Defined in software/lib/os.ts:15
                        • versionName: string
                          +
                        • Defined in software/lib/os.ts:16
                        • Accessors

                          @@ -159,7 +159,7 @@

                          Member Of

                          OS

                          Returns boolean

                          +
                        • Defined in software/lib/os.ts:328
                          • @@ -170,7 +170,7 @@

                            Member Of

                            OS

                          Returns boolean

                          +
                        • Defined in software/lib/os.ts:463
                        • +
                        • Defined in software/lib/os.ts:478
                        • +
                        • Defined in software/lib/os.ts:306
                        • +
                        • Defined in software/lib/os.ts:491
                        • +
                        • Defined in software/lib/os.ts:267
                        • +
                        • Defined in software/lib/os.ts:511
                        • +
                        • Defined in software/lib/os.ts:372
                        • +
                        • Defined in software/lib/os.ts:252
                        • +
                        • Defined in software/lib/os.ts:522
                        • +
                        • Defined in software/lib/os.ts:295
                        • +
                        • Defined in software/lib/os.ts:339
                        • +
                        • Defined in software/lib/os.ts:317
                        • +
                        • Defined in software/lib/os.ts:361
                        • +
                        • Defined in software/lib/os.ts:555
                        • +
                        • Defined in software/lib/os.ts:291
                        • +
                        • Defined in software/lib/os.ts:544
                        • +
                        • Defined in software/lib/os.ts:533
                        • +
                        • Defined in software/lib/os.ts:350
                        • +
                        • Defined in software/lib/os.ts:607
                        • +
                        • Defined in software/lib/os.ts:278
                        • +
                        • Defined in software/lib/os.ts:566
                        • +
                        • Defined in software/lib/os.ts:595
                        • +
                        • Defined in software/lib/os.ts:204
                        • +
                        • Defined in software/lib/os.ts:578
                        • +
                        • Defined in software/lib/os.ts:93
                        • +
                        • Defined in software/lib/os.ts:384
                          • @@ -451,7 +451,7 @@ +
                          • Defined in core/dist/core.types.d.ts:40
                        • set booleanFlagsValuePropertyName(booleanFlagsValuePropertyName): void
                        • @@ -462,7 +462,7 @@
                          booleanFlagsValuePropertyName: Returns void
                        • +
                        • Defined in core/dist/core.types.d.ts:41
                        • +
                        • Defined in core/dist/core.types.d.ts:81
                        • +
                        • Defined in core/dist/core.types.d.ts:45
                        • +
                        • Defined in core/dist/core.types.d.ts:80
                        • +
                        • Defined in software/lib/os.ts:417
                        • +
                        • Defined in software/lib/os.ts:162
                        • +
                        • Defined in core/dist/core.types.d.ts:44
                        • +
                        • Defined in core/dist/core.types.d.ts:43
                        • +
                        • Defined in core/dist/core.types.d.ts:42
                        • +
                        • Defined in core/dist/core.types.d.ts:46
                        • Methods

                          @@ -556,8 +556,6 @@
                          +
                        • Defined in software/lib/os.ts:116
                          • -

                            Returns

                            string

                            -

                            Member Of

                            OS

                            @@ -586,17 +583,16 @@
                            Optional
                        • Optional version: null | string = null
                        • -

                          Returns string

                          +
                        • Defined in software/lib/os.ts:42
                          • -

                            Returns

                            string

                            -

                            Member Of

                            OS

                            @@ -604,17 +600,16 @@

                            Parameters

                            • Optional version: string = ...
                            -

                            Returns string

                          +
                        • Defined in software/lib/os.ts:65
                          • -

                            Returns

                            boolean

                            -

                            Member Of

                            OS

                            @@ -626,17 +621,16 @@
                            Optional Optional version: null | string = null
                          • Optional versionNameFn: null | Function = null
                          -

                          Returns boolean

                          +
                        • Defined in software/lib/os.ts:621
                          • -

                            Returns

                            string

                            -

                            Member Of

                            OS

                            @@ -644,17 +638,16 @@

                            Parameters

                            • Optional version: string = ...
                            -

                            Returns string

                          +
                        • Defined in software/lib/os.ts:433
                          • -

                            Returns

                            string

                            -

                            Member Of

                            OS

                            @@ -662,17 +655,16 @@

                            Parameters

                            • Optional version: string = ...
                            -

                            Returns string

                          +
                        • Defined in software/lib/os.ts:220
                          • -

                            Returns

                            string

                            -

                            Member Of

                            OS

                            @@ -680,9 +672,10 @@

                            Parameters

                            • Optional version: string = ...
                            -

                            Returns string

                          +
                        • Defined in software/lib/os.ts:184
                          • @@ -698,7 +691,7 @@

                            Parameters

                            Optional version: null | string = null

                          Returns void

                          +
                        • Defined in software/lib/os.ts:643
                          • @@ -714,48 +707,45 @@

                            Parameters

                            Optional versionNameFn: null | Function = null

                          Returns void

                          +
                        • Defined in software/lib/os.ts:654
                          • -

                            Returns

                            object

                            -

                            Member Of

                            CssFlagsClass

                            -

                            Returns string[]

                          +
                        • Defined in core/dist/core.types.d.ts:98
                          • -

                            Returns

                            Member Of

                            FlagsClass

                            Returns any

                          +
                        • Defined in core/dist/core.types.d.ts:69
                          • -

                            Returns

                            Member Of

                            FlagsClass

                            Returns {}

                            +
                          • Defined in core/dist/core.types.d.ts:61
                          • -

                            DetectorJS - v2.0.2

                            -

                            detector-js

                            v2.0.2

                            -

                            Description

                            DetectorJS, zero-dependency platform/environment detector written in TypeScript

                            +

                            DetectorJS - v2.0.3

                            +

                            detector-js

                            v2.0.3

                            +

                            Description

                            DetectorJS, zero-dependency platform/environment detector written in TypeScript

                            Please feel free to ask for modifications, fixes or do a PR to improve Detector behavior or add detection rules

                            -

                            Author

                            Emiliano 'Pixu' Pisu <pisuemiliano.1980@gmail.com>

                            -

                            Badges

                            NPM

                            +

                            Author

                            Emiliano 'Pixu' Pisu <pisuemiliano.1980@gmail.com>

                            +

                            Badges

                            NPM

                            NPM downloads/month GitHub stars GitHub forks GitHub issues GitHub license Build Status Coverage Status

                            -

                            Documentation

                            Check out the Latest Documentation here

                            -

                            Installation

                            This is a Node.js module available through the npm registry.

                            +

                            Documentation

                            Check out the Latest Documentation here

                            +

                            Installation

                            This is a Node.js module available through the npm registry.

                            It can be installed using either npm or yarn package managers.

                            -
                            npm i detector-js
                            -
                            -
                            yarn add detector-js
                            -
                            -

                            Usage

                            import { Detector } from 'detector-js';

                            const detector = new Detector();

                            // It's possible to specify a custom userAgent if needed
                            // const detector = new Detector('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15');

                            console.log(detector);
                            // {
                            // engine:{
                            // name:'WebKit',
                            // version:'605.1.15'
                            // },
                            // browser:{
                            // name:'Safari',
                            // version:'12.0.3'
                            // },
                            // os:{
                            // name:'macOS',
                            // version:'10.14.3',
                            // versionName:'Mojave'
                            // },
                            // cpu:{
                            // platform:'MacIntel',
                            // cores:1,
                            // architecture:'x64',
                            // vendor:'intel'
                            // },
                            // gpu:{
                            // webGLVendor:'WebKit',
                            // webGLRenderer:'WebKit WebGL',
                            // vendor:'Intel Inc.',
                            // model:'Intel Iris',
                            // renderer:'Intel Iris OpenGL Engine'
                            // },
                            // platform:'desktop',
                            // feature: {
                            // pointerEnabled:false,
                            // pixelRatio:1,
                            // pointerLock:true,
                            // quirksMode:false,
                            // css3D:true,
                            // cssTransform:true,
                            // cssTransition:true,
                            // deviceMotion:false,
                            // deviceOrientation:false,
                            // contextMenu:false,
                            // classList:false,
                            // placeholder:true,
                            // viewportUnit:true,
                            // remUnit:true,
                            // canvas:true,
                            // svg:true,
                            // webGL:true,
                            // webVR:false,
                            // touch:false,
                            // forceTouch:true,
                            // srcset:true,
                            // sizes:true,
                            // pictureElement:true,
                            // dialogElement:false,
                            // addEventListener:true,
                            // asyncScript:true,
                            // battery:false,
                            // cors:true,
                            // deferScript:true,
                            // file:true,
                            // fileSystem:false,
                            // fullscreen:true,
                            // fullscreenKeyboard:true,
                            // geolocation:true,
                            // historyAPI:true,
                            // littleEndian:false,
                            // localStorage:true,
                            // matchMedia:true,
                            // querySelector:true,
                            // querySelectorAll:true,
                            // serviceWorker:true,
                            // typedArray:true,
                            // userMedia:false,
                            // vibration:false,
                            // worker:true,
                            // audio:{
                            // supported:true,
                            // context:true,
                            // formats:{
                            // mp3:true,
                            // webm:false,
                            // ogg:false,
                            // opus:false,
                            // wav:true,
                            // m4a:true
                            // }
                            // },
                            // video:{
                            // supported:true,
                            // formats:{
                            // mp4:true,
                            // ogv:false,
                            // webm:false
                            // }
                            // }
                            // }
                            // } -
                            -

                            Todo

                              +
                              npm i detector-js
                              +
                              +
                              yarn add detector-js
                              +
                              +

                              Usage

                              import { Detector } from 'detector-js';

                              const detector = new Detector();

                              // It's possible to specify a custom userAgent if needed
                              // const detector = new Detector('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15');

                              console.log(detector);
                              // {
                              // engine:{
                              // name:'WebKit',
                              // version:'605.1.15'
                              // },
                              // browser:{
                              // name:'Safari',
                              // version:'12.0.3'
                              // },
                              // os:{
                              // name:'macOS',
                              // version:'10.14.3',
                              // versionName:'Mojave'
                              // },
                              // cpu:{
                              // platform:'MacIntel',
                              // cores:1,
                              // architecture:'x64',
                              // vendor:'intel'
                              // },
                              // gpu:{
                              // webGLVendor:'WebKit',
                              // webGLRenderer:'WebKit WebGL',
                              // vendor:'Intel Inc.',
                              // model:'Intel Iris',
                              // renderer:'Intel Iris OpenGL Engine'
                              // },
                              // platform:'desktop',
                              // feature: {
                              // pointerEnabled:false,
                              // pixelRatio:1,
                              // pointerLock:true,
                              // quirksMode:false,
                              // css3D:true,
                              // cssTransform:true,
                              // cssTransition:true,
                              // deviceMotion:false,
                              // deviceOrientation:false,
                              // contextMenu:false,
                              // classList:false,
                              // placeholder:true,
                              // viewportUnit:true,
                              // remUnit:true,
                              // canvas:true,
                              // svg:true,
                              // webGL:true,
                              // webVR:false,
                              // touch:false,
                              // forceTouch:true,
                              // srcset:true,
                              // sizes:true,
                              // pictureElement:true,
                              // dialogElement:false,
                              // addEventListener:true,
                              // asyncScript:true,
                              // battery:false,
                              // cors:true,
                              // deferScript:true,
                              // file:true,
                              // fileSystem:false,
                              // fullscreen:true,
                              // fullscreenKeyboard:true,
                              // geolocation:true,
                              // historyAPI:true,
                              // littleEndian:false,
                              // localStorage:true,
                              // matchMedia:true,
                              // querySelector:true,
                              // querySelectorAll:true,
                              // serviceWorker:true,
                              // typedArray:true,
                              // userMedia:false,
                              // vibration:false,
                              // worker:true,
                              // audio:{
                              // supported:true,
                              // context:true,
                              // formats:{
                              // mp3:true,
                              // webm:false,
                              // ogg:false,
                              // opus:false,
                              // wav:true,
                              // m4a:true
                              // }
                              // },
                              // video:{
                              // supported:true,
                              // formats:{
                              // mp4:true,
                              // ogv:false,
                              // webm:false
                              // }
                              // }
                              // }
                              // } +
                              +

                              Todo

                              • refine browsers regexes
                              • refine documentation
                              • implement modular custom build feature
                              • decide to implement or not device infos detection
                              -

                              Dependencies

                            @@ -91,7 +91,7 @@

                            License
                          • Powered By
                          • @@ -16,11 +16,11 @@
                          • @detector-js/core
                          • Module @detector-js/core - v0.0.2

                            -

                            @detector-js/core

                            +

                            @detector-js/core

                            TODO: description

                            -

                            Usage

                            const core = require('@detector-js/core');

                            // TODO: DEMONSTRATE API -
                            +

                            Usage

                            const core = require('@detector-js/core');

                            // TODO: DEMONSTRATE API +
                            @@ -57,7 +57,7 @@

                            Usage

                            @@ -16,11 +16,11 @@
                          • @detector-js/detector
                          • Module @detector-js/detector - v0.0.2

                            -

                            @detector-js/detector

                            +

                            @detector-js/detector

                            TODO: description

                            -

                            Usage

                            const detector = require('@detector-js/detector');

                            // TODO: DEMONSTRATE API -
                            +

                            Usage

                            const detector = require('@detector-js/detector');

                            // TODO: DEMONSTRATE API +
                            @@ -55,7 +55,7 @@

                            Usage

                            @@ -16,11 +16,11 @@
                          • @detector-js/feature
                          • Module @detector-js/feature - v0.0.2

                            -

                            @detector-js/feature

                            +

                            @detector-js/feature

                            TODO: description

                            -

                            Usage

                            const feature = require('@detector-js/feature');

                            // TODO: DEMONSTRATE API -
                            +

                            Usage

                            const feature = require('@detector-js/feature');

                            // TODO: DEMONSTRATE API +
                            @@ -57,7 +57,7 @@

                            Usage

                            @@ -16,11 +16,11 @@
                          • @detector-js/hardware
                          • Module @detector-js/hardware - v0.0.2

                            -

                            @detector-js/hardware

                            +

                            @detector-js/hardware

                            TODO: description

                            -

                            Usage

                            const hardware = require('@detector-js/hardware');

                            // TODO: DEMONSTRATE API -
                            +

                            Usage

                            const hardware = require('@detector-js/hardware');

                            // TODO: DEMONSTRATE API +
                            @@ -58,7 +58,7 @@

                            Usage

                            @@ -16,11 +16,11 @@
                          • @detector-js/software
                          • Module @detector-js/software - v0.0.2

                            -

                            @detector-js/software

                            +

                            @detector-js/software

                            TODO: description

                            -

                            Usage

                            const software = require('@detector-js/software');

                            // TODO: DEMONSTRATE API -
                            +

                            Usage

                            const software = require('@detector-js/software');

                            // TODO: DEMONSTRATE API +
                            @@ -57,7 +57,7 @@

                            Usage