User:Chlod/Scripts/Deputy.js: Difference between revisions

Content deleted Content added
(bot/CD)
(bot/CD)
Line 28:
*
* https://github.com/ChlodAlejandro/deputy
*
* ------------------------------------------------------------------------
*
* This script compiles with the following dependencies:
* * [https://github.com/Microsoft/tslib tslib] - 0BSD, Microsoft
* * [https://github.com/jakearchibald/idb idb] - ISC, Jake Archibald
* * [https://github.com/JSmith01/broadcastchannel-polyfill broadcastchannel-polyfill] - Unlicense, Joshua Bell
* * [https://github.com/Lusito/tsx-dom tsx-dom] - MIT, Santo Pfingsten
*
*/
// <nowiki>
/*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jon Schlinkert
* @url https://github.com/aashutoshrathi/word-wrap
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Justin Ridgewell
* @url https://github.com/ampproject/remapping
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-async-generators
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-bigint
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-json-strings
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-nullish-coalescing-operator
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-object-rest-spread
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-optional-catch-binding
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-optional-chaining
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author The Babel Team
* @url https://github.com/babel/babel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Charles Samborski
* @url https://github.com/demurgos/v8-coverage
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Chlod Alejandro
* @url https://github.com/ChlodAlejandro/parsoid-document
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Brett Zamir
* @url https://github.com/es-joy/jsdoccomment
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Brett Zamir
* @url https://github.com/es-joy/jsdoccomment
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Toru Nagashima
* @url https://github.com/eslint-community/eslint-utils
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Toru Nagashima
* @url https://github.com/eslint-community/regexpp
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Nicholas C. Zakas
* @url https://github.com/eslint/eslintrc
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Nicholas C. Zakas
* @url https://github.com/eslint/eslintrc
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/eslint/eslint
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Nicholas C. Zakas
* @url https://github.com/humanwhocodes/config-array
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Nicholas C. Zaks
* @url https://github.com/humanwhocodes/module-importer
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Nicholas C. Zakas
* @url https://github.com/humanwhocodes/object-schema
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Ben Coe
* @url https://github.com/yargs/cliui
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author undefined
* @url https://github.com/istanbuljs/load-nyc-config
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Corey Farrell
* @url https://github.com/istanbuljs/schema
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Justin Ridgewell
* @url https://github.com/jridgewell/gen-mapping
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Justin Ridgewell
* @url https://github.com/jridgewell/resolve-uri
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Justin Ridgewell
* @url https://github.com/jridgewell/set-array
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/jridgewell/sourcemap-codec
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Justin Ridgewell
* @url https://github.com/jridgewell/trace-mapping
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author aMarCruz
* @url https://github.com/ProJSLib/jsbits
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author aMarCruz
* @url https://github.com/ProJSLib/jsbits
*//*!
* @package deputy
* @version 0.8.0
* @license CC0-1.0
* @author MDN Web Docs
* @url https://github.com/mdn/browser-compat-data
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.scandir
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.stat
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.walk
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/pkgjs/parseargs
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author JounQin
* @url https://github.com/un-ts/pkgr
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/rollup/plugins
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author rollup
* @url https://github.com/rollup/plugins
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author rollup
* @url https://github.com/rollup/plugins
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/rollup/plugins
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/rollup/plugins
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/rollup/plugins
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/rollup/plugins
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/rollup/plugins
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Lukas Taegert-Atkinson
* @url https://github.com/rollup/rollup
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Lukas Taegert-Atkinson
* @url https://github.com/rollup/rollup
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Pine Wu
* @url https://github.com/shikijs/shiki
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author sinclairzx81
* @url https://github.com/sinclairzx81/typebox
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author undefined
* @url https://github.com/sinonjs/commons
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Christian Johansen
* @url https://github.com/sinonjs/fake-timers
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/DefinitelyTyped/DefinitelyTyped
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/typescript-eslint/typescript-eslint
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-2-Clause
* @author undefined
* @url https://github.com/typescript-eslint/typescript-eslint
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/typescript-eslint/typescript-eslint
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/typescript-eslint/typescript-eslint
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/typescript-eslint/typescript-eslint
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/typescript-eslint/typescript-eslint
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-2-Clause
* @author undefined
* @url https://github.com/typescript-eslint/typescript-eslint
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/typescript-eslint/typescript-eslint
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/typescript-eslint/typescript-eslint
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Andrea Giammarchi
* @url https://github.com/ungap/structured-clone
*//*!
* @package deputy
* @version 0.8.0
* @license GPL-2.0+
* @author Wikimedia Foundation
* @url https://gerrit.wikimedia.org/g/design/codex/
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/abbrev-js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/acornjs/acorn-jsx
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/acornjs/acorn
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Evgeny Poberezkin
* @url https://github.com/ajv-validator/ajv
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/ansi-escapes
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/ansi-regex
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/chalk/ansi-regex
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/chalk/ansi-regex
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/ansi-styles
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/chalk/ansi-styles
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/chalk/ansi-styles
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/chalk/ansi-styles
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/chalk/ansi-styles
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Elan Shanker
* @url https://github.com/micromatch/anymatch
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Josh Goldberg
* @url https://github.com/JoshuaKGoldberg/are-docs-informative
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/nodeca/argparse
*//*!
* @package deputy
* @version 0.8.0
* @license Python-2.0
* @author undefined
* @url https://github.com/nodeca/argparse
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/kriskowal/asap
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Amila Welihinda
* @url https://github.com/amilajack/ast-metadata-inferer
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Alex Indigo
* @url https://github.com/alexindigo/asynckit
*//*!
* @package deputy
* @version 0.8.0
* @license (MIT OR Apache-2.0)
* @author AJ ONeal
* @url git://git.coolaj86.com/coolaj86/atob.js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Matt Zabriskie
* @url https://github.com/axios/axios
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Thai Pangsakulyanont @dtinth
* @url https://github.com/istanbuljs/babel-plugin-istanbul
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Nicolò Ribaudo
* @url https://github.com/nicolo-ribaudo/babel-preset-current-node-syntax
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Julian Gruber
* @url https://github.com/juliangruber/balanced-match
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Felix Boehm
* @url https://github.com/fb55/boolbase
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Julian Gruber
* @url https://github.com/juliangruber/brace-expansion
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Julian Gruber
* @url https://github.com/juliangruber/brace-expansion
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jon Schlinkert
* @url https://github.com/micromatch/braces
*//*!
* @package deputy
* @version 0.8.0
* @license Unlicense
* @author Joshua Bell
* @url https://github.com/JSmith01/broadcastchannel-polyfill
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://gitlab.wikimedia.org/repos/ci-tools/browserslist-config-wikimedia
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Andrey Sitnik
* @url https://github.com/browserslist/browserslist
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Huafu Gandon
* @url https://github.com/huafu/bs-logger
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Wez Furlong
* @url https://github.com/facebook/watchman
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/LinusU/buffer-from
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/builtin-modules
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/callsites
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/camelcase
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/camelcase
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/camelcase
*//*!
* @package deputy
* @version 0.8.0
* @license CC-BY-4.0
* @author Ben Briggs
* @url https://github.com/browserslist/caniuse-lite
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/sindresorhus/chalk
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/chalk/chalk
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/chalk/chalk
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Richie Bendall
* @url https://github.com/Richienb/char-regex
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Thomas Watson Steen
* @url https://github.com/watson/ci-info
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Thomas Watson Steen
* @url https://github.com/watson/ci-info
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Guy Bedford
* @url https://github.com/nodejs/cjs-module-lexer
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sam Verschueren
* @url https://github.com/SamVerschueren/clean-regexp
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Ben Coe
* @url https://github.com/yargs/cliui
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/tj/co
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/SimenB/collect-v8-coverage
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Heather Arthur
* @url https://github.com/Qix-/color-convert
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Heather Arthur
* @url https://github.com/Qix-/color-convert
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author DY
* @url https://github.com/dfcreative/color-name
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author DY
* @url https://github.com/colorjs/color-name
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Felix Geisendörfer
* @url https://github.com/felixge/node-combined-stream
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sergiy Yavorsky
* @url https://github.com/yavorskiy/comment-parser
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author James Halliday
* @url https://github.com/substack/node-commondir
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author James Halliday
* @url https://github.com/substack/node-concat-map
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Thorsten Lorenz
* @url https://github.com/thlorenz/convert-source-map
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Denis Pushkarev
* @url https://github.com/zloirock/core-js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/core-util-is
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Kent C. Dodds
* @url https://github.com/kentcdodds/cross-env
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author André Cruz
* @url https://github.com/moxystudio/node-cross-spawn
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Mathias Bynens
* @url https://github.com/mathiasbynens/cssesc
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author TJ Holowaychuk
* @url https://github.com/visionmedia/debug
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Josh Junon
* @url https://github.com/debug-js/debug
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sam Roberts
* @url https://github.com/sam-github/node-debuglog
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sam Verschueren
* @url https://github.com/SamVerschueren/decode-uri-component
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Desmond Brand
* @url https://github.com/dmnd/dedent
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Thorsten Lorenz
* @url https://github.com/thlorenz/deep-is
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/TehShrike/deepmerge
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/define-lazy-prop
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Felix Geisendörfer
* @url https://github.com/felixge/node-delayed-stream
*//*!
* @package deputy
* @version 0.8.0
* @license UNLICENSED
* @author ChlodAlejandro
* @url https://github.com/ChlodAlejandro/deputy
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/detect-newline
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/npm/dezalgo
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author undefined
* @url https://github.com/eslint/doctrine
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Masaki Komagata
* @url https://github.com/komagata/eastasianwidth
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Kilian Valkhof
* @url https://github.com/kilian/electron-to-chromium
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/emittery
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Mathias Bynens
* @url https://github.com/mathiasbynens/emoji-regex
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Mathias Bynens
* @url https://github.com/mathiasbynens/emoji-regex
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Tobias Koppers @sokra
* @url https://github.com/webpack/enhanced-resolve
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-2-Clause
* @author Felix Boehm
* @url https://github.com/fb55/entities
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/qix-/node-error-ex
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Guy Bedford
* @url https://github.com/guybedford/es-module-lexer
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Luke Edwards
* @url https://github.com/lukeed/escalade
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/escape-string-regexp
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/escape-string-regexp
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/escape-string-regexp
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Yosuke Ota
* @url https://github.com/ota-meshi/eslint-compat-utils
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/wikimedia/eslint-config-wikimedia
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Amila Welihinda
* @url https://github.com/amilajack/eslint-plugin-compat
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Amila Welihinda
* @url https://github.com/amilajack/eslint-plugin-compat
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Toru Nagashima
* @url https://github.com/eslint-community/eslint-plugin-es-x
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jonathan Kim
* @url https://github.com/jest-community/eslint-plugin-jest
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Gajus Kuizinas
* @url https://github.com/gajus/eslint-plugin-jsdoc
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Gajus Kuizinas
* @url https://github.com/gajus/eslint-plugin-jsdoc
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Christian Schuller
* @url https://github.com/zeitport/eslint-plugin-json-es
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/wikimedia/eslint-plugin-mediawiki
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Mathias Schreck
* @url https://github.com/lo1tuma/eslint-plugin-mocha
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Toru Nagashima
* @url https://github.com/eslint-community/eslint-plugin-n
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/wikimedia/eslint-plugin-no-jquery
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Kevin Partington
* @url https://github.com/platinumazure/eslint-plugin-qunit
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Node Security Project
* @url https://github.com/eslint-community/eslint-plugin-security
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/eslint-plugin-unicorn
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Toru Nagashima
* @url https://github.com/vuejs/eslint-plugin-vue
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Christian Bromann
* @url https://github.com/webdriverio/webdriverio
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Yosuke Ota
* @url https://github.com/ota-meshi/eslint-plugin-yml
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-2-Clause
* @author undefined
* @url https://github.com/eslint/eslint-scope
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Toru Nagashima
* @url https://github.com/mysticatea/eslint-utils
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Toru Nagashima
* @url https://github.com/eslint/eslint-visitor-keys
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Toru Nagashima
* @url https://github.com/eslint/eslint-visitor-keys
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Toru Nagashima
* @url https://github.com/eslint/eslint-visitor-keys
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Nicholas C. Zakas
* @url https://github.com/eslint/eslint
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-2-Clause
* @author Nicholas C. Zakas
* @url https://github.com/eslint/espree
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-2-Clause
* @author Nicholas C. Zakas
* @url https://github.com/eslint/espree
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-2-Clause
* @author Ariya Hidayat
* @url https://github.com/jquery/esprima
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Joel Feenstra
* @url https://github.com/estools/esquery
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-2-Clause
* @author undefined
* @url https://github.com/estools/esrecurse
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-2-Clause
* @author undefined
* @url https://github.com/estools/estraverse
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/Rich-Harris/estree-walker
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/Rich-Harris/estree-walker
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/Rich-Harris/estree-walker
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-2-Clause
* @author undefined
* @url https://github.com/estools/esutils
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/execa
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author "Cowboy" Ben Alman
* @url https://github.com/cowboy/node-exit
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Evgeny Poberezkin
* @url https://github.com/epoberezkin/fast-deep-equal
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Denis Malinochkin
* @url https://github.com/mrmlnc/fast-glob
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author James Halliday
* @url https://github.com/epoberezkin/fast-json-stable-stringify
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Ramesh Nair
* @url https://github.com/hiddentao/fast-levenshtein
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Matteo Collina
* @url https://github.com/mcollina/fastq
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Wez Furlong
* @url https://github.com/facebook/watchman
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Roy Riojas
* @url https://github.com/royriojas/file-entry-cache
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jon Schlinkert
* @url https://github.com/jonschlinkert/fill-range
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/avajs/find-cache-dir
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/find-up
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/find-up
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Roy Riojas
* @url https://github.com/royriojas/flat-cache
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Andrea Giammarchi
* @url https://github.com/WebReflection/flatted
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Ruben Verborgh
* @url https://github.com/follow-redirects/follow-redirects
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/tapjs/foreground-child
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Felix Geisendörfer
* @url https://github.com/form-data/form-data
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author JP Richardson
* @url https://github.com/jprichardson/node-fs-extra
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/fs.realpath
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Raynos
* @url https://github.com/Raynos/function-bind
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Logan Smyth
* @url https://github.com/loganfsmyth/gensync
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Stefan Penner
* @url https://github.com/stefanpenner/get-caller-file
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Corey Farrell
* @url https://github.com/cfware/get-package-type
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/get-stream
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Hiroki Osame
* @url https://github.com/privatenumber/get-tsconfig
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Gulp Team
* @url https://github.com/gulpjs/glob-parent
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Gulp Team
* @url https://github.com/gulpjs/glob-parent
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/node-glob
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/node-glob
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/globals
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/globals
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/globals
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/globals
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/globals
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author undefined
* @url https://github.com/isaacs/node-graceful-fs
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Matt Davies
* @url https://github.com/flmnt/graphemer
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/has-ansi
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/has-flag
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/has-flag
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Thiago de Arruda
* @url https://github.com/tarruda/has
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Rebecca Turner
* @url https://github.com/npm/hosted-git-info
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Andrea Giammarchi
* @url https://github.com/WebReflection/html-escaper
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author ehmicky
* @url https://github.com/ehmicky/human-signals
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Jake Archibald
* @url https://github.com/jakearchibald/idb
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author kael
* @url https://github.com/kaelzhang/node-ignore
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/calvinmetcalf/immediate
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/import-fresh
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/import-local
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jens Taylor
* @url https://github.com/jensyt/imurmurhash-js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/indent-string
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/npm/inflight
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author undefined
* @url https://github.com/isaacs/inherits
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Gulp Team
* @url https://github.com/gulpjs/interpret
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Qix
* @url https://github.com/qix-/node-is-arrayish
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/is-builtin-module
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jordan Harband
* @url https://github.com/inspect-js/is-core-module
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/is-docker
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jon Schlinkert
* @url https://github.com/jonschlinkert/is-extglob
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/is-fullwidth-code-point
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/is-generator-fn
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jon Schlinkert
* @url https://github.com/micromatch/is-glob
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jonathan Ong
* @url https://github.com/component/is-module
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jon Schlinkert
* @url https://github.com/jonschlinkert/is-number
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/is-path-inside
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/Rich-Harris/is-reference
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/is-stream
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/is-wsl
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Julian Gruber
* @url https://github.com/juliangruber/isarray
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/isexe
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Krishnan Anantheswaran
* @url https://github.com/istanbuljs/istanbuljs
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Krishnan Anantheswaran
* @url https://github.com/istanbuljs/istanbuljs
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Krishnan Anantheswaran
* @url https://github.com/istanbuljs/istanbuljs
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Krishnan Anantheswaran
* @url https://github.com/istanbuljs/istanbuljs
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Krishnan Anantheswaran
* @url https://github.com/istanbuljs/istanbuljs
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Krishnan Anantheswaran
* @url https://github.com/istanbuljs/istanbuljs
*//*!
* @package deputy
* @version 0.8.0
* @license Custom: https://github.com/isaacs/jackspeak/tree/master/examples
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/jackspeak
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Matt Phillips
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/arcanis/jest-pnp-resolver
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author OpenJS Foundation and other contributors
* @url https://github.com/jquery/jquery
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Simon Lydell
* @url https://github.com/lydell/js-tokens
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Vladimir Zapparov
* @url https://github.com/nodeca/js-yaml
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Vladimir Zapparov
* @url https://github.com/nodeca/js-yaml
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author aMarCruz
* @url https://github.com/aMarCruz/jscc
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Simon Seyock
* @url https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Simon Seyock
* @url https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Mathias Bynens
* @url https://github.com/mathiasbynens/jsesc
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Mathias Bynens
* @url https://github.com/mathiasbynens/jsesc
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Mathias Bynens
* @url https://github.com/mathiasbynens/jsesc
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Kat Marchán
* @url https://github.com/npm/json-parse-even-better-errors
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Evgeny Poberezkin
* @url https://github.com/epoberezkin/json-schema-traverse
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author James Halliday
* @url https://github.com/samn/json-stable-stringify
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Aseem Kishore
* @url https://github.com/json5/json5
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author JP Richardson
* @url https://github.com/jprichardson/node-jsonfile
*//*!
* @package deputy
* @version 0.8.0
* @license MIT*
* @author Stuart Knightley
* @url https://github.com/Stuk/jszip
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Luke Edwards
* @url https://github.com/lukeed/kleur
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/leven
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author George Zahariev
* @url https://github.com/gkz/levn
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Dav Glass
* @url https://github.com/davglass/license-checker
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/calvinmetcalf/lie
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Brian Donovan
* @url https://github.com/eventualbuddha/lines-and-columns
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/markdown-it/linkify-it
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/locate-path
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/locate-path
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author John-David Dalton
* @url https://github.com/lodash/lodash
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author John-David Dalton
* @url https://github.com/lodash/lodash
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author John-David Dalton
* @url https://github.com/lodash/lodash
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/node-lru-cache
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/node-lru-cache
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/node-lru-cache
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Oliver Nightingale
* @url https://github.com/olivernn/lunr.js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/rich-harris/magic-string
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/rich-harris/magic-string
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/make-dir
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/make-dir
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Julien Fontanet
* @url https://github.com/JsCommunity/make-error
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Naitik Shah
* @url https://github.com/daaku/nodejs-makeerror
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/markdown-it/markdown-it
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Titus Wormer
* @url https://github.com/wooorm/markdown-table
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/markdown-it/mdurl
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Stephen Sugden
* @url https://github.com/grncdr/merge-stream
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/teambition/merge2
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jon Schlinkert
* @url https://github.com/micromatch/micromatch
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jshttp/mime-db
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/jshttp/mime-types
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Robert Kieffer
* @url https://github.com/broofa/mime
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/mimic-fn
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author James Kyle
* @url https://github.com/thejameskyle/min-indent
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/minimatch
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/minimatch
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author James Halliday
* @url https://github.com/substack/minimist
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/minipass
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author James Halliday
* @url https://github.com/substack/node-mkdirp
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Iskren Ivov Chernev
* @url https://github.com/moment/moment
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/zeit/ms
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/zeit/ms
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Lauri Rooden
* @url https://github.com/litejs/natural-compare-lite
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Robert Kieffer
* @url https://github.com/broofa/node-int64
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sergey Rubanov
* @url https://github.com/chicoxyzzy/node-releases
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/nopt
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-2-Clause
* @author Meryn Stol
* @url https://github.com/npm/normalize-package-data
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jon Schlinkert
* @url https://github.com/jonschlinkert/normalize-path
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/npm/npm-normalize-package-bin
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/npm-run-path
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-2-Clause
* @author Felix Boehm
* @url https://github.com/fb55/nth-check
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/once
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/onetime
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://gerrit.wikimedia.org/r/oojs/ui
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://gerrit.wikimedia.org/g/oojs/core
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/open
*//*!
* @package deputy
* @version 0.8.0
* @license (WTFPL OR MIT)
* @author Domenic Denicola
* @url https://github.com/domenic/opener
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author George Zahariev
* @url https://github.com/gkz/optionator
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/p-limit
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/p-limit
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/p-locate
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/p-locate
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/p-try
*//*!
* @package deputy
* @version 0.8.0
* @license Custom: https://github.com/isaacs/tshy
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/package-json-from-dist
*//*!
* @package deputy
* @version 0.8.0
* @license (MIT AND Zlib)
* @author undefined
* @url https://github.com/nodeca/pako
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/parent-module
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Tomer Aberbach
* @url https://github.com/TomerAberbach/parse-imports
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/parse-json
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/path-exists
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/path-is-absolute
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/path-key
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Javier Blanco
* @url https://github.com/jbgutierrez/path-parse
*//*!
* @package deputy
* @version 0.8.0
* @license Custom: http://npm.im/glob
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/path-scurry
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author aMarCruz
* @url https://github.com/aMarCruz/perf-regexes
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Alexey Raspopov
* @url https://github.com/alexeyraspopov/picocolors
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jon Schlinkert
* @url https://github.com/micromatch/picomatch
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Ari Porad
* @url https://github.com/danez/pirates
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/pkg-dir
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Blake Embrey
* @url https://github.com/blakeembrey/pluralize
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/postcss/postcss-selector-parser
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author George Zahariev
* @url https://github.com/gkz/prelude-ls
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author James Kyle
* @url https://github.com/jestjs/jest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/calvinmetcalf/process-nextick-args
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Terkel Gjervig
* @url https://github.com/terkelg/prompts
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rob Wu
* @url https://github.com/Rob--W/proxy-from-env
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Mathias Bynens
* @url https://github.com/mathiasbynens/punycode.js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Mathias Bynens
* @url https://github.com/mathiasbynens/punycode.js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Nicolas DUBIEN
* @url https://github.com/dubzzz/pure-rand
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Feross Aboukhadijeh
* @url https://github.com/feross/queue-microtask
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author self_refactor
* @url https://github.com/selfrefactor/rambda
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/facebook/react
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/read-installed
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/npm/read-package-json
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/read-pkg-up
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/read-pkg
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/nodejs/readable-stream
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/npm/readdir-scoped-modules
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Tyler Kellen
* @url https://github.com/tkellen/node-rechoir
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Dmitry Soshnikov
* @url https://github.com/DmitrySoshnikov/regexp-tree
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-2-Clause
* @author 'Julian Viereck'
* @url https://github.com/jviereck/regjsparser
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Troy Goode
* @url https://github.com/troygoode/node-require-directory
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Stephen Handley
* @url https://github.com/stephenhandley/requireindex
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/resolve-cwd
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/resolve-from
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/resolve-from
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Hiroki Osame
* @url https://github.com/privatenumber/resolve-pkg-maps
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Luke Edwards
* @url https://github.com/lukeed/resolve.exports
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author James Halliday
* @url https://github.com/browserify/resolve
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Matteo Collina
* @url https://github.com/mcollina/reusify
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/rimraf
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Mike Frysinger
* @url https://github.com/vapier/rollup-plugin-git-info
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author aMarCruz
* @url https://github.com/aMarCruz/rollup-plugin-jscc
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Paul Sweeney
* @url undefined
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Thomas Ghysels
* @url https://github.com/thgh/rollup-plugin-serve
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Max Davidson
* @url https://github.com/maxdavidson/rollup-plugin-sourcemaps
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Bogdan Chadkin
* @url https://github.com/TrySound/rollup-plugin-string
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author @ezolenko
* @url https://github.com/ezolenko/rollup-plugin-typescript2
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Denis Bardadym
* @url https://github.com/btd/rollup-plugin-visualizer
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/rollup/rollup-pluginutils
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/rollup/rollup
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/rollup/rollup
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Feross Aboukhadijeh
* @url https://github.com/feross/run-parallel
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Feross Aboukhadijeh
* @url https://github.com/feross/safe-buffer
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author James C.
* @url https://github.com/davisjam/safe-regex
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author undefined
* @url https://github.com/SeleniumHQ/selenium
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author GitHub Inc.
* @url https://github.com/npm/node-semver
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author YuzuJS
* @url https://github.com/YuzuJS/setImmediate
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Kevin Mårtensson
* @url https://github.com/kevva/shebang-command
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/shebang-regex
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author undefined
* @url https://github.com/shelljs/shelljs
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Pine Wu
* @url https://github.com/shikijs/shiki
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/shelljs/shx
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Ben Coe
* @url https://github.com/tapjs/signal-exit
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Ben Coe
* @url https://github.com/tapjs/signal-exit
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Terkel Gjervig
* @url https://github.com/terkelg/sisteransi
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author aMarCruz
* @url https://github.com/aMarCruz/skip-regex
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/slash
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Chris Ackerman
* @url https://github.com/Shakeskeyboarde/slashes
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/slide-flow-control
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Simon Lydell
* @url https://github.com/lydell/source-map-resolve
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/evanw/node-source-map-support
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Nick Fitzgerald
* @url https://github.com/mozilla/source-map
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Nick Fitzgerald
* @url https://github.com/mozilla/source-map
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Rich Harris
* @url https://github.com/Rich-Harris/sourcemap-codec
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Kyle E. Mitchell
* @url https://github.com/kemitchell/spdx-compare.js
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Kyle E. Mitchell
* @url https://github.com/jslicense/spdx-correct.js
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Kyle E. Mitchell
* @url https://github.com/jslicense/spdx-correct.js
*//*!
* @package deputy
* @version 0.8.0
* @license CC-BY-3.0
* @author The Linux Foundation
* @url https://github.com/kemitchell/spdx-exceptions.json
*//*!
* @package deputy
* @version 0.8.0
* @license CC-BY-3.0
* @author The Linux Foundation
* @url https://github.com/kemitchell/spdx-exceptions.json
*//*!
* @package deputy
* @version 0.8.0
* @license CC-BY-3.0
* @author The Linux Foundation
* @url https://github.com/kemitchell/spdx-exceptions.json
*//*!
* @package deputy
* @version 0.8.0
* @license (MIT AND CC-BY-3.0)
* @author Kyle E. Mitchell
* @url https://github.com/kemitchell/spdx-expression-parse.js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Kyle E. Mitchell
* @url https://github.com/jslicense/spdx-expression-parse.js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Kyle E. Mitchell
* @url https://github.com/jslicense/spdx-expression-parse.js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Kyle E. Mitchell
* @url https://github.com/jslicense/spdx-expression-parse.js
*//*!
* @package deputy
* @version 0.8.0
* @license Unlicense
* @author Shinnosuke Watanabe
* @url https://github.com/shinnn/spdx-license-ids
*//*!
* @package deputy
* @version 0.8.0
* @license CC0-1.0
* @author Shinnosuke Watanabe
* @url https://github.com/shinnn/spdx-license-ids
*//*!
* @package deputy
* @version 0.8.0
* @license CC0-1.0
* @author Shinnosuke Watanabe
* @url https://github.com/jslicense/spdx-license-ids
*//*!
* @package deputy
* @version 0.8.0
* @license CC0-1.0
* @author Shinnosuke Watanabe
* @url https://github.com/jslicense/spdx-license-ids
*//*!
* @package deputy
* @version 0.8.0
* @license CC-BY-3.0
* @author The Linux Foundation
* @url https://github.com/kemitchell/spdx-ranges.js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Kyle E. Mitchell
* @url https://github.com/kemitchell/spdx-satisfies.js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Kyle E. Mitchell
* @url https://github.com/kemitchell/spdx.js
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Alexandru Marasteanu
* @url https://github.com/alexei/sprintf.js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author James Talmage
* @url https://github.com/tapjs/stack-utils
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/string-length
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/string-width
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/string-width
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/nodejs/string_decoder
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/strip-ansi
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/chalk/strip-ansi
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/chalk/strip-ansi
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/strip-bom
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/strip-final-newline
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/strip-indent
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/strip-json-comments
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/supports-color
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/chalk/supports-color
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/chalk/supports-color
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/chalk/supports-color
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jordan Harband
* @url https://github.com/inspect-js/node-supports-preserve-symlinks-flag
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author JounQin
* @url https://github.com/un-ts/synckit
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Tobias Koppers @sokra
* @url https://github.com/webpack/tapable
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Ben Coe
* @url https://github.com/istanbuljs/test-exclude
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author James Halliday
* @url https://github.com/substack/text-table
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author KARASZI István
* @url https://github.com/raszi/node-tmp
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-3-Clause
* @author Naitik Shah
* @url https://github.com/daaku/nodejs-tmpl
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/to-fast-properties
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jon Schlinkert
* @url https://github.com/micromatch/to-regex-range
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Luke Plaster
* @url https://github.com/notatestuser/treeify
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author JoshuaKGoldberg
* @url https://github.com/JoshuaKGoldberg/ts-api-utils
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Kulshekhar Kabra
* @url https://github.com/kulshekhar/ts-jest
*//*!
* @package deputy
* @version 0.8.0
* @license 0BSD
* @author Microsoft Corp.
* @url https://github.com/Microsoft/tslib
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Santo Pfingsten
* @url https://github.com/Lusito/tsx-dom
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author George Zahariev
* @url https://github.com/gkz/type-check
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Jake Luer
* @url https://github.com/chaijs/type-detect
*//*!
* @package deputy
* @version 0.8.0
* @license (MIT OR CC0-1.0)
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/type-fest
*//*!
* @package deputy
* @version 0.8.0
* @license (MIT OR CC0-1.0)
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/type-fest
*//*!
* @package deputy
* @version 0.8.0
* @license (MIT OR CC0-1.0)
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/type-fest
*//*!
* @package deputy
* @version 0.8.0
* @license (MIT OR CC0-1.0)
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/type-fest
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/Gerrit0/typedoc-plugin-mdn-links
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Gerrit Birkeland
* @url https://github.com/Gerrit0/typedoc-plugin-missing-exports
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Felipe Santos
* @url https://github.com/felipecrs/typedoc-plugin-rename-defaults
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author undefined
* @url https://github.com/TypeStrong/TypeDoc
*//*!
* @package deputy
* @version 0.8.0
* @license GPL-3.0*
* @author undefined
* @url https://github.com/wikimedia-gadgets/types-mediawiki
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Microsoft Corp.
* @url https://github.com/Microsoft/TypeScript
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/markdown-it/uc.micro
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Ryan Zimmerman
* @url https://github.com/RyanZim/universalify
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Angelos Pikoulas
* @url https://github.com/anodynos/upath
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Andrey Sitnik
* @url https://github.com/browserslist/update-db
*//*!
* @package deputy
* @version 0.8.0
* @license BSD-2-Clause
* @author Gary Court
* @url https://github.com/garycourt/uri-js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Nathan Rajlich
* @url https://github.com/TooTallNate/util-deprecate
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/isaacs/util-extend
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Ben Coe
* @url https://github.com/istanbuljs/v8-to-istanbul
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Kyle E. Mitchell
* @url https://github.com/kemitchell/validate-npm-package-license.js
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Toru Nagashima
* @url https://github.com/vuejs/vue-eslint-parser
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Naitik Shah
* @url https://github.com/daaku/nodejs-walker
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/node-which
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/chalk/wrap-ansi
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/chalk/wrap-ansi
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/npm/wrappy
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author GitHub Inc.
* @url https://github.com/npm/write-file-atomic
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Einar Otto Stangvik
* @url https://github.com/websockets/ws
*//*!
* @package deputy
* @version 0.8.0
* @license Apache-2.0
* @author Domenic Denicola
* @url https://github.com/jsdom/xml-name-validator
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Ben Coe
* @url https://github.com/yargs/y18n
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/yallist
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Isaac Z. Schlueter
* @url https://github.com/isaacs/yallist
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Yosuke Ota
* @url https://github.com/ota-meshi/yaml-eslint-parser
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Eemeli Aro
* @url https://github.com/eemeli/yaml
*//*!
* @package deputy
* @version 0.8.0
* @license ISC
* @author Ben Coe
* @url https://github.com/yargs/yargs-parser
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author undefined
* @url https://github.com/yargs/yargs
*//*!
* @package deputy
* @version 0.8.0
* @license MIT
* @author Sindre Sorhus
* @url https://github.com/sindresorhus/yocto-queue
*//*!
* @package tslib
* @version 2.6.2
* @license 0BSD
* @author Microsoft Corp.
* @url https://github.com/Microsoft/tslib
*//*!
* @package idb
* @version 8.0.0
* @license ISC
* @author Jake Archibald
* @url https://github.com/jakearchibald/idb
*//*!
* @package tsx-dom
* @version 1.4.0
* @license MIT
* @author Santo Pfingsten
* @url https://github.com/Lusito/tsx-dom
*//*!
* @package broadcastchannel-polyfill
* @version 1.0.1
* @license Unlicense
* @author Joshua Bell
* @url https://github.com/JSmith01/broadcastchannel-polyfill
*//*!
* @package @chlodalejandro/parsoid
* @version 2.0.1-37ea110
* @license MIT
* @author Chlod Alejandro
* @url https://github.com/ChlodAlejandro/parsoid-document
*/
(function () {
'use strict';
Line 3,757 ⟶ 56:
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
 
 
Line 4,066 ⟶ 365:
 
var version = "0.8.0";
var gitAbbrevHash = "353707082f13a4";
var gitBranch = "main";
var gitDate = "SunMon, 1518 SepNov 2024 2201:0037:3120 +0800";
var gitVersion = "0.8.0+g3537070g82f13a4";
 
/**
Line 4,595 ⟶ 894:
*/
class DeputyCase {
/**
* @param pageId The page ID of the case page.
* @param title The title of the case page.
*/
constructor(pageId, title) {
this.pageId = pageId;
this.title = title;
}
/**
* @return the title of the case page
Line 4,648 ⟶ 939:
return new DeputyCase(pageId, title);
});
}
/**
* @param pageId The page ID of the case page.
* @param title The title of the case page.
*/
constructor(pageId, title) {
this.pageId = pageId;
this.title = title;
}
/**
Line 4,878 ⟶ 1,177:
*/
class DeputyCasePage extends DeputyCase {
/**
* @param pageId The page ID of the case page.
* @param title The title of the page being accessed
* @param document The document to be used as a reference.
* @param parsoid Whether this is a Parsoid document or not.
* @param lastActive
* @param lastActiveSessions
*/
constructor(pageId, title, document, parsoid, lastActive, lastActiveSessions) {
super(pageId !== null && pageId !== void 0 ? pageId : window.deputy.currentPageId, title !== null && title !== void 0 ? title : window.deputy.currentPage);
/**
* A timestamp of when this case page was last worked on.
*/
this.lastActive = Date.now();
/**
* The sections last worked on for this case page.
*/
this.lastActiveSections = [];
this.document = document !== null && document !== void 0 ? document : window.document;
this.parsoid = parsoid !== null && parsoid !== void 0 ? parsoid : /mw: http:\/\/mediawiki.org\/rdf\//.test(this.document.documentElement.getAttribute('prefix'));
this.wikitext = new DeputyCasePageWikitext(this);
this.lastActive = lastActive !== null && lastActive !== void 0 ? lastActive : Date.now();
this.lastActiveSections = lastActiveSessions !== null && lastActiveSessions !== void 0 ? lastActiveSessions : [];
}
/**
* @param pageId The page ID of the case page.
Line 4,933 ⟶ 1,208:
}
});
}
/**
* @param pageId The page ID of the case page.
* @param title The title of the page being accessed
* @param document The document to be used as a reference.
* @param parsoid Whether this is a Parsoid document or not.
* @param lastActive
* @param lastActiveSessions
*/
constructor(pageId, title, document, parsoid, lastActive, lastActiveSessions) {
super(pageId !== null && pageId !== void 0 ? pageId : window.deputy.currentPageId, title !== null && title !== void 0 ? title : window.deputy.currentPage);
/**
* A timestamp of when this case page was last worked on.
*/
this.lastActive = Date.now();
/**
* The sections last worked on for this case page.
*/
this.lastActiveSections = [];
this.document = document !== null && document !== void 0 ? document : window.document;
this.parsoid = parsoid !== null && parsoid !== void 0 ? parsoid : /mw: http:\/\/mediawiki.org\/rdf\//.test(this.document.documentElement.getAttribute('prefix'));
this.wikitext = new DeputyCasePageWikitext(this);
this.lastActive = lastActive !== null && lastActive !== void 0 ? lastActive : Date.now();
this.lastActiveSections = lastActiveSessions !== null && lastActiveSessions !== void 0 ? lastActiveSessions : [];
}
/**
Line 5,957 ⟶ 2,256:
*/
class UserConfiguration extends ConfigurationBase {
/**
* @return the configuration from the current wiki.
*/
static load() {
const config = new UserConfiguration();
try {
if (mw.user.options.get(UserConfiguration.optionKey)) {
const decodedOptions = JSON.parse(mw.user.options.get(UserConfiguration.optionKey));
config.deserialize(decodedOptions);
}
}
catch (e) {
error(e, mw.user.options.get(UserConfiguration.optionKey));
mw.hook('deputy.i18nDone').add(function notifyConfigFailure() {
mw.notify(mw.msg('deputy.loadError.userConfig'), {
type: 'error'
});
mw.hook('deputy.i18nDone').remove(notifyConfigFailure);
});
config.save();
}
return config;
}
/**
* Creates a new Configuration.
Line 6,121 ⟶ 2,443:
});
}
}
/**
* @return the configuration from the current wiki.
*/
static load() {
const config = new UserConfiguration();
try {
if (mw.user.options.get(UserConfiguration.optionKey)) {
const decodedOptions = JSON.parse(mw.user.options.get(UserConfiguration.optionKey));
config.deserialize(decodedOptions);
}
}
catch (e) {
error(e, mw.user.options.get(UserConfiguration.optionKey));
mw.hook('deputy.i18nDone').add(function notifyConfigFailure() {
mw.notify(mw.msg('deputy.loadError.userConfig'), {
type: 'error'
});
mw.hook('deputy.i18nDone').remove(notifyConfigFailure);
});
config.save();
}
return config;
}
/**
Line 6,164 ⟶ 2,463:
function initConfigurationGroupTabPanel$1() {
InternalConfigurationGroupTabPanel$1 = class ConfigurationGroupTabPanel extends OO.ui.TabPanelLayout {
/**
* @return The {@Link Setting}s for this group.
*/
get settings() {
return this.config.config.all[this.config.group];
}
/**
* @param config Configuration to be passed to the element.
Line 6,212 ⟶ 2,517:
}
}
}
/**
* @return The {@Link Setting}s for this group.
*/
get settings() {
return this.config.config.all[this.config.group];
}
/**
Line 6,877 ⟶ 3,176:
var _a;
InternalConfigurationGroupTabPanel = (_a = class ConfigurationGroupTabPanel extends OO.ui.TabPanelLayout {
/**
* @return The {@Link Setting}s for this group.
*/
get settings() {
return this.config.config.all[this.config.group];
}
/**
*/
Line 6,908 ⟶ 3,213:
unwrapJQ(h_1("p", { style: { fontSize: '0.9em', color: 'darkgray' } }), mw.message('deputy.about.buildInfo', gitVersion, gitBranch, new Date(gitDate).toLocaleString()).parseDom()),
unwrapJQ(h_1("p", { style: { fontSize: '0.9em', color: 'darkgray' } }), mw.message('deputy.about.footer').parseDom())));
}
/**
* @return The {@Link Setting}s for this group.
*/
get settings() {
return this.config.config.all[this.config.group];
}
/**
Line 7,321 ⟶ 3,620:
*/
class WikiConfiguration extends ConfigurationBase {
/**
* Loads the configuration from a set of possible sources.
*
* @param sourcePage The specific page to load from
* @return A WikiConfiguration object
*/
static load(sourcePage) {
return __awaiter(this, void 0, void 0, function* () {
if (sourcePage) {
// Explicit source given. Do not load from local cache.
return this.loadFromWiki(sourcePage);
}
else {
return this.loadFromLocal();
}
});
}
/**
* Loads the wiki configuration from localStorage and/or MediaWiki
* settings. This allows for faster loads at the expense of a (small)
* chance of outdated configuration.
*
* The localStorage layer allows fast browser-based caching. If a user
* is logging in again on another device, the user configuration
* will automatically be sent to the client, lessening turnaround time.
* If all else fails, the configuration will be loaded from the wiki.
*
* @return A WikiConfiguration object.
*/
static loadFromLocal() {
return __awaiter(this, void 0, void 0, function* () {
let configInfo;
// If `mw.storage.get` returns `false` or `null`, it'll be thrown up.
let rawConfigInfo = mw.storage.get(WikiConfiguration.optionKey);
// Try to grab it from user options, if it exists.
if (!rawConfigInfo) {
rawConfigInfo = mw.user.options.get(WikiConfiguration.optionKey);
}
if (typeof rawConfigInfo === 'string') {
try {
configInfo = JSON.parse(rawConfigInfo);
}
catch (e) {
// Bad local! Switch to non-local.
error('Failed to get Deputy wiki configuration', e);
return this.loadFromWiki();
}
}
else {
log('No locally-cached Deputy configuration, pulling from wiki.');
return this.loadFromWiki();
}
if (configInfo) {
return new WikiConfiguration(new mw.Title(configInfo.title.title, configInfo.title.namespace), JSON.parse(configInfo.wt), configInfo.editable);
}
else {
return this.loadFromWiki();
}
});
}
/**
* Loads the configuration from the current wiki.
*
* @param sourcePage The specific page to load from
* @return A WikiConfiguration object
*/
static loadFromWiki(sourcePage) {
return __awaiter(this, void 0, void 0, function* () {
const configPage = sourcePage ? Object.assign({ title: sourcePage }, yield (() => __awaiter(this, void 0, void 0, function* () {
const content = yield getPageContent(sourcePage, {
prop: 'revisions|info',
intestactions: 'edit',
fallbacktext: '{}'
});
return {
wt: content,
editable: content.page.actions.edit
};
}))()) : yield this.loadConfigurationWikitext();
try {
// Attempt save of configuration to local options (if not explicitly loaded)
if (sourcePage == null) {
mw.storage.set(WikiConfiguration.optionKey, JSON.stringify(configPage));
}
return new WikiConfiguration(configPage.title, JSON.parse(configPage.wt), configPage.editable);
}
catch (e) {
error(e, configPage);
mw.hook('deputy.i18nDone').add(function notifyConfigFailure() {
mw.notify(mw.msg('deputy.loadError.wikiConfig'), {
type: 'error'
});
mw.hook('deputy.i18nDone').remove(notifyConfigFailure);
});
return null;
}
});
}
/**
* Loads the wiki-wide configuration from a set of predefined locations.
* See {@link WikiConfiguration#configLocations} for a full list.
*
* @return The string text of the raw configuration, or `null` if a configuration was not found.
*/
static loadConfigurationWikitext() {
return __awaiter(this, void 0, void 0, function* () {
const response = yield MwApi.action.get({
action: 'query',
prop: 'revisions|info',
rvprop: 'content',
rvslots: 'main',
rvlimit: 1,
intestactions: 'edit',
redirects: true,
titles: WikiConfiguration.configLocations.join('|')
});
const redirects = toRedirectsObject(response.query.redirects, response.query.normalized);
for (const page of WikiConfiguration.configLocations) {
const title = normalizeTitle(redirects[page] || page).getPrefixedText();
const pageInfo = response.query.pages.find((p) => p.title === title);
if (!pageInfo.missing) {
return {
title: normalizeTitle(pageInfo.title),
wt: pageInfo.revisions[0].slots.main.content,
editable: pageInfo.actions.edit
};
}
}
return null;
});
}
/**
* Check if the current page being viewed is a valid configuration page.
*
* @param page
* @return `true` if the current page is a valid configuration page.
*/
static isConfigurationPage(page) {
if (page == null) {
page = new mw.Title(mw.config.get('wgPageName'));
}
return this.configLocations.some((v) => equalTitle(page, normalizeTitle(v)));
}
/**
* @param sourcePage
Line 7,490 ⟶ 3,932:
});
}
}
/**
* Loads the configuration from a set of possible sources.
*
* @param sourcePage The specific page to load from
* @return A WikiConfiguration object
*/
static load(sourcePage) {
return __awaiter(this, void 0, void 0, function* () {
if (sourcePage) {
// Explicit source given. Do not load from local cache.
return this.loadFromWiki(sourcePage);
}
else {
return this.loadFromLocal();
}
});
}
/**
* Loads the wiki configuration from localStorage and/or MediaWiki
* settings. This allows for faster loads at the expense of a (small)
* chance of outdated configuration.
*
* The localStorage layer allows fast browser-based caching. If a user
* is logging in again on another device, the user configuration
* will automatically be sent to the client, lessening turnaround time.
* If all else fails, the configuration will be loaded from the wiki.
*
* @return A WikiConfiguration object.
*/
static loadFromLocal() {
return __awaiter(this, void 0, void 0, function* () {
let configInfo;
// If `mw.storage.get` returns `false` or `null`, it'll be thrown up.
let rawConfigInfo = mw.storage.get(WikiConfiguration.optionKey);
// Try to grab it from user options, if it exists.
if (!rawConfigInfo) {
rawConfigInfo = mw.user.options.get(WikiConfiguration.optionKey);
}
if (typeof rawConfigInfo === 'string') {
try {
configInfo = JSON.parse(rawConfigInfo);
}
catch (e) {
// Bad local! Switch to non-local.
error('Failed to get Deputy wiki configuration', e);
return this.loadFromWiki();
}
}
else {
log('No locally-cached Deputy configuration, pulling from wiki.');
return this.loadFromWiki();
}
if (configInfo) {
return new WikiConfiguration(new mw.Title(configInfo.title.title, configInfo.title.namespace), JSON.parse(configInfo.wt), configInfo.editable);
}
else {
return this.loadFromWiki();
}
});
}
/**
* Loads the configuration from the current wiki.
*
* @param sourcePage The specific page to load from
* @return A WikiConfiguration object
*/
static loadFromWiki(sourcePage) {
return __awaiter(this, void 0, void 0, function* () {
const configPage = sourcePage ? Object.assign({ title: sourcePage }, yield (() => __awaiter(this, void 0, void 0, function* () {
const content = yield getPageContent(sourcePage, {
prop: 'revisions|info',
intestactions: 'edit',
fallbacktext: '{}'
});
return {
wt: content,
editable: content.page.actions.edit
};
}))()) : yield this.loadConfigurationWikitext();
try {
// Attempt save of configuration to local options (if not explicitly loaded)
if (sourcePage == null) {
mw.storage.set(WikiConfiguration.optionKey, JSON.stringify(configPage));
}
return new WikiConfiguration(configPage.title, JSON.parse(configPage.wt), configPage.editable);
}
catch (e) {
error(e, configPage);
mw.hook('deputy.i18nDone').add(function notifyConfigFailure() {
mw.notify(mw.msg('deputy.loadError.wikiConfig'), {
type: 'error'
});
mw.hook('deputy.i18nDone').remove(notifyConfigFailure);
});
return null;
}
});
}
/**
* Loads the wiki-wide configuration from a set of predefined locations.
* See {@link WikiConfiguration#configLocations} for a full list.
*
* @return The string text of the raw configuration, or `null` if a configuration was not found.
*/
static loadConfigurationWikitext() {
return __awaiter(this, void 0, void 0, function* () {
const response = yield MwApi.action.get({
action: 'query',
prop: 'revisions|info',
rvprop: 'content',
rvslots: 'main',
rvlimit: 1,
intestactions: 'edit',
redirects: true,
titles: WikiConfiguration.configLocations.join('|')
});
const redirects = toRedirectsObject(response.query.redirects, response.query.normalized);
for (const page of WikiConfiguration.configLocations) {
const title = normalizeTitle(redirects[page] || page).getPrefixedText();
const pageInfo = response.query.pages.find((p) => p.title === title);
if (!pageInfo.missing) {
return {
title: normalizeTitle(pageInfo.title),
wt: pageInfo.revisions[0].slots.main.content,
editable: pageInfo.actions.edit
};
}
}
return null;
});
}
/**
* Check if the current page being viewed is a valid configuration page.
*
* @param page
* @return `true` if the current page is a valid configuration page.
*/
static isConfigurationPage(page) {
if (page == null) {
page = new mw.Title(mw.config.get('wgPageName'));
}
return this.configLocations.some((v) => equalTitle(page, normalizeTitle(v)));
}
/**
Line 7,892 ⟶ 4,191:
*/
class ContributionSurveyRow {
/**
* Creates a new contribution survey row from MediaWiki parser output.
*
* @param casePage The case page of this row
* @param wikitext The wikitext of the row
*/
constructor(casePage, wikitext) {
this.data = new ContributionSurveyRowParser(wikitext).parse();
this.type = this.data.type;
this.casePage = casePage;
this.wikitext = wikitext;
this.title = new mw.Title(this.data.page);
this.extras = this.data.extras;
this.comment = this.data.comments;
this.status = this.originalStatus = this.data.comments == null ?
ContributionSurveyRowStatus.Unfinished :
ContributionSurveyRow.identifyCommentStatus(this.data.comments);
if (ContributionSurveyRow.commentMatchRegex[this.status] != null) {
if (cloneRegex$1((ContributionSurveyRow.commentMatchRegex)[this.status], { pre: '^' }).test(this.comment)) {
this.statusIsolated = 'start';
}
else if (cloneRegex$1((ContributionSurveyRow.commentMatchRegex)[this.status], { post: '$' }).test(this.comment)) {
this.statusIsolated = 'end';
}
else {
this.statusIsolated = false;
}
}
}
/**
* Identifies a row's current status based on the comment's contents.
Line 8,035 ⟶ 4,305:
return this.status !== ContributionSurveyRowStatus.Unfinished &&
this.diffs.size === 0;
}
/**
* Creates a new contribution survey row from MediaWiki parser output.
*
* @param casePage The case page of this row
* @param wikitext The wikitext of the row
*/
constructor(casePage, wikitext) {
this.data = new ContributionSurveyRowParser(wikitext).parse();
this.type = this.data.type;
this.casePage = casePage;
this.wikitext = wikitext;
this.title = new mw.Title(this.data.page);
this.extras = this.data.extras;
this.comment = this.data.comments;
this.status = this.originalStatus = this.data.comments == null ?
ContributionSurveyRowStatus.Unfinished :
ContributionSurveyRow.identifyCommentStatus(this.data.comments);
if (ContributionSurveyRow.commentMatchRegex[this.status] != null) {
if (cloneRegex$1((ContributionSurveyRow.commentMatchRegex)[this.status], { pre: '^' }).test(this.comment)) {
this.statusIsolated = 'start';
}
else if (cloneRegex$1((ContributionSurveyRow.commentMatchRegex)[this.status], { post: '$' }).test(this.comment)) {
this.statusIsolated = 'end';
}
else {
this.statusIsolated = false;
}
}
}
/**
Line 8,539 ⟶ 4,838:
*/
class DeputyContributionSurveyRevision extends EventTarget {
/**
* @return `true` the current revision has been checked by the user or `false` if not.
*/
get completed() {
var _a, _b;
return (_b = (_a = this.completedCheckbox) === null || _a === void 0 ? void 0 : _a.isSelected()) !== null && _b !== void 0 ? _b : false;
}
/**
* Set the value of the completed checkbox.
*
* @param value The new value
*/
set completed(value) {
var _a;
(_a = this.completedCheckbox) === null || _a === void 0 ? void 0 : _a.setSelected(value);
}
/**
* @return The hash used for autosave keys
*/
get autosaveHash() {
return `CASE--${this.uiRow.row.casePage.title.getPrefixedDb()}+PAGE--${this.uiRow.row.title.getPrefixedDb()}+REVISION--${this.revision.revid}`;
}
/**
* @param revision
Line 8,552 ⟶ 4,873:
* The diff view of the given revision. May also be "loading" text, or
* null if the diff view has not yet been set.
*
* @private
*/
Line 8,564 ⟶ 4,886:
}), 500);
}
}
/**
* @return `true` the current revision has been checked by the user or `false` if not.
*/
get completed() {
var _a, _b;
return (_b = (_a = this.completedCheckbox) === null || _a === void 0 ? void 0 : _a.isSelected()) !== null && _b !== void 0 ? _b : false;
}
/**
* Set the value of the completed checkbox.
*
* @param value The new value
*/
set completed(value) {
var _a;
(_a = this.completedCheckbox) === null || _a === void 0 ? void 0 : _a.setSelected(value);
}
/**
* @return The hash used for autosave keys
*/
get autosaveHash() {
return `CASE--${this.uiRow.row.casePage.title.getPrefixedDb()}+PAGE--${this.uiRow.row.title.getPrefixedDb()}+REVISION--${this.revision.revid}`;
}
/**
Line 8,719 ⟶ 5,019:
}
// Delete all no-change rows (gray rows)
//if !(tr.querySelector('td.diff-markers with a markercontext')) = no change for row{
if (!tr.querySelector('td.diff-marker[data-marker]')) {
removeElement(tr);
}
Line 8,917 ⟶ 5,216:
*/
class DeputyCCIStatusDropdown extends EventTarget {
/**
* @return The currently-selected status of this dropdown.
*/
get status() {
var _a, _b;
return (_b = (_a = this.dropdown.getMenu().findSelectedItem()) === null || _a === void 0 ? void 0 : _a.getData()) !== null && _b !== void 0 ? _b : null;
}
/**
* Sets the currently-selected status of this dropdown.
*/
set status(status) {
this.dropdown.getMenu().selectItemByData(status);
this.setOptionDisabled(ContributionSurveyRowStatus.Unknown, status !== ContributionSurveyRowStatus.Unknown, false);
this.refresh();
}
/**
* Create a new DeputyCCIStatusDropdown object.
Line 9,042 ⟶ 5,356:
unwrapWidget(this.dropdown.getMenu()).style.width = '20em';
});
}
/**
* @return The currently-selected status of this dropdown.
*/
get status() {
var _a, _b;
return (_b = (_a = this.dropdown.getMenu().findSelectedItem()) === null || _a === void 0 ? void 0 : _a.getData()) !== null && _b !== void 0 ? _b : null;
}
/**
* Sets the currently-selected status of this dropdown.
*/
set status(status) {
this.dropdown.getMenu().selectItemByData(status);
this.setOptionDisabled(ContributionSurveyRowStatus.Unknown, status !== ContributionSurveyRowStatus.Unknown, false);
this.refresh();
}
/**
Line 9,235 ⟶ 5,534:
*/
class DeputyContributionSurveyRow extends EventTarget {
/**
* Creates a new DeputyContributionSurveyRow object.
*
* @param row The contribution survey row data
* @param originalElement
* @param originalWikitext
* @param section The section that this row belongs to
*/
constructor(row, originalElement, originalWikitext, section) {
super();
/**
* The state of this element.
*/
this.state = DeputyContributionSurveyRowState.Loading;
/**
* Responder for session requests.
*/
this.statusRequestResponder = this.sendStatusResponse.bind(this);
this.nextRevisionRequestResponder = this.sendNextRevisionResponse.bind(this);
this.row = row;
this.originalElement = originalElement;
this.additionalComments = this.extractAdditionalComments();
this.originalWikitext = originalWikitext;
this.section = section;
}
/**
* @return `true` if:
Line 9,356 ⟶ 5,630:
if (unfinishedDiffs.length > 0) {
diffsText += unfinishedDiffs.map((v) => {
return mw.format(this.row.data.diffTemplate, String(v.revision.revid), v.revision.diffsize == null ?
// For whatever reason, diffsize is missing. Fall back to the text we had
// previously.
v.uiRow.row.data.revidText[v.revision.revid] :
String(v.revision.diffsize > 0 ?
'+' + v.revision.diffsize : v.revision.diffsize));
}).join('');
Line 9,429 ⟶ 5,703:
get autosaveHash() {
return `CASE--${this.row.casePage.title.getPrefixedDb()}+PAGE--${this.row.title.getPrefixedDb()}`;
}
/**
* Creates a new DeputyContributionSurveyRow object.
*
* @param row The contribution survey row data
* @param originalElement
* @param originalWikitext
* @param section The section that this row belongs to
*/
constructor(row, originalElement, originalWikitext, section) {
super();
/**
* The state of this element.
*/
this.state = DeputyContributionSurveyRowState.Loading;
/**
* Responder for session requests.
*/
this.statusRequestResponder = this.sendStatusResponse.bind(this);
this.nextRevisionRequestResponder = this.sendNextRevisionResponse.bind(this);
this.row = row;
this.originalElement = originalElement;
this.additionalComments = this.extractAdditionalComments();
this.originalWikitext = originalWikitext;
this.section = section;
}
/**
Line 9,855 ⟶ 6,154:
}
/**
*
* @param diffs
* @param content
Line 9,933 ⟶ 6,231:
}
/**
*
* @param event
*/
Line 10,357 ⟶ 6,654:
*/
class DeputyContributionSurveySection {
/**
* Creates a DeputyContributionSurveySection from a given heading.
*
* @param casePage
* @param heading
*/
constructor(casePage, heading) {
this.casePage = casePage;
this.heading = normalizeWikiHeading(heading);
this.sectionNodes = casePage.getContributionSurveySection(heading);
}
/**
* @return `true` if this section has been modified
Line 10,547 ⟶ 6,833:
get headingN() {
return sectionHeadingN(this.heading);
}
/**
* Creates a DeputyContributionSurveySection from a given heading.
*
* @param casePage
* @param heading
*/
constructor(casePage, heading) {
this.casePage = casePage;
this.heading = normalizeWikiHeading(heading);
this.sectionNodes = casePage.getContributionSurveySection(heading);
}
/**
Line 11,066 ⟶ 7,363:
*/
class DeputyRootSession {
/*
* =========================================================================
* INSTANCE AND ACTIVE SESSION FUNCTIONS
* =========================================================================
*/
/**
* @param session
* @param casePage
*/
constructor(session, casePage) {
/**
* Responder for session requests.
*/
this.sessionRequestResponder = this.sendSessionResponse.bind(this);
this.sessionStopResponder = this.handleStopRequest.bind(this);
this.session = session;
this.casePage = casePage;
}
/*
* =========================================================================
Line 11,234 ⟶ 7,513:
return __awaiter(this, void 0, void 0, function* () {
const casePage = _casePage !== null && _casePage !== void 0 ? _casePage : yield DeputyCasePage.build();
returnyield mw.loader.using(['oojs-ui-core', 'oojs-ui.styles.icons-content'], () => {
const firstHeading = casePage.findFirstContributionSurveyHeadingElement();
if (firstHeading) {
Line 11,330 ⟶ 7,609:
return (yield window.deputy.storage.setKV('session', session)) ? session : null;
});
}
/*
* =========================================================================
* INSTANCE AND ACTIVE SESSION FUNCTIONS
* =========================================================================
*/
/**
* @param session
* @param casePage
*/
constructor(session, casePage) {
/**
* Responder for session requests.
*/
this.sessionRequestResponder = this.sendSessionResponse.bind(this);
this.sessionStopResponder = this.handleStopRequest.bind(this);
this.session = session;
this.casePage = casePage;
}
/**
Line 11,568 ⟶ 7,865:
*/
class FakeDocument {
/**
* @param data Data to include in the iframe
*/
constructor(data) {
this.ready = false;
this.iframe = document.createElement('iframe');
this.iframe.style.display = 'none';
this.iframe.addEventListener('load', () => {
this.ready = true;
});
this.iframe.src = URL.createObjectURL(data instanceof Blob ? data : new Blob(data));
// Disables JavaScript, modals, popups, etc., but allows same-origin access.
this.iframe.setAttribute('sandbox', 'allow-same-origin');
document.getElementsByTagName('body')[0].appendChild(this.iframe);
}
/**
* Creates a fake document and waits for the `document` to be ready.
Line 11,600 ⟶ 7,882:
get document() {
return this.iframe.contentDocument;
}
/**
* @param data Data to include in the iframe
*/
constructor(data) {
this.ready = false;
this.iframe = document.createElement('iframe');
this.iframe.style.display = 'none';
this.iframe.addEventListener('load', () => {
this.ready = true;
});
this.iframe.src = URL.createObjectURL(data instanceof Blob ? data : new Blob(data));
// Disables JavaScript, modals, popups, etc., but allows same-origin access.
this.iframe.setAttribute('sandbox', 'allow-same-origin');
document.getElementsByTagName('body')[0].appendChild(this.iframe);
}
/**
Line 13,359 ⟶ 9,656:
*/
class AttributionNoticeRow {
/**
*
* @param parent
*/
constructor(parent) {
this._parent = parent;
const r = window.btoa((Math.random() * 10000).toString()).slice(0, 6);
this.name = this.parent.name + '#' + r;
this.id = window.btoa(parent.node.getTarget().wt) + '-' + this.name;
}
/**
* @return The parent of this attribution notice row.
Line 13,385 ⟶ 9,672:
newParent.addRow(this);
this._parent = newParent;
}
/**
*
* @param parent
*/
constructor(parent) {
this._parent = parent;
const r = window.btoa((Math.random() * 10000).toString()).slice(0, 6);
this.name = this.parent.name + '#' + r;
this.id = window.btoa(parent.node.getTarget().wt) + '-' + this.name;
}
/**
Line 13,835 ⟶ 10,132:
*/
class AttributionNotice extends EventTarget {
/**
* Super constructor for AttributionNotice subclasses.
*
* @param node
* The ParsoidTransclusionTemplateNode of this notice.
*/
constructor(node) {
super();
this.node = node;
this.name = this.element.getAttribute('about')
.replace(/^#mwt/, '') + '-' + this.i;
this.id = window.btoa(node.getTarget().wt) + '-' + this.name;
this.parse();
}
/**
* @return The ParsoidDocument handling this notice (specifically its node).
Line 13,867 ⟶ 10,150:
get i() {
return this.node.i;
}
/**
* Super constructor for AttributionNotice subclasses.
*
* @param node
* The ParsoidTransclusionTemplateNode of this notice.
*/
constructor(node) {
super();
this.node = node;
this.name = this.element.getAttribute('about')
.replace(/^#mwt/, '') + '-' + this.i;
this.id = window.btoa(node.getTarget().wt) + '-' + this.name;
this.parse();
}
/**
Line 18,330 ⟶ 14,627:
*/
class DeputyModule {
/**
*
* @param deputy
*/
constructor(deputy) {
this.deputy = deputy;
}
/**
* @return The responsible window manager for this class.
Line 18,373 ⟶ 14,663:
get wikiConfig() {
return this.deputy ? this.deputy.wikiConfig : this._wikiConfig;
}
/**
*
* @param deputy
*/
constructor(deputy) {
this.deputy = deputy;
}
/**
Line 18,831 ⟶ 15,128:
*/
class CopyrightProblemsPage {
/**
* Private constructor. Use `get` instead to avoid cache misses.
*
* @param listingPage
* @param revid
*/
constructor(listingPage, revid) {
this.title = listingPage;
this.main = CopyrightProblemsPage.rootPage.getPrefixedText() ===
listingPage.getPrefixedText();
this.revid = revid;
}
/**
* @return See {@link WikiConfiguration#ia}.rootPage.
Line 18,892 ⟶ 15,177:
return page;
}
}
/**
* Private constructor. Use `get` instead to avoid cache misses.
*
* @param listingPage
* @param revid
*/
constructor(listingPage, revid) {
this.title = listingPage;
this.main = CopyrightProblemsPage.rootPage.getPrefixedText() ===
listingPage.getPrefixedText();
this.revid = revid;
}
/**
Line 19,135 ⟶ 15,432:
*/
class CopyrightProblemsListing {
/**
* Creates a new listing object.
*
* @param data Additional data about the page
* @param listingPage The page that this listing is on. This is not necessarily the page that
* the listing's wikitext is on, nor is it necessarily the root page.
* @param i A discriminator used to avoid collisions when a page is listed multiple times.
*/
constructor(data, listingPage, i = 1) {
this.listingPage = listingPage !== null && listingPage !== void 0 ? listingPage : CopyrightProblemsPage.get(data.listingPage);
this.i = Math.max(1, i); // Ensures no value below 1.
this.basic = data.basic;
this.title = data.title;
this.element = data.element;
if (data.basic === false) {
this.id = data.id;
this.anchor = data.anchor;
this.plainlinks = data.plainlinks;
}
}
/**
* Responsible for determining listings on a page. This method allows for full-metadata
Line 19,347 ⟶ 15,624:
get anchorId() {
return this.id + (this.i > 1 ? `-${this.i}` : '');
}
/**
* Creates a new listing object.
*
* @param data Additional data about the page
* @param listingPage The page that this listing is on. This is not necessarily the page that
* the listing's wikitext is on, nor is it necessarily the root page.
* @param i A discriminator used to avoid collisions when a page is listed multiple times.
*/
constructor(data, listingPage, i = 1) {
this.listingPage = listingPage !== null && listingPage !== void 0 ? listingPage : CopyrightProblemsPage.get(data.listingPage);
this.i = Math.max(1, i); // Ensures no value below 1.
this.basic = data.basic;
this.title = data.title;
this.element = data.element;
if (data.basic === false) {
this.id = data.id;
this.anchor = data.anchor;
this.plainlinks = data.plainlinks;
}
}
/**
Line 19,468 ⟶ 15,765:
id: this.id,
title: {
namespace: this.title.namespacegetNamespaceId(),
title: this.title.titlegetMainText(),
fragment: this.title.getFragment()
},
listingPage: {
namespace: this.listingPage.title.namespacegetNamespaceId(),
title: this.listingPage.title.titlegetMainText(),
fragment: this.listingPage.title.getFragment()
},
Line 19,487 ⟶ 15,784:
*/
class ListingResponsePanel extends EventTarget {
/**
*
* @param originLink
* @param listing
*/
constructor(originLink, listing) {
super();
// TODO: types-mediawiki limitation
this.reloadPreviewThrottled = mw.util.throttle(this.reloadPreview, 500);
this.originLink = originLink;
this.listing = listing;
}
/**
* @return A set of possible copyright problems responses.
Line 19,506 ⟶ 15,791:
}
/**
*
* @param response
* @param locale
Line 19,520 ⟶ 15,804:
response.label :
((_c = (_b = response.label[locale]) !== null && _b !== void 0 ? _b : response.label[locale1]) !== null && _c !== void 0 ? _c : response.label[0]);
}
/**
* @param originLink
* @param listing
*/
constructor(originLink, listing) {
super();
// TODO: types-mediawiki limitation
this.reloadPreviewThrottled = mw.util.throttle(this.reloadPreview, 500);
this.originLink = originLink;
this.listing = listing;
}
/**
Line 19,694 ⟶ 15,989:
}
return this.prefill ?
mw.format(this.prefill.template, this.listing.title.getPrefixedText(), (_c = this.comments) !== null && _c !== void 0 ? _c : '') :
this.comments;
}
Line 20,701 ⟶ 16,996:
}
 
var iaStyles = ".ia-listing-action {display: inline-block;}body.ltr .ia-listing-action {margin-left: 0.5em;}body.ltr .ia-listing-action--bracket:first-child,body.rtl .ia-listing-action--bracket:first-child {margin-right: 0.2em;}body.rtl .ia-listing-action {margin-right: 0.5em;}body.ltr .ia-listing-action--bracket:last-child,body.rtl .ia-listing-action--bracket:last-child {margin-left: 0.2em;}.ia-listing-action--link[disabled] {color: gray;pointer-events: none;}@keyframes ia-newResponse {from { background-color: #ffe29e }to { background-color: rgba( 0, 0, 0, 0 ); }}.ia-newResponse {animation: ia-newResponse 2s ease-out;}.ia-listing-response, .ia-listing-new {max-width: 50em;}.ia-listing-response {margin-top: 0.4em;margin-bottom: 0.4em;}.mw-content-ltr .ia-listing-response, .mw-content-rtl .mw-content-ltr .ia-listing-response {margin-left: 1.6em;margin-right: 0;}.mw-content-rtl .ia-listing-response, .mw-content-ltr .mw-content-rtl .ia-listing-response {margin-left: 0;margin-right: 1.6em;}.ia-listing-response > div {margin-bottom: 8px;}.ia-listing--preview {box-sizing: border-box;background: #f6f6f6;padding: 0.5em 1em;overflow: hidden;}/** \"Preview\" */.ia-listing--preview::before {content: attr(data-label);color: #808080;display: block;margin-bottom: 0.2em;}.ia-listing-response--submit {text-align: right;}/** * NEW LISTINGS */.ia-listing-newPanel {margin-top: 0.5em;}.ia-listing-new {display: flex;align-items: end;margin-top: 0.5em;padding: 1em;}.ia-listing-new--field {flex: 1;}.ia-listing-new--cancel {margin-left: 0.5em;}.ia-batchListing-new {padding: 1em;max-width: 50em;}.ia-batchListing-new--buttons {display: flex;justify-content: end;margin-top: 12px;}.ia-batchListing-new .ia-listing--preview {margin-top: 12px;}/** * REPORTING DIALOG */.ia-report-intro {font-size: 0.8rem;padding-bottom: 12px;border-bottom: 1px solid gray;margin-bottom: 12px;}.ia-report-intro b {display: block;font-size: 1rem;}.ia-report-submit {padding-top: 12px;display: flex;justify-content: flex-end;}/** * COPYVIO PREVIEWS */.copyvio.deputy-show {display: inherit !important;border: 0.2em solid #f88;padding: 1em;}.dp-hiddenVio {display: flex;flex-direction: row;margin: 1em 0;}.dp-hiddenVio-message {flex: 1;}.dp-hiddenVio-actions {flex: 0;margin-left: 1em;display: flex;flex-direction: column;justify-content: center;}";
 
/**
Line 20,708 ⟶ 17,003:
class HiddenViolationUI {
/**
*
* @param el
*/
Line 20,722 ⟶ 17,016:
attach() {
this.vioElement.insertAdjacentElement('beforebegin', h_1("div", { class: "deputy dp-hiddenVio" },
h_1("div", null{ class: "dp-hiddenVio-message" }, this.renderMessage()),
h_1("div", { class: "dp-hiddenVio-actions" }, this.renderButton())));
this.vioElement.classList.add('deputy-upgraded');
Line 20,812 ⟶ 17,106:
// Query parameter-based autostart disable (i.e. don't start if param exists)
if (!/[?&]ia-autostart(=(0|no|false|off)?(&|$)|$)/.test(window.___location.search)) {
returnyield mw.loader.using(InfringementAssistant.dependencies, () => __awaiter(this, void 0, void 0, function* () {
yield this.init();
}));
return true;
}
return true;
Line 20,857 ⟶ 17,152:
}
/**
* Opens the workflow dialog.
*/
openWorkflowDialog() {
return __awaiter(this, void 0, void 0, function* () {
returnyield mw.loader.using(InfringementAssistant.dependencies, () => __awaiter(this, void 0, void 0, function* () {
yield DeputyLanguage.loadMomentLocale();
if (!this.dialog) {
Line 20,900 ⟶ 17,195:
var _a;
const page = normalizeTitle();
if (page.namespacegetNamespaceId() === nsId('special') ||
page.namespacegetNamespaceId() === nsId('media')) {
// Don't save virtual namespaces.
return;
Line 21,323 ⟶ 17,618:
*/
class Deputy {
/**
* @return An OOUI window manager
*/
get windowManager() {
if (!this._windowManager) {
this._windowManager = new OO.ui.WindowManager();
document.body.appendChild(unwrapWidget(this._windowManager));
}
return this._windowManager;
}
/**
* Initialize Deputy. This static function attaches Deputy to the `window.deputy`
* object and initializes that instance.
*/
static init() {
return __awaiter(this, void 0, void 0, function* () {
Deputy.instance = new Deputy();
window.deputy = Deputy.instance;
return window.deputy.init();
});
}
/**
* Private constructor. To access Deputy, use `window.deputy` or Deputy.instance.
Line 21,361 ⟶ 17,677:
this.ia = new InfringementAssistant(this);
/* ignored */
}
/**
* @return An OOUI window manager
*/
get windowManager() {
if (!this._windowManager) {
this._windowManager = new OO.ui.WindowManager();
document.body.appendChild(unwrapWidget(this._windowManager));
}
return this._windowManager;
}
/**
* Initialize Deputy. This static function attaches Deputy to the `window.deputy`
* object and initializes that instance.
*/
static init() {
return __awaiter(this, void 0, void 0, function* () {
Deputy.instance = new Deputy();
window.deputy = Deputy.instance;
return window.deputy.init();
});
}
/**