diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 587615625..000000000 --- a/.jshintrc +++ /dev/null @@ -1,93 +0,0 @@ -{ - // JSHint Default Configuration File (as on JSHint website) - // See http://jshint.com/docs/ for more details - - "maxerr" : 50, // {int} Maximum error before stopping - - // Enforcing - "bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) - "camelcase" : false, // true: Identifiers must be in camelCase - "curly" : false, // true: Require {} for every new block or scope - "eqeqeq" : true, // true: Require triple equals (===) for comparison - "forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty() - "freeze" : true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc. - "immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());` - "latedef" : false, // true: Require variables/functions to be defined before being used - "newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()` - "noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee` - "noempty" : true, // true: Prohibit use of empty blocks - "nonbsp" : true, // true: Prohibit "non-breaking whitespace" characters. - "nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment) - "plusplus" : false, // true: Prohibit use of `++` and `--` - "quotmark" : false, // Quotation mark consistency: - // false : do nothing (default) - // true : ensure whatever is used is consistent - // "single" : require single quotes - // "double" : require double quotes - "undef" : true, // true: Require all non-global variables to be declared (prevents global leaks) - "unused" : "vars", // Unused variables: - // true : all variables, last function parameter - // "vars" : all variables only - // "strict" : all variables, all function parameters - "strict" : false, // true: Requires all functions run in ES5 Strict Mode - "maxparams" : false, // {int} Max number of formal params allowed per function - "maxdepth" : false, // {int} Max depth of nested blocks (within functions) - "maxstatements" : false, // {int} Max number statements per function - "maxcomplexity" : false, // {int} Max cyclomatic complexity per function - "maxlen" : false, // {int} Max number of characters per line - "varstmt" : false, // true: Disallow any var statements. Only `let` and `const` are allowed. - - // Relaxing - "asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons) - "boss" : false, // true: Tolerate assignments where comparisons would be expected - "debug" : false, // true: Allow debugger statements e.g. browser breakpoints. - "eqnull" : false, // true: Tolerate use of `== null` - "es5" : true, // true: Allow ES5 syntax (ex: getters and setters) - "esnext" : true, // true: Allow ES.next (ES6) syntax (ex: `const`) - "moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features) - // (ex: `for each`, multiple try/catch, function expression…) - "evil" : false, // true: Tolerate use of `eval` and `new Function()` - "expr" : false, // true: Tolerate `ExpressionStatement` as Programs - "funcscope" : false, // true: Tolerate defining variables inside control statements - "globalstrict" : false, // true: Allow global "use strict" (also enables 'strict') - "iterator" : false, // true: Tolerate using the `__iterator__` property - "lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block - "laxbreak" : false, // true: Tolerate possibly unsafe line breakings - "laxcomma" : false, // true: Tolerate comma-first style coding - "loopfunc" : false, // true: Tolerate functions being defined in loops - "multistr" : false, // true: Tolerate multi-line strings - "noyield" : false, // true: Tolerate generator functions with no yield statement in them. - "notypeof" : false, // true: Tolerate invalid typeof operator values - "proto" : false, // true: Tolerate using the `__proto__` property - "scripturl" : false, // true: Tolerate script-targeted URLs - "shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;` - "sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation - "supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;` - "validthis" : false, // true: Tolerate using this in a non-constructor function - - // Environments - "browser" : true, // Web Browser (window, document, etc) - "browserify" : false, // Browserify (node.js code in the browser) - "couch" : false, // CouchDB - "devel" : false, // Development/debugging (alert, confirm, etc) - "dojo" : false, // Dojo Toolkit - "jasmine" : false, // Jasmine - "jquery" : true, // jQuery - "mocha" : false, // Mocha - "mootools" : false, // MooTools - "node" : false, // Node.js - "nonstandard" : false, // Widely adopted globals (escape, unescape, etc) - "phantom" : false, // PhantomJS - "prototypejs" : false, // Prototype and Scriptaculous - "qunit" : false, // QUnit - "rhino" : false, // Rhino - "shelljs" : false, // ShellJS - "typed" : false, // Globals for typed array constructions - "worker" : false, // Web Workers - "wsh" : false, // Windows Scripting Host - "yui" : false, // Yahoo User Interface - "globals" : { - "require": true, - "Package": true // Meteor Package definition - } -} diff --git a/README.md b/README.md index a48fa4fa1..575d327b2 100644 --- a/README.md +++ b/README.md @@ -1,295 +1,6 @@ - - -
-

ohif-viewer

-

ohif-viewer is a zero-footprint medical image viewer provided by the Open Health Imaging Foundation (OHIF). It is a configurable and extensible progressive web application with out-of-the-box support for image archives which support DICOMweb.

-
- - -
- Read The Docs | - Edit the docs -
-
- Demo | - Roadmap | - Component Library -
- - -
- -[![CircleCI][circleci-image]][circleci-url] -[![codecov][codecov-image]][codecov-url] -[![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors) -[![code style: prettier][prettier-image]][prettier-url] -[![semantic-release][semantic-image]][semantic-url] - -[![NPM version][npm-version-image]][npm-url] -[![NPM downloads][npm-downloads-image]][npm-url] -[![Pulls][docker-pulls-img]][docker-image-url] -[![MIT License][license-image]][license-url] - - - -> ATTENTION: If you are looking for Version 1 (the Meteor Version) of this -> repository, it lives on -> [the `v1.x` branch](https://github.com/OHIF/Viewers/tree/v1.x) - -## Why? - -Building a web based medical imaging viewer from scratch is time intensive, hard -to get right, and expensive. Instead of re-inventing the wheel, you can use the -OHIF Viewer as a rock solid platform to build on top of. The Viewer is a -[React][react-url] [Progressive Web Application][pwa-url] that can be embedded -in existing applications via it's [packaged source -(ohif-viewer)][ohif-viewer-url] or hosted stand-alone. The Viewer exposes -[configuration][configuration-url] and [extensions][extensions-url] to support -workflow customization and advanced functionality at common integration points. - -If you're interested in using the OHIF Viewer, but you're not sure it supports -your use case [check out our docs](https://docs.ohif.org/). Still not sure, or -you would like to propose new features? Don't hesitate to -[create an issue](https://github.com/OHIF/Viewers/issues) or open a pull -request. - -## Getting Started - -This readme is specific to testing and developing locally. If you're more -interested in production deployment strategies, -[you can check out our documentation on publishing](https://docs.ohif.org/). - -Want to play around before you dig in? -[Check out our LIVE Demo](https://viewer.ohif.org/) - -### Setup - -_Requirements:_ - -- [NodeJS & NPM](https://nodejs.org/en/download/) -- [Yarn](https://yarnpkg.com/lang/en/docs/install/) - -_Steps:_ - -1. Fork this repository -2. Clone your forked repository (your `origin`) - -- `git clone git@github.com:YOUR_GITHUB_USERNAME/Viewers.git` - -3. Add `OHIF/Viewers` as a `remote` repository (the `upstream`) - -- `git remote add upstream git@github.com:OHIF/Viewers.git` - -### Developing Locally - -In your cloned repository's root folder, run: +# OHIF Medical Imaging Platform ```js -// Restore dependencies -yarn install - -// Stands up local server to host Viewer. -// Viewer connects to our public cloud PACS by default -yarn start +// Add shared dev dependency for workspace +yarn add --dev -W package-name ``` - -For more advanced local development scenarios, like using your own locally -hosted PACS and test data, -[check out our Essential: Getting Started](https://docs.ohif.org/essentials/getting-started.html) -guide. - -### E2E Tests - -Using [Cypress](https://www.cypress.io/) to create End-to-End tests and check whether the application flow is performing correctly, ensuring that the integrated components are working as expected. - -#### Why Cypress? - -Cypress is a next generation front end testing tool built for the modern web. -With Cypress is easy to set up, write, run and debug tests - -It allow us to write different types of tests: - -- End-to-End tests -- Integration tests -- Unit tets - -All tests must be in `./cypress/integration` folder. - -Commands to run the tests: - -```js -// Open Cypress Dashboard that provides insight into what happened when your tests ran -yarn run cy - -// Run all tests using Electron browser headless -yarn run cy:run - -// Run all tests in CI mode -yarn run cy:run:ci -``` - -### Contributing - -> Large portions of the Viewer's functionality are maintained in other -> repositories. To get a better understanding of the Viewer's architecture and -> "where things live", read -> [our docs on the Viewer's architecture](https://docs.ohif.org/advanced/architecture.html#diagram) - -It is notoriously difficult to setup multiple dependent repositories for -end-to-end testing and development. That's why we recommend writing and running -unit tests when adding and modifying features. This allows us to program in -isolation without a complex setup, and has the added benefit of producing -well-tested business logic. - -1. Clone this repository -2. Navigate to the project directory, and `yarn install` -3. To begin making changes, `yarn run dev` -4. To commit changes, run `yarn run cm` - -When creating tests, place the test file "next to" the file you're testing. -[For example](https://github.com/OHIF/Viewers/blob/master/src/utils/index.test.js): - -```js -// File -index.js - -// Test for file -index.test.js -``` - -As you add and modify code, `jest` will watch for uncommitted changes and run -your tests, reporting the results to your terminal. Make a pull request with -your changes to `master`, and a core team member will review your work. If you -have any questions, please don't hesitate to reach out via a GitHub issue. - -## Issues - -_Looking to contribute? Look for the [Good First Issue][good-first-issue] -label._ - -### 🐛 Bugs - -Please file an issue for bugs, missing documentation, or unexpected behavior. - -[**See Bugs**][bugs] - -### 💡 Feature Requests - -Please file an issue to suggest new features. Vote on feature requests by adding -a 👍. This helps maintainers prioritize what to work on. - -[**See Feature Requests**][requests-feature] - -### ❓ Questions - -For questions related to using the library, please visit our support community, -or file an issue on GitHub. - -[Google Group][google-group] - -## Roadmap - -If you want to know what's planned for the very near future, -[check out our roadmap](https://ohif.canny.io/). The best way to influence when -and what is worked on is to contribute to the conversation by creating GitHub -issues, and contributing code through pull requests. OHIF's high level -priorities for the near future are: - -- Feature parity with version 1 -- Extension and configuration improvements with key integration partners -- Continued Developer Experience Improvements -- Segmentation Tools, and improved VTK.js support - -More granular information will make it's way to the backlog as these items -become scoped for development by core maintainers. - -> Don't hesitate to ask questions, propose features, or create pull requests. -> We're here, we're listening, and we're ready to build the best open source -> medical imaging viewer on the web. - -#### Roadmap Generously Powered by Canny.io - - - - - -## Contributors - -Thanks goes to these wonderful people -([emoji key](https://allcontributors.org/docs/en/emoji-key)): - - - -
Erik Ziegler
Erik Ziegler

💻 🚇
Evren Ozkan
Evren Ozkan

💻
Gustavo André Lelis
Gustavo André Lelis

💻
Danny Brown
Danny Brown

💻 🚇
allcontributors[bot]
allcontributors[bot]

📖
Esref Durna
Esref Durna

💬
diego0020
diego0020

💻
David Wire
David Wire

💻
João Felipe de Medeiros Moreira
João Felipe de Medeiros Moreira

⚠️
- - - -This project follows the -[all-contributors](https://github.com/all-contributors/all-contributors) -specification. Contributions of any kind welcome! - -## License - -MIT © [OHIF](https://github.com/OHIF) - -## Acknowledgments - -To acknowledge the OHIF Viewer in an academic publication, please cite - -> _LesionTracker: Extensible Open-Source Zero-Footprint Web Viewer for Cancer -> Imaging Research and Clinical Trials_ -> -> Trinity Urban, Erik Ziegler, Rob Lewis, Chris Hafey, Cheryl Sadow, Annick D. -> Van den Abbeele and Gordon J. Harris -> -> _Cancer Research_, November 1 2017 (77) (21) e119-e122 DOI: -> [10.1158/0008-5472.CAN-17-0334](https://www.doi.org/10.1158/0008-5472.CAN-17-0334) - -**Note:** If you use or find this repository helpful, please take the time to -star this repository on Github. This is an easy way for us to assess adoption -and it can help us obtain future funding for the project. - -This work is supported primarily by the National Institutes of Health, National -Cancer Institute, Informatics Technology for Cancer Research (ITCR) program, -under a -[grant to Dr. Gordon Harris at Massachusetts General Hospital (U24 CA199460)](https://projectreporter.nih.gov/project_info_description.cfm?aid=8971104). - - - - - -[all-contributors-image]: https://img.shields.io/badge/all_contributors-0-orange.svg?style=flat-square -[contributing-url]: https://github.com/OHIF/Viewers/blob/react/CONTRIBUTING.md -[circleci-image]: https://circleci.com/gh/OHIF/Viewers.svg?style=svg -[circleci-url]: https://circleci.com/gh/OHIF/Viewers -[codecov-image]: https://codecov.io/gh/OHIF/Viewers/branch/react/graph/badge.svg -[codecov-url]: https://codecov.io/gh/OHIF/Viewers/branch/react -[prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square -[prettier-url]: https://github.com/prettier/prettier -[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg -[semantic-url]: https://github.com/semantic-release/semantic-release - -[npm-url]: https://npmjs.org/package/ohif-viewer -[npm-downloads-image]: https://img.shields.io/npm/dm/ohif-viewer.svg?style=flat-square -[npm-version-image]: https://img.shields.io/npm/v/ohif-viewer.svg?style=flat-square -[docker-pulls-img]: https://img.shields.io/docker/pulls/ohif/viewer.svg?style=flat-square -[docker-image-url]: https://hub.docker.com/r/ohif/viewer -[license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square -[license-url]: LICENSE - -[react-url]: https://reactjs.org/ -[pwa-url]: https://developers.google.com/web/progressive-web-apps/ -[ohif-viewer-url]: https://www.npmjs.com/package/ohif-viewer -[configuration-url]: https://docs.ohif.org/essentials/configuration.html -[extensions-url]: https://docs.ohif.org/advanced/extensions.html - -[react-viewer]: https://github.com/OHIF/Viewers/tree/react - -[bugs]: https://github.com/OHIF/Viewers/labels/bug -[requests-feature]: https://github.com/OHIF/Viewers/labels/enhancement -[good-first-issue]: https://github.com/OHIF/Viewers/labels/good%20first%20issue -[google-group]: https://groups.google.com/forum/#!forum/cornerstone-platform - - diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 000000000..18717d199 --- /dev/null +++ b/babel.config.js @@ -0,0 +1,20 @@ +module.exports = { + presets: [ + [ + "@babel/preset-env", + { + targets: { + ie: "11" + } + } + ], + "@babel/preset-react" + ], + plugins: [ + "@babel/plugin-proposal-class-properties", + "@babel/plugin-proposal-object-rest-spread", + "@babel/plugin-syntax-dynamic-import", + "@babel/plugin-transform-regenerator", + "@babel/plugin-transform-runtime" + ] +}; diff --git a/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/welcome/.githold b/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/welcome/.githold deleted file mode 100644 index e69de29bb..000000000 diff --git a/lerna.json b/lerna.json new file mode 100644 index 000000000..bcdca0415 --- /dev/null +++ b/lerna.json @@ -0,0 +1,6 @@ +{ + "packages": ["packages/*"], + "npmClient": "yarn", + "useWorkspaces": true, + "version": "independent" +} diff --git a/package.json b/package.json index 45e9f3353..e603df5d6 100644 --- a/package.json +++ b/package.json @@ -1,162 +1,13 @@ { - "name": "ohif-viewer", - "version": "0.0.21", - "description": "OHIF Viewer", - "author": "OHIF Contributors", - "license": "MIT", - "repository": "OHIF/Viewers", - "main": "dist/index.umd.js", - "browser": "dist/index.umd.js", - "module": "dist/index.es.js", - "jsnext:main": "dist/index.es.js", - "engines": { - "node": ">=8", - "npm": ">=5" - }, - "proxy": "http://localhost:8042", - "scripts": { - "cm": "npx git-cz", - "dev": "yarn run preBuild && cross-env PORT=5000 react-scripts start", - "dev:debug": "cross-env PORT=5000 react-scripts start", - "build:package": "yarn run preBuild && node --max-old-space-size=4096 node_modules/rollup/bin/rollup -c", - "build:package:ci": "yarn run preBuild && node --max-old-space-size=4096 node_modules/rollup/bin/rollup -c", - "build:web": "yarn run preBuild && react-scripts --max_old_space_size=4096 build", - "build:web:ci": "yarn run preBuild && cross-env PUBLIC_URL=/demo REACT_APP_CONFIG=config/netlify.js react-scripts --max_old_space_size=4096 build && cpx 'build/**/*' docs/latest/_book/demo --verbose", - "build:demo:ci": "yarn run preBuild && cross-env PUBLIC_URL=/ REACT_APP_CONFIG=config/demo.js react-scripts --max_old_space_size=4096 build", - "lint": "eslint -c .eslintrc --fix src && prettier --single-quote --write src/**/*.{js,jsx,json,css}", - "test:unit": "jest", - "test:unit:ci": "jest --ci --runInBand --collectCoverage --reporters=default --reporters=jest-junit && codecov", - "test:e2e": "", - "test:e2e:ci": "start-server-and-test start http://localhost:5000 cy:run:ci", - "staticDeploy": "./generateStaticSite.sh", - "docs:publish": "./publishStaticSite.sh", - "start": "yarn run dev", - "predeploy": "cd example && npm install && yarn run build:package", - "preBuild": "yarn run version && yarn run copy:webworkers", - "orthanc:up": "docker-compose -f docker/Nginx-Orthanc/docker-compose.yml up", - "dev:orthanc": "yarn run preBuild && cross-env PORT=5000 REACT_APP_CONFIG=config/docker_nginx-orthanc.js react-scripts start", - "version": "node -p -e \"'export default \\'' + require('./package.json').version + '\\';'\" > src/version.js", - "copy:webworkers": "cpx \"node_modules/cornerstone-wado-image-loader/dist/*.min.js*\" \"public\" -v", - "cy": "cypress open", - "cy:run": "cypress run", - "cy:run:ci": "yarn run cy:run -- --record" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "lint-staged": { - "src/**/*.{js,jsx,json,css}": [ - "prettier --single-quote --write", - "git add" - ] - }, - "browserslist": [ - ">0.2%", - "not dead", - "not ie <= 11", - "not op_mini all" + "name": "root", + "private": true, + "workspaces": [ + "packages/*" ], - "resolutions": { - "browserslist": "4.6.2", - "caniuse-lite": "1.0.30000974" - }, - "files": [ - "dist" - ], - "config": { - "commitizen": { - "path": "./node_modules/cz-conventional-changelog" - } - }, - "peerDependencies": { - "react": "^16.8.6", - "react-dom": "^16.8.6" - }, - "dependencies": { - "@babel/runtime": "^7.4.5", - "@ohif/extension-cornerstone": "0.0.38", - "@ohif/extension-dicom-html": "0.0.3", - "@ohif/extension-dicom-microscopy": "0.0.8", - "@ohif/extension-dicom-pdf": "0.0.7", - "@ohif/extension-vtk": "0.1.3", - "@ohif/i18n": "0.2.2", - "@tanem/react-nprogress": "^1.1.25", - "classnames": "^2.2.6", - "cornerstone-core": "^2.2.8", - "cornerstone-math": "^0.1.8", - "cornerstone-tools": "^3.15.1", - "cornerstone-wado-image-loader": "^2.2.3", - "dcmjs": "^0.4.7", - "dicom-parser": "^1.8.3", - "dicomweb-client": "^0.4.4", - "hammerjs": "^2.0.8", - "i18next": "^17.0.3", - "i18next-browser-languagedetector": "^3.0.1", - "lodash.isequal": "4.5.0", - "moment": "^2.24.0", - "ohif-core": "0.9.1", - "oidc-client": "1.7.x", - "prop-types": "^15.7.2", - "react-i18next": "^10.11.0", - "react-redux": "^7.1.0", - "react-resize-detector": "^4.2.0", - "react-router": "^5.0.1", - "react-router-dom": "^5.0.1", - "react-transition-group": "^4.1.1", - "react-viewerbase": "0.15.3", - "redux": "^4.0.1", - "redux-logger": "^3.0.6", - "redux-oidc": "3.1.x", - "redux-thunk": "^2.3.0", - "reselect": "^4.0.0" - }, "devDependencies": { - "@babel/core": "^7.4.5", - "@babel/plugin-proposal-class-properties": "^7.4.4", - "@babel/plugin-syntax-dynamic-import": "^7.2.0", - "@babel/plugin-transform-runtime": "^7.4.4", - "@babel/preset-env": "^7.4.5", + "@babel/core": "^7.5.0", + "@babel/preset-env": "^7.5.0", "@babel/preset-react": "^7.0.0", - "@semantic-release/exec": "3.3.3", - "@svgr/rollup": "^4.3.0", - "babel-eslint": "10.0.1", - "codecov": "3.5.0", - "commitizen": "3.1.x", - "core-js": "^3.1.4", - "cpx": "1.5.0", - "cross-env": "^5.2.0", - "cypress": "^3.3.1", - "cz-conventional-changelog": "2.1.0", - "eslint": "5.16.0", - "eslint-plugin-import": "^2.17.3", - "eslint-plugin-node": "^9.1.0", - "eslint-plugin-promise": "^4.1.1", - "eslint-plugin-react": "^7.13.0", - "gh-pages": "2.0.1", - "husky": "2.4.x", - "identity-obj-proxy": "3.0.x", - "jest-canvas-mock": "2.1.0", - "jest-junit": "6.4.x", - "lint-staged": "^8.2.1", - "lodash": "4.17.11", - "lodash.clonedeep": "4.5.0", - "prettier": "1.18.x", - "react": "^16.7.0", - "react-dom": "^16.7.0", - "react-scripts": "^3.0.1", - "rollup": "^1.15.5", - "rollup-plugin-babel": "^4.3.2", - "rollup-plugin-commonjs": "^10.0.0", - "rollup-plugin-json": "^4.0.0", - "rollup-plugin-node-builtins": "^2.1.2", - "rollup-plugin-node-resolve": "^5.0.2", - "rollup-plugin-peer-deps-external": "^2.2.0", - "rollup-plugin-postcss": "^2.0.3", - "rollup-plugin-url": "^2.2.2", - "semantic-release": "15.13.x", - "start-server-and-test": "^1.9.1", - "stylelint": "^10.1.0" + "lerna": "^3.15.0" } } diff --git a/packages/_core/.all-contributorsrc b/packages/_core/.all-contributorsrc new file mode 100644 index 000000000..143630ab6 --- /dev/null +++ b/packages/_core/.all-contributorsrc @@ -0,0 +1,69 @@ +{ + "files": [ + "README.md" + ], + "imageSize": 100, + "commit": false, + "contributors": [ + { + "login": "swederik", + "name": "Erik Ziegler", + "avatar_url": "https://avatars3.githubusercontent.com/u/607793?v=4", + "profile": "https://github.com/swederik", + "contributions": [ + "code" + ] + }, + { + "login": "evren217", + "name": "Evren Ozkan", + "avatar_url": "https://avatars1.githubusercontent.com/u/4920551?v=4", + "profile": "https://github.com/evren217", + "contributions": [ + "code" + ] + }, + { + "login": "galelis", + "name": "Gustavo André Lelis", + "avatar_url": "https://avatars3.githubusercontent.com/u/2378326?v=4", + "profile": "https://github.com/galelis", + "contributions": [ + "code" + ] + }, + { + "login": "dannyrb", + "name": "Danny Brown", + "avatar_url": "https://avatars1.githubusercontent.com/u/5797588?v=4", + "profile": "http://dannyrb.com/", + "contributions": [ + "code" + ] + }, + { + "login": "allcontributors", + "name": "allcontributors[bot]", + "avatar_url": "https://avatars3.githubusercontent.com/u/46843839?v=4", + "profile": "https://github.com/all-contributors/all-contributors-bot", + "contributions": [ + "doc" + ] + }, + { + "login": "ivan-aksamentov", + "name": "Ivan Aksamentov", + "avatar_url": "https://avatars0.githubusercontent.com/u/9403403?v=4", + "profile": "https://github.com/ivan-aksamentov", + "contributions": [ + "code", + "test" + ] + } + ], + "contributorsPerLine": 7, + "projectName": "ohif-core", + "projectOwner": "OHIF", + "repoType": "github", + "repoHost": "https://github.com" +} diff --git a/packages/_core/.eslintrc b/packages/_core/.eslintrc new file mode 100644 index 000000000..f1460852f --- /dev/null +++ b/packages/_core/.eslintrc @@ -0,0 +1,7 @@ +{ + "extends": ["eslint:recommended", "plugin:prettier/recommended"], + "parser": "babel-eslint", + "env": { + "jest": true + } +} diff --git a/packages/_core/.gitattributes b/packages/_core/.gitattributes new file mode 100644 index 000000000..fcadb2cf9 --- /dev/null +++ b/packages/_core/.gitattributes @@ -0,0 +1 @@ +* text eol=lf diff --git a/packages/_core/.gitignore b/packages/_core/.gitignore new file mode 100644 index 000000000..007760ae4 --- /dev/null +++ b/packages/_core/.gitignore @@ -0,0 +1,27 @@ +# See https://help.github.com/ignore-files/ for more about ignoring files. + +# dependencies +node_modules + +# builds +build +dist +.rpt2_cache +coverage/ +junit.xml + +# misc +.DS_Store +.env +.env.local +.env.development.local +.env.test.local +.env.production.local +package-lock.json + +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.idea +.yalc +yalc.lock diff --git a/.prettierrc b/packages/_core/.prettierrc similarity index 100% rename from .prettierrc rename to packages/_core/.prettierrc diff --git a/packages/_core/.vscode/extensions.json b/packages/_core/.vscode/extensions.json new file mode 100644 index 000000000..d7df89c9c --- /dev/null +++ b/packages/_core/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"] +} diff --git a/packages/_core/.vscode/settings.json b/packages/_core/.vscode/settings.json new file mode 100644 index 000000000..4b67a8bd3 --- /dev/null +++ b/packages/_core/.vscode/settings.json @@ -0,0 +1,29 @@ +{ + "editor.rulers": [80, 120], + + // === + // Spacing + // === + + "editor.insertSpaces": true, + "editor.tabSize": 2, + "editor.trimAutoWhitespace": true, + "files.trimTrailingWhitespace": true, + "files.eol": "\n", + "files.insertFinalNewline": true, + "files.trimFinalNewlines": true, + + // === + // Event Triggers + // === + + "editor.formatOnSave": true, + "eslint.autoFixOnSave": true, + "eslint.run": "onSave", + "eslint.validate": [ + { "language": "javascript", "autoFix": true }, + { "language": "javascriptreact", "autoFix": true } + ], + "prettier.disableLanguages": [], + "prettier.endOfLine": "lf" +} diff --git a/extensions/ohif-cornerstone-extension/LICENSE b/packages/_core/LICENSE similarity index 100% rename from extensions/ohif-cornerstone-extension/LICENSE rename to packages/_core/LICENSE diff --git a/packages/_core/README.md b/packages/_core/README.md new file mode 100644 index 000000000..c60361196 --- /dev/null +++ b/packages/_core/README.md @@ -0,0 +1,181 @@ + + +
+

ohif-core

+

ohif-core is a collection of useful functions and classes for building web-based medical imaging applications. This library helps power OHIF's zero-footprint DICOM viewer.

+
+ +
+ +[![CircleCI][circleci-image]][circleci-url] +[![codecov][codecov-image]][codecov-url] +[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors) +[![code style: prettier][prettier-image]][prettier-url] +[![semantic-release][semantic-image]][semantic-url] + +[![NPM version][npm-version-image]][npm-url] +[![NPM downloads][npm-downloads-image]][npm-url] +[![MIT License][license-image]][license-url] + + + +## Why? + +This library offers pre-packaged solutions for features common to Web-based +medical imaging viewers. For example: + +- Hotkeys +- DICOM Web +- Hanging Protocols +- Managing a study's measurements +- Managing a study's DICOM metadata +- A flexible pattern for extensions +- And many others + +It does this while remaining decoupled from any particular view library or +rendering logic. While we use it to power our [React Viewer][react-viewer], it +can be used with Vue, React, Vanilla JS, or any number of other frameworks. + +## Getting Started + +The documentation for this library is sparse. The best way to get started is to +look at its +[top level exports](https://github.com/OHIF/ohif-core/blob/master/src/index.js), +and explore the source code of features that interest you. If you want to see +how we use this library, you can check out [our viewer +implementation][react-viewer]. + +### Install + +> This library is pre- v1.0. All realeases until a v1.0 have the possibility of +> introducing breaking changes. Please depend on an "exact" version in your +> projects to prevent issues caused by loose versioning. + +``` +// with npm +npm i ohif-core --save-exact + +// with yarn +yarn add ohif-core --exact +``` + +### Usage + +Usage is dependent on the feature(s) you want to leverage. The bulk of +`ohif-core`'s features are "pure" and can be imported and used in place. + +_Example: retrieving study metadata from a server_ + +```js +import { studies } from 'ohif-core' + +const studiesMetadata = await studies.retrieveStudiesMetadata( + server, // Object + studyInstanceUids, // Array + seriesInstanceUids // Array (optional) +) +``` + +### Contributing + +It is notoriously difficult to setup multiple dependent repositories for +end-to-end testing and development. That's why we recommend writing and running +unit tests when adding and modifying features for this library. This allows us +to program in isolation without a complex setup, and has the added benefit of +producing well-tested business logic. + +1. Clone this repository +2. Navigate to the project directory, and `yarn install` +3. To begin making changes, `yarn run dev` +4. To commit changes, run `yarn run cm` + +When creating tests, place the test file "next to" the file you're testing. +[For example](https://github.com/OHIF/ohif-core/blob/master/src/index.test.js): + +```js +// File +index.js + +// Test for file +index.test.js +``` + +As you add and modify code, `jest` will watch for uncommitted changes and run +your tests, reporting the results to your terminal. Make a pull request with +your changes to `master`, and a core team member will review your work. If you +have any questions, please don't hesitate to reach out via a GitHub issue. + +## Issues + +_Looking to contribute? Look for the [Good First Issue][good-first-issue] +label._ + +### 🐛 Bugs + +Please file an issue for bugs, missing documentation, or unexpected behavior. + +[**See Bugs**][bugs] + +### 💡 Feature Requests + +Please file an issue to suggest new features. Vote on feature requests by adding +a 👍. This helps maintainers prioritize what to work on. + +[**See Feature Requests**][requests-feature] + +### ❓ Questions + +For questions related to using the library, please visit our support community, +or file an issue on GitHub. + +[Google Group][google-group] + +## Contributors + +Thanks goes to these wonderful people +([emoji key](https://allcontributors.org/docs/en/emoji-key)): + + + +
Erik Ziegler
Erik Ziegler

💻
Evren Ozkan
Evren Ozkan

💻
Gustavo André Lelis
Gustavo André Lelis

💻
Danny Brown
Danny Brown

💻
allcontributors[bot]
allcontributors[bot]

📖
Ivan Aksamentov
Ivan Aksamentov

💻 ⚠️
+ + + +This project follows the +[all-contributors](https://github.com/all-contributors/all-contributors) +specification. Contributions of any kind welcome! + +## License + +MIT © [OHIF](https://github.com/OHIF) + + + + + +[all-contributors-image]: https://img.shields.io/badge/all_contributors-0-orange.svg?style=flat-square +[contributing-url]: https://github.com/OHIF/ohif-core/blob/master/CONTRIBUTING.md +[circleci-image]: https://circleci.com/gh/OHIF/ohif-core.svg?style=svg +[circleci-url]: https://circleci.com/gh/OHIF/ohif-core +[codecov-image]: https://codecov.io/gh/OHIF/ohif-core/branch/master/graph/badge.svg +[codecov-url]: https://codecov.io/gh/OHIF/ohif-core +[prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square +[prettier-url]: https://github.com/prettier/prettier +[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg +[semantic-url]: https://github.com/semantic-release/semantic-release + +[npm-url]: https://npmjs.org/package/ohif-core +[npm-downloads-image]: https://img.shields.io/npm/dm/ohif-core.svg?style=flat-square +[npm-version-image]: https://img.shields.io/npm/v/ohif-core.svg?style=flat-square +[license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square +[license-url]: LICENSE + +[react-viewer]: https://github.com/OHIF/Viewers/tree/react + +[bugs]: https://github.com/OHIF/ohif-core/labels/bug +[requests-feature]: https://github.com/OHIF/ohif-core/labels/enhancement +[good-first-issue]: https://github.com/OHIF/ohif-core/labels/good%20first%20issue +[google-group]: https://groups.google.com/forum/#!forum/cornerstone-platform + diff --git a/packages/_core/jest.config.js b/packages/_core/jest.config.js new file mode 100644 index 000000000..59879cbd5 --- /dev/null +++ b/packages/_core/jest.config.js @@ -0,0 +1,13 @@ +module.exports = { + verbose: true, + testPathIgnorePatterns: ["/node_modules/"], + testMatch: ["/src/**/*.test.js"], + // + collectCoverage: false, + collectCoverageFrom: [ + "**/*.{js,jsx}", + "!**/node_modules/**", + "!/dist/**" + ], + reporters: ["default", "jest-junit"] +}; diff --git a/packages/_core/package.json b/packages/_core/package.json new file mode 100644 index 000000000..4714aa52c --- /dev/null +++ b/packages/_core/package.json @@ -0,0 +1,106 @@ +{ + "name": "ohif-core", + "version": "0.4.0", + "description": "Useful functions and classes for building web-based medical imaging applications", + "author": "OHIF", + "license": "MIT", + "repository": "OHIF/ohif-core", + "main": "dist/index.umd.js", + "module": "dist/index.es.js", + "jsnext:main": "dist/index.es.js", + "engines": { + "node": ">=8", + "npm": ">=5" + }, + "scripts": { + "cm": "npx git-cz", + "build": "rollup -c", + "dev": "jest --watch", + "start": "rollup -c -w", + "test": "jest", + "test:ci": "jest --ci --runInBand --collectCoverage --reporters=default --reporters=jest-junit && codecov", + "lint": "eslint -c .eslintrc --fix src && prettier --single-quote --write src/**/*.{js,jsx,json,css}", + "prepublishOnly": "npm run build" + }, + "peerDependencies": { + "cornerstone-core": "^2.2.8", + "cornerstone-tools": "^3.9.0", + "cornerstone-wado-image-loader": "^2.2.3", + "dicom-parser": "^1.8.3" + }, + "dependencies": { + "@babel/runtime": "^7.2.0", + "ajv": "^6.10.0", + "dicomweb-client": "^0.4.2", + "isomorphic-base64": "^1.0.2", + "lodash.clonedeep": "^4.5.0", + "lodash.merge": "^4.6.1", + "mousetrap": "^1.6.3", + "validate.js": "^0.12.0" + }, + "devDependencies": { + "@babel/core": "^7.2.0", + "@babel/plugin-external-helpers": "^7.2.0", + "@babel/plugin-proposal-class-properties": "^7.2.1", + "@babel/plugin-proposal-object-rest-spread": "^7.4.4", + "@babel/plugin-transform-runtime": "^7.2.0", + "@babel/preset-env": "^7.2.0", + "@babel/preset-react": "^7.0.0", + "@svgr/rollup": "^4.1.0", + "babel-eslint": "10.0.1", + "babel-jest": "^24.7.1", + "codecov": "^3.3.0", + "commitizen": "3.1.x", + "cross-env": "^5.2.0", + "cz-conventional-changelog": "2.1.x", + "eslint": "5.13.0", + "eslint-config-prettier": "^4.3.0", + "eslint-plugin-import": "^2.14.0", + "eslint-plugin-node": "^8.0.0", + "eslint-plugin-prettier": "^3.1.0", + "eslint-plugin-promise": "^4.0.1", + "husky": "^1.2.1", + "jest": "^24.7.1", + "jest-junit": "^6.3.0", + "lint-staged": "^8.1.0", + "prettier": "^1.15.3", + "redux-testkit": "^1.0.6", + "rollup": "^1.1.2", + "rollup-plugin-babel": "^4.1.0", + "rollup-plugin-commonjs": "^9.2.0", + "rollup-plugin-json": "^4.0.0", + "rollup-plugin-node-resolve": "^4.0.0", + "rollup-plugin-peer-deps-external": "^2.2.0", + "rollup-plugin-postcss": "^2.0.3", + "rollup-plugin-url": "^2.1.0", + "semantic-release": "15.13.x", + "stylelint": "^9.9.0", + "stylelint-config-recommended": "^2.1.0", + "stylus": "^0.54.5" + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, + "lint-staged": { + "src/**/*.{js,jsx,json,css}": [ + "prettier --single-quote --write", + "git add" + ] + }, + "browserslist": [ + ">0.2%", + "not dead", + "not ie <= 11", + "not op_mini all" + ], + "files": [ + "dist" + ], + "config": { + "commitizen": { + "path": "./node_modules/cz-conventional-changelog" + } + } +} diff --git a/packages/_core/rollup.config.js b/packages/_core/rollup.config.js new file mode 100644 index 000000000..6deb3bb36 --- /dev/null +++ b/packages/_core/rollup.config.js @@ -0,0 +1,64 @@ +import babel from 'rollup-plugin-babel' +import commonjs from 'rollup-plugin-commonjs' +import external from 'rollup-plugin-peer-deps-external' +import postcss from 'rollup-plugin-postcss' +import resolve from 'rollup-plugin-node-resolve' +import url from 'rollup-plugin-url' +import json from 'rollup-plugin-json' +import svgr from '@svgr/rollup' +import pkg from './package.json' + +const globals = { + 'react': 'React', + 'react-dom': 'ReactDOM', + 'cornerstone-core': 'cornerstone', + 'cornerstone-math': 'cornerstoneMath', + 'cornerstone-tools': 'cornerstoneTools', + 'cornerstone-wado-image-loader': 'cornerstoneWADOImageLoader', + 'dicom-parser': 'dicomParser' +}; + +export default { + input: 'src/index.js', + output: [ + { + file: pkg.main, + format: 'umd', + name: 'OHIF', + sourcemap: true, + exports: 'named', + globals + }, + { + file: pkg.module, + format: 'es', + sourcemap: true, + exports: 'named', + globals + }, + ], + plugins: [ + external(), + postcss({ + modules: false + }), + url(), + json(), + svgr(), + babel({ + exclude: 'node_modules/**', + externalHelpers: false, + runtimeHelpers: true + }), + resolve(), + commonjs({ + include: 'node_modules/**', + namedExports: { + 'node_modules/dicomweb-client/build/dicomweb-client.js': [ + 'api' + ] + } + }), + ], + external: Object.keys(pkg.peerDependencies || {}), +} diff --git a/packages/_core/src/DICOMWeb/getAttribute.js b/packages/_core/src/DICOMWeb/getAttribute.js new file mode 100644 index 000000000..49cc9feb0 --- /dev/null +++ b/packages/_core/src/DICOMWeb/getAttribute.js @@ -0,0 +1,44 @@ +/** + * Returns the specified element as a dicom attribute group/element. + * + * @param element - The group/element of the element (e.g. '00280009') + * @param [defaultValue] - The value to return if the element is not present + * @returns {*} + */ +export default function getAttribute(element, defaultValue) { + if (!element) { + return defaultValue; + } + // Value is not present if the attribute has a zero length value + if (!element.Value) { + return defaultValue; + } + // Sanity check to make sure we have at least one entry in the array. + if (!element.Value.length) { + return defaultValue; + } + + return convertToInt(element.Value); +} + +function convertToInt(input) { + function padFour(input) { + var l = input.length; + + if (l == 0) return '0000'; + if (l == 1) return '000' + input; + if (l == 2) return '00' + input; + if (l == 3) return '0' + input; + + return input; + } + + var output = ''; + for (var i = 0; i < input.length; i++) { + for (var j = 0; j < input[i].length; j++) { + output += padFour(input[i].charCodeAt(j).toString(16)); + } + } + + return parseInt(output, 16); +} diff --git a/packages/_core/src/DICOMWeb/getAuthorizationHeader.js b/packages/_core/src/DICOMWeb/getAuthorizationHeader.js new file mode 100644 index 000000000..c7d391571 --- /dev/null +++ b/packages/_core/src/DICOMWeb/getAuthorizationHeader.js @@ -0,0 +1,25 @@ +// Commenting this out for now since it looks like Rollup is pulling in the +// Node.js version instead of the Browser version of this package +//import { btoa } from 'isomorphic-base64'; +import user from '../user'; + +/** + * Returns the Authorization header as part of an Object. + * + * @returns {Object} + */ +export default function getAuthorizationHeader(server) { + const headers = {}; + + // Check for OHIF.user since this can also be run on the server + const accessToken = user && user.getAccessToken && user.getAccessToken(); + + if (server && server.requestOptions && server.requestOptions.auth) { + // HTTP Basic Auth (user:password) + headers.Authorization = `Basic ${btoa(server.requestOptions.auth)}`; + } else if (accessToken) { + headers.Authorization = `Bearer ${accessToken}`; + } + + return headers; +} diff --git a/packages/_core/src/DICOMWeb/getModalities.js b/packages/_core/src/DICOMWeb/getModalities.js new file mode 100644 index 000000000..5da21aa02 --- /dev/null +++ b/packages/_core/src/DICOMWeb/getModalities.js @@ -0,0 +1,21 @@ +export default function getModalities(modality, modalitiesInStudy) { + var modalities = {}; + if (modality) { + modalities = modality; + } + + if (modalitiesInStudy) { + // Find vr in modalities + if (modalities.vr && modalities.vr === modalitiesInStudy.vr) { + for (var i = 0; i < modalitiesInStudy.Value.length; i++) { + var value = modalitiesInStudy.Value[i]; + if (modalities.Value.indexOf(value) === -1) { + modalities.Value.push(value); + } + } + } else { + modalities = modalitiesInStudy; + } + } + return modalities; +} diff --git a/packages/_core/src/DICOMWeb/getName.js b/packages/_core/src/DICOMWeb/getName.js new file mode 100644 index 000000000..096a1b4ea --- /dev/null +++ b/packages/_core/src/DICOMWeb/getName.js @@ -0,0 +1,26 @@ +/** + * Returns the Alphabetic version of a PN + * + * @param element - The group/element of the element (e.g. '00200013') + * @param [defaultValue] - The default value to return if the element is not found + * @returns {*} + */ +export default function getName(element, defaultValue) { + if (!element) { + return defaultValue; + } + // Value is not present if the attribute has a zero length value + if (!element.Value) { + return defaultValue; + } + // Sanity check to make sure we have at least one entry in the array. + if (!element.Value.length) { + return defaultValue; + } + // Return the Alphabetic component group + if (element.Value[0].Alphabetic) { + return element.Value[0].Alphabetic; + } + // Orthanc does not return PN properly so this is a temporary workaround + return element.Value[0]; +} diff --git a/packages/_core/src/DICOMWeb/getNumber.js b/packages/_core/src/DICOMWeb/getNumber.js new file mode 100644 index 000000000..f7a21264b --- /dev/null +++ b/packages/_core/src/DICOMWeb/getNumber.js @@ -0,0 +1,21 @@ +/** + * Returns the first string value as a Javascript Number + * @param element - The group/element of the element (e.g. '00200013') + * @param [defaultValue] - The default value to return if the element does not exist + * @returns {*} + */ +export default function getNumber(element, defaultValue) { + if (!element) { + return defaultValue; + } + // Value is not present if the attribute has a zero length value + if (!element.Value) { + return defaultValue; + } + // Sanity check to make sure we have at least one entry in the array. + if (!element.Value.length) { + return defaultValue; + } + + return parseFloat(element.Value[0]); +} diff --git a/packages/_core/src/DICOMWeb/getString.js b/packages/_core/src/DICOMWeb/getString.js new file mode 100644 index 000000000..b6ff678aa --- /dev/null +++ b/packages/_core/src/DICOMWeb/getString.js @@ -0,0 +1,23 @@ +/** + * Returns the specified element as a string. Multi-valued elements will be separated by a backslash + * + * @param element - The group/element of the element (e.g. '00200013') + * @param [defaultValue] - The value to return if the element is not present + * @returns {*} + */ +export default function getString(element, defaultValue) { + if (!element) { + return defaultValue; + } + // Value is not present if the attribute has a zero length value + if (!element.Value) { + return defaultValue; + } + // Sanity check to make sure we have at least one entry in the array. + if (!element.Value.length) { + return defaultValue; + } + // Join the array together separated by backslash + // NOTE: Orthanc does not correctly split values into an array so the join is a no-op + return element.Value.join('\\'); +} diff --git a/packages/_core/src/DICOMWeb/index.js b/packages/_core/src/DICOMWeb/index.js new file mode 100644 index 000000000..f60c9b362 --- /dev/null +++ b/packages/_core/src/DICOMWeb/index.js @@ -0,0 +1,17 @@ +import getAttribute from './getAttribute.js'; +import getAuthorizationHeader from './getAuthorizationHeader.js'; +import getModalities from './getModalities.js'; +import getName from './getName.js'; +import getNumber from './getNumber.js'; +import getString from './getString.js'; + +const DICOMWeb = { + getAttribute, + getAuthorizationHeader, + getModalities, + getName, + getNumber, + getString, +}; + +export default DICOMWeb; diff --git a/packages/_core/src/__mocks__/cornerstone-core.js b/packages/_core/src/__mocks__/cornerstone-core.js new file mode 100644 index 000000000..ff8b4c563 --- /dev/null +++ b/packages/_core/src/__mocks__/cornerstone-core.js @@ -0,0 +1 @@ +export default {}; diff --git a/packages/_core/src/__mocks__/cornerstone-tools.js b/packages/_core/src/__mocks__/cornerstone-tools.js new file mode 100644 index 000000000..ff8b4c563 --- /dev/null +++ b/packages/_core/src/__mocks__/cornerstone-tools.js @@ -0,0 +1 @@ +export default {}; diff --git a/packages/_core/src/__mocks__/cornerstone-wado-image-loader.js b/packages/_core/src/__mocks__/cornerstone-wado-image-loader.js new file mode 100644 index 000000000..ff8b4c563 --- /dev/null +++ b/packages/_core/src/__mocks__/cornerstone-wado-image-loader.js @@ -0,0 +1 @@ +export default {}; diff --git a/packages/_core/src/__mocks__/dicom-parser.js b/packages/_core/src/__mocks__/dicom-parser.js new file mode 100644 index 000000000..ff8b4c563 --- /dev/null +++ b/packages/_core/src/__mocks__/dicom-parser.js @@ -0,0 +1 @@ +export default {}; diff --git a/packages/_core/src/__mocks__/dicomweb-client.js b/packages/_core/src/__mocks__/dicomweb-client.js new file mode 100644 index 000000000..e91680ed0 --- /dev/null +++ b/packages/_core/src/__mocks__/dicomweb-client.js @@ -0,0 +1,15 @@ +// import { api } from 'dicomweb-client' + +const api = { + DICOMwebClient: jest.fn().mockImplementation(() => { + return { + retrieveStudyMetadata: jest.fn().mockResolvedValue([]), + }; + }), +}; + +export default { + api, +}; + +export { api }; diff --git a/packages/_core/src/__mocks__/log.js b/packages/_core/src/__mocks__/log.js new file mode 100644 index 000000000..29194b790 --- /dev/null +++ b/packages/_core/src/__mocks__/log.js @@ -0,0 +1,4 @@ +export default { + warn: jest.fn(), + error: jest.fn(), +}; diff --git a/packages/_core/src/classes/CommandsManager.js b/packages/_core/src/classes/CommandsManager.js new file mode 100644 index 000000000..e6efdaa67 --- /dev/null +++ b/packages/_core/src/classes/CommandsManager.js @@ -0,0 +1,189 @@ +import log from '../log.js'; + +/** + * The definition of a command + * + * @typedef {Object} CommandDefinition + * @property {Function} commandFn - Command to call + * @property {Array} storeContexts - Array of string of modules required from store + * @property {Object} options - Object of params to pass action + */ + +/** + * The Commands Manager tracks named commands (or functions) that are scoped to + * a context. When we attempt to run a command with a given name, we look for it + * in our active contexts. If found, we run the command, passing in any application + * or call specific data specified in the command's definition. + * + * NOTE: A more robust version of the CommandsManager lives in v1. If you're looking + * to extend this class, please check it's source before adding new methods. + */ +export class CommandsManager { + constructor({ getAppState, getActiveContexts } = {}) { + this.contexts = {}; + + if (!getAppState || !getActiveContexts) { + log.warn( + 'CommandsManager was instantiated without getAppState() or getActiveContexts()' + ); + } + + this._getAppState = getAppState; + this._getActiveContexts = getActiveContexts; + } + + /** + * Allows us to create commands "per context". An example would be the "Cornerstone" + * context having a `SaveImage` command, and the "VTK" context having a `SaveImage` + * command. The distinction of a context allows us to call the command in either + * context, and have faith that the correct command will be run. + * + * @method + * @param {string} contextName - Namespace for commands + * @returns {undefined} + */ + createContext(contextName) { + if (!contextName) { + return; + } + + if (this.contexts[contextName]) { + return this.clearContext(contextName); + } + + this.contexts[contextName] = {}; + } + + /** + * Returns all command definitions for a given context + * + * @method + * @param {string} contextName - Namespace for commands + * @returs {Object} - the matched context + */ + getContext(contextName) { + const context = this.contexts[contextName]; + + if (!context) { + return; + } + + return context; + } + + /** + * Clears all registered commands for a given context. + * + * @param {string} contextName - Namespace for commands + * @returns {undefined} + */ + clearContext(contextName) { + if (!contextName) { + return; + } + + this.contexts[contextName] = {}; + } + + /** + * Register a new command with the command manager. Scoped to a context, and + * with a definition to assist command callers w/ providing the necessary params + * + * @method + * @param {string} contextName - Namespace for command; often scoped to the extension that added it + * @param {string} commandName - Unique name identifying the command + * @param {CommandDefinition} definition - {@link CommandDefinition} + */ + registerCommand(contextName, commandName, definition) { + if (typeof definition !== 'object') { + return; + } + + const context = this.getContext(contextName); + if (!context) { + return; + } + + context[commandName] = definition; + } + + /** + * Finds a command with the provided name if it exists in the specified context, + * or a currently active context. + * + * @method + * @param {String} commandName - Command to find + * @param {String} [contextName] - Specific command to look in. Defaults to current activeContexts + */ + getCommand(commandName, contextName) { + let contexts = []; + + if (contextName) { + const context = this.getContext(contextName); + if (context) { + contexts.push(context); + } + } else { + const activeContexts = this._getActiveContexts(); + activeContexts.forEach(activeContext => { + const context = this.getContext(activeContext); + if (context) { + contexts.push(context); + } + }); + } + + if (contexts.length === 0) { + return; + } + + let foundCommand; + contexts.forEach(context => { + if (context[commandName]) { + foundCommand = context[commandName]; + } + }); + + return foundCommand; + } + + /** + * + * @method + * @param {String} commandName + * @param {Object} [options={}] - Extra options to pass the command. Like a mousedown event + * @param {String} [contextName] + */ + runCommand(commandName, options = {}, contextName) { + const definition = this.getCommand(commandName, contextName); + if (!definition) { + log.warn(`Command "${commandName}" not found in current context`); + return; + } + + const { commandFn, storeContexts } = definition; + const definitionOptions = definition.options; + + let commandParams = {}; + const appState = this._getAppState(); + storeContexts.forEach(context => { + commandParams[context] = appState[context]; + }); + + commandParams = Object.assign( + {}, + commandParams, // Required store contexts + definitionOptions, // "Command configuration" + options // "Time of call" info + ); + + if (typeof commandFn !== 'function') { + log.warn(`No commandFn was defined for command "${commandName}"`); + return; + } else { + return commandFn(commandParams); + } + } +} + +export default CommandsManager; diff --git a/packages/_core/src/classes/CommandsManager.test.js b/packages/_core/src/classes/CommandsManager.test.js new file mode 100644 index 000000000..411fc7cb8 --- /dev/null +++ b/packages/_core/src/classes/CommandsManager.test.js @@ -0,0 +1,225 @@ +import CommandsManager from './CommandsManager.js'; +import log from './../log.js'; + +jest.mock('./../log.js'); + +describe('CommandsManager', () => { + let commandsManager, + contextName = 'VTK', + command = { + commandFn: jest.fn().mockReturnValue(true), + storeContexts: ['viewers'], + options: { passMeToCommandFn: ':wave:' }, + }, + commandsManagerConfig = { + getAppState: () => { + return { + viewers: 'Test', + }; + }, + getActiveContexts: () => ['VIEWER', 'ACTIVE_VIEWER::CORNERSTONE'], + }; + + beforeEach(() => { + commandsManager = new CommandsManager(commandsManagerConfig); + commandsManager.createContext('VIEWER'); + commandsManager.createContext('ACTIVE_VIEWER::CORNERSTONE'); + jest.clearAllMocks(); + }); + + it('has a contexts property', () => { + const localCommandsManager = new CommandsManager(commandsManagerConfig); + + expect(localCommandsManager).toHaveProperty('contexts'); + expect(localCommandsManager.contexts).toEqual({}); + }); + + it('logs a warning if instantiated without getAppState or getActiveContexts', () => { + new CommandsManager(); + + expect(log.warn.mock.calls.length).toBe(1); + }); + + describe('createContext()', () => { + it('creates a context', () => { + commandsManager.createContext(contextName); + + expect(commandsManager.contexts).toHaveProperty(contextName); + }); + + it('clears the context if it already exists', () => { + commandsManager.createContext(contextName); + commandsManager.registerCommand(contextName, 'TestCommand', command); + commandsManager.registerCommand(contextName, 'TestCommand2', command); + commandsManager.createContext(contextName); + + const registeredCommands = commandsManager.getContext(contextName); + + expect(registeredCommands).toEqual({}); + }); + }); + + describe('getContext()', () => { + it('returns all registered commands for a context', () => { + commandsManager.createContext(contextName); + commandsManager.registerCommand(contextName, 'TestCommand', command); + const registeredCommands = commandsManager.getContext(contextName); + + expect(registeredCommands).toHaveProperty('TestCommand'); + expect(registeredCommands['TestCommand']).toEqual(command); + }); + it('returns undefined if the context does not exist', () => { + const registeredCommands = commandsManager.getContext(contextName); + + expect(registeredCommands).toBe(undefined); + }); + }); + + describe('clearContext()', () => { + it('clears all registered commands for a context', () => { + commandsManager.createContext(contextName); + commandsManager.registerCommand(contextName, 'TestCommand', command); + commandsManager.registerCommand(contextName, 'TestCommand2', command); + commandsManager.clearContext(contextName); + + const registeredCommands = commandsManager.getContext(contextName); + + expect(registeredCommands).toEqual({}); + }); + }); + + describe('registerCommand()', () => { + it('registers commands to a context', () => { + commandsManager.createContext(contextName); + commandsManager.registerCommand(contextName, 'TestCommand', command); + const registeredCommands = commandsManager.getContext(contextName); + + expect(registeredCommands).toHaveProperty('TestCommand'); + expect(registeredCommands['TestCommand']).toEqual(command); + }); + }); + + describe('getCommand()', () => { + it('returns undefined if context does not exist', () => { + const result = commandsManager.getCommand( + 'TestCommand', + 'NonExistentContext' + ); + + expect(result).toBe(undefined); + }); + it('returns undefined if command does not exist in context', () => { + commandsManager.createContext(contextName); + const result = commandsManager.getCommand('TestCommand', contextName); + + expect(result).toBe(undefined); + }); + it('uses contextName param to get command', () => { + commandsManager.createContext('GLOBAL'); + commandsManager.registerCommand('GLOBAL', 'TestCommand', command); + const foundCommand = commandsManager.getCommand('TestCommand', 'GLOBAL'); + + expect(foundCommand).toBe(command); + }); + it('uses activeContexts, if contextName is not provided, to get command', () => { + commandsManager.registerCommand('VIEWER', 'TestCommand', command); + const foundCommand = commandsManager.getCommand('TestCommand'); + + expect(foundCommand).toBe(command); + }); + it('returns the expected command', () => { + commandsManager.createContext(contextName); + commandsManager.registerCommand(contextName, 'TestCommand', command); + const result = commandsManager.getCommand('TestCommand', contextName); + + expect(result).toEqual(command); + }); + }); + + describe('runCommand()', () => { + it('Logs a warning if commandName not found in context', () => { + const result = commandsManager.runCommand( + 'CommandThatDoesNotExistInAnyContext' + ); + + expect(result).toBe(undefined); + expect(log.warn.mock.calls[0][0]).toEqual( + 'Command "CommandThatDoesNotExistInAnyContext" not found in current context' + ); + }); + + it('Logs a warning if command definition does not have a commandFn', () => { + const commandWithNoCommmandFn = { + commandFn: undefined, + storeContexts: [], + options: {}, + }; + + commandsManager.createContext(contextName); + commandsManager.registerCommand( + contextName, + 'TestCommand', + commandWithNoCommmandFn + ); + const result = commandsManager.runCommand( + 'TestCommand', + null, + contextName + ); + + expect(result).toBe(undefined); + expect(log.warn.mock.calls[0][0]).toEqual( + 'No commandFn was defined for command "TestCommand"' + ); + }); + + it('Calls commandFn', () => { + commandsManager.registerCommand('VIEWER', 'TestCommand', command); + commandsManager.runCommand('TestCommand', {}, 'VIEWER'); + + expect(command.commandFn.mock.calls.length).toBe(1); + }); + + it('Calls commandFn w/ properties from appState', () => { + commandsManager.registerCommand('VIEWER', 'TestCommand', command); + commandsManager.runCommand('TestCommand', {}, 'VIEWER'); + + expect(command.commandFn.mock.calls.length).toBe(1); + expect(command.commandFn.mock.calls[0][0].viewers).toEqual( + commandsManagerConfig.getAppState().viewers + ); + }); + + it('Calls commandFn w/ command definition options', () => { + commandsManager.registerCommand('VIEWER', 'TestCommand', command); + commandsManager.runCommand('TestCommand', {}, 'VIEWER'); + + expect(command.commandFn.mock.calls.length).toBe(1); + expect(command.commandFn.mock.calls[0][0].passMeToCommandFn).toEqual( + command.options.passMeToCommandFn + ); + }); + + it('Calls commandFn w/ runCommand "options" parameter', () => { + const runCommandOptions = { + test: ':+1:', + }; + + commandsManager.registerCommand('VIEWER', 'TestCommand', command); + commandsManager.runCommand('TestCommand', runCommandOptions, 'VIEWER'); + + expect(command.commandFn.mock.calls.length).toBe(1); + expect(command.commandFn.mock.calls[0][0].test).toEqual( + runCommandOptions.test + ); + }); + + it('Returns the result of commandFn', () => { + commandsManager.registerCommand('VIEWER', 'TestCommand', command); + const result = commandsManager.runCommand('TestCommand', {}, 'VIEWER'); + + expect(command.commandFn.mock.calls.length).toBe(1); + expect(result).toBe(true); + }); + }); +}); diff --git a/packages/_core/src/classes/HotkeysManager.js b/packages/_core/src/classes/HotkeysManager.js new file mode 100644 index 000000000..b5a0ed20d --- /dev/null +++ b/packages/_core/src/classes/HotkeysManager.js @@ -0,0 +1,162 @@ +import hotkeys from './hotkeys'; +import log from './../log.js'; + +/** + * + * + * @typedef {Object} HotkeyDefinition + * @property {String} commandName - Command to call + * @property {String} label - Display name for hotkey + * @property {String[]} keys - Keys to bind; Follows Mousetrap.js binding syntax + */ + +export class HotkeysManager { + constructor(commandsManager) { + this.hotkeyDefinitions = {}; + this.hotkeyDefaults = []; + this.isEnabled = true; + + if (!commandsManager) { + log.warn( + 'HotkeysManager instantiated without a commandsManager. Hotkeys will be unable to find and run commands.' + ); + } + + this._commandsManager = commandsManager; + } + + /** + * Disables all hotkeys. Hotkeys added while disabled will not listen for + * input. + */ + disable() { + this.isEnabled = false; + hotkeys.pause(); + } + + /** + * Enables all hotkeys. + */ + enable() { + this.isEnabled = true; + hotkeys.unpause(); + } + + /** + * Registers a list of hotkeydefinitions. Optionally, sets the + * default hotkey bindings for all provided definitions. These + * values are used in `this.restoreDefaultBindings`. + * + * @param {HotkeyDefinition[]} hotkeyDefinitions + * @param {Boolean} [isDefaultDefinitions] + */ + setHotkeys(hotkeyDefinitions, isDefaultDefinitions = false) { + hotkeyDefinitions.forEach(definition => this.registerHotkeys(definition)); + + if (isDefaultDefinitions) { + this.hotkeyDefaults = hotkeyDefinitions; + } + } + + /** + * (unbinds and) binds the specified command to one or more key combinations. + * When a hotkey combination is triggered, the command name and active contexts + * are used to locate the correct command to call. + * + * @param {HotkeyDefinition} commandName + * @param {String} extension + * @returns {undefined} + */ + registerHotkeys({ commandName, keys, label } = {}, extension) { + if (!commandName) { + log.warn(`No command was defined for hotkey "${keys}"`); + return; + } + + const previouslyRegisteredDefinition = this.hotkeyDefinitions[commandName]; + + if (previouslyRegisteredDefinition) { + const previouslyRegisteredKeys = previouslyRegisteredDefinition.keys; + this._unbindHotkeys(commandName, previouslyRegisteredKeys); + } + + // Set definition & bind + this.hotkeyDefinitions[commandName] = { keys, label }; + this._bindHotkeys(commandName, keys); + } + + /** + * Uses most recent + * + * @returns {undefined} + */ + restoreDefaultBindings() { + this.setHotkeys(this.hotkeyDefaults); + } + + /** + * + */ + destroy() { + this.hotkeyDefaults = []; + this.hotkeyDefinitions = {}; + hotkeys.reset(); + } + + /** + * Binds one or more set of hotkey combinations for a given command + * + * @private + * @param {string} commandName - The name of the command to trigger when hotkeys are used + * @param {string[]} keys - One or more key combinations that should trigger command + * @returns {undefined} + */ + _bindHotkeys(commandName, keys) { + const isKeyDefined = keys === '' || keys === undefined; + if (isKeyDefined) { + return; + } + + const isKeyArray = keys instanceof Array; + if (isKeyArray) { + keys.forEach(key => this._bindHotkeys(commandName, key)); + return; + } + + hotkeys.bind(keys, evt => { + this._commandsManager.runCommand(commandName, { evt }); + }); + } + + /** + * unbinds one or more set of hotkey combinations for a given command + * + * @private + * @param {string} commandName - The name of the previously bound command + * @param {string[]} keys - One or more sets of previously bound keys + * @returns {undefined} + */ + _unbindHotkeys(commandName, keys) { + const isKeyDefined = keys !== '' && keys !== undefined; + if (!isKeyDefined) { + return; + } + + const isKeyArray = keys instanceof Array; + if (isKeyArray) { + keys.forEach(key => this._unbindHotkeys(commandName, key)); + return; + } + + hotkeys.unbind(keys); + } +} + +export default HotkeysManager; + +// Commands Contexts: + +// --> Name and Priority +// GLOBAL: 0 +// VIEWER::CORNERSTONE: 1 +// VIEWER::VTK: 1 diff --git a/packages/_core/src/classes/HotkeysManager.test.js b/packages/_core/src/classes/HotkeysManager.test.js new file mode 100644 index 000000000..e02c1f9a0 --- /dev/null +++ b/packages/_core/src/classes/HotkeysManager.test.js @@ -0,0 +1,201 @@ +import CommandsManager from './CommandsManager.js'; +import HotkeysManager from './HotkeysManager.js'; +import hotkeys from './hotkeys'; +import log from './../log.js'; + +jest.mock('./CommandsManager.js'); +jest.mock('./hotkeys'); +jest.mock('./../log.js'); + +describe('HotkeysManager', () => { + let hotkeysManager, commandsManager; + + beforeEach(() => { + commandsManager = new CommandsManager(); + hotkeysManager = new HotkeysManager(commandsManager); + CommandsManager.mockClear(); + hotkeys.mockClear(); + log.warn.mockClear(); + jest.clearAllMocks(); + }); + + it('has expected properties', () => { + const allProperties = Object.keys(hotkeysManager); + const expectedProprties = [ + 'hotkeyDefinitions', + 'hotkeyDefaults', + 'isEnabled', + ]; + + const containsAllExpectedProperties = expectedProprties.every(expected => + allProperties.includes(expected) + ); + + expect(containsAllExpectedProperties).toBe(true); + }); + + it('logs a warning if instantiated without a commandsManager', () => { + new HotkeysManager(); + + expect(log.warn.mock.calls.length).toBe(1); + expect(log.warn.mock.calls[0][0]).toEqual( + 'HotkeysManager instantiated without a commandsManager. Hotkeys will be unable to find and run commands.' + ); + }); + + describe('disable()', () => { + beforeEach(() => hotkeys.pause.mockClear()); + + it('sets isEnabled property to false', () => { + hotkeysManager.disable(); + + expect(hotkeysManager.isEnabled).toBe(false); + }); + + it('calls hotkeys.pause()', () => { + hotkeysManager.disable(); + + expect(hotkeys.pause.mock.calls.length).toBe(1); + }); + }); + + describe('enable()', () => { + beforeEach(() => hotkeys.unpause.mockClear()); + + it('sets isEnabled property to true', () => { + hotkeysManager.disable(); + hotkeysManager.enable(); + + expect(hotkeysManager.isEnabled).toBe(true); + }); + + it('calls hotkeys.unpause()', () => { + hotkeysManager.enable(); + + expect(hotkeys.unpause.mock.calls.length).toBe(1); + }); + }); + + describe('setHotkeys()', () => { + it('calls registerHotkeys for each hotkeyDefinition', () => { + const hotkeyDefinitions = [ + { commandName: 'dance', label: 'dance dance', keys: '+' }, + { commandName: 'celebrate', label: 'celebrate everything', keys: 'q' }, + ]; + + hotkeysManager.registerHotkeys = jest.fn(); + hotkeysManager.setHotkeys(hotkeyDefinitions); + + const numberOfCalls = hotkeysManager.registerHotkeys.mock.calls.length; + const firstCallArgs = hotkeysManager.registerHotkeys.mock.calls[0][0]; + const secondCallArgs = hotkeysManager.registerHotkeys.mock.calls[1][0]; + + expect(numberOfCalls).toBe(2); + expect(firstCallArgs).toEqual(hotkeyDefinitions[0]); + expect(secondCallArgs).toEqual(hotkeyDefinitions[1]); + }); + it('does not set this.hotkeyDefaults by default', () => { + const hotkeyDefinitions = [{ commandName: 'dance', keys: '+' }]; + + hotkeysManager.setHotkeys(hotkeyDefinitions); + + expect(hotkeysManager.hotkeyDefaults).toEqual([]); + }); + it('sets this.hotkeyDefaults when isDefaultDefinitions is true', () => { + const hotkeyDefinitions = [{ commandName: 'dance', keys: '+' }]; + const isDefaultDefinitions = true; + + hotkeysManager.setHotkeys(hotkeyDefinitions, isDefaultDefinitions); + + expect(hotkeysManager.hotkeyDefaults).toEqual(hotkeyDefinitions); + }); + }); + + describe('registerHotkeys()', () => { + it('logs a warning and returns undefined if a commandName is not provided', () => { + const definition = { commandName: undefined, keys: '+' }; + + const result = hotkeysManager.registerHotkeys(definition); + + expect(result).toBe(undefined); + expect(log.warn.mock.calls.length).toBe(1); + }); + it('updates hotkeyDefinitions property with registered keys', () => { + const definition = { commandName: 'dance', label: 'hello', keys: '+' }; + const expectedHotkeyDefinition = { label: 'hello', keys: '+' }; + + hotkeysManager.registerHotkeys(definition); + + const numOfHotkeyDefinitions = Object.keys( + hotkeysManager.hotkeyDefinitions + ).length; + const hotkeyDefinitionForRegisteredCommand = + hotkeysManager.hotkeyDefinitions[definition.commandName]; + + expect(numOfHotkeyDefinitions).toBe(1); + expect(hotkeyDefinitionForRegisteredCommand).toEqual( + expectedHotkeyDefinition + ); + }); + it('calls hotkeys.bind for all keys in array', () => { + const definition = { commandName: 'dance', keys: ['h', 'e', 'l', 'o'] }; + + hotkeysManager.registerHotkeys(definition); + + expect(hotkeys.bind.mock.calls.length).toBe(definition.keys.length); + definition.keys.forEach((key, i) => + expect(hotkeys.bind.mock.calls[i][0]).toBe(key) + ); + }); + it('calls hotkeys.unbind if commandName was previously registered, for each previously registered set of keys', () => { + const firstDefinition = { + commandName: 'dance', + keys: ['h', 'e', 'l', 'o'], + }; + const secondDefinition = { commandName: 'dance', keys: 'a' }; + + // First call + hotkeysManager.registerHotkeys(firstDefinition); + // Second call + hotkeysManager.registerHotkeys(secondDefinition); + + expect(hotkeys.unbind.mock.calls.length).toBe( + firstDefinition.keys.length + ); + firstDefinition.keys.forEach((key, i) => + expect(hotkeys.unbind.mock.calls[i][0]).toBe(key) + ); + }); + }); + + describe('restoreDefaults()', () => { + it('calls setHotkeys with hotkey defaults', () => { + hotkeysManager.setHotkeys = jest.fn(); + + hotkeysManager.restoreDefaultBindings(); + + expect(hotkeysManager.setHotkeys.mock.calls[0][0]).toEqual( + hotkeysManager.hotkeyDefaults + ); + }); + }); + + describe('destroy()', () => { + it('clears default and definition properties', () => { + hotkeysManager.hotkeyDefaults = ['hotdog', 'jeremy', 'qasar']; + hotkeysManager.hotkeyDefinitions = { + hello: 'world', + }; + + hotkeysManager.destroy(); + + expect(hotkeysManager.hotkeyDefaults).toEqual([]); + expect(hotkeysManager.hotkeyDefinitions).toEqual({}); + }); + it('resets all hotkey bindings', () => { + hotkeysManager.destroy(); + + expect(hotkeys.reset.mock.calls.length).toEqual(1); + }); + }); +}); diff --git a/packages/_core/src/classes/ImageSet.js b/packages/_core/src/classes/ImageSet.js new file mode 100644 index 000000000..d97c7cb56 --- /dev/null +++ b/packages/_core/src/classes/ImageSet.js @@ -0,0 +1,68 @@ +import guid from '../utils/guid.js'; +import OHIFError from './OHIFError'; + +const OBJECT = 'object'; + +/** + * This class defines an ImageSet object which will be used across the viewer. This object represents + * a list of images that are associated by any arbitrary criteria being thus content agnostic. Besides the + * main attributes (images and uid) it allows additional attributes to be appended to it (currently + * indiscriminately, but this should be changed). + */ +class ImageSet { + constructor(images) { + if (Array.isArray(images) !== true) { + throw new OHIFError('ImageSet expects an array of images'); + } + + // @property "images" + Object.defineProperty(this, 'images', { + enumerable: false, + configurable: false, + writable: false, + value: images, + }); + + // @property "uid" + Object.defineProperty(this, 'uid', { + enumerable: false, + configurable: false, + writable: false, + value: guid(), // Unique ID of the instance + }); + } + + getUID() { + return this.uid; + } + + setAttribute(attribute, value) { + this[attribute] = value; + } + + getAttribute(attribute) { + return this[attribute]; + } + + setAttributes(attributes) { + if (typeof attributes === OBJECT && attributes !== null) { + const imageSet = this, + hasOwn = Object.prototype.hasOwnProperty; + for (let attribute in attributes) { + if (hasOwn.call(attributes, attribute)) { + imageSet[attribute] = attributes[attribute]; + } + } + } + } + + getImage(index) { + return this.images[index]; + } + + sortBy(sortingCallback) { + return this.images.sort(sortingCallback); + } +} + +export default ImageSet; diff --git a/packages/_core/src/classes/MetadataProvider.js b/packages/_core/src/classes/MetadataProvider.js new file mode 100644 index 000000000..f8ba427fe --- /dev/null +++ b/packages/_core/src/classes/MetadataProvider.js @@ -0,0 +1,412 @@ +import { parsingUtils } from '../lib/parsingUtils'; + +const FUNCTION = 'function'; + +class MetadataProvider { + constructor() { + // Define the main "metadataLookup" private property as an immutable property. + Object.defineProperty(this, 'metadataLookup', { + configurable: false, + enumerable: false, + writable: false, + value: new Map(), + }); + + // Local reference to provider function bound to current instance. + Object.defineProperty(this, '_provider', { + configurable: false, + enumerable: false, + writable: true, + value: null, + }); + } + + /** + * Cornerstone Metadata provider to store image meta data + * Data from instances, series, and studies are associated with + * imageIds to facilitate usage of this information by Cornerstone's Tools + * + * e.g. the imagePlane metadata object contains instance information about + * row/column pixel spacing, patient position, and patient orientation. It + * is used in CornerstoneTools to position reference lines and orientation markers. + * + * @param {String} imageId The Cornerstone ImageId + * @param {Object} data An object containing instance, series, and study metadata + */ + addMetadata(imageId, data) { + const instanceMetadata = data.instance; + const seriesMetadata = data.series; + const studyMetadata = data.study; + const numImages = data.numImages; + const metadata = {}; + + metadata.frameNumber = data.frameNumber; + + metadata.study = { + accessionNumber: studyMetadata.accessionNumber, + patientId: studyMetadata.patientId, + studyInstanceUid: studyMetadata.studyInstanceUid, + studyDate: studyMetadata.studyDate, + studyTime: studyMetadata.studyTime, + studyDescription: studyMetadata.studyDescription, + institutionName: studyMetadata.institutionName, + patientHistory: studyMetadata.patientHistory, + }; + + metadata.series = { + seriesDescription: seriesMetadata.seriesDescription, + seriesNumber: seriesMetadata.seriesNumber, + seriesDate: seriesMetadata.seriesDate, + seriesTime: seriesMetadata.seriesTime, + modality: seriesMetadata.modality, + seriesInstanceUid: seriesMetadata.seriesInstanceUid, + numImages: numImages, + }; + + metadata.instance = instanceMetadata; + + metadata.patient = { + name: studyMetadata.patientName, + id: studyMetadata.patientId, + birthDate: studyMetadata.patientBirthDate, + sex: studyMetadata.patientSex, + age: studyMetadata.patientAge, + }; + + // If there is sufficient information, populate + // the imagePlane object for easier use in the Viewer + metadata.imagePlane = this.getImagePlane(instanceMetadata); + + // Add the metadata to the imageId lookup object + this.metadataLookup.set(imageId, metadata); + } + + /** + * Return the metadata for the given imageId + * @param {String} imageId The Cornerstone ImageId + * @returns image metadata + */ + getMetadata(imageId) { + return this.metadataLookup.get(imageId); + } + + /** + * Adds a set of metadata to the Cornerstone metadata provider given a specific + * imageId, type, and dataset + * + * @param imageId + * @param type (e.g. series, instance, tagDisplay) + * @param data + */ + addSpecificMetadata(imageId, type, data) { + const metadata = {}; + metadata[type] = data; + + const oldMetadata = this.metadataLookup.get(imageId); + this.metadataLookup.set(imageId, Object.assign(oldMetadata, metadata)); + } + + getFromImage(image, type, tag, attrName, defaultValue) { + let value; + + if (image.data) { + value = this.getFromDataSet(image.data, type, tag); + } else { + value = image.instance[attrName]; + } + + return value === null ? defaultValue : value; + } + + getFromDataSet(dataSet, type, tag) { + if (!dataSet) { + return; + } + + const fn = dataSet[type]; + if (!fn) { + return; + } + + return fn.call(dataSet, tag); + } + + getFrameIncrementPointer(image) { + const dataSet = image.data; + let frameInstancePointer = ''; + + if (parsingUtils.isValidDataSet(dataSet)) { + const frameInstancePointerNames = { + x00181063: 'frameTime', + x00181065: 'frameTimeVector', + }; + + // (0028,0009) = Frame Increment Pointer + const frameInstancePointerTag = parsingUtils.attributeTag( + dataSet, + 'x00280009' + ); + frameInstancePointer = frameInstancePointerNames[frameInstancePointerTag]; + } else { + frameInstancePointer = image.instance.frameIncrementPointer; + } + + return frameInstancePointer || ''; + } + + getFrameTimeVector(image) { + const dataSet = image.data; + + if (parsingUtils.isValidDataSet(dataSet)) { + // Frame Increment Pointer points to Frame Time Vector (0018,1065) field + return parsingUtils.floatArray(dataSet, 'x00181065'); + } + + return image.instance.frameTimeVector; + } + + getFrameTime(image) { + const dataSet = image.data; + + if (parsingUtils.isValidDataSet(dataSet)) { + // Frame Increment Pointer points to Frame Time (0018,1063) field or is not defined (for addtional flexibility). + // Yet another value is possible for this field (5200,9230 for Multi-frame Functional Groups) + // but that case is currently not supported. + return dataSet.floatString('x00181063', -1); + } + + return image.instance.frameTime; + } + + /** + * Updates the related metadata for missing fields given a specified image + * + * @param image + */ + updateMetadata(image) { + const imageMetadata = this.metadataLookup.get(image.imageId); + if (!imageMetadata) { + return; + } + + imageMetadata.patient.age = + imageMetadata.patient.age || + this.getFromDataSet(image.data, 'string', 'x00101010'); + + imageMetadata.instance.rows = imageMetadata.instance.rows || image.rows; + imageMetadata.instance.columns = + imageMetadata.instance.columns || image.columns; + + imageMetadata.instance.sopClassUid = + imageMetadata.instance.sopClassUid || + this.getFromDataSet(image.data, 'string', 'x00080016'); + imageMetadata.instance.sopInstanceUid = + imageMetadata.instance.sopInstanceUid || + this.getFromDataSet(image.data, 'string', 'x00080018'); + + imageMetadata.instance.pixelSpacing = + imageMetadata.instance.pixelSpacing || + this.getFromDataSet(image.data, 'string', 'x00280030'); + imageMetadata.instance.frameOfReferenceUID = + imageMetadata.instance.frameOfReferenceUID || + this.getFromDataSet(image.data, 'string', 'x00200052'); + imageMetadata.instance.imageOrientationPatient = + imageMetadata.instance.imageOrientationPatient || + this.getFromDataSet(image.data, 'string', 'x00200037'); + imageMetadata.instance.imagePositionPatient = + imageMetadata.instance.imagePositionPatient || + this.getFromDataSet(image.data, 'string', 'x00200032'); + + imageMetadata.instance.sliceThickness = + imageMetadata.instance.sliceThickness || + this.getFromDataSet(image.data, 'string', 'x00180050'); + imageMetadata.instance.sliceLocation = + imageMetadata.instance.sliceLocation || + this.getFromDataSet(image.data, 'string', 'x00201041'); + imageMetadata.instance.tablePosition = + imageMetadata.instance.tablePosition || + this.getFromDataSet(image.data, 'string', 'x00189327'); + imageMetadata.instance.spacingBetweenSlices = + imageMetadata.instance.spacingBetweenSlices || + this.getFromDataSet(image.data, 'string', 'x00180088'); + + imageMetadata.instance.lossyImageCompression = + imageMetadata.instance.lossyImageCompression || + this.getFromDataSet(image.data, 'string', 'x00282110'); + imageMetadata.instance.lossyImageCompressionRatio = + imageMetadata.instance.lossyImageCompressionRatio || + this.getFromDataSet(image.data, 'string', 'x00282112'); + + imageMetadata.instance.frameIncrementPointer = + imageMetadata.instance.frameIncrementPointer || + this.getFromDataSet(image.data, 'string', 'x00280009'); + imageMetadata.instance.frameTime = + imageMetadata.instance.frameTime || + this.getFromDataSet(image.data, 'string', 'x00181063'); + imageMetadata.instance.frameTimeVector = + imageMetadata.instance.frameTimeVector || + this.getFromDataSet(image.data, 'string', 'x00181065'); + + if ( + (image.data || image.instance) && + !imageMetadata.instance.multiframeMetadata + ) { + imageMetadata.instance.multiframeMetadata = this.getMultiframeModuleMetadata( + image + ); + } + + imageMetadata.imagePlane = + imageMetadata.imagePlane || this.getImagePlane(imageMetadata.instance); + } + + /** + * Constructs and returns the imagePlane given the metadata instance + * + * @param metadataInstance The metadata instance (InstanceMetadata class) containing information to construct imagePlane + * @returns imagePlane The constructed imagePlane to be used in viewer easily + */ + getImagePlane(instance) { + if ( + !instance.rows || + !instance.columns || + !instance.pixelSpacing || + !instance.frameOfReferenceUID || + !instance.imageOrientationPatient || + !instance.imagePositionPatient + ) { + return; + } + + const imageOrientation = instance.imageOrientationPatient.split('\\'); + const imagePosition = instance.imagePositionPatient.split('\\'); + + let columnPixelSpacing = 1.0; + let rowPixelSpacing = 1.0; + if (instance.pixelSpacing) { + const split = instance.pixelSpacing.split('\\'); + rowPixelSpacing = parseFloat(split[0]); + columnPixelSpacing = parseFloat(split[1]); + } + + return { + frameOfReferenceUID: instance.frameOfReferenceUID, + rows: instance.rows, + columns: instance.columns, + rowCosines: [ + parseFloat(imageOrientation[0]), + parseFloat(imageOrientation[1]), + parseFloat(imageOrientation[2]), + ], + columnCosines: [ + parseFloat(imageOrientation[3]), + parseFloat(imageOrientation[4]), + parseFloat(imageOrientation[5]), + ], + imagePositionPatient: [ + parseFloat(imagePosition[0]), + parseFloat(imagePosition[1]), + parseFloat(imagePosition[2]), + ], + rowPixelSpacing, + columnPixelSpacing, + }; + } + + /** + * This function extracts miltiframe information from a dicomParser.DataSet object. + * + * @param dataSet {Object} An instance of dicomParser.DataSet object where multiframe information can be found. + * @return {Object} An object containing multiframe image metadata (frameIncrementPointer, frameTime, frameTimeVector, etc). + */ + getMultiframeModuleMetadata(image) { + const imageInfo = { + isMultiframeImage: false, + frameIncrementPointer: null, + numberOfFrames: 0, + frameTime: 0, + frameTimeVector: null, + averageFrameRate: 0, // backwards compatibility only... it might be useless in the future + }; + + let frameTime; + + const numberOfFrames = this.getFromImage( + image, + 'intString', + 'x00280008', + 'numberOfFrames', + -1 + ); + + if (numberOfFrames > 0) { + // set multi-frame image indicator + imageInfo.isMultiframeImage = true; + imageInfo.numberOfFrames = numberOfFrames; + + // (0028,0009) = Frame Increment Pointer + const frameIncrementPointer = this.getFrameIncrementPointer(image); + + if (frameIncrementPointer === 'frameTimeVector') { + // Frame Increment Pointer points to Frame Time Vector (0018,1065) field + const frameTimeVector = this.getFrameTimeVector(image); + + if (frameTimeVector instanceof Array && frameTimeVector.length > 0) { + imageInfo.frameIncrementPointer = frameIncrementPointer; + imageInfo.frameTimeVector = frameTimeVector; + frameTime = + frameTimeVector.reduce((a, b) => a + b) / frameTimeVector.length; + imageInfo.averageFrameRate = 1000 / frameTime; + } + } else if ( + frameIncrementPointer === 'frameTime' || + frameIncrementPointer === '' + ) { + frameTime = this.getFrameTime(image); + + if (frameTime > 0) { + imageInfo.frameIncrementPointer = frameIncrementPointer; + imageInfo.frameTime = frameTime; + imageInfo.averageFrameRate = 1000 / frameTime; + } + } + } + + return imageInfo; + } + + /** + * Get a bound reference to the provider function. + */ + getProvider() { + let provider = this._provider; + if (typeof this._provider !== FUNCTION) { + provider = this.provider.bind(this); + this._provider = provider; + } + + return provider; + } + + /** + * Looks up metadata for Cornerstone Tools given a specified type and imageId + * A type may be, e.g. 'study', or 'patient', or 'imagePlaneModule'. These types + * are keys in the stored metadata objects. + * + * @param type + * @param imageId + * @returns {Object} Relevant metadata of the specified type + */ + provider(type, imageId) { + const imageMetadata = this.metadataLookup.get(imageId); + if (!imageMetadata) { + return; + } + + if (imageMetadata.hasOwnProperty(type)) { + return imageMetadata[type]; + } + } +} + +export default MetadataProvider; diff --git a/packages/_core/src/classes/OHIFError.js b/packages/_core/src/classes/OHIFError.js new file mode 100644 index 000000000..ff6068a0f --- /dev/null +++ b/packages/_core/src/classes/OHIFError.js @@ -0,0 +1,14 @@ +// @TODO: improve this object +/** + * Objects to be used to throw errors + */ +class OHIFError extends Error { + constructor(message) { + super(); + this.message = message; + this.stack = new Error().stack; + this.name = this.constructor.name; + } +} + +export default OHIFError; diff --git a/packages/_core/src/classes/OHIFStudyMetadataSource.js b/packages/_core/src/classes/OHIFStudyMetadataSource.js new file mode 100644 index 000000000..f78a5e6c1 --- /dev/null +++ b/packages/_core/src/classes/OHIFStudyMetadataSource.js @@ -0,0 +1,81 @@ +import { studyMetadataManager, updateMetaDataManager } from '../utils'; + +import OHIFError from './OHIFError'; +import { StudyMetadata } from './metadata/StudyMetadata'; +import { StudyMetadataSource } from './StudyMetadataSource.js'; +import { StudySummary } from './metadata/StudySummary'; +import { retrieveStudyMetadata } from '../studies/retrieveStudyMetadata.js'; + +export class OHIFStudyMetadataSource extends StudyMetadataSource { + /** + * Get study metadata for a study with given study InstanceUID + * @param server + * @param {String} studyInstanceUID Study InstanceUID + * @return {Promise} A Promise object + */ + getByInstanceUID(server, studyInstanceUID) { + return retrieveStudyMetadata(server, studyInstanceUID); + } + + /** + * Load study info (OHIF.viewer.Studies) and study metadata (OHIF.viewer.StudyMetadataList) for a given study. + * @param {StudySummary|StudyMetadata} study of StudySummary or StudyMetadata object. + */ + loadStudy(study) { + if (!(study instanceof StudyMetadata) && !(study instanceof StudySummary)) { + throw new OHIFError( + 'OHIFStudyMetadataSource::loadStudy study is not an instance of StudySummary or StudyMetadata' + ); + } + + return new Promise((resolve, reject) => { + const studyInstanceUID = study.getStudyInstanceUID(); + + if (study instanceof StudyMetadata) { + const alreadyLoaded = OHIF.viewer.Studies.findBy({ + studyInstanceUid: studyInstanceUID, + }); + + if (!alreadyLoaded) { + OHIFStudyMetadataSource._updateStudyCollections(study); + } + + resolve(study); + return; + } + + this.getByInstanceUID(studyInstanceUID) + .then(studyInfo => { + // Create study metadata object + const studyMetadata = new StudyMetadata( + studyInfo, + studyInfo.studyInstanceUid + ); + + // Get Study display sets + const displaySets = studyMetadata.createDisplaySets(); + + // Set studyMetadata display sets + studyMetadata.setDisplaySets(displaySets); + + OHIFStudyMetadataSource._updateStudyCollections(studyMetadata); + resolve(studyMetadata); + }) + .catch(reject); + }); + } + + // Static methods + static _updateStudyCollections(studyMetadata) { + const studyInfo = studyMetadata.getData(); + + // Set some studyInfo properties + studyInfo.selected = true; + studyInfo.displaySets = studyMetadata.getDisplaySets(); + + // Updates WADO-RS metaDataManager + updateMetaDataManager(studyInfo); + + studyMetadataManager.add(studyMetadata); + } +} diff --git a/packages/_core/src/classes/OHIFStudySummary.js b/packages/_core/src/classes/OHIFStudySummary.js new file mode 100644 index 000000000..e40072a77 --- /dev/null +++ b/packages/_core/src/classes/OHIFStudySummary.js @@ -0,0 +1,55 @@ +import StudySummary from './StudySummary'; + +/** + * Constants + */ + +const STRING = 'string'; +const propertyReplacementMap = { + modalities: 'ModalitiesInStudy', + patientBirthdate: 'PatientBirthDate', +}; + +/** + * OHIF Viewers specialized version of StudySummary class + */ +export class OHIFStudySummary extends StudySummary { + // @Override + addTags(tagMap) { + const _hasOwn = Object.prototype.hasOwnProperty; + const _tagMap = Object.create(null); + for (let property in tagMap) { + if (_hasOwn.call(tagMap, property)) { + let standardProperty = OHIFStudySummary.getStandardPropertyName( + property + ); + if (standardProperty) { + _tagMap[standardProperty] = tagMap[property]; + } + } + } + super.addTags(_tagMap); + } + + /** + * Turns a non-standard, OHIF specific, DICOM property name into a standard one. + * @param {string} property A string representing a non-conforming keyword. + * @returns {string|undefined} Returns a standard-conforming property name. + */ + static getStandardPropertyName(property) { + let standardProperty; + if (typeof property === STRING && property.charAt(0) !== '_') { + if (property in propertyReplacementMap) { + standardProperty = propertyReplacementMap[propertyReplacementMap]; + } else { + standardProperty = property + .replace(/^sop/, 'SOP') + .replace(/Uid$/, 'UID') + .replace(/Id$/, 'ID'); + standardProperty = + standardProperty.charAt(0).toUpperCase() + standardProperty.substr(1); + } + } + return standardProperty; + } +} diff --git a/packages/_core/src/classes/README.md b/packages/_core/src/classes/README.md new file mode 100644 index 000000000..a93a1ea60 --- /dev/null +++ b/packages/_core/src/classes/README.md @@ -0,0 +1,167 @@ +# Table of contents +In this document, some important objects are described. In the files there are comments that can help better undestand their methods and properties. + - [ResizeViewportManager object](#the-resize-viewport-manager-object) + - [ImageSet object](#the-image-set-object) + - [Layout Manager](#the-layout-manager-object) + - [Type Safe Collections](#the-type-safe-collections) + +# The Resize Viewport Manager object +This object has multiple functions to manage window resize event. It relocates Dialogs, resizes viewport elements and scrollbars and some other UI components such as Study and Series Quick Switch, when available. + +## Usage +It's only necessary to bind **handleResize** function to the window resize event as follows. The **ohif:viewerbase** package needs to be imported by the referring code as well. +```javascript +import { Viewerbase } from 'meteor/ohif:viewerbase'; + +const ResizeViewportManager = new Viewerbase.ResizeViewportManager(); +window.addEventListener('resize', ResizeViewportManager.getResizeHandler()); +``` +An example os its usage can be found in **ohif-viewerbase/client/components/viewer/viewerMain/viewerMain.js**. + +# The Image Set object +An object that represents a list of images that are associated by any arbitrary criteria being thus content agnostic. Besides the main attributes (**images** and **uid**) it allows additional attributes to be appended to it (currently indiscriminately, but this should be changed). + +## Usage +ImageSet constructor requires an array of SOP instances like in the example below. It's necessary to import **ohif:viewerbase**. + +```javascript +import { Viewerbase } from 'meteor/ohif:viewerbase'; + +const imageSet = new Viewerbase.ImageSet(sopInstances); + +imageSet.setAttributes({ + displaySetInstanceUid: imageSet.uid, + seriesInstanceUid: seriesData.seriesInstanceUid, + seriesNumber: seriesData.seriesNumber, + seriesDescription: seriesData.seriesDescription, + numImageFrames: instances.length, + frameRate: instance.getRawValue('x00181063'), + modality: seriesData.modality, + isMultiFrame: isMultiFrame(instance) +}); + +// Sort instances by InstanceNumber (0020,0013) +imageSet.sortBy((a, b) => { + return (parseInt(a.getRawValue('x00200013', 0)) || 0) - (parseInt(b.getRawValue('x00200013', 0)) || 0); +}); +``` +Each SOP instance in this example is an instance of **OHIFInstanceMetadata** object, which is a specialization of **InstanceMetadata**. To read more about the **Metadata API** click [here](metadata/). + +# The Layout Manager object +Objects of this class are responsible for creating, organizing and maintaining (manage) viewport rendering. It creates a grid, positioning viewports accordingly to it's configuration keeping all viewports data (in **viewportData** property) for easy access from other components. It support many layout configurations and some of them were fully tested: 1x1, 1x2, 1x3, 2x1, 2x2, 2x3, 3x1, 3x2, 3x3. Other configurations may work as well. +Finally it provides some useful functions to move through viewports and zoom it. + +## Usage +In order to use _LayoutManager_ the **ohif:viewerbase** package needs to be imported by the referring code and instantiated as follows. An example os its usage is in **ohif-viewerbase/client/components/viewer/viewerMain/viewerMain.js**. + +```javascript +import { Viewerbase } from 'meteor/ohif:viewerbase'; + +// Get an array of studies object. This function needs to be implemented, it does not exist. +const studies = getArrayOfStudiesObjects(); +const parentElement = document.getElementById('layoutManagerTarget'); +const LayoutManager = new Viewerbase.LayoutManager(parentElement, studies); +``` + +The default configuration is 1x1, and to change it just set **layoutProps** and call **updateViewports** to update the layout as follows. + +```javascript +import { Viewerbase } from 'meteor/ohif:viewerbase'; + +// Get an array of studies object. This function needs to be implemented, it does not exist. +const studies = getArrayOfStudiesObjects(); +const parentElement = document.getElementById('layoutManagerTarget'); +const LayoutManager = new LayoutManager(parentElement, studies); + +// Set the layout proprerties to 2x2 layout +LayoutManager.layoutProps = { + rows: 2, + columns: 2 +}; + +// It will render four viewports: two in each row. +LayoutManager.updateViewports(); +``` + +The layoutManagerTarget element will have a new class **layout-2-2** (to allow further styling) and it's inner content will a new div#imageViewerViewports that has four inner elements like the following (some elements and attributes were removed for example purpose): +```html +
+
+
+ +
+
+
+
+
+
+
+``` + +Each of this _div.viewportContainer_ will have some classes to help CSS specific styling accordingly to the element's position in the grid: **top**, **middle** and **bottom**. This classes are added by **viewer/components/gridLayout/** component in ohif-viewerbase package. + +# The Type Safe Collections + +With the introduction of the new _Study Metadata API_ in which study metadata is represented by class hierarchies (using prototype-based inheritance), the usage of standard _Minimongo_ collections as a central client-side storage for this data became no longer an option. Standard _Mongo_ and _Minimongo_ collections internally _flatten_ data (in other words, data gets serialized) before storage hence no functions or prototype chains are preserved. In that scenario, when an object is restored (fetched), what is returned is actually a flattened copy of the original object with no functions or prototype (it's no longer an instance of it's original class). As an attempt to overcome this limitation a new type of collection was intruduced: the *TypeSafeCollection*. + +The `TypeSafeCollection` is a simple list-like collection which tries to implement an API _similar_ but not compatible with _Mongo_'s API. It supports basic features like search by attribute map and ID, retrieval by index, sorting of result sets, insertion, removal and reactive operations but, unlike _Mongo_'s API, it (still) lacks support to advanced functionality like complex search criterea or flexible sorting options. + +## Implementation + +The `TypeSafeCollection` is implemented on top of the _JavaScript_ `Array` object. Each element inserted in the collection is appended to the end of its internal array as a _key-value pair (KVP)_ object where the _key_ is a unique randomly generated ID string and the _value_ is the element itself. Once the object has been successfully stored, the generated ID (its ID) is returned to the client code and can later be used to access that specific element. At this point, an important difference to the _Minimongo_ API can be highlighted: a _TypeSafeCollection_ instance will never make any changes to the stored element (e.g., no "\_id" property will ever be assigned to the original object). Another relevant feature that is supported by this design decision is that _not only objects_ can be stored in this collections, but literally _anything_. + +Inside the codebase, the _value_ attribute of each _KVP_ entry in the collection is refered to as _the **payload** of the entry_ since it's what really matters to the user. Hence, this term will also be used here to refer to the _value that has been stored in the collection_. That being said, we can approach another important feature of these collections: A single _payload_ cannot be stored more than once in a given collection. When an attempt of inserting a _payload_ which is already present in the collection is detected, the insert operation will fail and `null` will be returned. In that regard, the collection behaves like `Set` object not permitting a payload to be stored more than once. Strict equality is used when comparing payloads, thus cloned objects are not considered the same. This feature adds an additional garantee that a given study/series/instance will not be listed more than once (it was designed as a replacement for central study collections which were always checked for duplicates). + +Please refer to the codebase for the full `TypeSafeCollection` API. + +## Usage + +In order to use the `TypeSafeCollection` class, the **ohif:viewerbase** package needs to be imported by the referring code and instantiated as follows: + +```javascript +import { Viewerbase } from 'meteor/ohif:viewerbase'; // i.e., Viewerbase.TypeSafeCollection +OR + +import 'meteor/ohif:viewerbase'; // i.e., OHIF.viewerbase.TypeSafeCollection +// The later is preferred when the client code already makes use of the "OHIF" namespace making the second +// "import" a garantee that the ".viewerbase" namespace has been properly loaded. +``` + +A few usage examples: + +```javascript + +const Users = new OHIF.viewerbase.TypeSafeCollection(); + +[[ ... ]] + +// Insert a User object... +let userId = Users.insert({ + data: { + firstName: 'John', + lastName: 'Doe', + age: 45 + }, + getFullName() { + return `${this.data.firstName} ${this.data.lastName}`; + }, + getAge() { + return this.data.age; + } +}); + +[[ ... ]] + +let theUserWeJustStored = Users.findById(userId); // ;-) + +[[ ... ]] + +// Retrieve a single user with "Doe" as `lastName`... +let myUser = Users.findBy({ 'data.lastName': 'Doe' }); +// Or all users with "Doe" as `lastName`, sorted by `firstName` in ascending +// order and using the `age` attribute to break ties in descending order... +let myUsers = Users.findAllBy({ 'data.lastName': 'Doe' }, { + sort: [ [ 'data.firstName', 'asc' ], [ 'data.age', 'desc' ] ] +}); + +``` diff --git a/packages/_core/src/classes/StudyLoadingListener.js b/packages/_core/src/classes/StudyLoadingListener.js new file mode 100644 index 000000000..9859bb056 --- /dev/null +++ b/packages/_core/src/classes/StudyLoadingListener.js @@ -0,0 +1,471 @@ +import cornerstone from 'cornerstone-core'; +import cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader'; +import { + clearStudyLoadingProgress, + setStudyLoadingProgress, +} from '../redux/actions'; +import StackManager from '../utils/StackManager'; + +class BaseLoadingListener { + constructor(stack, options = {}) { + this.id = BaseLoadingListener.getNewId(); + this.stack = stack; + this.startListening(); + this.statsItemsLimit = options.statsItemsLimit || 2; + this.stats = { + items: [], + total: 0, + elapsedTime: 0, + speed: 0, + }; + + this._setProgressData = options._setProgressData; + this._clearProgressById = options._clearProgressById; + + // Register the start point to make it possible to calculate + // bytes/s or frames/s when the first byte or frame is received + this._addStatsData(0); + + // Update the progress before starting the download + // to make it possible to update the UI + this._updateProgress(); + } + + _addStatsData(value) { + const date = new Date(); + const stats = this.stats; + const items = stats.items; + const newItem = { + value, + date, + }; + + items.push(newItem); + stats.total += newItem.value; + + // Remove items until it gets below the limit + while (items.length > this.statsItemsLimit) { + const item = items.shift(); + stats.total -= item.value; + } + + // Update the elapsedTime (seconds) based on first and last + // elements and recalculate the speed (bytes/s or frames/s) + if (items.length > 1) { + const oldestItem = items[0]; + stats.elapsedTime = + (newItem.date.getTime() - oldestItem.date.getTime()) / 1000; + stats.speed = (stats.total - oldestItem.value) / stats.elapsedTime; + } + } + + _getProgressId() { + const displaySetInstanceUid = this.stack.displaySetInstanceUid; + return 'StackProgress:' + displaySetInstanceUid; + } + + _clearProgress() { + const progressId = this._getProgressId(); + this._clearProgressById(progressId); + } + + startListening() { + throw new Error('`startListening` must be implemented by child classes'); + } + + stopListening() { + throw new Error('`stopListening` must be implemented by child classes'); + } + + destroy() { + this.stopListening(); + this._clearProgress(); + } + + static getNewId() { + const timeSlice = new Date() + .getTime() + .toString() + .slice(-8); + const randomNumber = parseInt(Math.random() * 1000000000); + + return timeSlice.toString() + randomNumber.toString(); + } +} + +class DICOMFileLoadingListener extends BaseLoadingListener { + constructor(stack, options) { + super(stack, options); + this._dataSetUrl = this._getDataSetUrl(stack); + this._lastLoaded = 0; + + // Check how many instances has already been download (cached) + this._checkCachedData(); + } + + _checkCachedData() { + const dataSet = cornerstoneWADOImageLoader.wadouri.dataSetCacheManager.get( + this._dataSetUrl + ); + + if (dataSet) { + const dataSetLength = dataSet.byteArray.length; + + this._updateProgress({ + percentComplete: 100, + loaded: dataSetLength, + total: dataSetLength, + }); + } + } + + _getImageLoadProgressEventName() { + // TODO: Add this event as a constant in Cornerstone + return 'cornerstoneimageloadprogress.' + this.id; + } + + startListening() { + const imageLoadProgressEventName = this._getImageLoadProgressEventName(); + + this.imageLoadProgressEventHandler = this._imageLoadProgressEventHandle.bind( + this + ); + + this.stopListening(); + + cornerstone.events.addEventListener( + imageLoadProgressEventName, + this.imageLoadProgressEventHandle + ); + } + + stopListening() { + const imageLoadProgressEventName = this._getImageLoadProgressEventName(); + cornerstone.events.removeEventListener( + imageLoadProgressEventName, + this.imageLoadProgressEventHandle + ); + } + + _imageLoadProgressEventHandler = e => { + const eventData = e.detail; + const dataSetUrl = this._convertImageIdToDataSetUrl(eventData.imageId); + const bytesDiff = eventData.loaded - this._lastLoaded; + + if (!this._dataSetUrl === dataSetUrl) { + return; + } + + // Add the bytes downloaded to the stats + this._addStatsData(bytesDiff); + + // Update the download progress + this._updateProgress(eventData); + + // Cache the last eventData.loaded value + this._lastLoaded = eventData.loaded; + }; + + _updateProgress(eventData) { + const progressId = this._getProgressId(); + eventData = eventData || {}; + + const progressData = { + multiFrame: false, + percentComplete: eventData.percentComplete, + bytesLoaded: eventData.loaded, + bytesTotal: eventData.total, + bytesPerSecond: this.stats.speed, + }; + + this._setProgressData(progressId, progressData); + } + + _convertImageIdToDataSetUrl(imageId) { + // Remove the prefix ("dicomweb:" or "wadouri:"") + imageId = imageId.replace(/^(dicomweb:|wadouri:)/i, ''); + + // Remove "frame=999&" from the imageId + imageId = imageId.replace(/frame=\d+&?/i, ''); + + // Remove the last "&" like in "http://...?foo=1&bar=2&" + imageId = imageId.replace(/&$/, ''); + + return imageId; + } + + _getDataSetUrl(stack) { + const imageId = stack.imageIds[0]; + return this._convertImageIdToDataSetUrl(imageId); + } +} + +class StackLoadingListener extends BaseLoadingListener { + constructor(stack, options = {}) { + options.statsItemsLimit = 20; + super(stack, options); + + this.imageDataMap = this._convertImageIdsArrayToMap(stack.imageIds); + this.framesStatus = this._createArray(stack.imageIds.length, false); + this.loadedCount = 0; + + // Check how many instances has already been download (cached) + this._checkCachedData(); + } + + _convertImageIdsArrayToMap(imageIds) { + const imageIdsMap = new Map(); + + for (let i = 0; i < imageIds.length; i++) { + imageIdsMap.set(imageIds[i], { + index: i, + loaded: false, + }); + } + + return imageIdsMap; + } + + _createArray(length, defaultValue) { + // `new Array(length)` is an anti-pattern in javascript because its + // funny API. Otherwise I would go for `new Array(length).fill(false)` + const array = []; + + for (let i = 0; i < length; i++) { + array[i] = defaultValue; + } + + return array; + } + + _checkCachedData() { + // const imageIds = this.stack.imageIds; + // TODO: No way to check status of Promise. + /*for(let i = 0; i < imageIds.length; i++) { + const imageId = imageIds[i]; + + const imagePromise = cornerstone.imageCache.getImageLoadObject(imageId).promise; + + if (imagePromise && (imagePromise.state() === 'resolved')) { + this._updateFrameStatus(imageId, true); + } + }*/ + } + + _getImageLoadedEventName() { + return `${cornerstone.EVENTS.IMAGE_LOADED}.${this.id}`; + } + + _getImageCachePromiseRemoveEventName() { + return `${cornerstone.EVENTS.IMAGE_CACHE_PROMISE_REMOVED}.${this.id}`; + } + + _imageLoadedEventHandler(e) { + this._updateFrameStatus(e.detail.image.imageId, true); + } + + _imageCachePromiseRemovedEventHandler(e) { + this._updateFrameStatus(e.detail.imageId, false); + } + + startListening() { + const imageLoadedEventName = this._getImageLoadedEventName(); + const imageCachePromiseRemovedEventName = this._getImageCachePromiseRemoveEventName(); + + this.imageLoadedEventHandler = this._imageLoadedEventHandler.bind(this); + this.imageCachePromiseRemovedEventHandler = this._imageCachePromiseRemovedEventHandler.bind( + this + ); + + this.stopListening(); + + cornerstone.events.addEventListener( + imageLoadedEventName, + this.imageLoadedEventHandler + ); + cornerstone.events.addEventListener( + imageCachePromiseRemovedEventName, + this.imageCachePromiseRemovedEventHandler + ); + } + + stopListening() { + const imageLoadedEventName = this._getImageLoadedEventName(); + const imageCachePromiseRemovedEventName = this._getImageCachePromiseRemoveEventName(); + + cornerstone.events.removeEventListener( + imageLoadedEventName, + this.imageLoadedEventHandler + ); + cornerstone.events.removeEventListener( + imageCachePromiseRemovedEventName, + this.imageCachePromiseRemovedEventHandler + ); + } + + _updateFrameStatus(imageId, loaded) { + const imageData = this.imageDataMap.get(imageId); + + if (!imageData || imageData.loaded === loaded) { + return; + } + + // Add one more frame to the stats + if (loaded) { + this._addStatsData(1); + } + + imageData.loaded = loaded; + this.framesStatus[imageData.index] = loaded; + this.loadedCount += loaded ? 1 : -1; + this._updateProgress(); + } + + _setProgressData(progressId, progressData) { + // TODO: This method (and _clearProgressById) need to access + // the Redux store and should therefore be provided from the + // application. I've added a workaround to pass this in through + // the 'options' variable on instantiation, but this is really ugly. + // We could consider making the StudyLoadingListener a higher-order + // component which would set this stuff itself. + throw new Error( + "The _setProgressData function must be provided in StudyLoadingListener's options" + ); + } + + _clearProgressById(progressId) { + throw new Error( + "The _clearProgressById function must be provided in StudyLoadingListener's options" + ); + } + + _updateProgress() { + const totalFramesCount = this.stack.imageIds.length; + const loadedFramesCount = this.loadedCount; + const loadingFramesCount = totalFramesCount - loadedFramesCount; + const percentComplete = Math.round( + (loadedFramesCount / totalFramesCount) * 100 + ); + const progressId = this._getProgressId(); + const progressData = { + multiFrame: true, + totalFramesCount, + loadedFramesCount, + loadingFramesCount, + percentComplete, + framesPerSecond: this.stats.speed, + framesStatus: this.framesStatus, + }; + + this._setProgressData(progressId, progressData); + } + + _logProgress() { + const totalFramesCount = this.stack.imageIds.length; + const displaySetInstanceUid = this.stack.displaySetInstanceUid; + let progressBar = '['; + + for (let i = 0; i < totalFramesCount; i++) { + const ch = this.framesStatus[i] ? '|' : '.'; + progressBar += `${ch}`; + } + + progressBar += ']'; + log.info(`${displaySetInstanceUid}: ${progressBar}`); + } +} + +class StudyLoadingListener { + constructor(options) { + this.listeners = {}; + this.options = options; + } + + addStack(stack, stackMetaData) { + // TODO: Make this work for plugins + if (!stack) { + //console.log('Skipping adding stack to StudyLoadingListener'); + return; + } + + const displaySetInstanceUid = stack.displaySetInstanceUid; + + if (!this.listeners[displaySetInstanceUid]) { + const listener = this._createListener(stack, stackMetaData); + if (listener) { + this.listeners[displaySetInstanceUid] = listener; + } + } + } + + addStudy(study) { + study.displaySets.forEach(displaySet => { + const stack = StackManager.findOrCreateStack(study, displaySet); + + // TODO: Make this work for plugins + if (!stack) { + console.warn('Skipping adding displaySet to StudyLoadingListener'); + console.warn(displaySet); + return; + } + + this.addStack(stack, { + isMultiFrame: displaySet.isMultiFrame, + }); + }); + } + + addStudies(studies) { + if (!studies || !studies.length) { + return; + } + + studies.forEach(study => this.addStudy(study)); + } + + clear() { + const displaySetInstanceUids = Object.keys(this.listeners); + const length = displaySetInstanceUids.length; + + for (let i = 0; i < length; i++) { + const displaySetInstanceUid = displaySetInstanceUids[i]; + const displaySet = this.listeners[displaySetInstanceUid]; + + displaySet.destroy(); + } + + this.listeners = {}; + } + + _createListener(stack, stackMetaData) { + const schema = this._getSchema(stack); + + // A StackLoadingListener can be created if it's wadors or not a multiframe + // wadouri instance (single file) that means "N" files will have to be + // downloaded where "N" is the number of frames. DICOMFileLoadingListener + // is created only if it's a single DICOM file and there's no way to know + // how many frames has already been loaded (bytes/s instead of frames/s). + if (schema === 'wadors' || !stackMetaData.isMultiFrame) { + return new StackLoadingListener(stack, this.options); + } else { + return new DICOMFileLoadingListener(stack, this.options); + } + } + + _getSchema(stack) { + const imageId = stack.imageIds[0]; + const colonIndex = imageId.indexOf(':'); + return imageId.substring(0, colonIndex); + } + + // Singleton + static getInstance(options) { + if (!StudyLoadingListener._instance) { + StudyLoadingListener._instance = new StudyLoadingListener(options); + } + + return StudyLoadingListener._instance; + } +} + +export { StudyLoadingListener, StackLoadingListener, DICOMFileLoadingListener }; diff --git a/packages/_core/src/classes/StudyMetadataSource.js b/packages/_core/src/classes/StudyMetadataSource.js new file mode 100644 index 000000000..8f4fb8dc3 --- /dev/null +++ b/packages/_core/src/classes/StudyMetadataSource.js @@ -0,0 +1,32 @@ +import OHIFError from './OHIFError'; + +/** + * Abstract class to fetch study metadata. + */ +export class StudyMetadataSource { + /** + * Get study metadata for a study with given study InstanceUID. + * @param {String} studyInstanceUID Study InstanceUID. + */ + getByInstanceUID(studyInstanceUID) { + /** + * Please override this method on a specialized class. + */ + throw new OHIFError( + 'StudyMetadataSource::getByInstanceUID is not overriden. Please, override it in a specialized class. See OHIFStudyMetadataSource for example' + ); + } + + /** + * Load study info and study metadata for a given study into the viewer. + * @param {StudySummary|StudyMetadata} study of StudySummary or StudyMetadata object. + */ + loadStudy(study) { + /** + * Please override this method on a specialized class. + */ + throw new OHIFError( + 'StudyMetadataSource::loadStudy is not overriden. Please, override it in a specialized class. See OHIFStudyMetadataSource for example' + ); + } +} diff --git a/packages/_core/src/classes/StudyPrefetcher.js b/packages/_core/src/classes/StudyPrefetcher.js new file mode 100644 index 000000000..fc2c4afc8 --- /dev/null +++ b/packages/_core/src/classes/StudyPrefetcher.js @@ -0,0 +1,255 @@ +import log from '../log.js'; +import OHIFError from './OHIFError'; +import cornerstone from 'cornerstone-core'; +import cornerstoneTools from 'cornerstone-tools'; +import getImageId from '../utils/getImageId.js'; + +export class StudyPrefetcher { + constructor(studies) { + this.studies = studies || []; + this.prefetchDisplaySetsTimeout = 300; + this.lastActiveViewportElement = null; + + cornerstone.events.addEventListener( + 'cornerstoneimagecachefull.StudyPrefetcher', + this.cacheFullHandler + ); + } + + destroy() { + this.stopPrefetching(); + cornerstone.events.removeEventListener( + 'cornerstoneimagecachefull.StudyPrefetcher', + this.cacheFullHandler + ); + } + + static getInstance() { + if (!StudyPrefetcher.instance) { + StudyPrefetcher.instance = new StudyPrefetcher([]); + } + + return StudyPrefetcher.instance; + } + + setStudies(studies) { + this.stopPrefetching(); + this.studies = studies; + } + + prefetch() { + if (!this.studies || !this.studies.length) { + return; + } + + this.stopPrefetching(); + this.prefetchDisplaySets(); + } + + stopPrefetching() { + cornerstoneTools.requestPoolManager.clearRequestStack('prefetch'); + } + + prefetchDisplaySetsAsync(timeout) { + timeout = timeout || this.prefetchDisplaySetsTimeout; + + clearTimeout(this.prefetchDisplaySetsHandler); + this.prefetchDisplaySetsHandler = setTimeout(() => { + this.prefetchDisplaySets(); + }, timeout); + } + + prefetchDisplaySets() { + // TODO: Allow passing in config + let config = { + order: 'closest', + displaySetCount: 1, + }; + + const displaySetsToPrefetch = this.getDisplaySetsToPrefetch(config); + const imageIds = this.getImageIdsFromDisplaySets(displaySetsToPrefetch); + + this.prefetchImageIds(imageIds); + } + + prefetchImageIds(imageIds) { + const nonCachedImageIds = this.filterCachedImageIds(imageIds); + const requestPoolManager = cornerstoneTools.requestPoolManager; + const requestType = 'prefetch'; + const preventCache = false; + const noop = () => {}; + + nonCachedImageIds.forEach(imageId => { + requestPoolManager.addRequest( + {}, + imageId, + requestType, + preventCache, + noop, + noop + ); + }); + + requestPoolManager.startGrabbing(); + } + + getStudy(image) { + const studyMetadata = cornerstone.metaData.get('study', image.imageId); + return OHIF.viewer.Studies.find( + study => study.studyInstanceUid === studyMetadata.studyInstanceUid + ); + } + + getSeries(study, image) { + const seriesMetadata = cornerstone.metaData.get('series', image.imageId); + const studyMetadata = OHIF.viewerbase.getStudyMetadata(study); + + return studyMetadata.getSeriesByUID(seriesMetadata.seriesInstanceUid); + } + + getInstance(series, image) { + const instanceMetadata = cornerstone.metaData.get( + 'instance', + image.imageId + ); + return series.getInstanceByUID(instanceMetadata.sopInstanceUid); + } + + getActiveDisplaySet(displaySets, instance) { + return displaySets.find(displaySet => { + return displaySet.images.some(displaySetImage => { + return displaySetImage.sopInstanceUid === instance.sopInstanceUid; + }); + }); + } + + getDisplaySetsToPrefetch(config) { + const image = this.getActiveViewportImage(); + + if (!image || !config || !config.displaySetCount) { + return []; + } + + /*const study = this.getStudy(image); + const series = this.getSeries(study, image); + const instance = this.getInstance(series, image);*/ + const displaySets = study.displaySets; + const activeDisplaySet = null; //this.getActiveDisplaySet(displaySets, instance); + const prefetchMethodMap = { + topdown: 'getFirstDisplaySets', + downward: 'getNextDisplaySets', + closest: 'getClosestDisplaySets', + }; + + const prefetchOrder = config.order; + const methodName = prefetchMethodMap[prefetchOrder]; + const getDisplaySets = this[methodName]; + + if (!getDisplaySets) { + if (prefetchOrder) { + log.warn(`Invalid prefetch order configuration (${prefetchOrder})`); + } + + return []; + } + + return getDisplaySets.call( + this, + displaySets, + activeDisplaySet, + config.displaySetCount + ); + } + + getFirstDisplaySets(displaySets, activeDisplaySet, displaySetCount) { + const length = displaySets.length; + const selectedDisplaySets = []; + + for (let i = 0; i < length && displaySetCount; i++) { + const displaySet = displaySets[i]; + + if (displaySet !== activeDisplaySet) { + selectedDisplaySets.push(displaySet); + displaySetCount--; + } + } + + return selectedDisplaySets; + } + + getNextDisplaySets(displaySets, activeDisplaySet, displaySetCount) { + const activeDisplaySetIndex = displaySets.indexOf(activeDisplaySet); + const begin = activeDisplaySetIndex + 1; + const end = Math.min(begin + displaySetCount, displaySets.length); + + return displaySets.slice(begin, end); + } + + getClosestDisplaySets(displaySets, activeDisplaySet, displaySetCount) { + const activeDisplaySetIndex = displaySets.indexOf(activeDisplaySet); + const length = displaySets.length; + const selectedDisplaySets = []; + let left = activeDisplaySetIndex - 1; + let right = activeDisplaySetIndex + 1; + + while ((left >= 0 || right < length) && displaySetCount) { + if (left >= 0) { + selectedDisplaySets.push(displaySets[left]); + displaySetCount--; + left--; + } + + if (right < length && displaySetCount) { + selectedDisplaySets.push(displaySets[right]); + displaySetCount--; + right++; + } + } + + return selectedDisplaySets; + } + + getImageIdsFromDisplaySets(displaySets) { + let imageIds = []; + + displaySets.forEach(displaySet => { + imageIds = imageIds.concat(this.getImageIdsFromDisplaySet(displaySet)); + }); + + return imageIds; + } + + getImageIdsFromDisplaySet(displaySet) { + const imageIds = []; + + // TODO: This duplicates work done by the stack manager + displaySet.images.forEach(image => { + const numFrames = image.numFrames; + if (numFrames > 1) { + for (let i = 0; i < numFrames; i++) { + let imageId = getImageId(image, i); + imageIds.push(imageId); + } + } else { + let imageId = getImageId(image); + imageIds.push(imageId); + } + }); + + return imageIds; + } + + filterCachedImageIds(imageIds) { + return imageIds.filter(imageId => !this.isImageCached(imageId)); + } + + isImageCached(imageId) { + const image = cornerstone.imageCache.imageCache[imageId]; + return image && image.sizeInBytes; + } + + cacheFullHandler = () => { + log.warn('Cache full'); + this.stopPrefetching(); + }; +} diff --git a/packages/_core/src/classes/TypeSafeCollection.js b/packages/_core/src/classes/TypeSafeCollection.js new file mode 100644 index 000000000..29eea0fad --- /dev/null +++ b/packages/_core/src/classes/TypeSafeCollection.js @@ -0,0 +1,508 @@ +import guid from '../utils/guid'; + +/** + * Constants + */ +const PROPERTY_SEPARATOR = '.'; +const ORDER_ASC = 'asc'; +const ORDER_DESC = 'desc'; +const MIN_COUNT = 0x00000000; +const MAX_COUNT = 0x7fffffff; + +/** + * Class Definition + */ +export class TypeSafeCollection { + constructor() { + this._operationCount = MIN_COUNT; + this._elementList = []; + this._handlers = Object.create(null); + } + + /** + * Private Methods + */ + + _invalidate() { + let count = this._operationCount; + this._operationCount = count < MAX_COUNT ? count + 1 : MIN_COUNT; + } + + _elements(silent) { + silent === true || this._operationCount; + return this._elementList; + } + + _elementWithPayload(payload, silent) { + return this._elements(silent).find(item => item.payload === payload); + } + + _elementWithId(id, silent) { + return this._elements(silent).find(item => item.id === id); + } + + _trigger(event, data) { + let handlers = this._handlers; + if (event in handlers) { + handlers = handlers[event]; + if (!(handlers instanceof Array)) { + return; + } + for (let i = 0, limit = handlers.length; i < limit; ++i) { + let handler = handlers[i]; + if (_isFunction(handler)) { + handler.call(null, data); + } + } + } + } + + /** + * Public Methods + */ + + onInsert(callback) { + if (_isFunction(callback)) { + let handlers = this._handlers.insert; + if (!(handlers instanceof Array)) { + handlers = []; + this._handlers.insert = handlers; + } + handlers.push(callback); + } + } + + /** + * Update the payload associated with the given ID to be the new supplied payload. + * @param {string} id The ID of the entry that will be updated. + * @param {any} payload The element that will replace the previous payload. + * @returns {boolean} Returns true if the given ID is present in the collection, false otherwise. + */ + updateById(id, payload) { + let result = false, + found = this._elementWithPayload(payload, true); + if (found) { + // nothing to do since the element is already in the collection... + if (found.id === id) { + // set result to true since the ids match... + result = true; + this._invalidate(); + } + } else { + found = this._elementWithId(id, true); + if (found) { + found.payload = payload; + result = true; + this._invalidate(); + } + } + return result; + } + + /** + * Signal that the given element has been changed by notifying reactive data-source observers. + * This method is basically a means to invalidate the inernal reactive data-source. + * @param {any} payload The element that has been altered. + * @returns {boolean} Returns true if the element is present in the collection, false otherwise. + */ + update(payload) { + let result = false, + found = this._elementWithPayload(payload, true); + if (found) { + // nothing to do since the element is already in the collection... + result = true; + this._invalidate(); + } + return result; + } + + /** + * Insert an element in the collection. On success, the element ID (a unique string) is returned. On failure, returns null. + * A failure scenario only happens when the given payload is already present in the collection. Note that NO exceptions are thrown! + * @param {any} payload The element to be stored. + * @returns {string} The ID of the inserted element or null if the element already exists... + */ + insert(payload) { + let id = null, + found = this._elementWithPayload(payload, true); + if (!found) { + id = guid(); + this._elements(true).push({ id, payload }); + this._invalidate(); + this._trigger('insert', { id, data: payload }); + } + return id; + } + + /** + * Remove all elements from the collection. + * @returns {void} No meaningful value is returned. + */ + removeAll() { + let all = this._elements(true), + length = all.length; + for (let i = length - 1; i >= 0; i--) { + let item = all[i]; + delete item.id; + delete item.payload; + all[i] = null; + } + all.splice(0, length); + this._invalidate(); + } + + /** + * Remove elements from the collection that match the criteria given in the property map. + * @param {Object} propertyMap A property map that will be macthed against all collection elements. + * @returns {Array} A list with all removed elements. + */ + remove(propertyMap) { + let found = this.findAllEntriesBy(propertyMap), + foundCount = found.length, + removed = []; + if (foundCount > 0) { + const all = this._elements(true); + for (let i = foundCount - 1; i >= 0; i--) { + let item = found[i]; + all.splice(item[2], 1); + removed.push(item[0]); + } + this._invalidate(); + } + return removed; + } + + /** + * Provides the ID of the given element inside the collection. + * @param {any} payload The element being searched for. + * @returns {string} The ID of the given element or undefined if the element is not present. + */ + getElementId(payload) { + let found = this._elementWithPayload(payload); + return found && found.id; + } + + /** + * Provides the position of the given element in the internal list returning -1 if the element is not present. + * @param {any} payload The element being searched for. + * @returns {number} The position of the given element in the internal list. If the element is not present -1 is returned. + */ + findById(id) { + let found = this._elementWithId(id); + return found && found.payload; + } + + /** + * Provides the position of the given element in the internal list returning -1 if the element is not present. + * @param {any} payload The element being searched for. + * @returns {number} The position of the given element in the internal list. If the element is not present -1 is returned. + */ + indexOfElement(payload) { + return this._elements().indexOf(this._elementWithPayload(payload, true)); + } + + /** + * Provides the position of the element associated with the given ID in the internal list returning -1 if the element is not present. + * @param {string} id The index of the element. + * @returns {number} The position of the element associated with the given ID in the internal list. If the element is not present -1 is returned. + */ + indexOfId(id) { + return this._elements().indexOf(this._elementWithId(id, true)); + } + + /** + * Provides a list-like approach to the collection returning an element by index. + * @param {number} index The index of the element. + * @returns {any} If out of bounds, undefined is returned. Otherwise the element in the given position is returned. + */ + getElementByIndex(index) { + let found = this._elements()[index >= 0 ? index : -1]; + return found && found.payload; + } + + /** + * Find an element by a criteria defined by the given callback function. + * Attention!!! The reactive source will not be notified if no valid callback is supplied... + * @param {function} callback A callback function which will define the search criteria. The callback + * function will be passed the collection element, its ID and its index in this very order. The callback + * shall return true when its criterea has been fulfilled. + * @returns {any} The matched element or undefined if not match was found. + */ + find(callback) { + let found; + if (_isFunction(callback)) { + found = this._elements().find((item, index) => { + return callback.call(this, item.payload, item.id, index); + }); + } + return found && found.payload; + } + + /** + * Find the first element that strictly matches the specified property map. + * @param {Object} propertyMap A property map that will be macthed against all collection elements. + * @param {Object} options A set of options. Currently only "options.sort" option is supported. + * @param {Object.SortingSpecifier} options.sort An optional sorting specifier. If a sorting specifier is supplied + * but is not valid, an exception will be thrown. + * @returns {Any} The matched element or undefined if not match was found. + */ + findBy(propertyMap, options) { + let found; + if (_isObject(options)) { + // if the "options" argument is provided and is a valid object, + // it must be applied to the dataset before search... + const all = this.all(options); + if (all.length > 0) { + if (_isObject(propertyMap)) { + found = all.find(item => + _compareToPropertyMapStrict(propertyMap, item) + ); + } else { + found = all[0]; // simply extract the first element... + } + } + } else if (_isObject(propertyMap)) { + found = this._elements().find(item => + _compareToPropertyMapStrict(propertyMap, item.payload) + ); + if (found) { + found = found.payload; + } + } + return found; + } + + /** + * Find all elements that strictly match the specified property map. + * Attention!!! The reactive source will not be notified if no valid property map is supplied... + * @param {Object} propertyMap A property map that will be macthed against all collection elements. + * @returns {Array} An array of entries of all elements that match the given criteria. Each set in + * in the array has the following format: [ elementData, elementId, elementIndex ]. + */ + findAllEntriesBy(propertyMap) { + const found = []; + if (_isObject(propertyMap)) { + this._elements().forEach((item, index) => { + if (_compareToPropertyMapStrict(propertyMap, item.payload)) { + // Match! Add it to the found list... + found.push([item.payload, item.id, index]); + } + }); + } + return found; + } + + /** + * Find all elements that match a specified property map. + * Attention!!! The reactive source will not be notified if no valid property map is supplied... + * @param {Object} propertyMap A property map that will be macthed against all collection elements. + * @param {Object} options A set of options. Currently only "options.sort" option is supported. + * @param {Object.SortingSpecifier} options.sort An optional sorting specifier. If a sorting specifier is supplied + * but is not valid, an exception will be thrown. + * @returns {Array} An array with all elements that match the given criteria and sorted in the specified sorting order. + */ + findAllBy(propertyMap, options) { + const found = this.findAllEntriesBy(propertyMap).map(item => item[0]); // Only payload is relevant... + if (_isObject(options)) { + if ('sort' in options) { + _sortListBy(found, options.sort); + } + } + return found; + } + + /** + * Executes the supplied callback function for each element of the collection. + * Attention!!! The reactive source will not be notified if no valid property map is supplied... + * @param {function} callback The callback function to be executed. The callback is passed the element, + * its ID and its index in this very order. + * @returns {void} Nothing is returned. + */ + forEach(callback) { + if (_isFunction(callback)) { + this._elements().forEach((item, index) => { + callback.call(this, item.payload, item.id, index); + }); + } + } + + /** + * Count the number of elements currently in the collection. + * @returns {number} The current number of elements in the collection. + */ + count() { + return this._elements().length; + } + + /** + * Returns a list with all elements of the collection optionally sorted by a sorting specifier criteria. + * @param {Object} options A set of options. Currently only "options.sort" option is supported. + * @param {Object.SortingSpecifier} options.sort An optional sorting specifier. If a sorting specifier is supplied + * but is not valid, an exception will be thrown. + * @returns {Array} An array with all elements stored in the collection. + */ + all(options) { + let list = this._elements().map(item => item.payload); + if (_isObject(options)) { + if ('sort' in options) { + _sortListBy(list, options.sort); + } + } + return list; + } +} + +/** + * Utility Functions + */ + +/** + * Test if supplied argument is a valid object for current class purposes. + * Atention! The underscore version of this function should not be used for performance reasons. + */ +function _isObject(subject) { + return ( + subject instanceof Object || + (typeof subject === 'object' && subject !== null) + ); +} + +/** + * Test if supplied argument is a valid string for current class purposes. + * Atention! The underscore version of this function should not be used for performance reasons. + */ +function _isString(subject) { + return typeof subject === 'string'; +} + +/** + * Test if supplied argument is a valid function for current class purposes. + * Atention! The underscore version of this function should not be used for performance reasons. + */ +function _isFunction(subject) { + return typeof subject === 'function'; +} + +/** + * Shortcut for Object's prototype "hasOwnProperty" method. + */ +const _hasOwnProperty = Object.prototype.hasOwnProperty; + +/** + * Retrieve an object's property value by name. Composite property names (e.g., 'address.country.name') are accepted. + * @param {Object} targetObject The object we want read the property from... + * @param {String} propertyName The property to be read (e.g., 'address.street.name' or 'address.street.number' + * to read object.address.street.name or object.address.street.number, respectively); + * @returns {Any} Returns whatever the property holds or undefined if the property cannot be read or reached. + */ +function _getPropertyValue(targetObject, propertyName) { + let propertyValue; // undefined (the default return value) + if (_isObject(targetObject) && _isString(propertyName)) { + const fragments = propertyName.split(PROPERTY_SEPARATOR); + const fragmentCount = fragments.length; + if (fragmentCount > 0) { + const firstFragment = fragments[0]; + const remainingFragments = + fragmentCount > 1 ? fragments.slice(1).join(PROPERTY_SEPARATOR) : null; + propertyValue = targetObject[firstFragment]; + if (remainingFragments !== null) { + propertyValue = _getPropertyValue(propertyValue, remainingFragments); + } + } + } + return propertyValue; +} + +/** + * Compare a property map with a target object using strict comparison. + * @param {Object} propertyMap The property map whose properties will be used for comparison. Composite + * property names (e.g., 'address.country.name') will be tested against the "resolved" properties from the target object. + * @param {Object} targetObject The target object whose properties will be tested. + * @returns {boolean} Returns true if the properties match, false otherwise. + */ +function _compareToPropertyMapStrict(propertyMap, targetObject) { + let result = false; + // "for in" loops do not thown exceptions for invalid data types... + for (let propertyName in propertyMap) { + if (_hasOwnProperty.call(propertyMap, propertyName)) { + if ( + propertyMap[propertyName] !== + _getPropertyValue(targetObject, propertyName) + ) { + result = false; + break; + } else if (result !== true) { + result = true; + } + } + } + return result; +} + +/** + * Checks if a sorting specifier is valid. + * A valid sorting specifier consists of an array of arrays being each subarray a pair + * in the format ["property name", "sorting order"]. + * The following exemple can be used to sort studies by "date"" and use "time" to break ties in descending order. + * [ [ 'study.date', 'desc' ], [ 'study.time', 'desc' ] ] + * @param {Array} specifiers The sorting specifier to be tested. + * @returns {boolean} Returns true if the specifiers are valid, false otherwise. + */ +function _isValidSortingSpecifier(specifiers) { + let result = true; + if (specifiers instanceof Array && specifiers.length > 0) { + for (let i = specifiers.length - 1; i >= 0; i--) { + const item = specifiers[i]; + if (item instanceof Array) { + const property = item[0]; + const order = item[1]; + if ( + _isString(property) && + (order === ORDER_ASC || order === ORDER_DESC) + ) { + continue; + } + } + result = false; + break; + } + } + return result; +} + +/** + * Sorts an array based on sorting specifier options. + * @param {Array} list The that needs to be sorted. + * @param {Array} specifiers An array of specifiers. Please read isValidSortingSpecifier method definition for further details. + * @returns {void} No value is returned. The array is sorted in place. + */ +function _sortListBy(list, specifiers) { + if (list instanceof Array && _isValidSortingSpecifier(specifiers)) { + const specifierCount = specifiers.length; + list.sort(function _sortListByCallback(a, b) { + // callback name for stack traces... + let index = 0; + while (index < specifierCount) { + const specifier = specifiers[index]; + const property = specifier[0]; + const order = specifier[1] === ORDER_DESC ? -1 : 1; + const aValue = _getPropertyValue(a, property); + const bValue = _getPropertyValue(b, property); + // @TODO: should we check for the types being compared, like: + // ~~ if (typeof aValue !== typeof bValue) continue; + // Not sure because dates, for example, can be correctly compared to numbers... + if (aValue < bValue) { + return order * -1; + } + if (aValue > bValue) { + return order * 1; + } + if (++index >= specifierCount) { + return 0; + } + } + }); + } else { + throw new Error('Invalid Arguments'); + } +} diff --git a/packages/_core/src/classes/hotkeys/index.js b/packages/_core/src/classes/hotkeys/index.js new file mode 100644 index 000000000..4db77861a --- /dev/null +++ b/packages/_core/src/classes/hotkeys/index.js @@ -0,0 +1,17 @@ +// Only imported in environment w/ `window` +// So we need to mock these for tests +import Mousetrap from 'mousetrap'; +import pausePlugin from 'mousetrap/plugins/pause/mousetrap-pause.js'; +import recordPlugin from 'mousetrap/plugins/record/mousetrap-record.js'; + +// import pausePlugin from './pausePlugin.js'; +// import recordPlugin from './recordPlugin.js'; + +// // // TODO: May need to bind these so Mousetrap = this in plugins; +// pausePlugin(Mousetrap); +// recordPlugin(Mousetrap); + +// console.log(Mousetrap); +// console.log(Object.keys(Mousetrap)); + +export default Mousetrap; diff --git a/packages/_core/src/classes/hotkeys/pausePlugin.js b/packages/_core/src/classes/hotkeys/pausePlugin.js new file mode 100644 index 000000000..80c5513f0 --- /dev/null +++ b/packages/_core/src/classes/hotkeys/pausePlugin.js @@ -0,0 +1,32 @@ +/** + * adds a pause and unpause method to Mousetrap + * this allows you to enable or disable keyboard shortcuts + * without having to reset Mousetrap and rebind everything + * + * https://github.com/ccampbell/mousetrap/blob/master/plugins/pause/mousetrap-pause.js + */ +export default function(Mousetrap) { + var _originalStopCallback = Mousetrap.prototype.stopCallback; + + Mousetrap.prototype.stopCallback = function(e, element, combo) { + var self = this; + + if (self.paused) { + return true; + } + + return _originalStopCallback.call(self, e, element, combo); + }; + + Mousetrap.prototype.pause = function() { + var self = this; + self.paused = true; + }; + + Mousetrap.prototype.unpause = function() { + var self = this; + self.paused = false; + }; + + Mousetrap.init(); +} diff --git a/packages/_core/src/classes/hotkeys/recordPlugin.js b/packages/_core/src/classes/hotkeys/recordPlugin.js new file mode 100644 index 000000000..e091039bd --- /dev/null +++ b/packages/_core/src/classes/hotkeys/recordPlugin.js @@ -0,0 +1,200 @@ +/** + * This extension allows you to record a sequence using Mousetrap. + * {@link https://craig.is/killing/mice} + * + * @author Dan Tao + */ +export default function(Mousetrap) { + /** + * the sequence currently being recorded + * + * @type {Array} + */ + var _recordedSequence = [], + /** + * a callback to invoke after recording a sequence + * + * @type {Function|null} + */ + _recordedSequenceCallback = null, + /** + * a list of all of the keys currently held down + * + * @type {Array} + */ + _currentRecordedKeys = [], + /** + * temporary state where we remember if we've already captured a + * character key in the current combo + * + * @type {boolean} + */ + _recordedCharacterKey = false, + /** + * a handle for the timer of the current recording + * + * @type {null|number} + */ + _recordTimer = null, + /** + * the original handleKey method to override when Mousetrap.record() is + * called + * + * @type {Function} + */ + _origHandleKey = Mousetrap.prototype.handleKey; + + /** + * handles a character key event + * + * @param {string} character + * @param {Array} modifiers + * @param {Event} e + * @returns void + */ + function _handleKey(character, modifiers, e) { + var self = this; + + if (!self.recording) { + _origHandleKey.apply(self, arguments); + return; + } + + // remember this character if we're currently recording a sequence + if (e.type == 'keydown') { + if (character.length === 1 && _recordedCharacterKey) { + _recordCurrentCombo(); + } + + for (i = 0; i < modifiers.length; ++i) { + _recordKey(modifiers[i]); + } + _recordKey(character); + + // once a key is released, all keys that were held down at the time + // count as a keypress + } else if (e.type == 'keyup' && _currentRecordedKeys.length > 0) { + _recordCurrentCombo(); + } + } + + /** + * marks a character key as held down while recording a sequence + * + * @param {string} key + * @returns void + */ + function _recordKey(key) { + var i; + + // one-off implementation of Array.indexOf, since IE6-9 don't support it + for (i = 0; i < _currentRecordedKeys.length; ++i) { + if (_currentRecordedKeys[i] === key) { + return; + } + } + + _currentRecordedKeys.push(key); + + if (key.length === 1) { + _recordedCharacterKey = true; + } + } + + /** + * marks whatever key combination that's been recorded so far as finished + * and gets ready for the next combo + * + * @returns void + */ + function _recordCurrentCombo() { + _recordedSequence.push(_currentRecordedKeys); + _currentRecordedKeys = []; + _recordedCharacterKey = false; + _restartRecordTimer(); + } + + /** + * ensures each combo in a sequence is in a predictable order and formats + * key combos to be '+'-delimited + * + * modifies the sequence in-place + * + * @param {Array} sequence + * @returns void + */ + function _normalizeSequence(sequence) { + var i; + + for (i = 0; i < sequence.length; ++i) { + sequence[i].sort(function(x, y) { + // modifier keys always come first, in alphabetical order + if (x.length > 1 && y.length === 1) { + return -1; + } else if (x.length === 1 && y.length > 1) { + return 1; + } + + // character keys come next (list should contain no duplicates, + // so no need for equality check) + return x > y ? 1 : -1; + }); + + sequence[i] = sequence[i].join('+'); + } + } + + /** + * finishes the current recording, passes the recorded sequence to the stored + * callback, and sets Mousetrap.handleKey back to its original function + * + * @returns void + */ + function _finishRecording() { + if (_recordedSequenceCallback) { + _normalizeSequence(_recordedSequence); + _recordedSequenceCallback(_recordedSequence); + } + + // reset all recorded state + _recordedSequence = []; + _recordedSequenceCallback = null; + _currentRecordedKeys = []; + } + + /** + * called to set a 1 second timeout on the current recording + * + * this is so after each key press in the sequence the recording will wait for + * 1 more second before executing the callback + * + * @returns void + */ + function _restartRecordTimer() { + clearTimeout(_recordTimer); + _recordTimer = setTimeout(_finishRecording, 1000); + } + + /** + * records the next sequence and passes it to a callback once it's + * completed + * + * @param {Function} callback + * @returns void + */ + Mousetrap.prototype.record = function(callback) { + var self = this; + self.recording = true; + _recordedSequenceCallback = function() { + self.recording = false; + callback.apply(self, arguments); + }; + }; + + Mousetrap.prototype.handleKey = function() { + var self = this; + _handleKey.apply(self, arguments); + }; + + Mousetrap.init(); +} diff --git a/packages/_core/src/classes/index.js b/packages/_core/src/classes/index.js new file mode 100644 index 000000000..87977ac11 --- /dev/null +++ b/packages/_core/src/classes/index.js @@ -0,0 +1,61 @@ +import { + InstanceMetadata, + SeriesMetadata, + StudyMetadata, + StudySummary, +} from './metadata'; + +import CommandsManager from './CommandsManager.js'; +import { DICOMFileLoadingListener } from './StudyLoadingListener'; +import HotkeysManager from './HotkeysManager.js'; +import ImageSet from './ImageSet'; +import MetadataProvider from './MetadataProvider.js'; +import OHIFError from './OHIFError.js'; +import { OHIFStudyMetadataSource } from './OHIFStudyMetadataSource'; +import { StackLoadingListener } from './StudyLoadingListener'; +import { StudyLoadingListener } from './StudyLoadingListener'; +import { StudyMetadataSource } from './StudyMetadataSource'; +import { StudyPrefetcher } from './StudyPrefetcher'; +import { TypeSafeCollection } from './TypeSafeCollection'; + +//import { StudySummary } from './metadata/StudySummary'; + +export { + OHIFStudyMetadataSource, + MetadataProvider, + CommandsManager, + HotkeysManager, + ImageSet, + StudyPrefetcher, + //StudyLoadingListener, + StackLoadingListener, + DICOMFileLoadingListener, + StudyMetadata, + SeriesMetadata, + InstanceMetadata, + StudySummary, + TypeSafeCollection, + OHIFError, + StudyMetadataSource, +}; + +const classes = { + OHIFStudyMetadataSource, + MetadataProvider, + CommandsManager, + HotkeysManager, + ImageSet, + StudyPrefetcher, + StudyLoadingListener, + StackLoadingListener, + DICOMFileLoadingListener, + StudyMetadata, + SeriesMetadata, + InstanceMetadata, + StudySummary, + TypeSafeCollection, + OHIFError, + StudyMetadataSource, +}; + +export default classes; diff --git a/packages/_core/src/classes/metadata/InstanceMetadata.js b/packages/_core/src/classes/metadata/InstanceMetadata.js new file mode 100644 index 000000000..4b59852ae --- /dev/null +++ b/packages/_core/src/classes/metadata/InstanceMetadata.js @@ -0,0 +1,225 @@ +import { Metadata } from './Metadata'; +import OHIFError from '../OHIFError.js'; + +/** + * ATTENTION! This class should never depend on StudyMetadata or SeriesMetadata classes as this could + * possibly cause circular dependency issues. + */ + +const UNDEFINED = 'undefined'; +const STRING = 'string'; +const STUDY_INSTANCE_UID = 'x0020000d'; +const SERIES_INSTANCE_UID = 'x0020000e'; + +export class InstanceMetadata extends Metadata { + constructor(data, uid) { + super(data, uid); + // Initialize Private Properties + Object.defineProperties(this, { + _sopInstanceUID: { + configurable: true, // configurable so that it can be redefined in sub-classes... + enumerable: false, + writable: true, + value: null, + }, + _imageId: { + configurable: true, // configurable so that it can be redefined in sub-classes... + enumerable: false, + writable: true, + value: null, + }, + }); + // Initialize Public Properties + this._definePublicProperties(); + } + + /** + * Private Methods + */ + + /** + * Define Public Properties + * This method should only be called during initialization (inside the class constructor) + */ + _definePublicProperties() { + /** + * Property: this.sopInstanceUID + * Same as this.getSOPInstanceUID() + * It's specially useful in contexts where a method call is not suitable like in search criteria. For example: + * sopInstanceCollection.findBy({ + * sopInstanceUID: '1.2.3.4.5.6.77777.8888888.99999999999.0' + * }); + */ + Object.defineProperty(this, 'sopInstanceUID', { + configurable: false, + enumerable: false, + get: function() { + return this.getSOPInstanceUID(); + }, + }); + } + + /** + * Public Methods + */ + + /** + * Returns the StudyInstanceUID of the current instance. This method is basically a shorthand the full "getTagValue" method call. + */ + getStudyInstanceUID() { + return this.getTagValue(STUDY_INSTANCE_UID, null); + } + + /** + * Returns the SeriesInstanceUID of the current instance. This method is basically a shorthand the full "getTagValue" method call. + */ + getSeriesInstanceUID() { + return this.getTagValue(SERIES_INSTANCE_UID, null); + } + + /** + * Returns the SOPInstanceUID of the current instance. + */ + getSOPInstanceUID() { + return this._sopInstanceUID; + } + + // @TODO: Improve this... (E.g.: blob data) + getStringValue(tagOrProperty, index, defaultValue) { + let value = this.getTagValue(tagOrProperty, defaultValue); + + if (typeof value !== STRING && typeof value !== UNDEFINED) { + value = value.toString(); + } + + return InstanceMetadata.getIndexedValue(value, index, defaultValue); + } + + // @TODO: Improve this... (E.g.: blob data) + getFloatValue(tagOrProperty, index, defaultValue) { + let value = this.getTagValue(tagOrProperty, defaultValue); + value = InstanceMetadata.getIndexedValue(value, index, defaultValue); + + if (value instanceof Array) { + value.forEach((val, idx) => { + value[idx] = parseFloat(val); + }); + + return value; + } + + return typeof value === STRING ? parseFloat(value) : value; + } + + // @TODO: Improve this... (E.g.: blob data) + getIntValue(tagOrProperty, index, defaultValue) { + let value = this.getTagValue(tagOrProperty, defaultValue); + value = InstanceMetadata.getIndexedValue(value, index, defaultValue); + + if (value instanceof Array) { + value.forEach((val, idx) => { + value[idx] = parseFloat(val); + }); + + return value; + } + + return typeof value === STRING ? parseInt(value) : value; + } + + /** + * @deprecated Please use getTagValue instead. + */ + getRawValue(tagOrProperty, defaultValue) { + return this.getTagValue(tagOrProperty, defaultValue); + } + + /** + * This function should be overriden by specialized classes in order to allow client libraries or viewers to take advantage of the Study Metadata API. + */ + getTagValue(tagOrProperty, defaultValue) { + /** + * Please override this method on a specialized class. + */ + throw new OHIFError( + 'InstanceMetadata::getTagValue is not overriden. Please, override it in a specialized class. See OHIFInstanceMetadata for example' + ); + } + + /** + * Compares the current instance with another one. + * @param {InstanceMetadata} instance An instance of the InstanceMetadata class. + * @returns {boolean} Returns true if both instances refer to the same instance. + */ + equals(instance) { + const self = this; + return ( + instance === self || + (instance instanceof InstanceMetadata && + instance.getSOPInstanceUID() === self.getSOPInstanceUID()) + ); + } + + /** + * Check if the tagOrProperty exists + * @param {String} tagOrProperty tag or property be checked + * @return {Boolean} True if the tag or property exists or false if doesn't + */ + tagExists(tagOrProperty) { + /** + * Please override this method + */ + throw new OHIFError( + 'InstanceMetadata::tagExists is not overriden. Please, override it in a specialized class. See OHIFInstanceMetadata for example' + ); + } + + /** + * Get custom image id of a sop instance + * @return {Any} sop instance image id + */ + getImageId(frame) { + /** + * Please override this method + */ + throw new OHIFError( + 'InstanceMetadata::getImageId is not overriden. Please, override it in a specialized class. See OHIFInstanceMetadata for example' + ); + } + + /** + * Static Methods + */ + + /** + * Get an value based that can be index based. This function is called by all getters. See above functions. + * - If value is a String and has indexes: + * - If undefined index: returns an array of the split values. + * - If defined index: + * - If invalid: returns defaultValue + * - If valid: returns the indexed value + * - If value is not a String, returns default value. + */ + static getIndexedValue(value, index, defaultValue) { + let result = defaultValue; + + if (typeof value === STRING) { + const hasIndexValues = value.indexOf('\\') !== -1; + + result = value; + + if (hasIndexValues) { + const splitValues = value.split('\\'); + if (Metadata.isValidIndex(index)) { + const indexedValue = splitValues[index]; + + result = typeof indexedValue !== STRING ? defaultValue : indexedValue; + } else { + result = splitValues; + } + } + } + + return result; + } +} diff --git a/packages/_core/src/classes/metadata/Metadata.js b/packages/_core/src/classes/metadata/Metadata.js new file mode 100644 index 000000000..3bf8dc8df --- /dev/null +++ b/packages/_core/src/classes/metadata/Metadata.js @@ -0,0 +1,127 @@ +/** + * Constants + */ + +const STRING = 'string'; +const NUMBER = 'number'; +const FUNCTION = 'function'; +const OBJECT = 'object'; + +/** + * Class Definition + */ + +export class Metadata { + /** + * Constructor and Instance Methods + */ + + constructor(data, uid) { + // Define the main "_data" private property as an immutable property. + // IMPORTANT: This property can only be set during instance construction. + Object.defineProperty(this, '_data', { + configurable: false, + enumerable: false, + writable: false, + value: data, + }); + + // Define the main "_uid" private property as an immutable property. + // IMPORTANT: This property can only be set during instance construction. + Object.defineProperty(this, '_uid', { + configurable: false, + enumerable: false, + writable: false, + value: uid, + }); + + // Define "_custom" properties as an immutable property. + // IMPORTANT: This property can only be set during instance construction. + Object.defineProperty(this, '_custom', { + configurable: false, + enumerable: false, + writable: false, + value: Object.create(null), + }); + } + + getData() { + return this._data; + } + + getDataProperty(propertyName) { + let propertyValue; + const _data = this._data; + if ( + _data instanceof Object || + (typeof _data === OBJECT && _data !== null) + ) { + propertyValue = _data[propertyName]; + } + return propertyValue; + } + + /** + * Get unique object ID + */ + getObjectID() { + return this._uid; + } + + /** + * Set custom attribute value + * @param {String} attribute Custom attribute name + * @param {Any} value Custom attribute value + */ + setCustomAttribute(attribute, value) { + this._custom[attribute] = value; + } + + /** + * Get custom attribute value + * @param {String} attribute Custom attribute name + * @return {Any} Custom attribute value + */ + getCustomAttribute(attribute) { + return this._custom[attribute]; + } + + /** + * Check if a custom attribute exists + * @param {String} attribute Custom attribute name + * @return {Boolean} True if custom attribute exists or false if not + */ + customAttributeExists(attribute) { + return attribute in this._custom; + } + + /** + * Set custom attributes in batch mode. + * @param {Object} attributeMap An object whose own properties will be used as custom attributes. + */ + setCustomAttributes(attributeMap) { + const _hasOwn = Object.prototype.hasOwnProperty; + const _custom = this._custom; + for (let attribute in attributeMap) { + if (_hasOwn.call(attributeMap, attribute)) { + _custom[attribute] = attributeMap[attribute]; + } + } + } + + /** + * Static Methods + */ + + static isValidUID(uid) { + return typeof uid === STRING && uid.length > 0; + } + + static isValidIndex(index) { + return typeof index === NUMBER && index >= 0 && (index | 0) === index; + } + + static isValidCallback(callback) { + return typeof callback === FUNCTION; + } +} diff --git a/packages/_core/src/classes/metadata/OHIFInstanceMetadata.js b/packages/_core/src/classes/metadata/OHIFInstanceMetadata.js new file mode 100644 index 000000000..8fc5f42a5 --- /dev/null +++ b/packages/_core/src/classes/metadata/OHIFInstanceMetadata.js @@ -0,0 +1,124 @@ +import { InstanceMetadata } from './InstanceMetadata'; +import { DICOMTagDescriptions } from '../../utils/DICOMTagDescriptions.js'; +import getImageId from '../../utils/getImageId.js'; + +export class OHIFInstanceMetadata extends InstanceMetadata { + /** + * @param {Object} Instance object. + */ + constructor(data, series, study, uid) { + super(data, uid); + this.init(series, study); + } + + init(series, study) { + const instance = this.getData(); + + // Initialize Private Properties + Object.defineProperties(this, { + _sopInstanceUID: { + configurable: false, + enumerable: false, + writable: false, + value: instance.sopInstanceUid, + }, + _study: { + configurable: false, + enumerable: false, + writable: false, + value: study, + }, + _series: { + configurable: false, + enumerable: false, + writable: false, + value: series, + }, + _instance: { + configurable: false, + enumerable: false, + writable: false, + value: instance, + }, + _cache: { + configurable: false, + enumerable: false, + writable: false, + value: Object.create(null), + }, + }); + } + + // Override + getTagValue(tagOrProperty, defaultValue, bypassCache) { + // check if this property has been cached... + if (tagOrProperty in this._cache && bypassCache !== true) { + return this._cache[tagOrProperty]; + } + + const propertyName = OHIFInstanceMetadata.getPropertyName(tagOrProperty); + + // Search property value in the whole study metadata chain... + let rawValue; + if (propertyName in this._instance) { + rawValue = this._instance[propertyName]; + } else if (propertyName in this._series) { + rawValue = this._series[propertyName]; + } else if (propertyName in this._study) { + rawValue = this._study[propertyName]; + } + + if (rawValue !== void 0) { + // if rawValue value is not undefined, cache result... + this._cache[tagOrProperty] = rawValue; + return rawValue; + } + + return defaultValue; + } + + // Override + tagExists(tagOrProperty) { + const propertyName = OHIFInstanceMetadata.getPropertyName(tagOrProperty); + + return ( + propertyName in this._instance || + propertyName in this._series || + propertyName in this._study + ); + } + + // Override + getImageId(frame, thumbnail) { + // If _imageID is not cached, create it + if (this._imageId === null) { + this._imageId = getImageId(this.getData(), frame, thumbnail); + } + + return this._imageId; + } + + /** + * Static methods + */ + + // @TODO: The current mapping of standard DICOM property names to local property names is not optimal. + // The inconsistency in property naming makes this function increasingly complex. + // A possible solution to improve this would be adapt retriveMetadata names to use DICOM standard names as in dicomTagDescriptions.js + static getPropertyName(tagOrProperty) { + let propertyName; + const tagInfo = DICOMTagDescriptions.find(tagOrProperty); + + if (tagInfo !== void 0) { + // This function tries to translate standard DICOM property names into local naming convention. + propertyName = tagInfo.keyword + .replace(/^SOP/, 'sop') + .replace(/UID$/, 'Uid') + .replace(/ID$/, 'Id'); + propertyName = + propertyName.charAt(0).toLowerCase() + propertyName.substr(1); + } + + return propertyName; + } +} diff --git a/packages/_core/src/classes/metadata/OHIFSeriesMetadata.js b/packages/_core/src/classes/metadata/OHIFSeriesMetadata.js new file mode 100644 index 000000000..668a686e1 --- /dev/null +++ b/packages/_core/src/classes/metadata/OHIFSeriesMetadata.js @@ -0,0 +1,29 @@ +import { SeriesMetadata } from './SeriesMetadata'; +import { OHIFInstanceMetadata } from './OHIFInstanceMetadata'; + +export class OHIFSeriesMetadata extends SeriesMetadata { + /** + * @param {Object} Series object. + */ + constructor(data, study, uid) { + super(data, uid); + this.init(study); + } + + init(study) { + const series = this.getData(); + + // define "_seriesInstanceUID" protected property... + Object.defineProperty(this, '_seriesInstanceUID', { + configurable: false, + enumerable: false, + writable: false, + value: series.seriesInstanceUid, + }); + + // populate internal list of instances... + series.instances.forEach(instance => { + this.addInstance(new OHIFInstanceMetadata(instance, series, study)); + }); + } +} diff --git a/packages/_core/src/classes/metadata/OHIFStudyMetadata.js b/packages/_core/src/classes/metadata/OHIFStudyMetadata.js new file mode 100644 index 000000000..e5396dd48 --- /dev/null +++ b/packages/_core/src/classes/metadata/OHIFStudyMetadata.js @@ -0,0 +1,29 @@ +import { StudyMetadata } from './StudyMetadata'; +import { OHIFSeriesMetadata } from './OHIFSeriesMetadata'; + +export class OHIFStudyMetadata extends StudyMetadata { + /** + * @param {Object} Study object. + */ + constructor(data, uid) { + super(data, uid); + this.init(); + } + + init() { + const study = this.getData(); + + // define "_studyInstanceUID" protected property + Object.defineProperty(this, '_studyInstanceUID', { + configurable: false, + enumerable: false, + writable: false, + value: study.studyInstanceUid, + }); + + // populate internal list of series + study.seriesList.forEach(series => { + this.addSeries(new OHIFSeriesMetadata(series, study)); + }); + } +} diff --git a/packages/_core/src/classes/metadata/README.md b/packages/_core/src/classes/metadata/README.md new file mode 100644 index 000000000..264b754df --- /dev/null +++ b/packages/_core/src/classes/metadata/README.md @@ -0,0 +1,145 @@ +# Study Metadata Module + +This module defines the API/Data-Model by which OHIF Viewerbase package and +possibly distinct viewer implementations can access studies metadata. This +module does not attempt to define any means of _loading_ study metadata from any +data end-point but only how the data that has been previously loaded into the +application context will be accessed by any of the routines or algorithm +implementations that need the data. + +## Intro + +For various reasons like sorting, grouping or simply rendering study +information, OHIF Viewerbase package and applications depending on it usually +have the need to access study metadata. Before the current initiative there was +no uniform way of achieving that since each implementation provides study +metadata on its own specific ways. The application and the package itself needed +to have a deep knowledge of the data structures provided by the data endpoint to +perform any of the operations mentioned above, meaning that any data access code +needed to be adapted or rewritten. + +The intent of the current module is to provide a fairly consistent and flexible +API/Data-Model by which OHIF Viewerbase package (and different viewer +implementations that depend on it) can manipulate DICOM matadata retrieved from +distinct data end points (e.g., a proprietary back end servers) in uniform ways +with minor to no modifications needed. + +## Implementation + +The current API implementation defines three classes of objects: +`StudyMetadata`, `SeriesMetadata` and `InstanceMetadata`. Inside OHIF Viewerbase +package, every access to Study, Series or SOP Instance metadata is achieved by +the interface exposed by these three classes. By inheriting from them and +overriding or extending their methods, different applications with different +data models can adapt even the most peculiar data structures to the uniform +interface defined by those classes. Together these classes define a flexible and +extensible data manipulation layer leaving routines and algorithms that depend +on that data untouched. + +## Design Decisions & "_Protected_" Members + +In order to provide for good programming practices, attributes and methods meant +to be used exclusively by the classes themselves (for internal purposes only) +were written with an initial '\_' character, being thus treated as "_protected_" +members. The idea behind this practice was never to hide them from the +programmers (what makes debugging tasks painful) but only advise for something +that's not part of the official public API and thus should not be relied on. +Usage of "protected" members makes the code less readable and prone to +compatibility issues. + +As an example, the initial implementation of the `StudyMetadata` class defined +the attribute `_studyInstanceUID` and the method `getStudyInstanceUID`. This +implies that whenever the _StudyInstanceUID_ of a given study needs to be +retrieved the `getStudyInstanceUID` method should be called instead of directly +accessing the attribute `_studyInstanceUID` (which might not even be populated +since `getStudyInstanceUID` can be possiblity overriden by a subclass to satisfy +specific implementation needs, leaving the attribute `_studyInstanceUID` +unused). + +Ex: + +```javascript +let studyUID = myStudy.getStudyInstanceUID(); // GOOD! :-) +[ ... ] +let otherStudyUID = anotherStudy._studyInstanceUID; // BAD... :-( +``` + +Another important topic is the preference of _methods_ over _attributes_ on the +public API. This design decision was made to ensure extensibility and +flexibility (methods are extensible while standalone attributes are not, and can +be adapted – through overrides, for example – to support even the most peculiar +data models) even though the overhead a few additional function calls may incur. + +## Abstract Classes + +Some classes defined in this module are "_abstract_" classes (even though +JavaScript does not _officially_ support such programming facility). They are +_abstract_ in the sense that a few methods (very important ones, by the way) +were left "_blank_" (unimplemented, or more precisely implemented as empty NOP +functions) in order to be implemented by specialized subclasses. Methods +believed to be more generic were implemented in an attempt to satify most +implementation needs but nothing prevents a subclass from overriding them as +well (again, flexibility and extensibility are design goals). Most implemented +methods rely on the implementation of an unimplemented method. For example, the +method `getStringValue` from `InstanceMetadata` class, which has indeed been +implemented and is meant to retrieve a metadata value as a string, internally +calls the `getRawValue` method which _was NOT implemented_ and is meant to query +the internal data structures for the requested metadata value and return it _as +is_. Used in that way, an application would not benefit much from the already +implemented methods. On the other hand, by simply overriding the `getRawValue` +method on a specialized class to deal with the intrinsics of its internal data +structures, this very application would now benefit from all already implemented +methods. + +The following code snippet tries to illustrate the idea: + +```javascript + +// -- InstanceMetadata.js + +class InstanceMetadata { + [ ... ] + getRawValue(tagOrProperty, defaultValue) { + // Please implement this method in a specialized subclass... + } + [ ... ] + getStringValue(tagOrProperty, index, defaultValue) { + let rawValue = this.getRawValue(tagOrProperty, ''); + // parse the returned value into a string... + [ ... ] + return stringValue; + } + [ ... ] +} + +// -- MyFancyAppInstanceMetadata.js + +class MyFancyAppInstanceMetadata extends InstanceMetadata { + // Overriding this method will make all methods implemented in the super class + // that rely on it to be immediately available... + getRawValue(tagOrProperty, defaultValue) { + let rawValue; + // retrieve raw value from internal data structures... + [ ... ] + return rawValue; + } +} + +// -- main.js + +[ ... ] +let sopInstaceMetadata = new MyFancyAppInstanceMetadata(myInternalData); +if (sopInstaceMetadata instanceof MyFancyAppInstanceMetadata) { // true + // this code will be executed... +} +if (sopInstaceMetadata instanceof InstanceMetadata) { // also true + // this code will also be executed... +} +// The following will also work since the internal "getRawValue" call inside +// "getStringValue" method will now be satisfied... (thanks to the override) +let patientName = sopInstaceMetadata.getStringValue('PatientName', ''); +[ ... ] + +``` + +_Copyright © 2016 nucleushealth™. All rights reserved_ diff --git a/packages/_core/src/classes/metadata/SeriesMetadata.js b/packages/_core/src/classes/metadata/SeriesMetadata.js new file mode 100644 index 000000000..84ae4a037 --- /dev/null +++ b/packages/_core/src/classes/metadata/SeriesMetadata.js @@ -0,0 +1,192 @@ +import { Metadata } from './Metadata'; +import { InstanceMetadata } from './InstanceMetadata'; + +export class SeriesMetadata extends Metadata { + constructor(data, uid) { + super(data, uid); + // Initialize Private Properties + Object.defineProperties(this, { + _seriesInstanceUID: { + configurable: true, // configurable so that it can be redefined in sub-classes... + enumerable: false, + writable: true, + value: null, + }, + _instances: { + configurable: false, + enumerable: false, + writable: false, + value: [], + }, + _firstInstance: { + configurable: false, + enumerable: false, + writable: true, + value: null, + }, + }); + // Initialize Public Properties + this._definePublicProperties(); + } + + /** + * Private Methods + */ + + /** + * Define Public Properties + * This method should only be called during initialization (inside the class constructor) + */ + _definePublicProperties() { + /** + * Property: this.seriesInstanceUID + * Same as this.getSeriesInstanceUID() + * It's specially useful in contexts where a method call is not suitable like in search criteria. For example: + * seriesCollection.findBy({ + * seriesInstanceUID: '1.2.3.4.5.6.77777.8888888.99999999999.0' + * }); + */ + Object.defineProperty(this, 'seriesInstanceUID', { + configurable: false, + enumerable: false, + get: function() { + return this.getSeriesInstanceUID(); + }, + }); + } + + /** + * Public Methods + */ + + /** + * Returns the SeriesInstanceUID of the current series. + */ + getSeriesInstanceUID() { + return this._seriesInstanceUID; + } + + /** + * Append an instance to the current series. + * @param {InstanceMetadata} instance The instance to be added to the current series. + * @returns {boolean} Returns true on success, false otherwise. + */ + addInstance(instance) { + let result = false; + if ( + instance instanceof InstanceMetadata && + this.getInstanceByUID(instance.getSOPInstanceUID()) === void 0 + ) { + this._instances.push(instance); + result = true; + } + return result; + } + + /** + * Get the first instance of the current series retaining a consistent result across multiple calls. + * @return {InstanceMetadata} An instance of the InstanceMetadata class or null if it does not exist. + */ + getFirstInstance() { + let instance = this._firstInstance; + if (!(instance instanceof InstanceMetadata)) { + instance = null; + const found = this.getInstanceByIndex(0); + if (found instanceof InstanceMetadata) { + this._firstInstance = found; + instance = found; + } + } + return instance; + } + + /** + * Find an instance by index. + * @param {number} index An integer representing a list index. + * @returns {InstanceMetadata} Returns a InstanceMetadata instance when found or undefined otherwise. + */ + getInstanceByIndex(index) { + let found; // undefined by default... + if (Metadata.isValidIndex(index)) { + found = this._instances[index]; + } + return found; + } + + /** + * Find an instance by SOPInstanceUID. + * @param {string} uid An UID string. + * @returns {InstanceMetadata} Returns a InstanceMetadata instance when found or undefined otherwise. + */ + getInstanceByUID(uid) { + let found; // undefined by default... + if (Metadata.isValidUID(uid)) { + found = this._instances.find(instance => { + return instance.getSOPInstanceUID() === uid; + }); + } + return found; + } + + /** + * Retrieve the number of instances within the current series. + * @returns {number} The number of instances in the current series. + */ + getInstanceCount() { + return this._instances.length; + } + + /** + * Invokes the supplied callback for each instance in the current series passing + * two arguments: instance (an InstanceMetadata instance) and index (the integer + * index of the instance within the current series) + * @param {function} callback The callback function which will be invoked for each instance in the series. + * @returns {undefined} Nothing is returned. + */ + forEachInstance(callback) { + if (Metadata.isValidCallback(callback)) { + this._instances.forEach((instance, index) => { + callback.call(null, instance, index); + }); + } + } + + /** + * Find the index of an instance inside the series. + * @param {InstanceMetadata} instance An instance of the SeriesMetadata class. + * @returns {number} The index of the instance inside the series or -1 if not found. + */ + indexOfInstance(instance) { + return this._instances.indexOf(instance); + } + + /** + * Search the associated instances using the supplied callback as criteria. The callback is passed + * two arguments: instance (a InstanceMetadata instance) and index (the integer + * index of the instance within its series) + * @param {function} callback The callback function which will be invoked for each instance. + * @returns {InstanceMetadata|undefined} If an instance is found based on callback criteria it + * returns a InstanceMetadata. "undefined" is returned otherwise + */ + findInstance(callback) { + if (Metadata.isValidCallback(callback)) { + return this._instances.find((instance, index) => { + return callback.call(null, instance, index); + }); + } + } + + /** + * Compares the current series with another one. + * @param {SeriesMetadata} series An instance of the SeriesMetadata class. + * @returns {boolean} Returns true if both instances refer to the same series. + */ + equals(series) { + const self = this; + return ( + series === self || + (series instanceof SeriesMetadata && + series.getSeriesInstanceUID() === self.getSeriesInstanceUID()) + ); + } +} diff --git a/packages/_core/src/classes/metadata/StudyMetadata.js b/packages/_core/src/classes/metadata/StudyMetadata.js new file mode 100644 index 000000000..ae88a5a82 --- /dev/null +++ b/packages/_core/src/classes/metadata/StudyMetadata.js @@ -0,0 +1,651 @@ +// - createStacks +import DICOMWeb from './../../DICOMWeb'; +import ImageSet from './../ImageSet'; +import { InstanceMetadata } from './InstanceMetadata'; +import { Metadata } from './Metadata'; +import OHIFError from '../OHIFError'; +import { SeriesMetadata } from './SeriesMetadata'; +// - createStacks +import { api } from 'dicomweb-client'; +// - createStacks +import { isImage } from './../../utils/isImage'; + +export class StudyMetadata extends Metadata { + constructor(data, uid) { + super(data, uid); + // Initialize Private Properties + Object.defineProperties(this, { + _studyInstanceUID: { + configurable: true, // configurable so that it can be redefined in sub-classes... + enumerable: false, + writable: true, + value: null, + }, + _series: { + configurable: false, + enumerable: false, + writable: false, + value: [], + }, + _displaySets: { + configurable: false, + enumerable: false, + writable: false, + value: [], + }, + _firstSeries: { + configurable: false, + enumerable: false, + writable: true, + value: null, + }, + _firstInstance: { + configurable: false, + enumerable: false, + writable: true, + value: null, + }, + }); + // Initialize Public Properties + this._definePublicProperties(); + } + + /** + * Private Methods + */ + + /** + * Define Public Properties + * This method should only be called during initialization (inside the class constructor) + */ + _definePublicProperties() { + /** + * Property: this.studyInstanceUID + * Same as this.getStudyInstanceUID() + * It's specially useful in contexts where a method call is not suitable like in search criteria. For example: + * studyCollection.findBy({ + * studyInstanceUID: '1.2.3.4.5.6.77777.8888888.99999999999.0' + * }); + */ + Object.defineProperty(this, 'studyInstanceUID', { + configurable: false, + enumerable: false, + get: function() { + return this.getStudyInstanceUID(); + }, + }); + } + + /** + * Public Methods + */ + + /** + * Getter for displaySets + * @return {Array} Array of display set object + */ + getDisplaySets() { + return this._displaySets.slice(); + } + + /** + * Creates a set of series to be placed in the Study Metadata + * The series that appear in the Study Metadata must represent + * imaging modalities. + * + * Furthermore, for drag/drop functionality, + * it is easiest if the stack objects also contain information about + * which study they are linked to. + * + * @param {StudyMetadata} study The study instance metadata to be used + * @returns {Array} An array of series to be placed in the Study Metadata + */ + createDisplaySets(sopClassHandlerModules) { + const study = this; + const displaySets = []; + const anyDisplaySets = study.getSeriesCount(); + const anySopClassHandlerModules = + sopClassHandlerModules && sopClassHandlerModules.length > 0; + + if (!anyDisplaySets) { + return displaySets; + } + + // Loop through the series (SeriesMetadata) + this.forEachSeries(series => { + const anyInstances = series.getInstanceCount() > 0; + if (!anyInstances) { + return; + } + + const sopClassUids = getSopClassUids(series); + + if (anySopClassHandlerModules) { + const displaySet = _getDisplaySetFromSopClassModule( + sopClassHandlerModules, + series, + study, + sopClassUids + ); + + if (displaySet) { + displaySets.push(displaySet); + + return; + } + } + + // WE NEED A BETTER WAY TO NOTE THAT THIS IS THE DEFAULT BEHAVIOR FOR LOADING + // A DISPLAY SET IF THERE IS NO MATCHING SOP CLASS PLUGIN + + // Search through the instances (InstanceMetadata object) of this series + // Split Multi-frame instances and Single-image modalities + // into their own specific display sets. Place the rest of each + // series into another display set. + const stackableInstances = []; + series.forEachInstance(instance => { + // All imaging modalities must have a valid value for sopClassUid (x00080016) or rows (x00280010) + if ( + !isImage(instance.getRawValue('x00080016')) && + !instance.getRawValue('x00280010') + ) { + return; + } + + let displaySet; + + if (isMultiFrame(instance)) { + displaySet = makeDisplaySet(series, [instance]); + displaySet.setAttributes({ + sopClassUids, + isClip: true, + seriesInstanceUid: series.getSeriesInstanceUID(), + studyInstanceUid: study.getStudyInstanceUID(), // Include the study instance Uid for drag/drop purposes + numImageFrames: instance.getRawValue('x00280008'), // Override the default value of instances.length + instanceNumber: instance.getRawValue('x00200013'), // Include the instance number + acquisitionDatetime: instance.getRawValue('x0008002a'), // Include the acquisition datetime + }); + displaySets.push(displaySet); + } else if (isSingleImageModality(instance.modality)) { + displaySet = makeDisplaySet(series, [instance]); + displaySet.setAttributes({ + sopClassUids, + studyInstanceUid: study.getStudyInstanceUID(), // Include the study instance Uid + seriesInstanceUid: series.getSeriesInstanceUID(), + instanceNumber: instance.getRawValue('x00200013'), // Include the instance number + acquisitionDatetime: instance.getRawValue('x0008002a'), // Include the acquisition datetime + }); + displaySets.push(displaySet); + } else { + stackableInstances.push(instance); + } + }); + + if (stackableInstances.length) { + const displaySet = makeDisplaySet(series, stackableInstances); + displaySet.setAttribute( + 'studyInstanceUid', + study.getStudyInstanceUID() + ); + displaySet.setAttributes({ + sopClassUids, + }); + displaySets.push(displaySet); + } + }); + + // TODO + displaySets.sort(_sortBySeriesNumber); + + return displaySets; + } + + /** + * Set display sets + * @param {Array} displaySets Array of display sets (ImageSet[]) + */ + setDisplaySets(displaySets) { + displaySets.forEach(displaySet => this.addDisplaySet(displaySet)); + } + + /** + * Add a single display set to the list + * @param {Object} displaySet Display set object + * @returns {boolean} True on success, false on failure. + */ + addDisplaySet(displaySet) { + if (displaySet instanceof ImageSet) { + this._displaySets.push(displaySet); + return true; + } + return false; + } + + /** + * Invokes the supplied callback for each display set in the current study passing + * two arguments: display set (a ImageSet instance) and index (the integer + * index of the display set within the current study) + * @param {function} callback The callback function which will be invoked for each display set instance. + * @returns {undefined} Nothing is returned. + */ + forEachDisplaySet(callback) { + if (Metadata.isValidCallback(callback)) { + this._displaySets.forEach((displaySet, index) => { + callback.call(null, displaySet, index); + }); + } + } + + /** + * Search the associated display sets using the supplied callback as criteria. The callback is passed + * two arguments: display set (an ImageSet instance) and index (the integer + * index of the display set within the current study) + * @param {function} callback The callback function which will be invoked for each display set instance. + * @returns {undefined} Nothing is returned. + */ + findDisplaySet(callback) { + if (Metadata.isValidCallback(callback)) { + return this._displaySets.find((displaySet, index) => { + return callback.call(null, displaySet, index); + }); + } + } + + /** + * Retrieve the number of display sets within the current study. + * @returns {number} The number of display sets in the current study. + */ + getDisplaySetCount() { + return this._displaySets.length; + } + + /** + * Returns the StudyInstanceUID of the current study. + */ + getStudyInstanceUID() { + return this._studyInstanceUID; + } + + /** + * Getter for series + * @return {Array} Array of SeriesMetadata object + */ + getSeries() { + return this._series.slice(); + } + + /** + * Append a series to the current study. + * @param {SeriesMetadata} series The series to be added to the current study. + * @returns {boolean} Returns true on success, false otherwise. + */ + addSeries(series) { + let result = false; + if ( + series instanceof SeriesMetadata && + this.getSeriesByUID(series.getSeriesInstanceUID()) === void 0 + ) { + this._series.push(series); + result = true; + } + return result; + } + + /** + * Find a series by index. + * @param {number} index An integer representing a list index. + * @returns {SeriesMetadata} Returns a SeriesMetadata instance when found or undefined otherwise. + */ + getSeriesByIndex(index) { + let found; // undefined by default... + if (Metadata.isValidIndex(index)) { + found = this._series[index]; + } + return found; + } + + /** + * Find a series by SeriesInstanceUID. + * @param {string} uid An UID string. + * @returns {SeriesMetadata} Returns a SeriesMetadata instance when found or undefined otherwise. + */ + getSeriesByUID(uid) { + let found; // undefined by default... + if (Metadata.isValidUID(uid)) { + found = this._series.find(series => { + return series.getSeriesInstanceUID() === uid; + }); + } + return found; + } + + /** + * Retrieve the number of series within the current study. + * @returns {number} The number of series in the current study. + */ + getSeriesCount() { + return this._series.length; + } + + /** + * Retrieve the number of instances within the current study. + * @returns {number} The number of instances in the current study. + */ + getInstanceCount() { + return this._series.reduce((sum, series) => { + return sum + series.getInstanceCount(); + }, 0); + } + + /** + * Invokes the supplied callback for each series in the current study passing + * two arguments: series (a SeriesMetadata instance) and index (the integer + * index of the series within the current study) + * @param {function} callback The callback function which will be invoked for each series instance. + * @returns {undefined} Nothing is returned. + */ + forEachSeries(callback) { + if (Metadata.isValidCallback(callback)) { + this._series.forEach((series, index) => { + callback.call(null, series, index); + }); + } + } + + /** + * Find the index of a series inside the study. + * @param {SeriesMetadata} series An instance of the SeriesMetadata class. + * @returns {number} The index of the series inside the study or -1 if not found. + */ + indexOfSeries(series) { + return this._series.indexOf(series); + } + + /** + * It sorts the series based on display sets order. Each series must be an instance + * of SeriesMetadata and each display sets must be an instance of ImageSet. + * Useful example of usage: + * Study data provided by backend does not sort series at all and client-side + * needs series sorted by the same criteria used for sorting display sets. + */ + sortSeriesByDisplaySets() { + // Object for mapping display sets' index by seriesInstanceUid + const displaySetsMapping = {}; + + // Loop through each display set to create the mapping + this.forEachDisplaySet((displaySet, index) => { + if (!(displaySet instanceof ImageSet)) { + throw new OHIFError( + `StudyMetadata::sortSeriesByDisplaySets display set at index ${index} is not an instance of ImageSet` + ); + } + + // In case of multiframe studies, just get the first index occurence + if (displaySetsMapping[displaySet.seriesInstanceUid] === void 0) { + displaySetsMapping[displaySet.seriesInstanceUid] = index; + } + }); + + // Clone of actual series + const actualSeries = this.getSeries(); + + actualSeries.forEach((series, index) => { + if (!(series instanceof SeriesMetadata)) { + throw new OHIFError( + `StudyMetadata::sortSeriesByDisplaySets series at index ${index} is not an instance of SeriesMetadata` + ); + } + + // Get the new series index + const seriesIndex = displaySetsMapping[series.getSeriesInstanceUID()]; + + // Update the series object with the new series position + this._series[seriesIndex] = series; + }); + } + + /** + * Compares the current study instance with another one. + * @param {StudyMetadata} study An instance of the StudyMetadata class. + * @returns {boolean} Returns true if both instances refer to the same study. + */ + equals(study) { + const self = this; + return ( + study === self || + (study instanceof StudyMetadata && + study.getStudyInstanceUID() === self.getStudyInstanceUID()) + ); + } + + /** + * Get the first series of the current study retaining a consistent result across multiple calls. + * @return {SeriesMetadata} An instance of the SeriesMetadata class or null if it does not exist. + */ + getFirstSeries() { + let series = this._firstSeries; + if (!(series instanceof SeriesMetadata)) { + series = null; + const found = this.getSeriesByIndex(0); + if (found instanceof SeriesMetadata) { + this._firstSeries = found; + series = found; + } + } + return series; + } + + /** + * Get the first instance of the current study retaining a consistent result across multiple calls. + * @return {InstanceMetadata} An instance of the InstanceMetadata class or null if it does not exist. + */ + getFirstInstance() { + let instance = this._firstInstance; + if (!(instance instanceof InstanceMetadata)) { + instance = null; + const firstSeries = this.getFirstSeries(); + if (firstSeries instanceof SeriesMetadata) { + const found = firstSeries.getFirstInstance(); + if (found instanceof InstanceMetadata) { + this._firstInstance = found; + instance = found; + } + } + } + return instance; + } + + /** + * Search the associated series to find an specific instance using the supplied callback as criteria. + * The callback is passed two arguments: instance (a InstanceMetadata instance) and index (the integer + * index of the instance within the current series) + * @param {function} callback The callback function which will be invoked for each instance instance. + * @returns {Object} Result object containing series (SeriesMetadata) and instance (InstanceMetadata) + * objects or an empty object if not found. + */ + findSeriesAndInstanceByInstance(callback) { + let result; + + if (Metadata.isValidCallback(callback)) { + let instance; + + const series = this._series.find(series => { + instance = series.findInstance(callback); + return instance instanceof InstanceMetadata; + }); + + // No series found + if (series instanceof SeriesMetadata) { + result = { + series, + instance, + }; + } + } + + return result || {}; + } + + /** + * Find series by instance using the supplied callback as criteria. The callback is passed + * two arguments: instance (a InstanceMetadata instance) and index (the integer index of + * the instance within its series) + * @param {function} callback The callback function which will be invoked for each instance. + * @returns {SeriesMetadata|undefined} If a series is found based on callback criteria it + * returns a SeriesMetadata. "undefined" is returned otherwise + */ + findSeriesByInstance(callback) { + const result = this.findSeriesAndInstanceByInstance(callback); + + return result.series; + } + + /** + * Find an instance using the supplied callback as criteria. The callback is passed + * two arguments: instance (a InstanceMetadata instance) and index (the integer index of + * the instance within its series) + * @param {function} callback The callback function which will be invoked for each instance. + * @returns {InstanceMetadata|undefined} If an instance is found based on callback criteria it + * returns a InstanceMetadata. "undefined" is returned otherwise + */ + findInstance(callback) { + const result = this.findSeriesAndInstanceByInstance(callback); + + return result.instance; + } +} + +/** + * + * @typedef StudyMetadata + * @property {function} getSeriesCount - returns the number of series in the study + * @property {function} forEachSeries - function that invokes callback with each series and index + * @property {function} getStudyInstanceUID - returns the study's instance UID + * + */ + +/** + * @typedef SeriesMetadata + * @property {function} getSeriesInstanceUID - returns the series's instance UID + * @property {function} getData - ??? + * @property {function} forEachInstance - ??? + */ + +const dwc = api.DICOMwebClient; + +const isMultiFrame = instance => { + // NumberOfFrames (0028,0008) + return instance.getRawValue('x00280008') > 1; +}; + +const makeDisplaySet = (series, instances) => { + const instance = instances[0]; + const imageSet = new ImageSet(instances); + const seriesData = series.getData(); + + // set appropriate attributes to image set... + imageSet.setAttributes({ + displaySetInstanceUid: imageSet.uid, // create a local alias for the imageSet UID + seriesDate: seriesData.seriesDate, + seriesTime: seriesData.seriesTime, + seriesInstanceUid: series.getSeriesInstanceUID(), + seriesNumber: instance.getRawValue('x00200011'), + seriesDescription: instance.getRawValue('x0008103e'), + numImageFrames: instances.length, + frameRate: instance.getRawValue('x00181063'), + modality: instance.getRawValue('x00080060'), + isMultiFrame: isMultiFrame(instance), + }); + + // Sort the images in this series if needed + const shallSort = true; //!OHIF.utils.ObjectPath.get(Meteor, 'settings.public.ui.sortSeriesByIncomingOrder'); + if (shallSort) { + imageSet.sortBy((a, b) => { + // Sort by InstanceNumber (0020,0013) + return ( + (parseInt(a.getRawValue('x00200013', 0)) || 0) - + (parseInt(b.getRawValue('x00200013', 0)) || 0) + ); + }); + } + + // Include the first image instance number (after sorted) + imageSet.setAttribute( + 'instanceNumber', + imageSet.getImage(0).getRawValue('x00200013') + ); + + return imageSet; +}; + +const isSingleImageModality = modality => { + return modality === 'CR' || modality === 'MG' || modality === 'DX'; +}; + +function getSopClassUids(series) { + const uniqueSopClassUidsInSeries = new Set(); + series.forEachInstance(instance => { + const instanceSopClassUid = instance.getRawValue('x00080016'); + + uniqueSopClassUidsInSeries.add(instanceSopClassUid); + }); + const sopClassUids = Array.from(uniqueSopClassUidsInSeries); + + return sopClassUids; +} + +/** + * @private + * @param {SeriesMetadata} series + * @param {StudyMetadata} study + * @param {string[]} sopClassUids + */ +function _getDisplaySetFromSopClassModule( + sopClassHandlerExtensions, // TODO: Update Usage + series, + study, + sopClassUids +) { + // TODO: For now only use the plugins if all instances have the same sopClassUid + if (sopClassUids.length !== 1) { + console.warn( + 'getDisplaySetFromSopClassPlugin: More than one SOPClassUid in the same series is not yet supported.' + ); + return; + } + + const sopClassUid = sopClassUids[0]; + const sopClassHandlerModules = sopClassHandlerExtensions.map(extension => { + return extension.module; + }); + + const handlersForSopClassUid = sopClassHandlerModules.filter(module => { + return module.sopClassUids.includes(sopClassUid); + }); + + // TODO: Sort by something, so we can determine which plugin to use + if (!handlersForSopClassUid || !handlersForSopClassUid.length) { + return; + } + + const plugin = handlersForSopClassUid[0]; + const headers = DICOMWeb.getAuthorizationHeader(); + const dicomWebClient = new dwc({ + url: study.getData().wadoRoot, + headers, + }); + + return plugin.getDisplaySetFromSeries(series, study, dicomWebClient, headers); +} + +/** + * + * @param {*} a - DisplaySet + * @param {*} b - DisplaySet + */ +function _sortBySeriesNumber(a, b) { + const seriesNumberAIsGreaterOrUndefined = + a.seriesNumber > b.seriesNumber || (!a.seriesNumber && b.seriesNumber); + + return seriesNumberAIsGreaterOrUndefined ? 1 : -1; +} diff --git a/packages/_core/src/classes/metadata/StudySummary.js b/packages/_core/src/classes/metadata/StudySummary.js new file mode 100644 index 000000000..a9b4550d3 --- /dev/null +++ b/packages/_core/src/classes/metadata/StudySummary.js @@ -0,0 +1,73 @@ +import { Metadata } from './Metadata'; +import { DICOMTagDescriptions } from '../../utils/DICOMTagDescriptions'; + +/** + * Constants + */ + +const STUDY_INSTANCE_UID = 'x0020000d'; + +/** + * Class Definition + */ + +export class StudySummary extends Metadata { + constructor(tagMap, attributeMap, uid) { + // Call the superclass constructor passing an plain object with no prototype to be used as the main "_data" attribute. + const _data = Object.create(null); + super(_data, uid); + + // Initialize internal tag map if first argument is given. + if (tagMap !== void 0) { + this.addTags(tagMap); + } + + // Initialize internal property map if second argument is given. + if (attributeMap !== void 0) { + this.setCustomAttributes(attributeMap); + } + } + + getStudyInstanceUID() { + // This method should return null if StudyInstanceUID is not available to keep compatibility StudyMetadata API + return this.getTagValue(STUDY_INSTANCE_UID) || null; + } + + /** + * Append tags to internal tag map. + * @param {Object} tagMap An object whose own properties will be used as tag values and appended to internal tag map. + */ + addTags(tagMap) { + const _hasOwn = Object.prototype.hasOwnProperty; + const _data = this._data; + for (let tag in tagMap) { + if (_hasOwn.call(tagMap, tag)) { + const description = DICOMTagDescriptions.find(tag); + // When a description is available, use its tag as internal key... + if (description) { + _data[description.tag] = tagMap[tag]; + } else { + _data[tag] = tagMap[tag]; + } + } + } + } + + tagExists(tagName) { + const _data = this._data; + const description = DICOMTagDescriptions.find(tagName); + if (description) { + return description.tag in _data; + } + return tagName in _data; + } + + getTagValue(tagName) { + const _data = this._data; + const description = DICOMTagDescriptions.find(tagName); + if (description) { + return _data[description.tag]; + } + return _data[tagName]; + } +} diff --git a/packages/_core/src/classes/metadata/WadoRsMetaDataBuilder.js b/packages/_core/src/classes/metadata/WadoRsMetaDataBuilder.js new file mode 100644 index 000000000..4cd0e8a35 --- /dev/null +++ b/packages/_core/src/classes/metadata/WadoRsMetaDataBuilder.js @@ -0,0 +1,48 @@ +export class WadoRsMetaDataBuilder { + constructor() { + this.tags = {}; + } + + addTag(tag, value, multi) { + this.tags[tag] = { + tag, + value, + multi, + }; + + return this; + } + + toJSON() { + const json = {}; + const keys = Object.keys(this.tags); + + keys.forEach(key => { + if (!this.tags.hasOwnProperty(key)) { + return; + } + + const tag = this.tags[key]; + const multi = !!tag.multi; + let value = tag.value; + + if (value == null || (value.length === 1 && value[0] == null)) { + return; + } + + if (typeof value === 'string' && multi) { + value = value.split('\\'); + } + + if (!Array.isArray(value)) { + value = [value]; + } + + json[key] = { + Value: value, + }; + }); + + return json; + } +} diff --git a/packages/_core/src/classes/metadata/index.js b/packages/_core/src/classes/metadata/index.js new file mode 100644 index 000000000..a3e6da50d --- /dev/null +++ b/packages/_core/src/classes/metadata/index.js @@ -0,0 +1,35 @@ +import { InstanceMetadata } from './InstanceMetadata'; +import { Metadata } from './Metadata'; +import { OHIFInstanceMetadata } from './OHIFInstanceMetadata'; +import { OHIFSeriesMetadata } from './OHIFSeriesMetadata'; +import { OHIFStudyMetadata } from './OHIFStudyMetadata'; +import { SeriesMetadata } from './SeriesMetadata'; +import { StudyMetadata } from './StudyMetadata'; +import { StudySummary } from './StudySummary'; +import { WadoRsMetaDataBuilder } from './WadoRsMetaDataBuilder'; + +const metadata = { + Metadata, + StudySummary, + WadoRsMetaDataBuilder, + StudyMetadata, + SeriesMetadata, + InstanceMetadata, + OHIFStudyMetadata, + OHIFSeriesMetadata, + OHIFInstanceMetadata, +}; + +export { + Metadata, + StudySummary, + WadoRsMetaDataBuilder, + StudyMetadata, + SeriesMetadata, + InstanceMetadata, + OHIFStudyMetadata, + OHIFSeriesMetadata, + OHIFInstanceMetadata, +}; + +export default metadata; diff --git a/packages/_core/src/compatibility/dialogPolyfill.js b/packages/_core/src/compatibility/dialogPolyfill.js new file mode 100644 index 000000000..6523dea08 --- /dev/null +++ b/packages/_core/src/compatibility/dialogPolyfill.js @@ -0,0 +1,458 @@ +var dialogPolyfill = (function() { + var supportCustomEvent = window.CustomEvent; + if (!supportCustomEvent || typeof supportCustomEvent == 'object') { + supportCustomEvent = function CustomEvent(event, x) { + x = x || {}; + var ev = document.createEvent('CustomEvent'); + ev.initCustomEvent(event, !!x.bubbles, !!x.cancelable, x.detail || null); + return ev; + }; + supportCustomEvent.prototype = window.Event.prototype; + } + + /** + * Finds the nearest from the passed element. + * + * @param {Element} el to search from + * @param {HTMLDialogElement} dialog found + */ + function findNearestDialog(el) { + while (el) { + if (el.nodeName == 'DIALOG') { + return el; + } + el = el.parentElement; + } + return null; + } + + var dialogPolyfill = {}; + + dialogPolyfill.reposition = function(element) { + var scrollTop = + document.body.scrollTop || document.documentElement.scrollTop; + var topValue = scrollTop + (window.innerHeight - element.offsetHeight) / 2; + element.style.top = Math.max(0, topValue) + 'px'; + element.dialogPolyfillInfo.isTopOverridden = true; + }; + + dialogPolyfill.inNodeList = function(nodeList, node) { + for (var i = 0; i < nodeList.length; ++i) { + if (nodeList[i] == node) return true; + } + return false; + }; + + dialogPolyfill.isInlinePositionSetByStylesheet = function(element) { + for (var i = 0; i < document.styleSheets.length; ++i) { + var styleSheet = document.styleSheets[i]; + var cssRules = null; + // Some browsers throw on cssRules. + try { + cssRules = styleSheet.cssRules; + } catch (e) {} + if (!cssRules) continue; + for (var j = 0; j < cssRules.length; ++j) { + var rule = cssRules[j]; + var selectedNodes = null; + // Ignore errors on invalid selector texts. + try { + selectedNodes = document.querySelectorAll(rule.selectorText); + } catch (e) {} + if ( + !selectedNodes || + !dialogPolyfill.inNodeList(selectedNodes, element) + ) + continue; + var cssTop = rule.style.getPropertyValue('top'); + var cssBottom = rule.style.getPropertyValue('bottom'); + if ((cssTop && cssTop != 'auto') || (cssBottom && cssBottom != 'auto')) + return true; + } + } + return false; + }; + + dialogPolyfill.needsCentering = function(dialog) { + var computedStyle = window.getComputedStyle(dialog); + if (computedStyle.position != 'absolute') { + return false; + } + + // We must determine whether the top/bottom specified value is non-auto. In + // WebKit/Blink, checking computedStyle.top == 'auto' is sufficient, but + // Firefox returns the used value. So we do this crazy thing instead: check + // the inline style and then go through CSS rules. + if ( + (dialog.style.top != 'auto' && dialog.style.top != '') || + (dialog.style.bottom != 'auto' && dialog.style.bottom != '') + ) + return false; + return !dialogPolyfill.isInlinePositionSetByStylesheet(dialog); + }; + + dialogPolyfill.showDialog = function(isModal) { + if (this.open) { + throw 'InvalidStateError: showDialog called on open dialog'; + } + this.open = true; // TODO: should be a getter mapped to attribute + this.setAttribute('open', 'open'); + + if (isModal) { + // Find element with `autofocus` attribute or first form control + var first_form_ctrl = null; + var autofocus = null; + var findElementToFocus = function(root) { + if (!root.children) { + return; + } + for (var i = 0; i < root.children.length; i++) { + var elem = root.children[i]; + if ( + first_form_ctrl === null && + !elem.disabled && + (elem.nodeName == 'BUTTON' || + elem.nodeName == 'INPUT' || + elem.nodeName == 'KEYGEN' || + elem.nodeName == 'SELECT' || + elem.nodeName == 'TEXTAREA') + ) { + first_form_ctrl = elem; + } + if (elem.autofocus) { + autofocus = elem; + return; + } + findElementToFocus(elem); + if (autofocus !== null) return; + } + }; + + findElementToFocus(this); + + if (autofocus !== null) { + autofocus.focus(); + } else if (first_form_ctrl !== null) { + first_form_ctrl.focus(); + } + } + + if (dialogPolyfill.needsCentering(this)) dialogPolyfill.reposition(this); + if (isModal) { + this.dialogPolyfillInfo.modal = true; + dialogPolyfill.dm.pushDialog(this); + } + + // IE sometimes complains when calling .focus() that it + // "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus." + try { + if (autofocus !== null) { + autofocus.focus(); + } else if (first_form_ctrl !== null) { + first_form_ctrl.focus(); + } + } catch (e) {} + this.style.zoom = 1; + }; + + dialogPolyfill.close = function(retval) { + if (!this.open && !window.HTMLDialogElement) { + // Native implementations will set .open to false, so ignore this error. + throw 'InvalidStateError: close called on closed dialog'; + } + this.open = false; + this.removeAttribute('open'); + + // Leave returnValue untouched in case it was set directly on the element + if (typeof retval != 'undefined') { + this.returnValue = retval; + } + + // This won't match the native exactly because if the user sets top + // on a centered polyfill dialog, that top gets thrown away when the dialog is + // closed. Not sure it's possible to polyfill this perfectly. + if (this.dialogPolyfillInfo.isTopOverridden) { + this.style.top = 'auto'; + } + + if (this.dialogPolyfillInfo.modal) { + dialogPolyfill.dm.removeDialog(this); + } + + // Triggering "close" event for any attached listeners on the + var event; + if (document.createEvent) { + event = document.createEvent('HTMLEvents'); + event.initEvent('close', true, true); + } else { + event = new Event('close'); + } + this.dispatchEvent(event); + + return this.returnValue; + }; + + dialogPolyfill.registerDialog = function(element) { + if (element.show) { + // console.warn("This browser already supports , the polyfill " + + // "may not work correctly."); + } + element.show = dialogPolyfill.showDialog.bind(element, false); + element.showModal = dialogPolyfill.showDialog.bind(element, true); + element.close = dialogPolyfill.close.bind(element); + element.dialogPolyfillInfo = {}; + element.open = false; + }; + + // The overlay is used to simulate how a modal dialog blocks the document. The + // blocking dialog is positioned on top of the overlay, and the rest of the + // dialogs on the pending dialog stack are positioned below it. In the actual + // implementation, the modal dialog stacking is controlled by the top layer, + // where z-index has no effect. + var TOP_LAYER_ZINDEX = 100000; + var MAX_PENDING_DIALOGS = 100000; + + dialogPolyfill.DialogManager = function() { + this.pendingDialogStack = []; + this.overlay = document.createElement('div'); + this.overlay.style.width = '100%'; + this.overlay.style.height = '100%'; + this.overlay.style.position = 'fixed'; + this.overlay.style.left = '0px'; + this.overlay.style.top = '0px'; + this.overlay.style.backgroundColor = 'rgba(0,0,0,0.0)'; + + this.focusPageLast = this.createFocusable(); + this.overlay.appendChild(this.focusPageLast); + + this.overlay.addEventListener('click', function(e) { + var redirectedEvent = document.createEvent('MouseEvents'); + redirectedEvent.initMouseEvent( + e.type, + e.bubbles, + e.cancelable, + window, + e.detail, + e.screenX, + e.screenY, + e.clientX, + e.clientY, + e.ctrlKey, + e.altKey, + e.shiftKey, + e.metaKey, + e.button, + e.relatedTarget + ); + document.body.dispatchEvent(redirectedEvent); + }); + + // TODO: Only install when any dialogs are open. + document.addEventListener( + 'submit', + function(ev) { + var method = ev.target.getAttribute('method'); + method = method ? method.toLowerCase() : ''; + if (method != 'dialog') { + return; + } + ev.preventDefault(); + + var dialog = findNearestDialog(ev.target); + if (!dialog) { + return; + } + + // FIXME: The original event doesn't contain the INPUT element used to + // submit the form (if any). Look in some possible places. + var returnValue; + var cands = [document.activeElement, ev.explicitOriginalTarget]; + cands.some(function(cand) { + if (cand && cand.nodeName == 'INPUT' && cand.form == ev.target) { + returnValue = cand.value; + return true; + } + }); + dialog.close(returnValue); + }, + true + ); + }; + + dialogPolyfill.DialogManager.prototype.createFocusable = function(tabIndex) { + var span = document.createElement('span'); + span.tabIndex = tabIndex || 0; + span.style.opacity = 0; + span.style.position = 'static'; + return span; + }; + + dialogPolyfill.DialogManager.prototype.blockDocument = function() { + if (!document.body.contains(this.overlay)) { + document.body.appendChild(this.overlay); + + // On Safari/Mac (and possibly other browsers), the documentElement is + // not focusable. This is required for modal dialogs as it is the first + // element to be hit by a tab event, and further tabs are redirected to + // the most visible dialog. + if (this.needsDocumentElementFocus === undefined) { + document.documentElement.focus(); + this.needsDocumentElementFocus = + document.activeElement != document.documentElement; + } + if (this.needsDocumentElementFocus) { + document.documentElement.tabIndex = 1; + } + } + }; + + dialogPolyfill.DialogManager.prototype.unblockDocument = function() { + document.body.removeChild(this.overlay); + if (this.needsDocumentElementFocus) { + // TODO: Restore the previous tabIndex, rather than clearing it. + document.documentElement.tabIndex = ''; + } + }; + + dialogPolyfill.DialogManager.prototype.updateStacking = function() { + if (this.pendingDialogStack.length == 0) { + this.unblockDocument(); + return; + } + this.blockDocument(); + + var zIndex = TOP_LAYER_ZINDEX; + for (var i = 0; i < this.pendingDialogStack.length; i++) { + if (i == this.pendingDialogStack.length - 1) + this.overlay.style.zIndex = zIndex++; + var dialog = this.pendingDialogStack[i]; + dialog.dialogPolyfillInfo.backdrop.style.zIndex = zIndex++; + dialog.style.zIndex = zIndex++; + } + }; + + dialogPolyfill.DialogManager.prototype.handleKey = function(event) { + var dialogCount = this.pendingDialogStack.length; + if (dialogCount == 0) { + return; + } + var dialog = this.pendingDialogStack[dialogCount - 1]; + var pfi = dialog.dialogPolyfillInfo; + + switch (event.keyCode) { + case 9 /* tab */: + var activeElement = document.activeElement; + var forward = !event.shiftKey; + if (forward) { + // Tab forward, so look for document or fake last focus element. + if ( + activeElement == document.documentElement || + activeElement == document.body || + activeElement == pfi.backdrop + ) { + pfi.focusFirst.focus(); + } else if (activeElement == pfi.focusLast) { + // TODO: Instead of wrapping to focusFirst, escape to browser chrome. + pfi.focusFirst.focus(); + } + } else { + // Tab backwards, so look for fake first focus element. + if (activeElement == pfi.focusFirst) { + // TODO: Instead of wrapping to focusLast, escape to browser chrome. + pfi.focusLast.focus(); + } else if (activeElement == this.focusPageLast) { + // The focus element is at the end of the page (e.g., shift-tab from + // the window chrome): move current focus to the last element in the + // dialog instead. + pfi.focusLast.focus(); + } + } + break; + + case 27 /* esc */: + event.preventDefault(); + event.stopPropagation(); + var cancelEvent = new supportCustomEvent('cancel', { + bubbles: false, + cancelable: true, + }); + if (dialog.dispatchEvent(cancelEvent)) { + dialog.close(); + } + break; + } + }; + + dialogPolyfill.DialogManager.prototype.pushDialog = function(dialog) { + if (this.pendingDialogStack.length >= MAX_PENDING_DIALOGS) { + throw 'Too many modal dialogs'; + } + + var backdrop = document.createElement('div'); + backdrop.className = 'backdrop'; + var clickEventListener = function(e) { + var redirectedEvent = document.createEvent('MouseEvents'); + redirectedEvent.initMouseEvent( + e.type, + e.bubbles, + e.cancelable, + window, + e.detail, + e.screenX, + e.screenY, + e.clientX, + e.clientY, + e.ctrlKey, + e.altKey, + e.shiftKey, + e.metaKey, + e.button, + e.relatedTarget + ); + dialog.dispatchEvent(redirectedEvent); + }; + backdrop.addEventListener('click', clickEventListener); + dialog.parentNode.insertBefore(backdrop, dialog.nextSibling); + dialog.dialogPolyfillInfo.backdrop = backdrop; + dialog.dialogPolyfillInfo.clickEventListener = clickEventListener; + this.pendingDialogStack.push(dialog); + this.updateStacking(); + + dialog.dialogPolyfillInfo.focusFirst = this.createFocusable(); + dialog.dialogPolyfillInfo.focusLast = this.createFocusable(); + dialog.appendChild(dialog.dialogPolyfillInfo.focusLast); + dialog.insertBefore( + dialog.dialogPolyfillInfo.focusFirst, + dialog.firstChild + ); + }; + + dialogPolyfill.DialogManager.prototype.removeDialog = function(dialog) { + var index = this.pendingDialogStack.indexOf(dialog); + if (index == -1) { + return; + } + this.pendingDialogStack.splice(index, 1); + var backdrop = dialog.dialogPolyfillInfo.backdrop; + var clickEventListener = dialog.dialogPolyfillInfo.clickEventListener; + backdrop.removeEventListener('click', clickEventListener); + backdrop.parentNode.removeChild(backdrop); + dialog.dialogPolyfillInfo.backdrop = null; + dialog.dialogPolyfillInfo.clickEventListener = null; + this.updateStacking(); + + dialog.removeChild(dialog.dialogPolyfillInfo.focusFirst); + dialog.removeChild(dialog.dialogPolyfillInfo.focusLast); + dialog.dialogPolyfillInfo.focusFirst = null; + dialog.dialogPolyfillInfo.focusLast = null; + }; + + dialogPolyfill.dm = new dialogPolyfill.DialogManager(); + + document.addEventListener( + 'keydown', + dialogPolyfill.dm.handleKey.bind(dialogPolyfill.dm) + ); + + return dialogPolyfill; +})(); diff --git a/packages/_core/src/compatibility/dialogPolyfill.styl b/packages/_core/src/compatibility/dialogPolyfill.styl new file mode 100644 index 000000000..fc571789a --- /dev/null +++ b/packages/_core/src/compatibility/dialogPolyfill.styl @@ -0,0 +1,34 @@ +dialog + position: absolute + left: 0 + right: 0 + width: -moz-fit-content + width: -webkit-fit-content + width: fit-content + height: -moz-fit-content + height: -webkit-fit-content + height: fit-content + margin: auto + border: solid + padding: 1em + background: white + color: black + display: none + +dialog[open] + display: block + +dialog + .backdrop + position: fixed + top: 0 + right: 0 + bottom: 0 + left: 0 + background: rgba(0,0,0,0.1) + +/* for small devices, modal dialogs go full-screen */ +@media screen and (max-width: 540px) + dialog[_polyfill_modal] + top: 0 + width: auto + margin: 1em \ No newline at end of file diff --git a/packages/_core/src/compatibility/index.js b/packages/_core/src/compatibility/index.js new file mode 100644 index 000000000..c314ffd18 --- /dev/null +++ b/packages/_core/src/compatibility/index.js @@ -0,0 +1 @@ +import './styleProperty.js'; diff --git a/packages/_core/src/compatibility/styleProperty.js b/packages/_core/src/compatibility/styleProperty.js new file mode 100644 index 000000000..f64bd2841 --- /dev/null +++ b/packages/_core/src/compatibility/styleProperty.js @@ -0,0 +1,66 @@ +/* + * https://github.com/swederik/dragula/blob/ccc15d75186f5168e7abadbe3077cf12dab09f8b/styleProperty.js + */ +(function() { + 'use strict'; + + const browserProps = {}; + + function eachVendor(prop, fn) { + const prefixes = ['Webkit', 'Moz', 'ms', 'O']; + fn(prop); + for (let i = 0; i < prefixes.length; i++) { + fn(prefixes[i] + prop.charAt(0).toUpperCase() + prop.slice(1)); + } + } + + function check(property, testValue) { + const sandbox = document.createElement('iframe'); + const element = document.createElement('p'); + + document.body.appendChild(sandbox); + sandbox.contentDocument.body.appendChild(element); + const support = set(element, property, testValue); + + // We have to do this because remove() is not supported by IE11 and below + sandbox.parentElement.removeChild(sandbox); + return support; + } + + function checkComputed(el, prop) { + const computed = window.getComputedStyle(el).getPropertyValue(prop); + return computed !== void 0 && computed.length > 0 && computed !== 'none'; + } + + function set(el, prop, value) { + let match = false; + + if (browserProps[prop] === void 0) { + eachVendor(prop, function(vendorProp) { + if (el.style[vendorProp] !== void 0 && match === false) { + el.style[vendorProp] = value; + if (checkComputed(el, vendorProp)) { + match = true; + browserProps[prop] = vendorProp; + } + } + }); + } else { + el.style[browserProps[prop]] = value; + return true; + } + + return match; + } + + const styleProperty = { + check, + set, + }; + + OHIF.ui.styleProperty = styleProperty; +})(); + +const { styleProperty } = OHIF.ui; + +export { styleProperty }; diff --git a/packages/_core/src/compatibility/transition-to-from-auto.js b/packages/_core/src/compatibility/transition-to-from-auto.js new file mode 100644 index 000000000..4743b2023 --- /dev/null +++ b/packages/_core/src/compatibility/transition-to-from-auto.js @@ -0,0 +1,150 @@ +/*! + * transition-to-from-auto 0.5.2 + * https://github.com/75lb/transition-to-from-auto + * Copyright 2015 Lloyd Brookes <75pound@gmail.com> + */ + +/** +@module +@alias transition +*/ +(function(window, document) { + 'use strict'; + + var getComputedStyle = window.getComputedStyle; + var isTransition = 'data-ttfaInTransition'; + + var elements = []; + var data = []; + + // Transition detecting + var transitionProp = false; + var transitionEnd = false; + var testStyle = document.createElement('a').style; + var testProp; + + if (testStyle[(testProp = 'webkitTransition')] !== undefined) { + transitionProp = testProp; + transitionEnd = testProp + 'End'; + } + + if (testStyle[(testProp = 'transition')] !== undefined) { + transitionProp = testProp; + transitionEnd = testProp + 'end'; + } + + function process(options, data) { + var el = options.element; + var val = options.val; + var prop = options.prop; + var style = el.style; + var startVal; + var autoVal; + + if (!transitionProp) { + return (style[prop] = val); + } + + if (el.hasAttribute(isTransition)) { + el.removeEventListener(transitionEnd, data.l); + } else { + style[transitionProp] = 'none'; + + startVal = getComputedStyle(el)[prop]; + style[prop] = 'auto'; + autoVal = getComputedStyle(el)[prop]; + + // Interrupt + if (startVal === val || (val === 'auto' && startVal === autoVal)) { + return; + } + + data.auto = autoVal; + el.setAttribute(isTransition, 1); + + // Transition + style[prop] = startVal; + el.offsetWidth; + style[transitionProp] = options.style; + } + + style[prop] = val === 'auto' ? data.auto : val; + + data.l = function(e) { + if (e.propertyName === prop) { + el.removeAttribute(isTransition); + el.removeEventListener(transitionEnd, data.l); + if (val === 'auto') { + /* avoid transition flashes in Safari */ + style[transitionProp] = 'none'; + style[prop] = val; + } + } + }; + + el.addEventListener(transitionEnd, data.l); + } + + /** + @param options {Object} + @param options.element {string | element} - The DOM element or selector to transition + @param options.val {string} - The value you want to transition to + @param [options.prop] {string} - The CSS property to transition, defaults to `"height"` + @param [options.style] {string} - The desired value for the `transition` CSS property (e.g. `"height 1s"`). If specified, this value is added inline and will override your CSS. Leave this value blank if you already have it defined in your stylesheet. + @alias module:transition-to-from-auto + */ + function transition(options) { + var element = options.element; + var datum; + var index; + + if (typeof element === 'string') { + element = document.querySelector(element); + } + + element = options.element = element instanceof Node ? element : false; + options.prop = options.prop || 'height'; + options.style = options.style || ''; + + if (element) { + index = elements.indexOf(element); + if (~index) { + datum = data[index]; + } else { + datum = {}; + elements.push(element); + data.push(datum); + } + + process(options, datum); + } + } + + /** + The name of the vendor-specific transition CSS property + @type {string} + @example + el.style[transition.prop + 'Duration'] = '1s'; + */ + transition.prop = transitionProp; + + /** + * The name of the [transition end event](https://developer.mozilla.org/en-US/docs/Web/Events/transitionend) in the current browser (typically `"transitionend"` or `"webkitTransitionEnd"`) + * @type {string} + * @example + * el.addEventListener(transition.end, function(){ + * // the transition ended.. + * }); + */ + transition.end = transitionEnd; + + if (typeof module === 'object' && module.exports) { + module.exports = transition; + } else if (typeof define === 'function' && define.amd) { + define(function() { + return transition; + }); + } else { + window.transition = transition; + } +})(window, document); diff --git a/packages/_core/src/cornerstone.js b/packages/_core/src/cornerstone.js new file mode 100644 index 000000000..dc7f99338 --- /dev/null +++ b/packages/_core/src/cornerstone.js @@ -0,0 +1,15 @@ +import MetadataProvider from './classes/MetadataProvider'; +import { + getBoundingBox, + pixelToPage, + repositionTextBox, +} from './lib/cornerstone.js'; + +const cornerstone = { + MetadataProvider, + getBoundingBox, + pixelToPage, + repositionTextBox, +}; + +export default cornerstone; diff --git a/packages/_core/src/extensions/ExtensionManager.js b/packages/_core/src/extensions/ExtensionManager.js new file mode 100644 index 000000000..672160821 --- /dev/null +++ b/packages/_core/src/extensions/ExtensionManager.js @@ -0,0 +1,176 @@ +import MODULE_TYPES from './MODULE_TYPES.js'; +import log from './../log.js'; + +export default class ExtensionManager { + constructor({ commandsManager }) { + this.modules = {}; + this.registeredExtensionIds = []; + this.moduleTypeNames = Object.values(MODULE_TYPES); + // + this._commandsManager = commandsManager; + + this.moduleTypeNames.forEach(moduleType => { + this.modules[moduleType] = []; + }); + } + + /** + * An array of extensions, or an array of arrays that contains extension + * configuration pairs. + * + * @param {Object[]} extensions - Array of extensions + */ + registerExtensions(extensions) { + extensions.forEach(extension => { + const hasConfiguration = Array.isArray(extension); + + if (hasConfiguration) { + const [ohifExtension, configuration] = extensions; + this.registerExtension(ohifExtension, configuration); + } else { + this.registerExtension(extension); + } + }); + } + + /** + * + * TODO: Id Management: SopClassHandlers currently refer to viewport module by id; setting the extension id as viewport module id is a workaround for now + * @param {Object} extension + * @param {Object} configuration + */ + registerExtension(extension, configuration = {}) { + if (!extension) { + log.warn( + 'Attempting to register a null/undefined extension. Exiting early.' + ); + return; + } + + let extensionId = extension.id; + + if (!extensionId) { + extensionId = Math.random() + .toString(36) + .substr(2, 5); + + log.warn(`Extension ID not set. Using random string ID: ${extensionId}`); + } + + if (this.registeredExtensionIds.includes(extensionId)) { + log.warn( + `Extension ID ${extensionId} has already been registered. Exiting before duplicating modules.` + ); + return; + } + + // preRegistrationHook + if (extension.preRegistration) { + extension.preRegistration(configuration); + } + + // Register Modules + this.moduleTypeNames.forEach(moduleType => { + const extensionModule = this._getExtensionModule( + moduleType, + extension, + extensionId + ); + + if (extensionModule) { + this._initSpecialModuleTypes(moduleType, extensionModule); + + this.modules[moduleType].push({ + extensionId, + module: extensionModule, + }); + } + }); + + // Track extension registration + this.registeredExtensionIds.push(extensionId); + } + + /** + * @private + * @param {string} moduleType + * @param {Object} extension + * @param {string} extensionId - Used for logging warnings + */ + _getExtensionModule(moduleType, extension, extensionId) { + const getModuleFnName = 'get' + _capitalizeFirstCharacter(moduleType); + const getModuleFn = extension[getModuleFnName]; + + if (!getModuleFn) { + return; + } + + try { + const extensionModule = getModuleFn(); + + if (!extensionModule) { + log.warn( + `Null or undefined returned when registering the ${getModuleFnName} module for the ${extensionId} extension` + ); + } + + return extensionModule; + } catch (ex) { + log.error( + `Exception thrown while trying to call ${getModuleFnName} for the ${extensionId} extension` + ); + } + } + + _initSpecialModuleTypes(moduleType, extensionModule) { + switch (moduleType) { + case 'commandsModule': { + const { definitions, defaultContext } = extensionModule; + if (!definitions || Object.keys(definitions).length === 0) { + log.warn('Commands Module contains no command definitions'); + return; + } + this._initCommandsModule(definitions, defaultContext); + break; + } + default: + // code block + } + } + + /** + * + * @private + * @param {Object[]} commandDefinitions + */ + _initCommandsModule(commandDefinitions, defaultContext = 'VIEWER') { + if (!this._commandsManager.getContext(defaultContext)) { + this._commandsManager.createContext(defaultContext); + } + + Object.keys(commandDefinitions).forEach(commandName => { + const commandDefinition = commandDefinitions[commandName]; + const commandHasContextThatDoesNotExist = + commandDefinition.context && + !this._commandsManager.getContext(commandDefinition.context); + + if (commandHasContextThatDoesNotExist) { + this._commandsManager.createContext(commandDefinition.context); + } + + this._commandsManager.registerCommand( + commandDefinition.context || defaultContext, + commandName, + commandDefinition + ); + }); + } +} + +/** + * @private + * @param {string} lower + */ +function _capitalizeFirstCharacter(lower) { + return lower.charAt(0).toUpperCase() + lower.substr(1); +} diff --git a/packages/_core/src/extensions/ExtensionManager.test.js b/packages/_core/src/extensions/ExtensionManager.test.js new file mode 100644 index 000000000..cfe892ef0 --- /dev/null +++ b/packages/_core/src/extensions/ExtensionManager.test.js @@ -0,0 +1,182 @@ +import { Exception } from 'handlebars'; +import ExtensionManager from './ExtensionManager.js'; +import MODULE_TYPES from './MODULE_TYPES.js'; +import log from './../log.js'; + +jest.mock('./../log.js'); + +describe('ExtensionManager.js', () => { + let extensionManager, commandsManager; + + beforeEach(() => { + commandsManager = { + createContext: jest.fn(), + getContext: jest.fn(), + registerCommand: jest.fn(), + }; + extensionManager = new ExtensionManager({ commandsManager }); + log.warn.mockClear(); + jest.clearAllMocks(); + }); + + it('creates a module namespace for each module type', () => { + const moduleKeys = Object.keys(extensionManager.modules); + const moduleTypeValues = Object.values(MODULE_TYPES); + + expect(moduleKeys.sort()).toEqual(moduleTypeValues.sort()); + }); + + describe('registerExtensions()', () => { + it('calls registerExtension() for each extension', () => { + extensionManager.registerExtension = jest.fn(); + + // SUT + const fakeExtensions = [{ one: '1' }, { two: '2' }, { three: '3 ' }]; + extensionManager.registerExtensions(fakeExtensions); + + // Assert + expect(extensionManager.registerExtension.mock.calls.length).toBe(3); + }); + }); + + describe('registerExtension()', () => { + it('logs a warning if the extension is null or undefined', () => { + const undefinedExtension = undefined; + const nullExtension = null; + + extensionManager.registerExtension(undefinedExtension); + extensionManager.registerExtension(nullExtension); + + expect(log.warn.mock.calls.length).toBe(2); + }); + + it('logs a warning if the extension does not have an id', () => { + const extensionWithoutId = {}; + + extensionManager.registerExtension(extensionWithoutId); + + expect(log.warn.mock.calls.length).toBe(1); + }); + + it('tracks which extensions have been registered', () => { + const extension = { + id: 'hello-world', + }; + + extensionManager.registerExtension(extension); + + expect(extensionManager.registeredExtensionIds).toContain(extension.id); + }); + + it('logs a warning if the extension has an id that has already been registered', () => { + const extension = { id: 'hello-world' }; + extensionManager.registerExtension(extension); + + // SUT + extensionManager.registerExtension(extension); + + expect(log.warn.mock.calls.length).toBe(1); + }); + + it('logs a warning if a defined module returns null or undefined', () => { + const extensionWithBadModule = { + id: 'hello-world', + getViewportModule: () => { + return null; + }, + }; + + extensionManager.registerExtension(extensionWithBadModule); + + expect(log.warn.mock.calls.length).toBe(1); + expect(log.warn.mock.calls[0][0]).toContain( + 'Null or undefined returned when registering' + ); + }); + + it('logs an error if an exception is thrown while retrieving a module', () => { + const extensionWithBadModule = { + id: 'hello-world', + getViewportModule: () => { + throw new Exception('Hello World'); + }, + }; + + extensionManager.registerExtension(extensionWithBadModule); + + expect(log.error.mock.calls.length).toBe(1); + expect(log.error.mock.calls[0][0]).toContain( + 'Exception thrown while trying to call' + ); + }); + + it('successfully registers a module for each module type', () => { + const extension = { + id: 'hello-world', + getViewportModule: () => { + return {}; + }, + getSopClassHandlerModule: () => { + return {}; + }, + getPanelModule: () => { + return {}; + }, + getToolbarModule: () => { + return {}; + }, + getCommandsModule: () => { + return {}; + }, + }; + + extensionManager.registerExtension(extension); + + // Registers 1 module per module type + Object.keys(extensionManager.modules).forEach(moduleType => { + const modulesForType = extensionManager.modules[moduleType]; + + expect(modulesForType.length).toBe(1); + }); + }); + + it('calls commandsManager.registerCommand for each commandsModule command definition', () => { + const extension = { + id: 'hello-world', + getCommandsModule: () => { + return { + definitions: { + exampleDefinition: { + commandFn: () => {}, + storeContexts: [], + options: {}, + }, + }, + }; + }, + }; + + // SUT + extensionManager.registerExtension(extension); + + expect(commandsManager.registerCommand.mock.calls.length).toBe(1); + }); + + it('logs a warning if the commandsModule contains no command definitions', () => { + const extension = { + id: 'hello-world', + getCommandsModule: () => { + return {}; + }, + }; + + // SUT + extensionManager.registerExtension(extension); + + expect(log.warn.mock.calls.length).toBe(1); + expect(log.warn.mock.calls[0][0]).toContain( + 'Commands Module contains no command definitions' + ); + }); + }); +}); diff --git a/packages/_core/src/extensions/MODULE_TYPES.js b/packages/_core/src/extensions/MODULE_TYPES.js new file mode 100644 index 000000000..fbebcac15 --- /dev/null +++ b/packages/_core/src/extensions/MODULE_TYPES.js @@ -0,0 +1,7 @@ +export default { + COMMANDS: 'commandsModule', + PANEL: 'panelModule', + SOP_CLASS_HANDLER: 'sopClassHandlerModule', + TOOLBAR: 'toolbarModule', + VIEWPORT: 'viewportModule', +}; diff --git a/packages/_core/src/extensions/index.js b/packages/_core/src/extensions/index.js new file mode 100644 index 000000000..50a27db11 --- /dev/null +++ b/packages/_core/src/extensions/index.js @@ -0,0 +1,9 @@ +import ExtensionManager from './ExtensionManager'; +import MODULE_TYPES from './MODULE_TYPES.js'; + +export default { + ExtensionManager, + MODULE_TYPES, +}; + +export { ExtensionManager, MODULE_TYPES }; diff --git a/packages/_core/src/hanging-protocols/HPMatcher.js b/packages/_core/src/hanging-protocols/HPMatcher.js new file mode 100644 index 000000000..9c1775a47 --- /dev/null +++ b/packages/_core/src/hanging-protocols/HPMatcher.js @@ -0,0 +1,120 @@ +import OHIFError from '../classes/OHIFError.js'; +import metadata from '../classes/metadata/'; +import { validate } from './lib/validate.js'; +import { CustomAttributeRetrievalCallbacks } from './customAttributes'; + +/** + * Import Constants + */ +const { StudySummary, InstanceMetadata } = metadata; + +/** + * Match a Metadata instance against rules using Validate.js for validation. + * @param {StudySummary|InstanceMetadata} metadataInstance Metadata instance object + * @param {Array} rules Array of MatchingRules instances (StudyMatchingRule|SeriesMatchingRule|ImageMatchingRule) for the match + * @return {Object} Matching Object with score and details (which rule passed or failed) + */ +const match = (metadataInstance, rules) => { + // Make sure the supplied data is valid. + if ( + !( + metadataInstance instanceof StudySummary || + metadataInstance instanceof InstanceMetadata + ) + ) { + throw new OHIFError( + 'HPMatcher::match metadataInstance must be an instance of StudySummary or InstanceMetadata' + ); + } + + const options = { + format: 'grouped', + }; + + const details = { + passed: [], + failed: [], + }; + + let requiredFailed = false; + let score = 0; + + rules.forEach(rule => { + const attribute = rule.attribute; + + // Do not use the custom attribute from the metadataInstance since it is subject to change + if (CustomAttributeRetrievalCallbacks.hasOwnProperty(attribute)) { + const customAttribute = CustomAttributeRetrievalCallbacks[attribute]; + metadataInstance.setCustomAttribute( + attribute, + customAttribute.callback(metadataInstance) + ); + } + + // Format the constraint as required by Validate.js + const testConstraint = { + [attribute]: rule.constraint, + }; + + // Create a single attribute object to be validated, since metadataInstance is an + // instance of Metadata (StudyMetadata, SeriesMetadata or InstanceMetadata) + const attributeValue = metadataInstance.customAttributeExists(attribute) + ? metadataInstance.getCustomAttribute(attribute) + : metadataInstance.getTagValue(attribute); + const attributeMap = { + [attribute]: attributeValue, + }; + + // Use Validate.js to evaluate the constraints on the specified metadataInstance + let errorMessages; + try { + errorMessages = validate(attributeMap, testConstraint, [options]); + } catch (e) { + errorMessages = ['Something went wrong during validation.', e]; + } + + if (!errorMessages) { + // If no errorMessages were returned, then validation passed. + + // Add the rule's weight to the total score + score += parseInt(rule.weight, 10); + + // Log that this rule passed in the matching details object + details.passed.push({ + rule, + }); + } else { + // If errorMessages were present, then validation failed + + // If the rule that failed validation was Required, then + // mark that a required Rule has failed + if (rule.required) { + requiredFailed = true; + } + + // Log that this rule failed in the matching details object + // and include any error messages + details.failed.push({ + rule, + errorMessages, + }); + } + }); + + // If a required Rule has failed Validation, set the matching score to zero + if (requiredFailed) { + score = 0; + } + + return { + score, + details, + requiredFailed, + }; +}; + +const HPMatcher = { + match, +}; + +export { HPMatcher }; diff --git a/packages/_core/src/hanging-protocols/ProtocolEngine.js b/packages/_core/src/hanging-protocols/ProtocolEngine.js new file mode 100644 index 000000000..3172678dc --- /dev/null +++ b/packages/_core/src/hanging-protocols/ProtocolEngine.js @@ -0,0 +1,824 @@ +import OHIFError from '../classes/OHIFError.js'; +import metadata from '../classes/metadata/'; +import { StudyMetadataSource } from '../classes/StudyMetadataSource.js'; +import { isImage } from '../utils/isImage.js'; +import { HPMatcher } from './HPMatcher.js'; +import { sortByScore } from './lib/sortByScore'; +import log from '../log.js'; +import sortBy from '../utils/sortBy.js'; +import { CustomViewportSettings } from './customViewportSettings'; +import Protocol from './classes/Protocol'; +import { ProtocolStore } from './protocolStore/classes'; + +/** + * Import Constants + */ +const { StudyMetadata, InstanceMetadata, StudySummary } = metadata; + +// Useful constants +const ABSTRACT_PRIOR_VALUE = 'abstractPriorValue'; + +export default class ProtocolEngine { + matchedProtocols = new Map(); + matchedProtocolScores = {}; + + /** + * Constructor + * @param {ProtocolStore} protocolStore Protocol Store used to keep track of all hanging protocols + * @param {Array} studies Array of study metadata + * @param {Map} priorStudies Map of prior studies + * @param {Object} studyMetadataSource Instance of StudyMetadataSource (ohif-viewerbase) Object to get study metadata + * @param {Object} options + */ + constructor( + protocolStore, + studies, + priorStudies, + studyMetadataSource, + options = {} + ) { + // ----------- + // Type Validations + if (!(studyMetadataSource instanceof StudyMetadataSource)) { + throw new OHIFError( + 'ProtocolEngine::constructor studyMetadataSource is not an instance of StudyMetadataSource' + ); + } + + if ( + !(studies instanceof Array) && + !studies.every(study => study instanceof StudyMetadata) + ) { + throw new OHIFError( + "ProtocolEngine::constructor studies is not an array or it's items are not instances of StudyMetadata" + ); + } + + // -------------- + // Initialization + this.protocolStore = protocolStore; + this.studies = studies; + this.priorStudies = priorStudies instanceof Map ? priorStudies : new Map(); + this.studyMetadataSource = studyMetadataSource; + this.options = options; + + // Put protocol engine in a known state + this.reset(); + + // Create an array for new stage ids to be stored + // while editing a stage + this.newStageIds = []; + } + + /** + * Resets the ProtocolEngine to the best match + */ + reset() { + const protocol = this.getBestProtocolMatch(); + + this.setHangingProtocol(protocol); + } + + /** + * Retrieves the current Stage from the current Protocol and stage index + * + * @returns {*} The Stage model for the currently displayed Stage + */ + getCurrentStageModel() { + return this.protocol.stages[this.stage]; + } + + /** + * Finds the best protocols from Protocol Store, matching each protocol matching rules + * with the given study. The best protocol are orded by score and returned in an array + * @param {Object} study StudyMetadata instance object + * @return {Array} Array of match objects or an empty array if no match was found + * Each match object has the score of the matching and the matched + * protocol + */ + findMatchByStudy(study) { + log.trace('ProtocolEngine::findMatchByStudy'); + + const matched = []; + const studyInstance = study.getFirstInstance(); + + // Set custom attribute for study metadata + const numberOfAvailablePriors = this.getNumberOfAvailablePriors( + study.getObjectID() + ); + + this.protocolStore.getProtocol().forEach(protocol => { + // Clone the protocol's protocolMatchingRules array + // We clone it so that we don't accidentally add the + // numberOfPriorsReferenced rule to the Protocol itself. + let rules = protocol.protocolMatchingRules.slice(); + if (!rules) { + return; + } + + // Check if the study has the minimun number of priors used by the protocol. + const numberOfPriorsReferenced = protocol.getNumberOfPriorsReferenced(); + if (numberOfPriorsReferenced > numberOfAvailablePriors) { + return; + } + + // Run the matcher and get matching details + const matchedDetails = HPMatcher.match(studyInstance, rules); + const score = matchedDetails.score; + + // The protocol matched some rule, add it to the matched list + if (score > 0) { + matched.push({ + score, + protocol, + }); + } + }); + + // If no matches were found, select the default protocol + if (!matched.length) { + const defaultProtocol = this.protocolStore.getProtocol('defaultProtocol'); + + return [ + { + score: 1, + protocol: defaultProtocol, + }, + ]; + } + + // Sort the matched list by score + sortByScore(matched); + + log.trace('ProtocolEngine::findMatchByStudy matched', matched); + + return matched; + } + + _clearMatchedProtocols() { + this.matchedProtocols.clear(); + this.matchedProtocolScores = {}; + } + /** + * Populates the MatchedProtocols Collection by running the matching procedure + */ + updateProtocolMatches() { + log.trace('ProtocolEngine::updateProtocolMatches'); + + // Clear all data currently in matchedProtocols + this._clearMatchedProtocols(); + + // For each study, find the matching protocols + this.studies.forEach(study => { + const matched = this.findMatchByStudy(study); + + // For each matched protocol, check if it is already in MatchedProtocols + matched.forEach(matchedDetail => { + const protocol = matchedDetail.protocol; + if (!protocol) { + return; + } + + // If it is not already in the MatchedProtocols Collection, insert it with its score + if (!this.matchedProtocols.has(protocol.id)) { + log.trace( + 'ProtocolEngine::updateProtocolMatches inserting protocol match', + matchedDetail + ); + this.matchedProtocols.set(protocol.id, protocol); + this.matchedProtocolScores[protocol.id] = matchedDetail.score; + } + }); + }); + } + + _largestKeyByValue(obj) { + return Object.keys(obj).reduce((a, b) => (obj[a] > obj[b] ? a : b)); + } + + _getHighestScoringProtocol() { + if (!Object.keys(this.matchedProtocolScores).length) { + return this.protocolStore.getProtocol('defaultProtocol'); + } + const highestScoringProtocolId = this._largestKeyByValue( + this.matchedProtocolScores + ); + return this.matchedProtocols.get(highestScoringProtocolId); + } + + /** + * Return the best matched Protocol to the current study or set of studies + * @returns {*} + */ + getBestProtocolMatch() { + // Run the matching to populate matchedProtocols Set and Map + this.updateProtocolMatches(); + + // Retrieve the highest scoring Protocol + const bestMatch = this._getHighestScoringProtocol(); + + log.trace('ProtocolEngine::getBestProtocolMatch bestMatch', bestMatch); + + return bestMatch; + } + + /** + * Get the number of prior studies supplied in the priorStudies map property. + * + * @param {String} studyObjectID The study object ID of the study whose priors are needed + * @returns {number} The number of available prior studies with the same PatientID + */ + getNumberOfAvailablePriors(studyObjectID) { + return this.getAvailableStudyPriors(studyObjectID).length; + } + + /** + * Get the array of prior studies from a specific study. + * + * @param {String} studyObjectID The study object ID of the study whose priors are needed + * @returns {Array} The array of available priors or an empty array + */ + getAvailableStudyPriors(studyObjectID) { + const priors = this.priorStudies.get(studyObjectID); + + return priors instanceof Array ? priors : []; + } + + // Match images given a list of Studies and a Viewport's image matching reqs + matchImages(viewport, viewportIndex) { + log.trace('ProtocolEngine::matchImages'); + + const { + studyMatchingRules, + seriesMatchingRules, + imageMatchingRules: instanceMatchingRules, + } = viewport; + + const matchingScores = []; + const currentStudy = this.studies[0]; // @TODO: Should this be: this.studies[this.currentStudy] ??? + const firstInstance = currentStudy.getFirstInstance(); + + let highestStudyMatchingScore = 0; + let highestSeriesMatchingScore = 0; + + // Set custom attribute for study metadata and it's first instance + currentStudy.setCustomAttribute(ABSTRACT_PRIOR_VALUE, 0); + if (firstInstance instanceof InstanceMetadata) { + firstInstance.setCustomAttribute(ABSTRACT_PRIOR_VALUE, 0); + } + + // Only used if study matching rules has abstract prior values defined... + let priorStudies; + + studyMatchingRules.forEach(rule => { + if (rule.attribute === ABSTRACT_PRIOR_VALUE) { + const validatorType = Object.keys(rule.constraint)[0]; + const validator = Object.keys(rule.constraint[validatorType])[0]; + + let abstractPriorValue = rule.constraint[validatorType][validator]; + abstractPriorValue = parseInt(abstractPriorValue, 10); + // TODO: Restrict or clarify validators for abstractPriorValue? + + // No need to call it more than once... + if (!priorStudies) { + priorStudies = this.getAvailableStudyPriors( + currentStudy.getObjectID() + ); + } + + // TODO: Revisit this later: What about two studies with the same + // study date? + + let priorStudy; + if (abstractPriorValue === -1) { + priorStudy = priorStudies[priorStudies.length - 1]; + } else { + const studyIndex = Math.max(abstractPriorValue - 1, 0); + priorStudy = priorStudies[studyIndex]; + } + + // Invalid data + if ( + !(priorStudy instanceof StudyMetadata) && + !(priorStudy instanceof StudySummary) + ) { + return; + } + + const priorStudyObjectID = priorStudy.getObjectID(); + + // Check if study metadata is already in studies list + if ( + this.studies.find(study => study.getObjectID() === priorStudyObjectID) + ) { + return; + } + + // Get study metadata if necessary and load study in the viewer (each viewer should provide it's own load study method) + this.studyMetadataSource.loadStudy(priorStudy).then( + studyMetadata => { + // Set the custom attribute abstractPriorValue for the study metadata + studyMetadata.setCustomAttribute( + ABSTRACT_PRIOR_VALUE, + abstractPriorValue + ); + + // Also add custom attribute + const firstInstance = studyMetadata.getFirstInstance(); + if (firstInstance instanceof InstanceMetadata) { + firstInstance.setCustomAttribute( + ABSTRACT_PRIOR_VALUE, + abstractPriorValue + ); + } + + // Insert the new study metadata + this.studies.push(studyMetadata); + + // Update the viewport to refresh layout manager with new study + this.updateViewports(viewportIndex); + }, + error => { + log.warn(error); + throw new OHIFError( + `ProtocolEngine::matchImages could not get study metadata for the Study with the following ObjectID: ${priorStudyObjectID}` + ); + } + ); + } + // TODO: Add relative Date / time + }); + + this.studies.forEach(study => { + const studyMatchDetails = HPMatcher.match( + study.getFirstInstance(), + studyMatchingRules + ); + + // Prevent bestMatch from being updated if the matchDetails' required attribute check has failed + if ( + studyMatchDetails.requiredFailed === true || + studyMatchDetails.score < highestStudyMatchingScore + ) { + return; + } + + highestStudyMatchingScore = studyMatchDetails.score; + + study.forEachSeries(series => { + const seriesMatchDetails = HPMatcher.match( + series.getFirstInstance(), + seriesMatchingRules + ); + + // Prevent bestMatch from being updated if the matchDetails' required attribute check has failed + if ( + seriesMatchDetails.requiredFailed === true || + seriesMatchDetails.score < highestSeriesMatchingScore + ) { + return; + } + + highestSeriesMatchingScore = seriesMatchDetails.score; + + series.forEachInstance((instance, index) => { + // This tests to make sure there is actually image data in this instance + // TODO: Change this when we add PDF and MPEG support + // See https://ohiforg.atlassian.net/browse/LT-227 + // sopClassUid = x00080016 + // rows = x00280010 + if ( + !isImage(instance.getTagValue('x00080016')) && + !instance.getTagValue('x00280010') + ) { + return; + } + + const instanceMatchDetails = HPMatcher.match( + instance, + instanceMatchingRules + ); + + // Prevent bestMatch from being updated if the matchDetails' required attribute check has failed + if (instanceMatchDetails.requiredFailed === true) { + return; + } + + const matchDetails = { + passed: [], + failed: [], + }; + + matchDetails.passed = matchDetails.passed.concat( + instanceMatchDetails.details.passed + ); + matchDetails.passed = matchDetails.passed.concat( + seriesMatchDetails.details.passed + ); + matchDetails.passed = matchDetails.passed.concat( + studyMatchDetails.details.passed + ); + + matchDetails.failed = matchDetails.failed.concat( + instanceMatchDetails.details.failed + ); + matchDetails.failed = matchDetails.failed.concat( + seriesMatchDetails.details.failed + ); + matchDetails.failed = matchDetails.failed.concat( + studyMatchDetails.details.failed + ); + + const totalMatchScore = + instanceMatchDetails.score + + seriesMatchDetails.score + + studyMatchDetails.score; + const currentSOPInstanceUID = instance.getSOPInstanceUID(); + + const imageDetails = { + studyInstanceUid: study.getStudyInstanceUID(), + seriesInstanceUid: series.getSeriesInstanceUID(), + sopInstanceUid: currentSOPInstanceUID, + currentImageIdIndex: index, + matchingScore: totalMatchScore, + matchDetails: matchDetails, + sortingInfo: { + score: totalMatchScore, + study: + instance.getTagValue('x00080020') + + instance.getTagValue('x00080030'), // StudyDate = x00080020 StudyTime = x00080030 + series: parseInt(instance.getTagValue('x00200011')), // TODO: change for seriesDateTime SeriesNumber = x00200011 + instance: parseInt(instance.getTagValue('x00200013')), // TODO: change for acquisitionTime InstanceNumber = x00200013 + }, + }; + + // Find the displaySet + const displaySet = study.findDisplaySet(displaySet => + displaySet.images.find( + image => image.getSOPInstanceUID() === currentSOPInstanceUID + ) + ); + + // If the instance was found, set the displaySet ID + if (displaySet) { + imageDetails.displaySetInstanceUid = displaySet.getUID(); + imageDetails.imageId = instance.getImageId(); + } + + matchingScores.push(imageDetails); + }); + }); + }); + + // Sort the matchingScores + const sortingFunction = sortBy( + { + name: 'score', + reverse: true, + }, + { + name: 'study', + reverse: true, + }, + { + name: 'instance', + }, + { + name: 'series', + } + ); + matchingScores.sort((a, b) => + sortingFunction(a.sortingInfo, b.sortingInfo) + ); + + const bestMatch = matchingScores[0]; + + log.trace('ProtocolEngine::matchImages bestMatch', bestMatch); + + return { + bestMatch, + matchingScores, + }; + } + + /** + * Sets the current layout + * + * @param rows + * @param columns + */ + setLayout(rows, columns) { + if (rows < 1 && columns < 1) { + log.error(`Invalid layout ${rows} x ${columns}`); + return; + } + + if (typeof this.options.setLayout !== 'function') { + log.error('Hanging Protocol Engine setLayout callback is not defined'); + return; + } + + let viewports = []; + const numViewports = rows * columns; + + for (let i = 0; i < numViewports; i++) { + viewports.push({ + height: `${100 / rows}%`, + width: `${100 / columns}%`, + }); + } + + this.options.setLayout({ viewports }); + } + + /** + * Rerenders viewports that are part of the current layout manager + * using the matching rules internal to each viewport. + * + * If this function is provided the index of a viewport, only the specified viewport + * is rerendered. + * + * @param viewportIndex + */ + updateViewports(viewportIndex) { + log.trace( + `ProtocolEngine::updateViewports viewportIndex: ${viewportIndex}` + ); + + // Make sure we have an active protocol with a non-empty array of display sets + if (!this.getNumProtocolStages()) { + return; + } + + // Retrieve the current stage + const stageModel = this.getCurrentStageModel(); + + // If the current stage does not fulfill the requirements to be displayed, + // stop here. + if ( + !stageModel || + !stageModel.viewportStructure || + !stageModel.viewports || + !stageModel.viewports.length + ) { + return; + } + + // Retrieve the layoutTemplate associated with the current display set's viewport structure + // If no such template name exists, stop here. + const layoutTemplateName = stageModel.viewportStructure.getLayoutTemplateName(); + if (!layoutTemplateName) { + return; + } + + // Retrieve the properties associated with the current display set's viewport structure template + // If no such layout properties exist, stop here. + const layoutProps = stageModel.viewportStructure.properties; + if (!layoutProps) { + return; + } + + // Create an empty array to store the output viewportData + const viewportData = []; + + // Empty the matchDetails associated with the ProtocolEngine. + // This will be used to store the pass/fail details and score + // for each of the viewport matching procedures + this.matchDetails = []; + + // Loop through each viewport + stageModel.viewports.forEach((viewport, viewportIndex) => { + const details = this.matchImages(viewport, viewportIndex); + + this.matchDetails[viewportIndex] = details; + + // Convert any YES/NO values into true/false for Cornerstone + const cornerstoneViewportParams = {}; + + // Cache viewportSettings keys + const viewportSettingsKeys = Object.keys(viewport.viewportSettings); + + viewportSettingsKeys.forEach(key => { + let value = viewport.viewportSettings[key]; + if (value === 'YES') { + value = true; + } else if (value === 'NO') { + value = false; + } + + cornerstoneViewportParams[key] = value; + }); + + // imageViewerViewports occasionally needs relevant layout data in order to set + // the element style of the viewport in question + const currentViewportData = { + viewportIndex, + viewport: cornerstoneViewportParams, + ...layoutProps, + }; + + const customSettings = []; + viewportSettingsKeys.forEach(id => { + const setting = CustomViewportSettings[id]; + if (!setting) { + return; + } + + customSettings.push({ + id: id, + value: viewport.viewportSettings[id], + }); + }); + + currentViewportData.renderedCallback = element => { + //console.log('renderedCallback for ' + element.id); + customSettings.forEach(customSetting => { + log.trace( + `ProtocolEngine::currentViewportData.renderedCallback Applying custom setting: ${ + customSetting.id + }` + ); + log.trace( + `ProtocolEngine::currentViewportData.renderedCallback with value: ${ + customSetting.value + }` + ); + + const setting = CustomViewportSettings[customSetting.id]; + setting.callback(element, customSetting.value); + }); + }; + + let currentMatch = details.bestMatch; + let currentPosition = 1; + const scoresLength = details.matchingScores.length; + while ( + currentPosition < scoresLength && + viewportData.find(a => a.imageId === currentMatch.imageId) + ) { + currentMatch = details.matchingScores[currentPosition]; + currentPosition++; + } + + if (currentMatch && currentMatch.imageId) { + currentViewportData.studyInstanceUid = currentMatch.studyInstanceUid; + currentViewportData.seriesInstanceUid = currentMatch.seriesInstanceUid; + currentViewportData.sopInstanceUid = currentMatch.sopInstanceUid; + currentViewportData.currentImageIdIndex = + currentMatch.currentImageIdIndex; + currentViewportData.displaySetInstanceUid = + currentMatch.displaySetInstanceUid; + currentViewportData.imageId = currentMatch.imageId; + } + + // @TODO Why should we throw an exception when a best match is not found? This was aborting the whole process. + // if (!currentViewportData.displaySetInstanceUid) { + // throw new OHIFError('ProtocolEngine::updateViewports No matching display set found?'); + // } + + viewportData.push(currentViewportData); + }); + + this.setLayout(layoutProps.rows, layoutProps.columns); + + if (typeof this.options.setViewportSpecificData !== 'function') { + log.error( + 'Hanging Protocol Engine setViewportSpecificData callback is not defined' + ); + return; + } + + // If viewportIndex is defined, then update only that viewport + if (viewportIndex !== undefined && viewportData[viewportIndex]) { + this.options.setViewportSpecificData( + viewportIndex, + viewportData[viewportIndex] + ); + return; + } + + // Update all viewports + viewportData.forEach(viewportSpecificData => { + this.options.setViewportSpecificData( + viewportSpecificData.viewportIndex, + viewportSpecificData + ); + }); + } + + /** + * Sets the current Hanging Protocol to the specified Protocol + * An optional argument can also be used to prevent the updating of the Viewports + * + * @param newProtocol + * @param updateViewports + */ + setHangingProtocol(newProtocol, updateViewports = true) { + log.trace('ProtocolEngine::setHangingProtocol newProtocol', newProtocol); + log.trace( + `ProtocolEngine::setHangingProtocol updateViewports = ${updateViewports}` + ); + + // Reset the array of newStageIds + this.newStageIds = []; + + if (Protocol.prototype.isPrototypeOf(newProtocol)) { + this.protocol = newProtocol; + } else { + this.protocol = new Protocol(); + this.protocol.fromObject(newProtocol); + } + + this.stage = 0; + + // Update viewports by default + if (updateViewports) { + this.updateViewports(); + } + } + + /** + * Check if the next stage is available + * @return {Boolean} True if next stage is available or false otherwise + */ + isNextStageAvailable() { + const numberOfStages = this.getNumProtocolStages(); + + return this.stage + 1 < numberOfStages; + } + + /** + * Check if the previous stage is available + * @return {Boolean} True if previous stage is available or false otherwise + */ + isPreviousStageAvailable() { + return this.stage - 1 >= 0; + } + + /** + * Changes the current stage to a new stage index in the display set sequence. + * It checks if the next stage exists. + * + * @param {Integer} stageAction An integer value specifying wheater next (1) or previous (-1) stage + * @return {Boolean} True if new stage has set or false, otherwise + */ + setCurrentProtocolStage(stageAction) { + // Check if previous or next stage is available + if (stageAction === -1 && !this.isPreviousStageAvailable()) { + return false; + } else if (stageAction === 1 && !this.isNextStageAvailable()) { + return false; + } + + // Sets the new stage + this.stage += stageAction; + + // Log the new stage + log.trace(`ProtocolEngine::setCurrentProtocolStage stage = ${this.stage}`); + + // Since stage has changed, we need to update the viewports + // and redo matchings + this.updateViewports(); + + // Everything went well + return true; + } + + /** + * Retrieves the number of Stages in the current Protocol or + * undefined if no protocol or stages are set + */ + getNumProtocolStages() { + if ( + !this.protocol || + !this.protocol.stages || + !this.protocol.stages.length + ) { + return; + } + + return this.protocol.stages.length; + } + + /** + * Switches to the next protocol stage in the display set sequence + */ + nextProtocolStage() { + log.trace('ProtocolEngine::nextProtocolStage'); + + if (!this.setCurrentProtocolStage(1)) { + log.trace('ProtocolEngine::nextProtocolStage failed'); + } + } + + /** + * Switches to the previous protocol stage in the display set sequence + */ + previousProtocolStage() { + log.trace('ProtocolEngine::previousProtocolStage'); + + if (!this.setCurrentProtocolStage(-1)) { + log.trace('ProtocolEngine::previousProtocolStage failed'); + } + } +} diff --git a/packages/_core/src/hanging-protocols/classes/Protocol.js b/packages/_core/src/hanging-protocols/classes/Protocol.js new file mode 100644 index 000000000..5e71825ae --- /dev/null +++ b/packages/_core/src/hanging-protocols/classes/Protocol.js @@ -0,0 +1,244 @@ +import { ProtocolMatchingRule } from './rules'; +import { removeFromArray } from '../lib/removeFromArray'; +import Stage from './Stage'; +import guid from '../../utils/guid'; +import user from '../../user'; + +/** + * This class represents a Hanging Protocol at the highest level + * + * @type {Protocol} + */ +export default class Protocol { + /** + * The Constructor for the Class to create a Protocol with the bare + * minimum information + * + * @param name The desired name for the Protocol + */ + constructor(name) { + // Create a new UUID for this Protocol + this.id = guid(); + + // Store a value which determines whether or not a Protocol is locked + // This is probably temporary, since we will eventually have role / user + // checks for editing. For now we just need it to prevent changes to the + // default protocols. + this.locked = false; + + // Boolean value to indicate if the protocol has updated priors information + // it's set in "updateNumberOfPriorsReferenced" function + this.hasUpdatedPriorsInformation = false; + + // Apply the desired name + this.name = name; + + // Set the created and modified dates to Now + this.createdDate = new Date(); + this.modifiedDate = new Date(); + + // If we are logged in while creating this Protocol, + // store this information as well + if (user.userLoggedIn && user.userLoggedIn()) { + this.createdBy = user.getUserId(); + this.modifiedBy = user.getUserId(); + } + + // Create two empty Sets specifying which roles + // have read and write access to this Protocol + this.availableTo = new Set(); + this.editableBy = new Set(); + + // Define empty arrays for the Protocol matching rules + // and Stages + this.protocolMatchingRules = []; + this.stages = []; + + // Define auxiliary values for priors + this.numberOfPriorsReferenced = -1; + } + + getNumberOfPriorsReferenced(skipCache = false) { + let numberOfPriorsReferenced = + skipCache !== true ? this.numberOfPriorsReferenced : -1; + + // Check if information is cached already + if (numberOfPriorsReferenced > -1) { + return numberOfPriorsReferenced; + } + + numberOfPriorsReferenced = 0; + + // Search each study matching rule for prior rules + // Each stage can have many viewports that can have + // multiple study matching rules. + this.stages.forEach(stage => { + if (!stage.viewports) { + return; + } + + stage.viewports.forEach(viewport => { + if (!viewport.studyMatchingRules) { + return; + } + + viewport.studyMatchingRules.forEach(rule => { + // If the current rule is not a priors rule, it will return -1 then numberOfPriorsReferenced will continue to be 0 + const priorsReferenced = rule.getNumberOfPriorsReferenced(); + if (priorsReferenced > numberOfPriorsReferenced) { + numberOfPriorsReferenced = priorsReferenced; + } + }); + }); + }); + + this.numberOfPriorsReferenced = numberOfPriorsReferenced; + + return numberOfPriorsReferenced; + } + + updateNumberOfPriorsReferenced() { + this.getNumberOfPriorsReferenced(true); + } + + /** + * Method to update the modifiedDate when the Protocol + * has been changed + */ + protocolWasModified() { + // If we are logged in while modifying this Protocol, + // store this information as well + if (user.userLoggedIn && user.userLoggedIn()) { + this.modifiedBy = user.getUserId(); + } + + // Protocol has been modified, so mark priors information + // as "outdated" + this.hasUpdatedPriorsInformation = false; + + // Update number of priors referenced info + this.updateNumberOfPriorsReferenced(); + + // Update the modifiedDate with the current Date/Time + this.modifiedDate = new Date(); + } + + /** + * Occasionally the Protocol class needs to be instantiated from a JavaScript Object + * containing the Protocol data. This function fills in a Protocol with the Object + * data. + * + * @param input A Protocol as a JavaScript Object, e.g. retrieved from JSON + */ + fromObject(input) { + // Check if the input already has an ID + // If so, keep it. It not, create a new UUID + this.id = input.id || guid(); + + // Assign the input name to the Protocol + this.name = input.name; + + // Retrieve locked status, use !! to make it truthy + // so that undefined values will be set to false + this.locked = !!input.locked; + + // TODO: Check how to regenerate Set from Object + //this.availableTo = new Set(input.availableTo); + //this.editableBy = new Set(input.editableBy); + + // If the input contains Protocol matching rules + if (input.protocolMatchingRules) { + input.protocolMatchingRules.forEach(ruleObject => { + // Create new Rules from the stored data + var rule = new ProtocolMatchingRule(); + rule.fromObject(ruleObject); + + // Add them to the Protocol + this.protocolMatchingRules.push(rule); + }); + } + + // If the input contains data for various Stages in the + // display set sequence + if (input.stages) { + input.stages.forEach(stageObject => { + // Create Stages from the stored data + var stage = new Stage(); + stage.fromObject(stageObject); + + // Add them to the Protocol + this.stages.push(stage); + }); + } + } + + /** + * Creates a clone of the current Protocol with a new name + * + * @param name + * @returns {Protocol|*} + */ + createClone(name) { + // Create a new JavaScript independent of the current Protocol + var currentProtocol = Object.assign({}, this); + + // Create a new Protocol to return + var clonedProtocol = new Protocol(); + + // Apply the desired properties + currentProtocol.id = clonedProtocol.id; + clonedProtocol.fromObject(currentProtocol); + + // If we have specified a name, assign it + if (name) { + clonedProtocol.name = name; + } + + // Unlock the clone + clonedProtocol.locked = false; + + // Return the cloned Protocol + return clonedProtocol; + } + + /** + * Adds a Stage to this Protocol's display set sequence + * + * @param stage + */ + addStage(stage) { + this.stages.push(stage); + + // Update the modifiedDate and User that last + // modified this Protocol + this.protocolWasModified(); + } + + /** + * Adds a Rule to this Protocol's array of matching rules + * + * @param rule + */ + addProtocolMatchingRule(rule) { + this.protocolMatchingRules.push(rule); + + // Update the modifiedDate and User that last + // modified this Protocol + this.protocolWasModified(); + } + + /** + * Removes a Rule from this Protocol's array of matching rules + * + * @param rule + */ + removeProtocolMatchingRule(rule) { + var wasRemoved = removeFromArray(this.protocolMatchingRules, rule); + + // Update the modifiedDate and User that last + // modified this Protocol + if (wasRemoved) { + this.protocolWasModified(); + } + } +} diff --git a/packages/_core/src/hanging-protocols/classes/Rule.js b/packages/_core/src/hanging-protocols/classes/Rule.js new file mode 100644 index 000000000..bf0ddc0dc --- /dev/null +++ b/packages/_core/src/hanging-protocols/classes/Rule.js @@ -0,0 +1,174 @@ +import { comparators } from '../lib/comparators'; +import guid from '../../utils/guid'; + +const EQUALS_REGEXP = /^equals$/; + +/** + * This Class represents a Rule to be evaluated given a set of attributes + * Rules have: + * - An attribute (e.g. 'seriesDescription') + * - A constraint Object, in the form required by Validate.js: + * + * rule.constraint = { + * contains: { + * value: 'T-1' + * } + * }; + * + * Note: In this example we use the 'contains' Validator, which is a custom Validator defined in Viewerbase + * + * - A value for whether or not they are Required to be matched (default: False) + * - A value for their relative weighting during Protocol or Image matching (default: 1) + */ +export default class Rule { + /** + * The Constructor for the Class to create a Rule with the bare + * minimum information + * + * @param name The desired name for the Rule + */ + constructor(attribute, constraint, required, weight) { + // Create a new UUID for this Rule + this.id = guid(); + + // Set the Rule's weight (defaults to 1) + this.weight = weight || 1; + + // If an attribute is specified, assign it + if (attribute) { + this.attribute = attribute; + } + + // If a constraint is specified, assign it + if (constraint) { + this.constraint = constraint; + } + + // If a value for 'required' is specified, assign it + if (required === undefined) { + // If no value was specified, default to False + this.required = false; + } else { + this.required = required; + } + + // Cache for constraint info object + this._constraintInfo = void 0; + + // Cache for validator and value object + this._validatorAndValue = void 0; + } + + /** + * Occasionally the Rule class needs to be instantiated from a JavaScript Object. + * This function fills in a Protocol with the Object data. + * + * @param input A Rule as a JavaScript Object, e.g. retrieved from JSON + */ + fromObject(input) { + // Check if the input already has an ID + // If so, keep it. It not, create a new UUID + this.id = input.id || guid(); + + // Assign the specified input data to the Rule + this.required = input.required; + this.weight = input.weight; + this.attribute = input.attribute; + this.constraint = input.constraint; + } + + /** + * Get the constraint info object for the current constraint + * @return {Object\undefined} Constraint object or undefined if current constraint + * is not valid or not found in comparators list + */ + getConstraintInfo() { + let constraintInfo = this._constraintInfo; + // Check if info is cached already + if (constraintInfo !== void 0) { + return constraintInfo; + } + + const ruleConstraint = Object.keys(this.constraint)[0]; + + if (ruleConstraint !== void 0) { + constraintInfo = comparators.find( + comparator => ruleConstraint === comparator.id + ); + } + + // Cache this information for later use + this._constraintInfo = constraintInfo; + + return constraintInfo; + } + + /** + * Check if current rule is related to priors + * @return {Boolean} True if a rule is related to priors or false otherwise + */ + isRuleForPrior() { + // @TODO: Should we check this too? this.attribute === 'relativeTime' + return this.attribute === 'abstractPriorValue'; + } + + /** + * If the current rule is a rule for priors, returns the number of referenced priors. Otherwise, returns -1. + * @return {Number} The number of referenced priors or -1 if not applicable. Returns zero if the actual value could not be determined. + */ + getNumberOfPriorsReferenced() { + if (!this.isRuleForPrior()) { + return -1; + } + + // Get rule's validator and value + const ruleValidatorAndValue = this.getConstraintValidatorAndValue(); + const { value, validator } = ruleValidatorAndValue; + const intValue = parseInt(value, 10) || 0; // avoid possible NaN + + // "Equal to" validators + if (EQUALS_REGEXP.test(validator)) { + // In this case, -1 (the oldest prior) indicates that at least one study is used + return intValue < 0 ? 1 : intValue; + } + + // Default cases return value + return 0; + } + + /** + * Get the constraint validator and value + * @return {Object|undefined} Returns an object containing the validator and it's value or undefined + */ + getConstraintValidatorAndValue() { + let validatorAndValue = this._validatorAndValue; + + // Check if validator and value are cached already + if (validatorAndValue !== void 0) { + return validatorAndValue; + } + + // Get the constraint info object + const constraintInfo = this.getConstraintInfo(); + + // Constraint info object exists and is valid + if (constraintInfo !== void 0) { + const validator = constraintInfo.validator; + const currentValidator = this.constraint[validator]; + + if (currentValidator) { + const constraintValidator = constraintInfo.validatorOption; + const constraintValue = currentValidator[constraintValidator]; + + validatorAndValue = { + value: constraintValue, + validator: constraintInfo.id, + }; + + this._validatorAndValue = validatorAndValue; + } + } + + return validatorAndValue; + } +} diff --git a/packages/_core/src/hanging-protocols/classes/Stage.js b/packages/_core/src/hanging-protocols/classes/Stage.js new file mode 100644 index 000000000..f6cb34ae9 --- /dev/null +++ b/packages/_core/src/hanging-protocols/classes/Stage.js @@ -0,0 +1,85 @@ +import ViewportStructure from './ViewportStructure'; +import Viewport from './Viewport'; +import guid from '../../utils/guid'; + +/** + * A Stage is one step in the Display Set Sequence for a Hanging Protocol + * + * Stages are defined as a ViewportStructure and an array of Viewports + * + * @type {Stage} + */ +export default class Stage { + constructor(ViewportStructure, name) { + // Create a new UUID for this Stage + this.id = guid(); + + // Assign the name and ViewportStructure provided + this.name = name; + this.viewportStructure = ViewportStructure; + + // Create an empty array for the Viewports + this.viewports = []; + + // Set the created date to Now + this.createdDate = new Date(); + } + + /** + * Creates a clone of the current Stage with a new name + * + * @param name + * @returns {Stage|*} + */ + createClone(name) { + // Create a new JavaScript independent of the current Protocol + var currentStage = Object.assign({}, this); + + // Create a new Stage to return + var clonedStage = new Stage(); + + // Assign the desired properties + currentStage.id = clonedStage.id; + clonedStage.fromObject(currentStage); + + // If we have specified a name, assign it + if (name) { + clonedStage.name = name; + } + + // Return the cloned Stage + return clonedStage; + } + + /** + * Occasionally the Stage class needs to be instantiated from a JavaScript Object. + * This function fills in a Protocol with the Object data. + * + * @param input A Stage as a JavaScript Object, e.g. retrieved from JSON + */ + fromObject(input) { + // Check if the input already has an ID + // If so, keep it. It not, create a new UUID + this.id = input.id || guid(); + + // Assign the input name to the Stage + this.name = input.name; + + // If a ViewportStructure is present in the input, add it from the + // input data + this.viewportStructure = new ViewportStructure(); + this.viewportStructure.fromObject(input.viewportStructure); + + // If any viewports are present in the input object + if (input.viewports) { + input.viewports.forEach(viewportObject => { + // Create a new Viewport with their data + var viewport = new Viewport(); + viewport.fromObject(viewportObject); + + // Add it to the viewports array + this.viewports.push(viewport); + }); + } + } +} diff --git a/packages/_core/src/hanging-protocols/classes/Viewport.js b/packages/_core/src/hanging-protocols/classes/Viewport.js new file mode 100644 index 000000000..6187c3298 --- /dev/null +++ b/packages/_core/src/hanging-protocols/classes/Viewport.js @@ -0,0 +1,85 @@ +import { + StudyMatchingRule, + SeriesMatchingRule, + ImageMatchingRule, +} from './rules'; +import { removeFromArray } from '../lib/removeFromArray'; + +/** + * This Class defines a Viewport in the Hanging Protocol Stage. A Viewport contains + * arrays of Rules that are matched in the ProtocolEngine in order to determine which + * images should be hung. + * + * @type {Viewport} + */ +export default class Viewport { + constructor() { + this.viewportSettings = {}; + this.imageMatchingRules = []; + this.seriesMatchingRules = []; + this.studyMatchingRules = []; + } + + /** + * Occasionally the Viewport class needs to be instantiated from a JavaScript Object. + * This function fills in a Viewport with the Object data. + * + * @param input The Viewport as a JavaScript Object, e.g. retrieved from JSON + */ + fromObject(input) { + // If ImageMatchingRules exist, create them from the Object data + // and add them to the Viewport's imageMatchingRules array + if (input.imageMatchingRules) { + input.imageMatchingRules.forEach(ruleObject => { + var rule = new ImageMatchingRule(); + rule.fromObject(ruleObject); + this.imageMatchingRules.push(rule); + }); + } + + // If SeriesMatchingRules exist, create them from the Object data + // and add them to the Viewport's seriesMatchingRules array + if (input.seriesMatchingRules) { + input.seriesMatchingRules.forEach(ruleObject => { + var rule = new SeriesMatchingRule(); + rule.fromObject(ruleObject); + this.seriesMatchingRules.push(rule); + }); + } + + // If StudyMatchingRules exist, create them from the Object data + // and add them to the Viewport's studyMatchingRules array + if (input.studyMatchingRules) { + input.studyMatchingRules.forEach(ruleObject => { + var rule = new StudyMatchingRule(); + rule.fromObject(ruleObject); + this.studyMatchingRules.push(rule); + }); + } + + // If ViewportSettings exist, add them to the current protocol + if (input.viewportSettings) { + this.viewportSettings = input.viewportSettings; + } + } + + /** + * Finds and removes a rule from whichever array it exists in. + * It is not required to specify if it exists in studyMatchingRules, + * seriesMatchingRules, or imageMatchingRules + * + * @param rule + */ + removeRule(rule) { + var array; + if (rule instanceof StudyMatchingRule) { + array = this.studyMatchingRules; + } else if (rule instanceof SeriesMatchingRule) { + array = this.seriesMatchingRules; + } else if (rule instanceof ImageMatchingRule) { + array = this.imageMatchingRules; + } + + removeFromArray(array, rule); + } +} diff --git a/packages/_core/src/hanging-protocols/classes/ViewportStructure.js b/packages/_core/src/hanging-protocols/classes/ViewportStructure.js new file mode 100644 index 000000000..2a605fa06 --- /dev/null +++ b/packages/_core/src/hanging-protocols/classes/ViewportStructure.js @@ -0,0 +1,53 @@ +/** + * The ViewportStructure class represents the layout and layout properties that + * Viewports are displayed in. ViewportStructure has a type, which corresponds to + * a layout template, and a set of properties, which depend on the type. + * + * @type {ViewportStructure} + */ +export default class ViewportStructure { + constructor(type, properties) { + this.type = type; + this.properties = properties; + } + + /** + * Occasionally the ViewportStructure class needs to be instantiated from a JavaScript Object. + * This function fills in a ViewportStructure with the Object data. + * + * @param input The ViewportStructure as a JavaScript Object, e.g. retrieved from JSON + */ + fromObject(input) { + this.type = input.type; + this.properties = input.properties; + } + + /** + * Retrieve the layout template name based on the layout type + * + * @returns {string} + */ + getLayoutTemplateName() { + // Viewport structure can be updated later when we build more complex display layouts + switch (this.type) { + case 'grid': + return 'gridLayout'; + } + } + + /** + * Retrieve the number of Viewports required for this layout + * given the layout type and properties + * + * @returns {string} + */ + getNumViewports() { + // Viewport structure can be updated later when we build more complex display layouts + switch (this.type) { + case 'grid': + // For the typical grid layout, we only need to multiply rows by columns to + // obtain the number of viewports + return this.properties.rows * this.properties.columns; + } + } +} diff --git a/packages/_core/src/hanging-protocols/classes/index.js b/packages/_core/src/hanging-protocols/classes/index.js new file mode 100644 index 000000000..b27b088de --- /dev/null +++ b/packages/_core/src/hanging-protocols/classes/index.js @@ -0,0 +1,23 @@ +import Protocol from './Protocol.js'; +import Rule from './Rule.js'; +import Stage from './Stage.js'; +import Viewport from './Viewport.js'; +import ViewportStructure from './ViewportStructure.js'; +import { + ProtocolMatchingRule, + StudyMatchingRule, + SeriesMatchingRule, + ImageMatchingRule, +} from './rules.js'; + +export { + Protocol, + Rule, + Stage, + Viewport, + ViewportStructure, + ProtocolMatchingRule, + StudyMatchingRule, + SeriesMatchingRule, + ImageMatchingRule, +}; diff --git a/packages/_core/src/hanging-protocols/classes/rules.js b/packages/_core/src/hanging-protocols/classes/rules.js new file mode 100644 index 000000000..3c94b71c5 --- /dev/null +++ b/packages/_core/src/hanging-protocols/classes/rules.js @@ -0,0 +1,40 @@ +import Rule from './Rule'; + +/** + * The ProtocolMatchingRule Class extends the Rule Class. + * + * At present it does not add any new methods or attributes + * @type {ProtocolMatchingRule} + */ +class ProtocolMatchingRule extends Rule {} + +/** + * The StudyMatchingRule Class extends the Rule Class. + * + * At present it does not add any new methods or attributes + * @type {StudyMatchingRule} + */ +class StudyMatchingRule extends Rule {} + +/** + * The SeriesMatchingRule Class extends the Rule Class. + * + * At present it does not add any new methods or attributes + * @type {SeriesMatchingRule} + */ +class SeriesMatchingRule extends Rule {} + +/** + * The ImageMatchingRule class extends the Rule Class. + * + * At present it does not add any new methods or attributes + * @type {ImageMatchingRule} + */ +class ImageMatchingRule extends Rule {} + +export { + ProtocolMatchingRule, + StudyMatchingRule, + SeriesMatchingRule, + ImageMatchingRule, +}; diff --git a/packages/_core/src/hanging-protocols/customAttributes.js b/packages/_core/src/hanging-protocols/customAttributes.js new file mode 100644 index 000000000..21a481ef2 --- /dev/null +++ b/packages/_core/src/hanging-protocols/customAttributes.js @@ -0,0 +1,30 @@ +// Define an empty object to store callbacks that are used to retrieve custom attributes +// The simplest example for a custom attribute is the Timepoint type (i.e. baseline or follow-up) +// used in the LesionTracker application. +// +// Timepoint type can be obtained given a studyId, and this is done through a custom callback. +// Developers can define attributes (i.e. attributeId = timepointType) with a name ('Timepoint Type') +// and a callback function that is used to calculate them. +// +// The input to the callback, which is called during viewport-image matching rule evaluation +// is the set of attributes that contains the specified attribute. In our example, timepointType is +// linked to the study attributes, and so the inputs to the callback is an object containing +// the study attributes. +const CustomAttributeRetrievalCallbacks = {}; + +/** + * Adds a custom attribute to be used in the HangingProtocol UI and matching rules, including a + * callback that will be used to calculate the attribute value. + * + * @param attributeId The ID used to refer to the attribute (e.g. 'timepointType') + * @param attributeName The name of the attribute to be displayed (e.g. 'Timepoint Type') + * @param callback The function used to calculate the attribute value from the other attributes at its level (e.g. study/series/image) + */ +function addCustomAttribute(attributeId, attributeName, callback) { + CustomAttributeRetrievalCallbacks[attributeId] = { + name: attributeName, + callback: callback, + }; +} + +export { CustomAttributeRetrievalCallbacks, addCustomAttribute }; diff --git a/packages/_core/src/hanging-protocols/customViewportSettings.js b/packages/_core/src/hanging-protocols/customViewportSettings.js new file mode 100644 index 000000000..c47f1ce3b --- /dev/null +++ b/packages/_core/src/hanging-protocols/customViewportSettings.js @@ -0,0 +1,22 @@ +// Define an empty object to store callbacks that are used to apply custom viewport settings +// after a viewport is rendered. +const CustomViewportSettings = {}; + +/** + * Adds a custom setting that can be chosen in the HangingProtocol UI and applied to a Viewport + * + * @param settingId The ID used to refer to the setting (e.g. 'displayCADMarkers') + * @param settingName The name of the setting to be displayed (e.g. 'Display CAD Markers') + * @param options + * @param callback A function to be run after a viewport is rendered with a series + */ +function addCustomViewportSetting(settingId, settingName, options, callback) { + CustomViewportSettings[settingId] = { + id: settingId, + text: settingName, + options: options, + callback: callback, + }; +} + +export { CustomViewportSettings, addCustomViewportSetting }; diff --git a/packages/_core/src/hanging-protocols/hardcodedData.js b/packages/_core/src/hanging-protocols/hardcodedData.js new file mode 100644 index 000000000..47781f994 --- /dev/null +++ b/packages/_core/src/hanging-protocols/hardcodedData.js @@ -0,0 +1,133 @@ +export const attributeDefaults = { + abstractPriorValue: 0, +}; + +export const displaySettings = { + invert: { + id: 'invert', + text: 'Show Grayscale Inverted', + defaultValue: 'NO', + options: ['YES', 'NO'], + }, +}; + +// @TODO Fix abstractPriorValue comparison +export const studyAttributes = [ + { + id: 'x00100020', + text: '(x00100020) Patient ID', + }, + { + id: 'x0020000d', + text: '(x0020000d) Study Instance UID', + }, + { + id: 'x00080020', + text: '(x00080020) Study Date', + }, + { + id: 'x00080030', + text: '(x00080030) Study Time', + }, + { + id: 'x00081030', + text: '(x00081030) Study Description', + }, + { + id: 'abstractPriorValue', + text: 'Abstract Prior Value', + }, +]; + +export const protocolAttributes = [ + { + id: 'x00100020', + text: '(x00100020) Patient ID', + }, + { + id: 'x0020000d', + text: '(x0020000d) Study Instance UID', + }, + { + id: 'x00080020', + text: '(x00080020) Study Date', + }, + { + id: 'x00080030', + text: '(x00080030) Study Time', + }, + { + id: 'x00081030', + text: '(x00081030) Study Description', + }, + { + id: 'anatomicRegion', + text: 'Anatomic Region', + }, +]; + +export const seriesAttributes = [ + { + id: 'x0020000e', + text: '(x0020000e) Series Instance UID', + }, + { + id: 'x00080060', + text: '(x00080060) Modality', + }, + { + id: 'x00200011', + text: '(x00200011) Series Number', + }, + { + id: 'x0008103e', + text: '(x0008103e) Series Description', + }, + { + id: 'numImages', + text: 'Number of Images', + }, +]; + +export const instanceAttributes = [ + { + id: 'x00080016', + text: '(x00080016) SOP Class UID', + }, + { + id: 'x00080018', + text: '(x00080018) SOP Instance UID', + }, + { + id: 'x00185101', + text: '(x00185101) View Position', + }, + { + id: 'x00200013', + text: '(x00200013) Instance Number', + }, + { + id: 'x00080008', + text: '(x00080008) Image Type', + }, + { + id: 'x00181063', + text: '(x00181063) Frame Time', + }, + { + id: 'x00200060', + text: '(x00200060) Laterality', + }, + { + id: 'x00541330', + text: '(x00541330) Image Index', + }, + { + id: 'x00280004', + text: '(x00280004) Photometric Interpretation', + }, + { + id: 'x00180050', + text: '(x00180050) Slice Thickness', + }, +]; diff --git a/packages/_core/src/hanging-protocols/index.js b/packages/_core/src/hanging-protocols/index.js new file mode 100644 index 000000000..b0d2cdb31 --- /dev/null +++ b/packages/_core/src/hanging-protocols/index.js @@ -0,0 +1,14 @@ +import ProtocolEngine from './ProtocolEngine.js'; +import { ProtocolStore, ProtocolStrategy } from './protocolStore'; +import { addCustomAttribute } from './customAttributes'; +import { addCustomViewportSetting } from './customViewportSettings'; + +const hangingProtocols = { + ProtocolEngine, + ProtocolStore, + ProtocolStrategy, + addCustomAttribute, + addCustomViewportSetting, +}; + +export default hangingProtocols; diff --git a/packages/_core/src/hanging-protocols/lib/comparators.js b/packages/_core/src/hanging-protocols/lib/comparators.js new file mode 100644 index 000000000..ce76a4d82 --- /dev/null +++ b/packages/_core/src/hanging-protocols/lib/comparators.js @@ -0,0 +1,98 @@ +const comparators = [ + { + id: 'equals', + name: '= (Equals)', + validator: 'equals', + validatorOption: 'value', + description: 'The attribute must equal this value.', + }, + { + id: 'doesNotEqual', + name: '!= (Does not equal)', + validator: 'doesNotEqual', + validatorOption: 'value', + description: 'The attribute must not equal this value.', + }, + { + id: 'contains', + name: 'Contains', + validator: 'contains', + validatorOption: 'value', + description: 'The attribute must contain this value.', + }, + { + id: 'doesNotContain', + name: 'Does not contain', + validator: 'doesNotContain', + validatorOption: 'value', + description: 'The attribute must not contain this value.', + }, + { + id: 'startsWith', + name: 'Starts with', + validator: 'startsWith', + validatorOption: 'value', + description: 'The attribute must start with this value.', + }, + { + id: 'endsWith', + name: 'Ends with', + validator: 'endsWith', + validatorOption: 'value', + description: 'The attribute must end with this value.', + }, + { + id: 'onlyInteger', + name: 'Only Integers', + validator: 'numericality', + validatorOption: 'onlyInteger', + description: "Real numbers won't be allowed.", + }, + { + id: 'greaterThan', + name: '> (Greater than)', + validator: 'numericality', + validatorOption: 'greaterThan', + description: 'The attribute has to be greater than this value.', + }, + { + id: 'greaterThanOrEqualTo', + name: '>= (Greater than or equal to)', + validator: 'numericality', + validatorOption: 'greaterThanOrEqualTo', + description: 'The attribute has to be at least this value.', + }, + { + id: 'lessThanOrEqualTo', + name: '<= (Less than or equal to)', + validator: 'numericality', + validatorOption: 'lessThanOrEqualTo', + description: 'The attribute can be this value at the most.', + }, + { + id: 'lessThan', + name: '< (Less than)', + validator: 'numericality', + validatorOption: 'lessThan', + description: 'The attribute has to be less than this value.', + }, + { + id: 'odd', + name: 'Odd', + validator: 'numericality', + validatorOption: 'odd', + description: 'The attribute has to be odd.', + }, + { + id: 'even', + name: 'Even', + validator: 'numericality', + validatorOption: 'even', + description: 'The attribute has to be even.', + }, +]; + +// Immutable object +Object.freeze(comparators); + +export { comparators }; diff --git a/packages/_core/src/hanging-protocols/lib/displayConstraint.js b/packages/_core/src/hanging-protocols/lib/displayConstraint.js new file mode 100644 index 000000000..17368c877 --- /dev/null +++ b/packages/_core/src/hanging-protocols/lib/displayConstraint.js @@ -0,0 +1,71 @@ +const attributeCache = Object.create(null); +const REGEXP = /^\([x0-9a-f]+\)/; + +const humanize = text => { + let humanized = text.replace(/([A-Z])/g, ' $1'); // insert a space before all caps + + humanized = humanized.replace(/^./, str => { + // uppercase the first character + return str.toUpperCase(); + }); + + return humanized; +}; + +/** + * Get the text of an attribute for a given attribute + * @param {String} attributeId The attribute ID + * @param {Array} attributes Array of attributes objects with id and text properties + * @return {String} If found return the attribute text or an empty string otherwise + */ +const getAttributeText = (attributeId, attributes) => { + // If the attribute is already in the cache, return it + if (attributeId in attributeCache) { + return attributeCache[attributeId]; + } + + // Find the attribute with given attributeId + const attribute = attributes.find(attribute => attribute.id === attributeId); + + let attributeText; + + // If attribute was found get its text and save it on the cache + if (attribute) { + attributeText = attribute.text.replace(REGEXP, ''); + attributeCache[attributeId] = attributeText; + } + + return attributeText || ''; +}; + +function displayConstraint(attributeId, constraint, attributes) { + if (!constraint || !attributeId) { + return; + } + + const validatorType = Object.keys(constraint)[0]; + if (!validatorType) { + return; + } + + const validator = Object.keys(constraint[validatorType])[0]; + if (!validator) { + return; + } + + const value = constraint[validatorType][validator]; + if (value === void 0) { + return; + } + + let comparator = validator; + if (validator === 'value') { + comparator = validatorType; + } + + const attributeText = getAttributeText(attributeId, attributes); + const constraintText = + attributeText + ' ' + humanize(comparator).toLowerCase() + ' ' + value; + + return constraintText; +} diff --git a/packages/_core/src/hanging-protocols/lib/removeFromArray.js b/packages/_core/src/hanging-protocols/lib/removeFromArray.js new file mode 100644 index 000000000..602cc4158 --- /dev/null +++ b/packages/_core/src/hanging-protocols/lib/removeFromArray.js @@ -0,0 +1,32 @@ +/** + * Removes the first instance of an element from an array, if an equal value exists + * + * @param array + * @param input + * + * @returns {boolean} Whether or not the element was found and removed + */ +const removeFromArray = (array, input) => { + // If the array is empty, stop here + if (!array || !array.length) { + return false; + } + + array.forEach((value, index) => { + // TODO: Double check whether or not this deep equality check is necessary + //if (_.isEqual(value, input)) { + if (value === input) { + indexToRemove = index; + return false; + } + }); + + if (indexToRemove === void 0) { + return false; + } + + array.splice(indexToRemove, 1); + return true; +}; + +export { removeFromArray }; diff --git a/packages/_core/src/hanging-protocols/lib/sortByScore.js b/packages/_core/src/hanging-protocols/lib/sortByScore.js new file mode 100644 index 000000000..902072591 --- /dev/null +++ b/packages/_core/src/hanging-protocols/lib/sortByScore.js @@ -0,0 +1,8 @@ +// Sorts an array by score +const sortByScore = arr => { + arr.sort((a, b) => { + return b.score - a.score; + }); +}; + +export { sortByScore }; diff --git a/packages/_core/src/hanging-protocols/lib/validate.js b/packages/_core/src/hanging-protocols/lib/validate.js new file mode 100644 index 000000000..deb9521c0 --- /dev/null +++ b/packages/_core/src/hanging-protocols/lib/validate.js @@ -0,0 +1,39 @@ +import validate from 'validate.js'; + +validate.validators.equals = function(value, options, key, attributes) { + if (options && value !== options.value) { + return key + 'must equal ' + options.value; + } +}; + +validate.validators.doesNotEqual = function(value, options, key) { + if (options && value === options.value) { + return key + 'cannot equal ' + options.value; + } +}; + +validate.validators.contains = function(value, options, key) { + if (options && value.indexOf && value.indexOf(options.value) === -1) { + return key + 'must contain ' + options.value; + } +}; + +validate.validators.doesNotContain = function(value, options, key) { + if (options && value.indexOf && value.indexOf(options.value) !== -1) { + return key + 'cannot contain ' + options.value; + } +}; + +validate.validators.startsWith = function(value, options, key) { + if (options && value.startsWith && !value.startsWith(options.value)) { + return key + 'must start with ' + options.value; + } +}; + +validate.validators.endsWith = function(value, options, key) { + if (options && value.endsWith && !value.endsWith(options.value)) { + return key + 'must end with ' + options.value; + } +}; + +export { validate }; diff --git a/packages/_core/src/hanging-protocols/protocolStore/classes/ProtocolStore.js b/packages/_core/src/hanging-protocols/protocolStore/classes/ProtocolStore.js new file mode 100644 index 000000000..956347b2f --- /dev/null +++ b/packages/_core/src/hanging-protocols/protocolStore/classes/ProtocolStore.js @@ -0,0 +1,97 @@ +import Protocol from '../../classes/Protocol'; + +// The ProtocolStore class allows persisting hanging protocols using different strategies. +// For example, one strategy stores hanging protocols in the application server while +// another strategy stores them in a remote machine, but only one strategy can be used at a time. + +export default class ProtocolStore { + constructor(strategy) { + this.strategy = strategy; + } + + /** + * Get a Protocol instance or array of Protocol instances for the given protocol object or array + * @param {Object|array} protocolObject Protocol plain object or array of Protocol plain objects + * @return {Protocol|array} Protocol instance or array of Protocol intances for the given protocol object or array + */ + static getProtocolInstance(protocolObject) { + let result = protocolObject; + + // If result is an array of protocols objects + if (result instanceof Array) { + result.forEach((protocol, index) => { + // Check if protocol is an instance of Protocol + if (!(protocol instanceof Protocol)) { + const protocolInstance = new Protocol(); + protocolInstance.fromObject(protocol); + result[index] = protocolInstance; + } + }); + } else if (result !== void 0 && !(result instanceof Protocol)) { + // Check if result exists and is not an instance of Protocol + const protocolInstance = new Protocol(); + protocolInstance.fromObject(result); + result = protocolInstance; + } + + return result; + } + + /** + * Registers a function to be called when the protocol store is ready to persist hanging protocols + * + * NOTE: Strategies should implement this function + * + * @param callback The function to be called as a callback + */ + onReady(callback) { + this.strategy.onReady(callback); + } + + /** + * Gets the hanging protocol by protocolId if defined, otherwise all stored hanging protocols + * + * NOTE: Strategies should implement this function + * + * @param protocolId The protocol ID used to find the hanging protocol + * @returns {object|array} The hanging protocol by protocolId or array of the stored hanging protocols + */ + getProtocol(protocolId) { + let result = this.strategy.getProtocol(protocolId); + return ProtocolStore.getProtocolInstance(result); + } + + /** + * Stores the hanging protocol + * + * NOTE: Strategies should implement this function + * + * @param protocol The hanging protocol to be stored + */ + addProtocol(protocol) { + this.strategy.addProtocol(protocol); + } + + /** + * Updates the hanging protocol by protocolId + * + * NOTE: Strategies should implement this function + * + * @param protocolId The protocol ID used to find the hanging protocol to update + * @param protocol The updated hanging protocol + */ + updateProtocol(protocolId, protocol) { + this.strategy.updateProtocol(protocolId, protocol); + } + + /** + * Removes the hanging protocol + * + * NOTE: Strategies should implement this function + * + * @param protocolId The protocol ID used to remove the hanging protocol + */ + removeProtocol(protocolId) { + this.strategy.removeProtocol(protocolId); + } +} diff --git a/packages/_core/src/hanging-protocols/protocolStore/classes/ProtocolStrategy.js b/packages/_core/src/hanging-protocols/protocolStore/classes/ProtocolStrategy.js new file mode 100644 index 000000000..460792872 --- /dev/null +++ b/packages/_core/src/hanging-protocols/protocolStore/classes/ProtocolStrategy.js @@ -0,0 +1,77 @@ +import log from '../../../log'; +import defaultProtocol from '../defaultProtocol'; + +export default class ProtocolStrategy { + constructor() { + this.hangingProtocols = new Map(); + this.defaultsAdded = false; + } + + /** + * Registers a function to be called when the hangingProtocols collection is subscribed + * The callback is called only one time when the subscription is ready + * + * @param callback The function to be called as a callback + */ + onReady(callback) { + if (!this.defaultsAdded) { + log.info('Inserting the default hanging protocol...'); + this.addProtocol(defaultProtocol); + this.defaultsAdded = true; + } + + callback(); + } + + /** + * Gets the hanging protocol by protocolId if defined, otherwise all stored hanging protocols + * + * @param protocolId The protocol ID used to find the hanging protocol + * @returns {object|array} The hanging protocol by protocolId or array of the stored hanging protocols + */ + getProtocol(protocolId) { + // Return the hanging protocol by protocolId if defined + if (protocolId) { + return this.hangingProtocols.get(protocolId); + } + + // Otherwise, return all protocols + return Array.from(this.hangingProtocols.values()); + } + + /** + * Stores the hanging protocol + * + * @param protocol The hanging protocol to be stored + */ + addProtocol(protocol) { + this.hangingProtocols.set(protocol.id, protocol); + } + + /** + * Updates the hanging protocol by protocolId + * + * @param protocolId The protocol ID used to find the hanging protocol to update + * @param protocol The updated hanging protocol + */ + updateProtocol(protocolId, protocol) { + if (!this.hangingProtocols.has(protocolId)) { + return; + } + + this.hangingProtocols.set(protocolId, protocol); + } + + /** + * Removes the hanging protocol + * + * @param protocolId The protocol ID used to remove the hanging protocol + */ + removeProtocol(protocolId) { + if (!this.hangingProtocols.has(protocolId)) { + return; + } + + this.hangingProtocols.delete(protocolId); + } +} diff --git a/packages/_core/src/hanging-protocols/protocolStore/classes/index.js b/packages/_core/src/hanging-protocols/protocolStore/classes/index.js new file mode 100644 index 000000000..3a9fd4cfc --- /dev/null +++ b/packages/_core/src/hanging-protocols/protocolStore/classes/index.js @@ -0,0 +1,4 @@ +import ProtocolStore from './ProtocolStore'; +import ProtocolStrategy from './ProtocolStrategy'; + +export { ProtocolStore, ProtocolStrategy }; diff --git a/packages/_core/src/hanging-protocols/protocolStore/defaultProtocol.js b/packages/_core/src/hanging-protocols/protocolStore/defaultProtocol.js new file mode 100644 index 000000000..f285cf832 --- /dev/null +++ b/packages/_core/src/hanging-protocols/protocolStore/defaultProtocol.js @@ -0,0 +1,27 @@ +import Protocol from '../classes/Protocol'; +import ViewportStructure from '../classes/ViewportStructure'; +import Viewport from '../classes/Viewport'; +import Stage from '../classes/Stage'; + +function getDefaultProtocol() { + const protocol = new Protocol('Default'); + protocol.id = 'defaultProtocol'; + protocol.locked = true; + + const oneByOne = new ViewportStructure('grid', { + rows: 1, + columns: 1, + }); + + const viewport = new Viewport(); + const first = new Stage(oneByOne, 'oneByOne'); + first.viewports.push(viewport); + + protocol.stages.push(first); + + return protocol; +} + +const defaultProtocol = getDefaultProtocol(); + +export default defaultProtocol; diff --git a/packages/_core/src/hanging-protocols/protocolStore/index.js b/packages/_core/src/hanging-protocols/protocolStore/index.js new file mode 100644 index 000000000..5bb4ba7da --- /dev/null +++ b/packages/_core/src/hanging-protocols/protocolStore/index.js @@ -0,0 +1,5 @@ +import { ProtocolStore, ProtocolStrategy } from './classes'; +import defaultProtocol from './defaultProtocol'; +import testProtocols from './testProtocols'; + +export { ProtocolStore, ProtocolStrategy, defaultProtocol, testProtocols }; diff --git a/packages/_core/src/hanging-protocols/protocolStore/testProtocols.js b/packages/_core/src/hanging-protocols/protocolStore/testProtocols.js new file mode 100644 index 000000000..c7852546d --- /dev/null +++ b/packages/_core/src/hanging-protocols/protocolStore/testProtocols.js @@ -0,0 +1,1510 @@ +import Protocol from '../classes/Protocol'; +import ViewportStructure from '../classes/ViewportStructure'; +import Viewport from '../classes/Viewport'; +import Stage from '../classes/Stage'; +import { + ImageMatchingRule, + ProtocolMatchingRule, + SeriesMatchingRule, +} from '../classes'; + +function getMRTwoByTwoTest() { + var proto = new Protocol('MR_TwoByTwo'); + proto.id = 'MR_TwoByTwo'; + proto.locked = true; + // Use http://localhost:3000/viewer/1.2.840.113619.2.5.1762583153.215519.978957063.78 + + var studyInstanceUid = new ProtocolMatchingRule( + 'studyInstanceUid', + { + equals: { + value: '1.2.840.113619.2.5.1762583153.215519.978957063.78', + }, + }, + true + ); + + proto.addProtocolMatchingRule(studyInstanceUid); + + var oneByTwo = new ViewportStructure('grid', { + rows: 1, + columns: 2, + }); + + // Stage 1 + var left = new Viewport(); + var right = new Viewport(); + + var firstSeries = new SeriesMatchingRule('seriesNumber', { + equals: { + value: 1, + }, + }); + + var secondSeries = new SeriesMatchingRule('seriesNumber', { + equals: { + value: 2, + }, + }); + + var thirdImage = new ImageMatchingRule('instanceNumber', { + equals: { + value: 3, + }, + }); + + left.seriesMatchingRules.push(firstSeries); + left.imageMatchingRules.push(thirdImage); + + right.seriesMatchingRules.push(secondSeries); + right.imageMatchingRules.push(thirdImage); + + var first = new Stage(oneByTwo, 'oneByTwo'); + first.viewports.push(left); + first.viewports.push(right); + + proto.stages.push(first); + + // Stage 2 + var twoByOne = new ViewportStructure('grid', { + rows: 2, + columns: 1, + }); + var left2 = new Viewport(); + var right2 = new Viewport(); + + var fourthSeries = new SeriesMatchingRule('seriesNumber', { + equals: { + value: 4, + }, + }); + + var fifthSeries = new SeriesMatchingRule('seriesNumber', { + equals: { + value: 5, + }, + }); + + left2.seriesMatchingRules.push(fourthSeries); + left2.imageMatchingRules.push(thirdImage); + right2.seriesMatchingRules.push(fifthSeries); + right2.imageMatchingRules.push(thirdImage); + + var second = new Stage(twoByOne, 'twoByOne'); + second.viewports.push(left2); + second.viewports.push(right2); + + proto.stages.push(second); + + return proto; +} + +function getDemoProtocols() { + const demoProtocols = []; + + /** + * Demo #1 + */ + demoProtocols.push({ + id: 'demoProtocol1', + locked: false, + name: 'DFCI-CT-CHEST-COMPARE', + createdDate: '2017-02-14T16:07:09.033Z', + modifiedDate: '2017-02-14T16:18:43.930Z', + availableTo: {}, + editableBy: {}, + protocolMatchingRules: [ + { + id: '7tmuq7KzDMCWFeapc', + weight: 2, + required: false, + attribute: 'x00081030', + constraint: { + contains: { + value: 'DFCI CT CHEST', + }, + }, + }, + ], + stages: [ + { + id: 'v5PfGt9F6mffZPif5', + name: 'oneByOne', + viewportStructure: { + type: 'grid', + properties: { + rows: 1, + columns: 2, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: '2.0', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'ygz4nb28iJZcJhnYa', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: '2.0', + }, + }, + }, + ], + studyMatchingRules: [ + { + id: 'uDoEgLTvnXTByWnPz', + weight: 1, + required: false, + attribute: 'abstractPriorValue', + constraint: { + equals: { + value: 1, + }, + }, + }, + ], + }, + ], + createdDate: '2017-02-14T16:07:09.033Z', + }, + { + id: 'XTzu8HB3feep3HYKs', + viewportStructure: { + type: 'grid', + properties: { + rows: 1, + columns: 2, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: '3.0', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'ygz4nb28iJZcJhnYa', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: '3.0', + }, + }, + }, + ], + studyMatchingRules: [ + { + id: 'uDoEgLTvnXTByWnPz', + weight: 1, + required: false, + attribute: 'abstractPriorValue', + constraint: { + equals: { + value: 1, + }, + }, + }, + ], + }, + ], + createdDate: '2017-02-14T16:07:12.085Z', + }, + { + id: '3yPYNaeFtr76Qz3jq', + viewportStructure: { + type: 'grid', + properties: { + rows: 2, + columns: 2, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Body 3.0', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: { + wlPreset: 'Lung', + }, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'ygz4nb28iJZcJhnYa', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Lung 3.0', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: '6vdBRZYnqmmosipph', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Body 3.0', + }, + }, + }, + ], + studyMatchingRules: [ + { + id: 'SxfTyhGcMhr56PtPM', + weight: 1, + required: false, + attribute: 'abstractPriorValue', + constraint: { + equals: { + value: 1, + }, + }, + }, + ], + }, + { + viewportSettings: { + wlPreset: 'Lung', + }, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'FTAyChZCPW68yJjXD', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Lung 3.0', + }, + }, + }, + ], + studyMatchingRules: [ + { + id: 'gMJjfrbsqYNbErPx5', + weight: 1, + required: false, + attribute: 'abstractPriorValue', + constraint: { + equals: { + value: 1, + }, + }, + }, + ], + }, + ], + createdDate: '2017-02-14T16:11:40.489Z', + }, + ], + numberOfPriorsReferenced: 4, + }); + + /** + * Demo #2 + */ + + demoProtocols.push({ + id: 'demoProtocol2', + locked: false, + name: 'DFCI-CT-CHEST-COMPARE-2', + createdDate: '2017-02-14T16:07:09.033Z', + modifiedDate: '2017-02-14T16:18:43.930Z', + availableTo: {}, + editableBy: {}, + protocolMatchingRules: [ + { + id: '7tmuq7KzDMCWFeapc', + weight: 2, + required: false, + attribute: 'x00081030', + constraint: { + contains: { + value: 'DFCI CT CHEST', + }, + }, + }, + ], + stages: [ + { + id: 'v5PfGt9F6mffZPif5', + name: 'oneByOne', + viewportStructure: { + type: 'grid', + properties: { + rows: 1, + columns: 2, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL56z7mac', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: '2.0', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'ygz4nb28iJZcJhnYc', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: '2.0', + }, + }, + }, + ], + studyMatchingRules: [ + { + id: 'uDoEgLTvnXTByWnPt', + weight: 1, + required: false, + attribute: 'abstractPriorValue', + constraint: { + equals: { + value: 1, + }, + }, + }, + ], + }, + ], + createdDate: '2017-02-14T16:07:09.033Z', + }, + { + id: 'XTzu8HB3feep3HYKs', + viewportStructure: { + type: 'grid', + properties: { + rows: 1, + columns: 2, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Body 3.0', + }, + }, + }, + { + id: 'mYnsCcNwZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Body 5.0', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'ygz4nb28iJZcJhnYa', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Body 3.0', + }, + }, + }, + { + id: 'ygz4nb29iJZcJhnYa', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Body 5.0', + }, + }, + }, + ], + studyMatchingRules: [ + { + id: 'uDoEgLTvnXTByWnPz', + weight: 1, + required: false, + attribute: 'abstractPriorValue', + constraint: { + equals: { + value: 1, + }, + }, + }, + ], + }, + ], + createdDate: '2017-02-14T16:07:12.085Z', + }, + { + id: '3yPYNaeFtr76Qz3jq', + viewportStructure: { + type: 'grid', + properties: { + rows: 2, + columns: 2, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL56z7mtr', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Body 3.0', + }, + }, + }, + { + id: 'jXnsCcNzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Body 5.0', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: { + wlPreset: 'Lung', + }, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'ygz4nb28iJZcJhnYb', + weight: 2, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Lung 3.0', + }, + }, + }, + { + id: 'ycz4nb28iJZcJhnYa', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Lung 5.0', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: '6vdBRZYnqmmosipph', + weight: 2, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Body 3.0', + }, + }, + }, + { + id: '6vdBRFYnqmmosipph', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Body 5.0', + }, + }, + }, + ], + studyMatchingRules: [ + { + id: 'SxfTyhGcMhr56PtPM', + weight: 1, + required: false, + attribute: 'abstractPriorValue', + constraint: { + equals: { + value: 1, + }, + }, + }, + ], + }, + { + viewportSettings: { + wlPreset: 'Lung', + }, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'FTAyChZCPW68yJjXD', + weight: 2, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Lung 3.0', + }, + }, + }, + { + id: 'DTAyChZCPW68yJjXD', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Lung 5.0', + }, + }, + }, + ], + studyMatchingRules: [ + { + id: 'gMJjfrbsqYNbErPx5', + weight: 1, + required: false, + attribute: 'abstractPriorValue', + constraint: { + equals: { + value: 1, + }, + }, + }, + ], + }, + ], + createdDate: '2017-02-14T16:11:40.489Z', + }, + ], + numberOfPriorsReferenced: 1, + }); + + /** + * Demo: screenCT + */ + + demoProtocols.push({ + id: 'screenCT', + locked: false, + name: 'DFCI-CT-CHEST-SCREEN', + createdDate: '2017-02-14T16:07:09.033Z', + modifiedDate: '2017-02-14T16:18:43.930Z', + availableTo: {}, + editableBy: {}, + protocolMatchingRules: [ + { + id: '7tmuq7KzDMCWFeapc', + weight: 2, + required: false, + attribute: 'x00081030', + constraint: { + contains: { + value: 'DFCI CT CHEST', + }, + }, + }, + ], + stages: [ + { + id: 'v5PfGt9F6mffZPif5', + name: 'oneByOne', + viewportStructure: { + type: 'grid', + properties: { + rows: 1, + columns: 1, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL55z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: '2.0', + }, + }, + }, + ], + studyMatchingRules: [], + }, + ], + createdDate: '2017-02-14T16:07:09.033Z', + }, + { + id: 'v5PfGt9F4mffZPif5', + name: 'oneByOne', + viewportStructure: { + type: 'grid', + properties: { + rows: 2, + columns: 2, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL56z7nTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Body 5.0', + }, + }, + }, + { + id: 'mXnsCcNzZL56z7rTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Body 3.0', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL56r7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Lung 5.0', + }, + }, + }, + { + id: 'mXnsCcNzZL56a7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Lung 3.0', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcRzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Body 4.0', + }, + }, + }, + { + id: 'mXnsCcNzTL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Coronal', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcMzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Body 4.0', + }, + }, + }, + { + id: 'mXnsCcAzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Sagittal', + }, + }, + }, + ], + studyMatchingRules: [], + }, + ], + createdDate: '2017-02-14T16:07:09.033Z', + }, + ], + numberOfPriorsReferenced: 0, + }); + + /** + * Demo: PETCTSCREEN + */ + + demoProtocols.push({ + id: 'PETCTSCREEN', + locked: false, + name: 'PETCT-SCREEN', + createdDate: '2017-02-14T16:07:09.033Z', + modifiedDate: '2017-02-14T16:18:43.930Z', + availableTo: {}, + editableBy: {}, + protocolMatchingRules: [ + { + id: '7tmuqgKzDMCWFeapc', + weight: 5, + required: false, + attribute: 'x00081030', + constraint: { + contains: { + value: 'PETCT', + }, + }, + }, + ], + stages: [ + { + id: 'v5PfGt9F6mFgZPif5', + name: 'oneByOne', + viewportStructure: { + type: 'grid', + properties: { + rows: 1, + columns: 2, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcAzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Topogram', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZR56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Topogram', + }, + }, + }, + { + id: 'mRnsCcNzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x00200011', + constraint: { + numericality: { + greaterThanOrEqualTo: 2, + }, + }, + }, + ], + studyMatchingRules: [], + }, + ], + createdDate: '2017-02-14T16:07:09.033Z', + }, + { + id: 'v5PfGt9F6mFgZPif5', + name: 'oneByOne', + viewportStructure: { + type: 'grid', + properties: { + rows: 1, + columns: 2, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsGcNzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'PET WB Corrected', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsHcNzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'CT WB', + }, + }, + }, + ], + studyMatchingRules: [], + }, + ], + createdDate: '2017-02-14T16:07:09.033Z', + }, + { + id: 'v5PfGt9F6mFgZPif5', + name: 'oneByOne', + viewportStructure: { + type: 'grid', + properties: { + rows: 1, + columns: 2, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: { + invert: 'YES', + }, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXneCcNzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'PET WB Uncorrected', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCuNzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'CT Nk', + }, + }, + }, + ], + studyMatchingRules: [], + }, + ], + createdDate: '2017-02-14T16:07:09.033Z', + }, + ], + numberOfPriorsReferenced: 0, + }); + + /** + * Demo: PETCTCOMPARE + */ + + demoProtocols.push({ + id: 'PETCTCOMPARE', + locked: false, + name: 'PETCT-COMPARE', + createdDate: '2017-02-14T16:07:09.033Z', + modifiedDate: '2017-02-14T16:18:43.930Z', + availableTo: {}, + editableBy: {}, + protocolMatchingRules: [ + { + id: '7tmuqgKzDMCWFeapc', + weight: 5, + required: false, + attribute: 'x00081030', + constraint: { + contains: { + value: 'PETCT', + }, + }, + }, + ], + stages: [ + { + id: 'v5PfGt9F6mFgZPif5', + name: 'oneByOne', + viewportStructure: { + type: 'grid', + properties: { + rows: 1, + columns: 2, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL59z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Topogram', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL56z7lTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Topogram', + }, + }, + }, + ], + studyMatchingRules: [ + { + id: 'uDoEgLTbnXTByWnPz', + weight: 1, + required: false, + attribute: 'abstractPriorValue', + constraint: { + equals: { + value: 1, + }, + }, + }, + ], + }, + ], + createdDate: '2017-02-14T16:07:09.033Z', + }, + { + id: 'v5PfGt9F6mFgZPif5', + name: 'oneByOne', + viewportStructure: { + type: 'grid', + properties: { + rows: 1, + columns: 2, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNjZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Topogram', + }, + }, + }, + { + id: 'mXnsCcNzZL56z7gTZ', + weight: 1, + required: false, + attribute: 'x00200011', + constraint: { + numericality: { + greaterThanOrEqualTo: 2, + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcCzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'Topogram', + }, + }, + }, + { + id: 'mXnsCcNzZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x00200011', + constraint: { + numericality: { + greaterThanOrEqualTo: 2, + }, + }, + }, + ], + studyMatchingRules: [ + { + id: 'uDoEgLTvn1TByWnPz', + weight: 1, + required: false, + attribute: 'abstractPriorValue', + constraint: { + equals: { + value: 1, + }, + }, + }, + ], + }, + ], + createdDate: '2017-02-14T16:07:09.033Z', + }, + { + id: 'v5PfGt9F6mFgZPif5', + name: 'oneByOne', + viewportStructure: { + type: 'grid', + properties: { + rows: 2, + columns: 2, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL26z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'PET WB Corrected', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL46z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'CT WB', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL57z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'PET WB Corrected', + }, + }, + }, + ], + studyMatchingRules: [ + { + id: 'uDoEgLTvnYTByWnPz', + weight: 1, + required: false, + attribute: 'abstractPriorValue', + constraint: { + equals: { + value: 1, + }, + }, + }, + ], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZQ56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'CT WB', + }, + }, + }, + ], + studyMatchingRules: [ + { + id: 'uDoEgLTvnKTByWnPz', + weight: 1, + required: false, + attribute: 'abstractPriorValue', + constraint: { + equals: { + value: 1, + }, + }, + }, + ], + }, + ], + createdDate: '2017-02-14T16:07:09.033Z', + }, + { + id: 'v5PfGt9F6mFgZPif5', + name: 'oneByOne', + viewportStructure: { + type: 'grid', + properties: { + rows: 2, + columns: 2, + }, + layoutTemplateName: 'gridLayout', + }, + viewports: [ + { + viewportSettings: { + invert: 'YES', + }, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZL56z7nTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'PET WB Uncorrected', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNxZL56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'CT Nk', + }, + }, + }, + ], + studyMatchingRules: [], + }, + { + viewportSettings: { + invert: 'YES', + }, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZA56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'PET WB Uncorrected', + }, + }, + }, + ], + studyMatchingRules: [ + { + id: 'uDoEgHTvnXTByWnPz', + weight: 1, + required: false, + attribute: 'abstractPriorValue', + constraint: { + equals: { + value: 1, + }, + }, + }, + ], + }, + { + viewportSettings: {}, + imageMatchingRules: [], + seriesMatchingRules: [ + { + id: 'mXnsCcNzZP56z7mTZ', + weight: 1, + required: false, + attribute: 'x0008103e', + constraint: { + contains: { + value: 'CT Nk', + }, + }, + }, + ], + studyMatchingRules: [ + { + id: 'uDoEgITvnXTByWnPz', + weight: 1, + required: false, + attribute: 'abstractPriorValue', + constraint: { + equals: { + value: 1, + }, + }, + }, + ], + }, + ], + createdDate: '2017-02-14T16:07:09.033Z', + }, + ], + numberOfPriorsReferenced: 1, + }); + + return demoProtocols; +} + +const testProtocols = { + getMRTwoByTwoTest, + getDemoProtocols, +}; + +export default testProtocols; diff --git a/packages/_core/src/header.js b/packages/_core/src/header.js new file mode 100644 index 000000000..34e06773b --- /dev/null +++ b/packages/_core/src/header.js @@ -0,0 +1,9 @@ +//import Dropdown from './ui/dropdown/class.js'; + +/* + * Defines the base OHIF header object + */ +//const dropdown = new OHIF.ui.Dropdown(); +const header = {}; + +export default header; diff --git a/packages/_core/src/ie.js b/packages/_core/src/ie.js new file mode 100644 index 000000000..ed233f5a8 --- /dev/null +++ b/packages/_core/src/ie.js @@ -0,0 +1,9 @@ +import writeScript from './lib/writeScript'; + +// Check if browser is IE and add the polyfill scripts +if (navigator && /MSIE \d|Trident.*rv:/.test(navigator.userAgent)) { + window.onload = () => { + // Fix SVG+USE issues by calling the SVG polyfill + writeScript('svgxuse.min.js'); + }; +} diff --git a/packages/_core/src/index.js b/packages/_core/src/index.js new file mode 100644 index 000000000..75d2421b5 --- /dev/null +++ b/packages/_core/src/index.js @@ -0,0 +1,73 @@ +import './lib'; + +import { ExtensionManager, MODULE_TYPES } from './extensions'; +import classes, { CommandsManager, HotkeysManager } from './classes/'; + +import DICOMWeb from './DICOMWeb'; +import cornerstone from './cornerstone.js'; +import hangingProtocols from './hanging-protocols'; +import header from './header.js'; +import log from './log.js'; +import measurements from './measurements'; +import metadata from './classes/metadata/'; +import object from './object.js'; +import redux from './redux/'; +import string from './string.js'; +//import './schema.js'; +import studies from './studies/'; +import ui from './ui'; +import user from './user.js'; +import utils from './utils/'; + +const OHIF = { + MODULE_TYPES, + // + CommandsManager, + ExtensionManager, + HotkeysManager, + // + utils, + studies, + redux, + classes, + metadata, + header, + cornerstone, + string, + ui, + user, + object, + log, + DICOMWeb, + viewer: {}, + measurements, + hangingProtocols, +}; + +export { + MODULE_TYPES, + // + CommandsManager, + ExtensionManager, + HotkeysManager, + // + utils, + studies, + redux, + classes, + metadata, + header, + cornerstone, + string, + ui, + user, + object, + log, + DICOMWeb, + measurements, + hangingProtocols, +}; + +export { OHIF }; + +export default OHIF; diff --git a/packages/_core/src/index.test.js b/packages/_core/src/index.test.js new file mode 100644 index 000000000..43b1691a0 --- /dev/null +++ b/packages/_core/src/index.test.js @@ -0,0 +1,35 @@ +import * as OHIF from './index.js'; + +describe('Top level exports', () => { + test('have not changed', () => { + const expectedExports = [ + 'MODULE_TYPES', + // + 'CommandsManager', + 'ExtensionManager', + 'HotkeysManager', + // + 'utils', + 'studies', + 'redux', + 'classes', + 'metadata', + 'header', + 'cornerstone', + 'default', // + 'string', + 'ui', + 'user', + 'object', + 'log', + 'DICOMWeb', + 'OHIF', // + 'measurements', + 'hangingProtocols', + ].sort(); + + const exports = Object.keys(OHIF).sort(); + + expect(exports).toEqual(expectedExports); + }); +}); diff --git a/packages/_core/src/lib/cornerstone.js b/packages/_core/src/lib/cornerstone.js new file mode 100644 index 000000000..d4d472c99 --- /dev/null +++ b/packages/_core/src/lib/cornerstone.js @@ -0,0 +1,327 @@ +import cornerstone from 'cornerstone-core'; +import cornerstoneTools from 'cornerstone-tools'; + +function getBoundingBox(context, textLines, x, y, options) { + if (Object.prototype.toString.call(textLines) !== '[object Array]') { + textLines = [textLines]; + } + + const padding = 5; + const font = cornerstoneTools.textStyle.getFont(); + const fontSize = cornerstoneTools.textStyle.getFontSize(); + + context.save(); + context.font = font; + context.textBaseline = 'top'; + + // Find the longest text width in the array of text data + let maxWidth = 0; + + textLines.forEach(text => { + // Get the text width in the current font + const width = context.measureText(text).width; + + // Find the maximum with for all the text rows; + maxWidth = Math.max(maxWidth, width); + }); + + // Calculate the bounding box for this text box + const boundingBox = { + width: maxWidth + padding * 2, + height: padding + textLines.length * (fontSize + padding), + }; + + if (options && options.centering && options.centering.x === true) { + x -= boundingBox.width / 2; + } + + if (options && options.centering && options.centering.y === true) { + y -= boundingBox.height / 2; + } + + boundingBox.left = x; + boundingBox.top = y; + + context.restore(); + + // Return the bounding box so it can be used for pointNearHandle + return boundingBox; +} + +function pixelToPage(element, position) { + const enabledElement = cornerstone.getEnabledElement(element); + const result = { + x: 0, + y: 0, + }; + + // Stop here if the cornerstone element is not enabled or position is not an object + if (!enabledElement || typeof position !== 'object') { + return result; + } + + const canvas = enabledElement.canvas; + + const canvasOffset = $(canvas).offset(); + result.x += canvasOffset.left; + result.y += canvasOffset.top; + + const canvasPosition = cornerstone.pixelToCanvas(element, position); + result.x += canvasPosition.x; + result.y += canvasPosition.y; + + return result; +} + +function repositionTextBox(eventData, measurementData, config) { + // Stop here if it's not a measurement creating + if (!measurementData.isCreating) { + return; + } + + const element = eventData.element; + const enabledElement = cornerstone.getEnabledElement(element); + const image = enabledElement.image; + + const allowedBorders = OHIF.uiSettings.autoPositionMeasurementsTextCallOuts; + const allow = { + T: !allowedBorders || allowedBorders.includes('T'), + R: !allowedBorders || allowedBorders.includes('R'), + B: !allowedBorders || allowedBorders.includes('B'), + L: !allowedBorders || allowedBorders.includes('L'), + }; + + const getAvailableBlankAreas = (enabledElement, labelWidth, labelHeight) => { + const { element, canvas, image } = enabledElement; + + const topLeft = cornerstone.pixelToCanvas(element, { + x: 0, + y: 0, + }); + + const bottomRight = cornerstone.pixelToCanvas(element, { + x: image.width, + y: image.height, + }); + + const $canvas = $(canvas); + const canvasWidth = $canvas.outerWidth(); + const canvasHeight = $canvas.outerHeight(); + + const result = {}; + result['x-1'] = allow.L && topLeft.x > labelWidth; + result['y-1'] = allow.T && topLeft.y > labelHeight; + result.x1 = allow.R && canvasWidth - bottomRight.x > labelWidth; + result.y1 = allow.B && canvasHeight - bottomRight.y > labelHeight; + + return result; + }; + + const getRenderingInformation = (limits, tool) => { + const mid = {}; + mid.x = limits.x / 2; + mid.y = limits.y / 2; + + const directions = {}; + directions.x = tool.x < mid.x ? -1 : 1; + directions.y = tool.y < mid.y ? -1 : 1; + + const diffX = directions.x < 0 ? tool.x : limits.x - tool.x; + const diffY = directions.y < 0 ? tool.y : limits.y - tool.y; + let cornerAxis = diffY < diffX ? 'y' : 'x'; + + const map = { + 'x-1': 'L', + 'y-1': 'T', + x1: 'R', + y1: 'B', + }; + + let current = 0; + while (current < 4 && !allow[map[cornerAxis + directions[cornerAxis]]]) { + // Invert the direction for the next iteration + directions[cornerAxis] *= -1; + + // Invert the tempCornerAxis + cornerAxis = cornerAxis === 'x' ? 'y' : 'x'; + + current++; + } + + return { + directions, + cornerAxis, + }; + }; + + const calculateAxisCenter = (axis, start, end) => { + const a = start[axis]; + const b = end[axis]; + const lowest = Math.min(a, b); + const highest = Math.max(a, b); + return lowest + (highest - lowest) / 2; + }; + + const getTextBoxSizeInPixels = (element, bounds) => { + const topLeft = cornerstone.pageToPixel(element, 0, 0); + const bottomRight = cornerstone.pageToPixel(element, bounds.x, bounds.y); + return { + x: bottomRight.x - topLeft.x, + y: bottomRight.y - topLeft.y, + }; + }; + + function getTextBoxOffset(config, cornerAxis, toolAxis, boxSize) { + config = config || {}; + const centering = config.centering || {}; + const centerX = !!centering.x; + const centerY = !!centering.y; + const halfBoxSizeX = boxSize.x / 2; + const halfBoxSizeY = boxSize.y / 2; + const offset = { + x: [], + y: [], + }; + + if (cornerAxis === 'x') { + const offsetY = centerY ? 0 : halfBoxSizeY; + + offset.x[-1] = centerX ? halfBoxSizeX : 0; + offset.x[1] = centerX ? -halfBoxSizeX : -boxSize.x; + offset.y[-1] = offsetY; + offset.y[1] = offsetY; + } else { + const offsetX = centerX ? 0 : halfBoxSizeX; + + offset.x[-1] = offsetX; + offset.x[1] = offsetX; + offset.y[-1] = centerY ? halfBoxSizeY : 0; + offset.y[1] = centerY ? -halfBoxSizeY : -boxSize.y; + } + + return offset; + } + + const handles = measurementData.handles; + const textBox = handles.textBox; + + const $canvas = $(enabledElement.canvas); + const canvasWidth = $canvas.outerWidth(); + const canvasHeight = $canvas.outerHeight(); + const offset = $canvas.offset(); + const canvasDimensions = { + x: canvasWidth, + y: canvasHeight, + }; + + const bounds = {}; + bounds.x = textBox.boundingBox.width; + bounds.y = textBox.boundingBox.height; + + const getHandlePosition = key => { + const { x, y } = handles[key]; + + return { x, y }; + }; + const start = getHandlePosition('start'); + const end = getHandlePosition('end'); + + const tool = {}; + tool.x = calculateAxisCenter('x', start, end); + tool.y = calculateAxisCenter('y', start, end); + + let limits = {}; + limits.x = image.width; + limits.y = image.height; + + let { directions, cornerAxis } = getRenderingInformation(limits, tool); + + const availableAreas = getAvailableBlankAreas( + enabledElement, + bounds.x, + bounds.y + ); + const tempDirections = Object.assign({}, directions); + let tempCornerAxis = cornerAxis; + let foundPlace = false; + let current = 0; + while (current < 4) { + if (availableAreas[tempCornerAxis + tempDirections[tempCornerAxis]]) { + foundPlace = true; + break; + } + + // Invert the direction for the next iteration + tempDirections[tempCornerAxis] *= -1; + + // Invert the tempCornerAxis + tempCornerAxis = tempCornerAxis === 'x' ? 'y' : 'x'; + + current++; + } + + let cornerAxisPosition; + if (foundPlace) { + directions = Object.assign({}, directions, tempDirections); + cornerAxis = tempCornerAxis; + cornerAxisPosition = directions[cornerAxis] < 0 ? 0 : limits[cornerAxis]; + } else { + limits = Object.assign({}, limits, canvasDimensions); + + const toolPositionOnCanvas = cornerstone.pixelToCanvas(element, tool); + const renderingInformation = getRenderingInformation( + limits, + toolPositionOnCanvas + ); + directions = renderingInformation.directions; + cornerAxis = renderingInformation.cornerAxis; + + const position = { + x: directions.x < 0 ? offset.left : offset.left + canvasWidth, + y: directions.y < 0 ? offset.top : offset.top + canvasHeight, + }; + + const pixelPosition = cornerstone.pageToPixel( + element, + position.x, + position.y + ); + cornerAxisPosition = pixelPosition[cornerAxis]; + } + + const toolAxis = cornerAxis === 'x' ? 'y' : 'x'; + const boxSize = getTextBoxSizeInPixels(element, bounds); + + textBox[cornerAxis] = cornerAxisPosition; + textBox[toolAxis] = tool[toolAxis]; + + // Adjust the text box position reducing its size from the corner axis + const textBoxOffset = getTextBoxOffset(config, cornerAxis, toolAxis, boxSize); + textBox[cornerAxis] += textBoxOffset[cornerAxis][directions[cornerAxis]]; + + // Preventing the text box from partially going outside the canvas area + const topLeft = cornerstone.pixelToCanvas(element, textBox); + const bottomRight = { + x: topLeft.x + bounds.x, + y: topLeft.y + bounds.y, + }; + const canvasBorders = { + x0: offset.left, + y0: offset.top, + x1: offset.left + canvasWidth, + y1: offset.top + canvasHeight, + }; + if (topLeft[toolAxis] < 0) { + const x = canvasBorders.x0; + const y = canvasBorders.y0; + const pixelPosition = cornerstone.pageToPixel(element, x, y); + textBox[toolAxis] = pixelPosition[toolAxis]; + } else if (bottomRight[toolAxis] > canvasDimensions[toolAxis]) { + const x = canvasBorders.x1 - bounds.x; + const y = canvasBorders.y1 - bounds.y; + const pixelPosition = cornerstone.pageToPixel(element, x, y); + textBox[toolAxis] = pixelPosition[toolAxis]; + } +} + +export { getBoundingBox, pixelToPage, repositionTextBox }; diff --git a/packages/_core/src/lib/index.js b/packages/_core/src/lib/index.js new file mode 100644 index 000000000..dee5f06e9 --- /dev/null +++ b/packages/_core/src/lib/index.js @@ -0,0 +1,2 @@ +import './cornerstone.js'; +import './parsingUtils.js'; diff --git a/packages/_core/src/lib/parsingUtils.js b/packages/_core/src/lib/parsingUtils.js new file mode 100644 index 000000000..0d78a0665 --- /dev/null +++ b/packages/_core/src/lib/parsingUtils.js @@ -0,0 +1,90 @@ +import dicomParser from 'dicom-parser'; + +/** + * A small set of utilities to help parsing DICOM element values. + * In the future the functionality provided by this library might + * be incorporated into dicomParser library. + */ + +export const parsingUtils = { + /** + * Check if supplied argument is a valid instance of the dicomParser.DataSet class. + * @param data {Object} An instance of the dicomParser.DataSet class. + * @returns {Boolean} Returns true if data is a valid instance of the dicomParser.DataSet class. + */ + isValidDataSet: function(data) { + return data instanceof dicomParser.DataSet; + }, + + /** + * Parses an element tag according to the 'AT' VR definition. + * @param data {Object} An instance of the dicomParser.DataSet class. + * @param tag {String} A DICOM tag with in the format xGGGGEEEE. + * @returns {String} A string representation of a data element tag or null if the field is not present or data is not long enough. + */ + attributeTag: function(data, tag) { + if (this.isValidDataSet(data) && tag in data.elements) { + let element = data.elements[tag]; + if (element && element.length === 4) { + let parser = data.byteArrayParser.readUint16, + bytes = data.byteArray, + offset = element.dataOffset; + return ( + 'x' + + ( + '00000000' + + ( + parser(bytes, offset) * 256 * 256 + + parser(bytes, offset + 2) + ).toString(16) + ).substr(-8) + ); + } + } + + return null; + }, + + /** + * Parses the string representation of a multi-valued element into an array of strings. If the parser + * parameter is passed and is a function, it will be applied to each element of the resulting array. + * @param data {Object} An instance of the dicomParser.DataSet class. + * @param tag {String} A DICOM tag with in the format xGGGGEEEE. + * @param parser {Function} An optional parser function that can be applied to each element of the array. + * @returns {Array} An array of floating point numbers or null if the field is not present or data is not long enough. + */ + multiValue: function(data, tag, parser) { + if (this.isValidDataSet(data) && tag in data.elements) { + let element = data.elements[tag]; + if (element && element.length > 0) { + let string = dicomParser.readFixedString( + data.byteArray, + element.dataOffset, + element.length + ); + if (typeof string === 'string' && string.length > 0) { + if (typeof parser !== 'function') { + parser = null; + } + + return string.split('\\').map(function(value) { + value = value.trim(); + return parser !== null ? parser(value) : value; + }); + } + } + } + + return null; + }, + + /** + * Parses a string to an array of floats for a multi-valued element. + * @param data {Object} An instance of the dicomParser.DataSet class. + * @param tag {String} A DICOM tag with in the format xGGGGEEEE. + * @returns {Array} An array of floating point numbers or null if the field is not present or data is not long enough. + */ + floatArray: function(data, tag) { + return this.multiValue(data, tag, parseFloat); + }, +}; diff --git a/packages/_core/src/log.js b/packages/_core/src/log.js new file mode 100644 index 000000000..ada577d1a --- /dev/null +++ b/packages/_core/src/log.js @@ -0,0 +1,11 @@ +const log = { + error: console.error, + warn: console.warn, + info: console.log, + trace: console.trace, + debug: console.debug, + time: console.time, + timeEnd: console.timeEnd, +}; + +export default log; diff --git a/packages/_core/src/measurements/classes/MeasurementApi.js b/packages/_core/src/measurements/classes/MeasurementApi.js new file mode 100644 index 000000000..338fb9eea --- /dev/null +++ b/packages/_core/src/measurements/classes/MeasurementApi.js @@ -0,0 +1,998 @@ +import cornerstoneTools from 'cornerstone-tools'; +import log from '../../log'; +import getLabel from '../lib/getLabel'; +import getDescription from '../lib/getDescription'; +import getImageIdForImagePath from '../lib/getImageIdForImagePath'; +import guid from '../../utils/guid'; +import studyMetadataManager from '../../utils/studyMetadataManager'; + +const configuration = {}; + +export default class MeasurementApi { + static Instance; + + static setConfiguration(config) { + Object.assign(configuration, config); + } + + static getConfiguration() { + return configuration; + } + + static getToolsGroupsMap() { + const toolsGroupsMap = {}; + configuration.measurementTools.forEach(toolGroup => { + toolGroup.childTools.forEach( + tool => (toolsGroupsMap[tool.id] = toolGroup.id) + ); + }); + + return toolsGroupsMap; + } + + static getToolGroupTools(toolsGroupsMap) { + const result = {}; + Object.keys(toolsGroupsMap).forEach(toolType => { + const toolGroupId = toolsGroupsMap[toolType]; + if (!result[toolGroupId]) { + result[toolGroupId] = []; + } + + result[toolGroupId].push(toolType); + }); + + return result; + } + + static getToolConfiguration(toolType) { + const configuration = MeasurementApi.getConfiguration(); + const toolsGroupsMap = MeasurementApi.getToolsGroupsMap(); + + const toolGroupId = toolsGroupsMap[toolType]; + const toolGroup = configuration.measurementTools.find( + toolGroup => toolGroup.id === toolGroupId + ); + + let tool; + if (toolGroup) { + tool = toolGroup.childTools.find(tool => tool.id === toolType); + } + + return { + toolGroupId, + toolGroup, + tool, + }; + } + + static syncMeasurementAndToolData(measurement) { + log.info('syncMeasurementAndToolData'); + + const measurementLabel = getLabel(measurement); + if (measurementLabel) { + measurement.labels = [measurementLabel]; + } + + const toolState = cornerstoneTools.globalImageIdSpecificToolStateManager.saveToolState(); + + // Stop here if the metadata for the measurement's study is not loaded yet + const { studyInstanceUid } = measurement; + const metadata = studyMetadataManager.get(studyInstanceUid); + if (!metadata) return; + + // Iterate each child tool if the current tool has children + const toolType = measurement.toolType; + const { tool } = MeasurementApi.getToolConfiguration(toolType); + if (Array.isArray(tool.childTools)) { + tool.childTools.forEach(childToolKey => { + const childMeasurement = measurement[childToolKey]; + if (!childMeasurement) return; + childMeasurement._id = measurement._id; + childMeasurement.measurementNumber = measurement.measurementNumber; + childMeasurement.lesionNamingNumber = measurement.lesionNamingNumber; + + MeasurementApi.syncMeasurementAndToolData(childMeasurement); + }); + + return; + } + + const imageId = getImageIdForImagePath(measurement.imagePath); + + // If no tool state exists for this imageId, create an empty object to store it + if (!toolState[imageId]) { + toolState[imageId] = {}; + } + + const currentToolState = toolState[imageId][toolType]; + const toolData = currentToolState && currentToolState.data; + + // Check if we already have toolData for this imageId and toolType + if (toolData && toolData.length) { + // If we have toolData, we should search it for any data related to the current Measurement + const toolData = toolState[imageId][toolType].data; + + // Create a flag so we know if we've successfully updated the Measurement in the toolData + let alreadyExists = false; + + // Loop through the toolData to search for this Measurement + toolData.forEach(tool => { + // Break the loop if this isn't the Measurement we are looking for + if (tool._id !== measurement._id) { + return; + } + + // If we have found the Measurement, set the flag to True + alreadyExists = true; + + // Update the toolData from the Measurement data + Object.assign(tool, measurement); + return false; + }); + + // If we have found the Measurement we intended to update, we can stop this function here + if (alreadyExists === true) { + return; + } + } else { + // If no toolData exists for this toolType, create an empty array to hold some + toolState[imageId][toolType] = { + data: [], + }; + } + + // If we have reached this point, it means we haven't found the Measurement we are looking for + // in the current toolData. This means we need to add it. + + // Add the MeasurementData into the toolData for this imageId + toolState[imageId][toolType].data.push(measurement); + + cornerstoneTools.globalImageIdSpecificToolStateManager.restoreToolState( + toolState + ); + } + + static isToolIncluded(tool) { + return ( + tool.options && + tool.options.caseProgress && + tool.options.caseProgress.include + ); + } + + constructor(timepointApi, options = {}) { + if (MeasurementApi.Instance) { + MeasurementApi.Instance.initialize(timepointApi, options); + return MeasurementApi.Instance; + } + + this.initialize(timepointApi, options); + MeasurementApi.Instance = this; + } + + initialize(timepointApi, options = {}) { + this.timepointApi = timepointApi; + this.options = options; + this.toolGroups = {}; + this.tools = {}; + this.toolsGroupsMap = MeasurementApi.getToolsGroupsMap(); + this.toolGroupTools = MeasurementApi.getToolGroupTools(this.toolsGroupsMap); + + // Iterate over each tool group and create collection + configuration.measurementTools.forEach(toolGroup => { + this.toolGroups[toolGroup.id] = []; + + // Iterate over each tool group child tools (e.g. bidirectional, targetCR, etc.) and create collection + toolGroup.childTools.forEach(tool => { + this.tools[tool.id] = []; + }); + }); + } + + onMeasurementsUpdated() { + if (typeof this.options.onMeasurementsUpdated !== 'function') { + log.warn('Measurements update callback is not defined'); + return; + } + + this.options.onMeasurementsUpdated(Object.assign({}, this.tools)); + } + + retrieveMeasurements(patientId, timepointIds) { + const retrievalFn = configuration.dataExchange.retrieve; + if (typeof retrievalFn !== 'function') { + log.error('Measurement retrieval function has not been configured.'); + return; + } + + return new Promise((resolve, reject) => { + retrievalFn(patientId, timepointIds).then(measurementData => { + if (measurementData) { + log.info('Measurement data retrieval'); + log.info(measurementData); + + Object.keys(measurementData).forEach(measurementTypeId => { + const measurements = measurementData[measurementTypeId]; + + measurements.forEach(measurement => { + const { toolType } = measurement; + + this.addMeasurement(toolType, measurement); + }); + }); + } + + resolve(); + + // Synchronize the new tool data + this.syncMeasurementsAndToolData(); + + // Let others know that the measurements are updated + this.onMeasurementsUpdated(); + }, reject); + }); + } + + storeMeasurements(timepointId) { + const storeFn = configuration.dataExchange.store; + if (typeof storeFn !== 'function') { + log.error('Measurement store function has not been configured.'); + return; + } + + let measurementData = {}; + configuration.measurementTools.forEach(toolGroup => { + // Skip the tool groups excluded from case progress + if (!MeasurementApi.isToolIncluded(toolGroup)) { + return; + } + + toolGroup.childTools.forEach(tool => { + // Skip the tools excluded from case progress + if (!MeasurementApi.isToolIncluded(tool)) { + return; + } + + if (!measurementData[toolGroup.id]) { + measurementData[toolGroup.id] = []; + } + + measurementData[toolGroup.id] = measurementData[toolGroup.id].concat( + this.tools[tool.id] + ); + }); + }); + + const timepointFilter = timepointId + ? tp => tp.timepointId === timepointId + : null; + const timepoints = this.timepointApi.all(timepointFilter); + const timepointIds = timepoints.map(t => t.timepointId); + const patientId = timepoints[0].patientId; + const filter = { + patientId, + timepointIds, + }; + + log.info('Saving Measurements for timepoints:', timepoints); + return storeFn(measurementData, filter).then(() => { + log.info('Measurement storage completed'); + }); + } + + calculateLesionNamingNumber(measurements) { + const sortedMeasurements = measurements.sort((a, b) => { + if (a.lesionNamingNumber > b.lesionNamingNumber) { + return 1; + } else if (a.lesionNamingNumber < b.lesionNamingNumber) { + return -1; + } + + return 0; + }); + + // Calculate lesion naming number starting from 1 not to miss any measurement (as seen in MM) + // A measurement from beginning of the list might be deleted, so a new measurement should replace that + let i; + for (i = 1; i < sortedMeasurements.length + 1; i++) { + if (i < sortedMeasurements[i - 1].lesionNamingNumber) { + break; + } + } + + return i; + } + + fetch(toolGroupId, filter) { + if (!this.toolGroups[toolGroupId]) { + throw new Error( + `MeasurementApi: No Collection with the id: ${toolGroupId}` + ); + } + + let items; + if (filter) { + items = this.toolGroups[toolGroupId].filter(filter); + } else { + items = this.toolGroups[toolGroupId]; + } + + return items.map(item => { + if (item.toolId) { + return this.tools[item.toolId].find( + tool => tool._id === item.toolItemId + ); + } + + return { lesionNamingNumber: item.lesionNamingNumber }; + }); + } + + getFirstMeasurement(timepointId) { + // Get child tools from all included tool groups + let childTools = []; + configuration.measurementTools.forEach(toolGroup => { + // Skip the tool groups excluded from case progress + if (!MeasurementApi.isToolIncluded(toolGroup)) { + return false; + } + + childTools = childTools.concat(toolGroup.childTools); + }); + + // Get all included child tools + const includedChildTools = childTools.filter(tool => + MeasurementApi.isToolIncluded(tool) + ); + + // Get the first measurement for the given timepoint + let measurement = undefined; + includedChildTools.every(tool => { + measurement = this.tools[tool.id].find( + t => t.timepointId === timepointId && t.measurementNumber === 1 + ); + + return !measurement; + }); + + // Return the found measurement object or undefined if not found + return measurement; + } + + lesionExistsAtTimepoints(lesionNamingNumber, toolGroupId, timepointIds) { + // Retrieve all the data for the given tool group (e.g. 'targets') + const measurementsAtTimepoint = this.fetch(toolGroupId, tool => + timepointIds.includes(tool.timepointId) + ); + + // Return whether or not any lesion at this timepoint has the same lesionNamingNumber + return !!measurementsAtTimepoint.find( + m => m.lesionNamingNumber === lesionNamingNumber + ); + } + + isNewLesionsMeasurement(measurementData) { + if (!measurementData) { + return; + } + + const toolConfig = MeasurementApi.getToolConfiguration( + measurementData.toolType + ); + const toolType = toolConfig.tool.parentTool || measurementData.toolType; + const { timepointApi } = this; + const currentMeasurement = + this.tools[toolType].find(tool => tool._id === measurementData._id) || {}; + const timepointId = + currentMeasurement.timepointId || measurementData.timepointId; + const lesionNamingNumber = + currentMeasurement.lesionNamingNumber || + measurementData.lesionNamingNumber; + + // Stop here if the needed information is not set + if (!timepointApi || !timepointId || !toolConfig) { + return; + } + + const { toolGroupId } = toolConfig; + const current = timepointApi.timepoints.find( + tp => tp.timepointId === timepointId + ); + const initialTimepointIds = timepointApi.initialTimepointIds(); + + // Stop here if there's no initial timepoint, or if the current is any initial + if ( + !initialTimepointIds || + initialTimepointIds.length < 1 || + initialTimepointIds.some( + initialtpid => initialtpid === current.timepointId + ) + ) { + return false; + } + + return ( + this.lesionExistsAtTimepoints( + lesionNamingNumber, + toolGroupId, + initialTimepointIds + ) === false + ); + } + + calculateLesionMaxMeasurementNumber(groupId, filter) { + let measurements = []; + if (groupId) { + // Get the measurements of the group + measurements = this.toolGroups[groupId] || []; + } else { + // Get all measurements of all groups + measurements = Object.keys(this.toolGroups).reduce((acc, val) => { + acc.push(...this.toolGroups[val]); + return acc; + }, []); + } + + const sortedMeasurements = measurements.filter(filter).sort((tp1, tp2) => { + return tp1.measurementNumber < tp2.measurementNumber ? 1 : -1; + }); + + for (let i = 0; i < sortedMeasurements.length; i++) { + const toolGroupMeasurement = sortedMeasurements[i]; + const measurement = this.tools[toolGroupMeasurement.toolId].find( + tool => tool._id === toolGroupMeasurement.toolItemId + ); + const isNew = this.isNewLesionsMeasurement(measurement); + if (!isNew) { + return measurement.measurementNumber; + } + } + + return 0; + } + + calculateNewLesionMaxMeasurementNumber(groupId, filter) { + const sortedMeasurements = this.toolGroups[groupId] + .filter(filter) + .sort((tp1, tp2) => { + return tp1.measurementNumber < tp2.measurementNumber ? 1 : -1; + }); + + for (let i = 0; i < sortedMeasurements.length; i++) { + const toolGroupMeasurement = sortedMeasurements[i]; + const measurement = this.tools[toolGroupMeasurement.toolId].find( + tool => tool._id === toolGroupMeasurement.toolItemId + ); + const isNew = this.isNewLesionsMeasurement(measurement); + if (isNew) { + return measurement.measurementNumber; + } + } + + return 0; + } + + calculateMeasurementNumber(measurement) { + const toolGroupId = this.toolsGroupsMap[measurement.toolType]; + + const filter = tool => tool._id !== measurement._id; + + const isNew = this.isNewLesionsMeasurement(measurement); + + if (isNew) { + const maxTargetMeasurementNumber = this.calculateLesionMaxMeasurementNumber( + 'targets', + filter + ); + const maxNonTargetMeasurementNumber = this.calculateLesionMaxMeasurementNumber( + 'nonTargets', + filter + ); + const maxNewTargetMeasurementNumber = this.calculateNewLesionMaxMeasurementNumber( + 'targets', + filter + ); + if (toolGroupId === 'targets') { + return Math.max( + maxTargetMeasurementNumber, + maxNonTargetMeasurementNumber, + maxNewTargetMeasurementNumber + ); + } else if (toolGroupId === 'nonTargets') { + const maxNewNonTargetMeasurementNumber = this.calculateNewLesionMaxMeasurementNumber( + 'nonTargets', + filter + ); + return Math.max( + maxTargetMeasurementNumber, + maxNonTargetMeasurementNumber, + maxNewTargetMeasurementNumber, + maxNewNonTargetMeasurementNumber + ); + } + } else { + const maxTargetMeasurementNumber = this.calculateLesionMaxMeasurementNumber( + 'targets', + filter + ); + if (toolGroupId === 'targets') { + return maxTargetMeasurementNumber; + } else if (toolGroupId === 'nonTargets') { + const maxNonTargetMeasurementNumber = this.calculateLesionMaxMeasurementNumber( + 'nonTargets', + filter + ); + return Math.max( + maxTargetMeasurementNumber, + maxNonTargetMeasurementNumber + ); + } else { + return this.calculateLesionMaxMeasurementNumber(null, filter); + } + } + + return 0; + } + + getPreviousMeasurement(measurementData) { + if (!measurementData) { + return; + } + + const { timepointId, toolType, lesionNamingNumber } = measurementData; + if (!timepointId || !toolType || !lesionNamingNumber) { + return; + } + + const toolGroupId = this.toolsGroupsMap[measurementData.toolType]; + + // TODO: Remove TrialPatientLocationUid from here and override it somehow + // by dependant applications. Here we should use the location attribute instead of the uid + let filter; + const uid = + measurementData.additionalData && + measurementData.additionalData.TrialPatientLocationUid; + if (uid) { + filter = tool => + tool._id !== measurementData._id && + tool.additionalData && + tool.additionalData.TrialPatientLocationUid === uid; + } else { + filter = tool => + tool._id !== measurementData._id && + tool.lesionNamingNumber === lesionNamingNumber; + } + + const childToolTypes = this.toolGroupTools[toolGroupId]; + for (let i = 0; i < childToolTypes.length; i++) { + const childToolType = childToolTypes[i]; + const toolCollection = this.tools[childToolType]; + const item = toolCollection.find(filter); + + if (item) { + return item; + } + } + } + + hasDuplicateMeasurementNumber(measurementData) { + if (!measurementData) { + return; + } + + const { toolType, measurementNumber } = measurementData; + if (!toolType || !measurementNumber) { + return; + } + + const filter = tool => + tool._id !== measurementData._id && + tool.measurementNumber === measurementData.measurementNumber; + + return configuration.measurementTools + .filter(toolGroup => toolGroup.id !== 'temp') + .some(toolGroup => { + if (this.toolGroups[toolGroup.id].find(filter)) { + return true; + } + return toolGroup.childTools.some(tool => { + if (this.tools[tool.id].find(filter)) { + return true; + } + }); + }); + } + + updateNumbering(collectionToUpdate, propertyFilter, propertyName, increment) { + collectionToUpdate.filter(propertyFilter).forEach(item => { + item[propertyName] += increment; + }); + } + + updateMeasurementNumberForAllMeasurements(measurement, increment) { + const filter = tool => + tool._id !== measurement._id && + tool.measurementNumber >= measurement.measurementNumber; + + configuration.measurementTools + .filter(toolGroup => toolGroup.id !== 'temp') + .forEach(toolGroup => { + this.updateNumbering( + this.toolGroups[toolGroup.id], + filter, + 'measurementNumber', + increment + ); + + toolGroup.childTools.forEach(tool => { + this.updateNumbering( + this.tools[tool.id], + filter, + 'measurementNumber', + increment + ); + }); + }); + } + + addMeasurement(toolType, measurement) { + const toolGroup = this.toolsGroupsMap[toolType]; + const groupCollection = this.toolGroups[toolGroup]; + const collection = this.tools[toolType]; + + // Get the related measurement by the measurement number and use its location if defined + const relatedMeasurement = collection.find( + t => + t.lesionNamingNumber === measurement.lesionNamingNumber && + t.toolType === measurement.toolType + ); + + // Use the related measurement location if found and defined + if (relatedMeasurement && relatedMeasurement.location) { + measurement.location = relatedMeasurement.location; + } + + // Use the related measurement description if found and defined + if (relatedMeasurement && relatedMeasurement.description) { + measurement.description = relatedMeasurement.description; + } + + measurement._id = guid(); + + // Get the timepoint + let timepoint; + if (measurement.studyInstanceUid) { + timepoint = this.timepointApi.study(measurement.studyInstanceUid)[0]; + } else { + const { timepointId } = measurement; + timepoint = this.timepointApi.timepoints.find( + t => t.timepointId === timepointId + ); + } + + // Preventing errors thrown when non-associated (standalone) study is opened... + // @TODO: Make sure this logic is correct. + if (!timepoint) return; + + // Empty Item is the lesion just added in cornerstoneTools, but does not have measurement data yet + const emptyItem = groupCollection.find( + groupTool => + !groupTool.toolId && groupTool.timepointId === timepoint.timepointId + ); + + // Set the timepointId attribute to measurement to make it easier to filter measurements by timepoint + measurement.timepointId = timepoint.timepointId; + + // Check if the measurement data is just added by a cornerstone tool and is still empty + if (emptyItem) { + // Set relevant initial data and measurement number to the measurement + measurement.lesionNamingNumber = emptyItem.lesionNamingNumber; + measurement.measurementNumber = emptyItem.measurementNumber; + + groupCollection + .filter( + groupTool => + groupTool.timepointId === timepoint.timepointId && + groupTool.lesionNamingNumber === measurement.lesionNamingNumber + ) + .forEach(groupTool => { + groupTool.toolId = tool.id; + groupTool.toolItemId = measurement._id; + groupTool.createdAt = measurement.createdAt; + groupTool.measurementNumber = measurement.measurementNumber; + }); + } else { + // Handle measurements not added by cornerstone tools and update its number + const measurementsInTimepoint = groupCollection.filter( + groupTool => groupTool.timepointId === timepoint.timepointId + ); + measurement.lesionNamingNumber = this.calculateLesionNamingNumber( + measurementsInTimepoint + ); + measurement.measurementNumber = + measurement.measurementNumber || + this.calculateMeasurementNumber(measurement) + 1; + } + + // Define an update object to reflect the changes in the collection + const updateObject = { + timepointId: timepoint.timepointId, + lesionNamingNumber: measurement.lesionNamingNumber, + measurementNumber: measurement.measurementNumber, + }; + + // Find the matched measurement from other timepoints + const found = this.getPreviousMeasurement(measurement); + + // Check if a previous related meausurement was found on other timepoints + if (found) { + // Use the same number as the previous measurement + measurement.lesionNamingNumber = found.lesionNamingNumber; + measurement.measurementNumber = found.measurementNumber; + + // TODO: Remove TrialPatientLocationUid from here and override it somehow + // by dependant applications + + // Change the update object to set the same number, additionalData, + // location, label and description to the current measurement + updateObject.lesionNamingNumber = found.lesionNamingNumber; + updateObject.measurementNumber = found.measurementNumber; + updateObject.additionalData = measurement.additionalData || {}; + updateObject.additionalData.TrialPatientLocationUid = + found.additionalData && found.additionalData.TrialPatientLocationUid; + updateObject.location = found.location; + updateObject.label = found.label; + updateObject.description = found.description; + updateObject.isSplitLesion = found.isSplitLesion; + updateObject.isNodal = found.isNodal; + + const description = getDescription(found, measurement); + if (description) { + updateObject.description = description; + } + } else if (this.hasDuplicateMeasurementNumber(measurement)) { + // Update measurementNumber for the measurements with masurementNumber greater or equal than + // measurementNumber of the added measurement (except the added one) + // only if there is another measurement with the same measurementNumber + this.updateMeasurementNumberForAllMeasurements(measurement, 1); + } + + let addedMeasurement; + + // Upsert the measurement in collection + const toolIndex = collection.findIndex( + tool => tool._id === measurement._id + ); + if (toolIndex > -1) { + addedMeasurement = Object.assign({}, collection[toolIndex], updateObject); + collection[toolIndex] = addedMeasurement; + } else { + addedMeasurement = Object.assign({}, measurement, updateObject); + collection.push(addedMeasurement); + } + + if (!emptyItem) { + // Reflect the entry in the tool group collection + groupCollection.push({ + toolId: toolType, + toolItemId: addedMeasurement._id, + timepointId: timepoint.timepointId, + studyInstanceUid: addedMeasurement.studyInstanceUid, + createdAt: addedMeasurement.createdAt, + lesionNamingNumber: addedMeasurement.lesionNamingNumber, + measurementNumber: addedMeasurement.measurementNumber, + }); + } + + // Let others know that the measurements are updated + this.onMeasurementsUpdated(); + + // TODO: Enable reactivity + // this.timepointChanged.set(timepoint.timepointId); + + return addedMeasurement; + } + + updateMeasurement(toolType, measurement) { + const collection = this.tools[toolType]; + + const toolIndex = collection.findIndex( + tool => tool._id === measurement._id + ); + if (toolIndex < 0) { + return; + } + + collection[toolIndex] = Object.assign({}, measurement); + + // Let others know that the measurements are updated + this.onMeasurementsUpdated(); + + // TODO: Enable reactivity + // this.timepointChanged.set(timepoint.timepointId); + } + + onMeasurementRemoved(toolType, measurement) { + const { lesionNamingNumber, measurementNumber } = measurement; + + const toolGroupId = this.toolsGroupsMap[toolType]; + const groupCollection = this.toolGroups[toolGroupId]; + + const groupIndex = groupCollection.findIndex( + group => group.toolItemId === measurement._id + ); + if (groupIndex < 0) { + return; + } + + // Remove the deleted measurement only in its timepoint from the collection + groupCollection.splice(groupIndex, 1); + + // Check which timepoints have the deleted measurement + const timepointsWithDeletedMeasurement = groupCollection + .filter(tool => tool.measurementNumber === measurementNumber) + .map(tool => tool.timepointId); + + // Update lesionNamingNumber and measurementNumber only if there is no timepoint with that measurement + if (timepointsWithDeletedMeasurement.length < 1) { + // Decrease lesionNamingNumber of all measurements with lesionNamingNumber greater than lesionNamingNumber of the deleted measurement by 1 + const lesionNamingNumberFilter = tool => + tool.lesionNamingNumber >= lesionNamingNumber; + this.updateNumbering( + groupCollection, + lesionNamingNumberFilter, + 'lesionNamingNumber', + -1 + ); + + const toolGroup = configuration.measurementTools.find( + tGroup => tGroup.id === toolGroupId + ); + if (toolGroup && toolGroup.childTools) { + toolGroup.childTools.forEach(childTool => { + const collection = this.tools[childTool.id]; + this.updateNumbering( + collection, + lesionNamingNumberFilter, + 'lesionNamingNumber', + -1 + ); + }); + } + + // Decrease measurementNumber of all measurements with measurementNumber greater than measurementNumber of the deleted measurement by 1 + this.updateMeasurementNumberForAllMeasurements(measurement, -1); + } + + // Synchronize the new tool data + this.syncMeasurementsAndToolData(); + + // Let others know that the measurements are updated + this.onMeasurementsUpdated(); + + // TODO: Enable reactivity + // this.timepointChanged.set(timepoint.timepointId); + } + + syncMeasurementsAndToolData() { + configuration.measurementTools.forEach(toolGroup => { + // Skip the tool groups excluded from case progress + if (!MeasurementApi.isToolIncluded(toolGroup)) { + return; + } + toolGroup.childTools.forEach(tool => { + // Skip the tools excluded from case progress + if (!MeasurementApi.isToolIncluded(tool)) { + return; + } + const measurements = this.tools[tool.id]; + measurements.forEach(measurement => { + MeasurementApi.syncMeasurementAndToolData(measurement); + }); + }); + }); + } + + deleteMeasurements(toolType, measurementTypeId, filter) { + const filterKeys = Object.keys(filter); + const groupCollection = this.toolGroups[measurementTypeId]; + + // Stop here if it is a temporary toolGroups + if (!groupCollection) return; + + // Get the entries information before removing them + const groupItems = groupCollection.filter(toolGroup => { + return filterKeys.every( + filterKey => toolGroup[filterKey] === filter[filterKey] + ); + }); + const entries = []; + groupItems.forEach(groupItem => { + if (!groupItem.toolId) { + return; + } + + const collection = this.tools[groupItem.toolId]; + const toolIndex = collection.findIndex( + tool => tool._id === groupItem.toolItemId + ); + if (toolIndex > -1) { + entries.push(collection[toolIndex]); + collection.splice(toolIndex, 1); + } + }); + + // Stop here if no entries were found + if (!entries.length) { + return; + } + + // If the filter doesn't have the measurement number, get it from the first entry + const lesionNamingNumber = + filter.lesionNamingNumber || entries[0].lesionNamingNumber; + + // Synchronize the new data with cornerstone tools + const toolState = cornerstoneTools.globalImageIdSpecificToolStateManager.saveToolState(); + + entries.forEach(entry => { + const measurementsData = []; + const { tool } = MeasurementApi.getToolConfiguration(entry.toolType); + if (Array.isArray(tool.childTools)) { + tool.childTools.forEach(key => { + const childMeasurement = entry[key]; + if (!childMeasurement) return; + measurementsData.push(childMeasurement); + }); + } else { + measurementsData.push(entry); + } + + measurementsData.forEach(measurementData => { + const { imagePath, toolType } = measurementData; + const imageId = getImageIdForImagePath(imagePath); + if (imageId && toolState[imageId]) { + const toolData = toolState[imageId][toolType]; + const measurementEntries = toolData && toolData.data; + const measurementEntry = measurementEntries.find( + mEntry => mEntry._id === entry._id + ); + if (measurementEntry) { + const index = measurementEntries.indexOf(measurementEntry); + measurementEntries.splice(index, 1); + } + } + }); + + this.onMeasurementRemoved(toolType, entry); + }); + + cornerstoneTools.globalImageIdSpecificToolStateManager.restoreToolState( + toolState + ); + + // Synchronize the updated measurements with Cornerstone Tools + // toolData to make sure the displayed measurements show 'Target X' correctly + const syncFilter = Object.assign({}, filter); + delete syncFilter.timepointId; + delete syncFilter.lesionNamingNumber; + + const syncFilterKeys = Object.keys(syncFilter); + + const toolTypes = [...new Set(entries.map(entry => entry.toolType))]; + toolTypes.forEach(toolType => { + const collection = this.tools[toolType]; + collection + .filter(tool => { + return ( + tool.lesionNamingNumber > lesionNamingNumber - 1 && + syncFilterKeys.every( + syncFilterKey => tool[syncFilterKey] === filter[syncFilterKey] + ) + ); + }) + .forEach(measurement => { + MeasurementApi.syncMeasurementAndToolData(measurement); + }); + }); + } +} diff --git a/packages/_core/src/measurements/classes/TimepointApi.js b/packages/_core/src/measurements/classes/TimepointApi.js new file mode 100644 index 000000000..12d893100 --- /dev/null +++ b/packages/_core/src/measurements/classes/TimepointApi.js @@ -0,0 +1,576 @@ +import log from '../../log'; + +const configuration = {}; + +const TIMEPOINT_TYPE_NAMES = { + prebaseline: 'Pre-Baseline', + baseline: 'Baseline', + followup: 'Follow-up', +}; + +export default class TimepointApi { + static Instance; + + static setConfiguration(config) { + Object.assign(configuration, config); + } + + static getConfiguration() { + return configuration; + } + + constructor(currentTimepointId, options = {}) { + if (TimepointApi.Instance) { + TimepointApi.Instance.initialize(currentTimepointId, options); + return TimepointApi.Instance; + } + + this.initialize(currentTimepointId, options); + TimepointApi.Instance = this; + } + + initialize(currentTimepointId, options = {}) { + this.currentTimepointId = currentTimepointId; + this.comparisonTimepointKey = options.comparisonTimepointKey || 'baseline'; + this.options = options; + this.timepoints = []; + } + + onTimepointsUpdated() { + if (typeof this.options.onTimepointsUpdated !== 'function') { + log.warn('Timepoints update callback is not defined'); + return; + } + + this.options.onTimepointsUpdated(Object.assign([], this.timepoints)); + } + + calculateVisitNumber(timepoint) { + // Retrieve all of the relevant follow-up timepoints for this patient + const sortedTimepoints = this.timepoints.sort((tp1, tp2) => { + return tp1.visitDate > tp2.visitDate ? 1 : -1; + }); + const filteredTimepoints = sortedTimepoints.find( + tp => + tp.patientId === timepoint.patientId && + tp.timepointType === timepoint.timepointType + ); + + // Create an array of just timepointIds, so we can use indexOf + // on it to find the current timepoint's relative position + const timepointIds = filteredTimepoints.map( + timepoint => timepoint.timepointId + ); + + // Calculate the index of the current timepoint in the array of all + // relevant follow-up timepoints + const visitNumber = timepointIds.indexOf(timepoint.timepointId) + 1; + + // If visitNumber is 0, it means that the current timepoint was not in the list + if (!visitNumber) { + throw new Error( + 'Current timepoint was not in the list of relevant timepoints?' + ); + } + + return visitNumber; + } + + retrieveTimepoints(filter) { + const retrievalFn = configuration.dataExchange.retrieve; + if (typeof retrievalFn !== 'function') { + log.error('Timepoint retrieval function has not been configured.'); + return; + } + + return new Promise((resolve, reject) => { + retrievalFn(filter) + .then(timepointData => { + log.info('Timepoint data retrieval'); + + timepointData.forEach(timepoint => { + const timepointIndex = this.timepoints.findIndex( + tp => tp.timepointId === timepoint.timepointId + ); + if (timepointIndex < 0) { + this.timepoints.push(timepoint); + } else { + this.timepoints[timepointIndex] = timepoint; + } + }); + + // Let others know that the timepoints are updated + this.onTimepointsUpdated(); + + resolve(); + }) + .catch(reason => { + log.error(`Timepoint retrieval function failed: ${reason}`); + reject(reason); + }); + }); + } + + storeTimepoints() { + const storeFn = configuration.dataExchange.store; + if (typeof storeFn !== 'function') { + log.error('Timepoint store function has not been configured.'); + return; + } + + log.info('Preparing to store timepoints'); + log.info(JSON.stringify(this.timepoints, null, 2)); + + storeFn(this.timepoints).then(() => + log.info('Timepoint storage completed') + ); + } + + disassociateStudy(timepointIds, studyInstanceUid) { + const disassociateFn = configuration.dataExchange.disassociate; + if (typeof disassociateFn !== 'function') { + log.error('Study disassociate function has not been configured.'); + return; + } + + disassociateFn(timepointIds, studyInstanceUid).then(() => { + log.info('Disassociation completed'); + + this.timepoints = []; + this.retrieveTimepoints({}); + }); + } + + removeTimepoint(timepointId) { + const removeFn = configuration.dataExchange.remove; + if (typeof removeFn !== 'function') { + log.error('Timepoint remove function has not been configured.'); + return; + } + + const timepointData = { + timepointId, + }; + + log.info('Preparing to remove timepoint'); + log.info(JSON.stringify(timepointData, null, 2)); + + removeFn(timepointData).then(() => { + log.info('Timepoint removal completed'); + + const tpIndex = this.timepoints.findIndex( + tp => tp.timepointId === timepointId + ); + if (tpIndex > -1) { + this.timepoints.splice(tpIndex, 1); + } + + // Let others know that the timepoints are updated + this.onTimepointsUpdated(); + }); + } + + updateTimepoint(timepointId, query) { + const updateFn = configuration.dataExchange.update; + if (typeof updateFn !== 'function') { + log.error('Timepoint update function has not been configured.'); + return; + } + + const timepointData = { + timepointId, + }; + + log.info('Preparing to update timepoint'); + log.info(JSON.stringify(timepointData, null, 2)); + log.info(JSON.stringify(query, null, 2)); + + updateFn(timepointData, query).then(() => { + log.info('Timepoint updated completed'); + + const tpIndex = this.timepoints.findIndex( + tp => tp.timepointId === timepointId + ); + if (tpIndex > -1) { + this.timepoints[tpIndex] = Object.assign( + {}, + this.timepoints[tpIndex], + query + ); + } + + // Let others know that the timepoints are updated + this.onTimepointsUpdated(); + }); + } + + // Return all timepoints + all(filter) { + let timepointsToReturn; + if (filter) { + timepointsToReturn = this.timepoints.filter(filter); + } else { + timepointsToReturn = this.timepoints; + } + + return timepointsToReturn.sort((tp1, tp2) => { + return tp1.visitDate < tp2.visitDate ? 1 : -1; + }); + } + + // Return only the current timepoint + current() { + return this.timepoints.find( + tp => tp.timepointId === this.currentTimepointId + ); + } + + lock() { + const tpIndex = this.timepoints.findIndex( + tp => tp.timepointId === this.currentTimepointId + ); + if (tpIndex < 0) { + return; + } + + this.timepoints[tpIndex] = Object.assign({}, this.timepoints[tpIndex], { + locked: true, + }); + } + + // Return the prior timepoint + prior() { + const current = this.current(); + if (!current) { + return; + } + + return this.all().find(tp => tp.visitDate < current.visitDate); + } + + // Return only the current and prior timepoints + currentAndPrior() { + const timepoints = []; + + const current = this.current(); + if (current) { + timepoints.push(current); + } + + const prior = this.prior(); + if (current && prior && prior.timepointId !== current.timepointId) { + timepoints.push(prior); + } + + return timepoints; + } + + // Return the current and the comparison timepoints + currentAndComparison(comparisonTimepointKey = this.comparisonTimepointKey) { + const current = this.current(); + const comparisonTimepoint = this.comparison(comparisonTimepointKey); + const timepoints = [current]; + + if ( + comparisonTimepoint && + !timepoints.find(tp => tp.timepointId === comparisonTimepoint.timepointId) + ) { + timepoints.push(comparisonTimepoint); + } + + return timepoints; + } + + /** + * Return true if there are 2 or more baseline timepoints before and at the current timepoint, otherwise false + * @returns {boolean} + */ + isRebaseline(timepointId) { + const current = timepointId + ? this.timepoints.find(tp => tp.timepointId === timepointId) + : this.current(); + if (!current) { + return false; + } + + const baselines = this.timepoints.filter( + tp => tp.timepointType === 'baseline' && tp.visitDate <= current.visitDate + ); + return baselines.length > 1; + } + + /** + * Return the next (closest future) baseline after current timepoint + * @returns {*} + */ + nextBaselineAfterCurrent() { + let current = this.current(); + + // Get all next timepoints newer than the current timepoint sorted by visitDate ascending + const sortedTimepoints = this.timepoints.sort((tp1, tp2) => { + return tp1.visitDate > tp2.visitDate ? 1 : -1; + }); + return sortedTimepoints.find( + tp => tp.visitDate > current.visitDate && tp.timepointType === 'baseline' + ); + } + + /** + * Set the current timepoint id + * @param timepointId + */ + setCurrentTimepointId(timepointId) { + this.currentTimepointId = timepointId; + } + + /** + * Set the comparison timepoint that overrides the default comparison timepoint (called based on user selection in a viewport) + * @param timepoint + */ + setUserComparison(timepoint) { + this.userComparison = timepoint; + } + + /** + * Return only the comparison timepoint + * @param {String} [comparisonTimepointKey] + * @return {*} + */ + comparison(comparisonTimepointKey = this.comparisonTimepointKey) { + // Return the comparison timepoint set by user if exists + if (this.userComparison) { + return this.userComparison; + } + + const current = this.current(); + if (!current) { + return; + } + + // If current timepoint is prebaseline, the first (closest future) BL after current is comparison regardless of default comparison timepoint + if (current.timepointType === 'prebaseline') { + const nextBaselineAfterCurrent = this.nextBaselineAfterCurrent(); + // If there is a next baseline, make it comparison, otherwise comparison is done by default comparison timepoint + if (nextBaselineAfterCurrent) { + return nextBaselineAfterCurrent; + } + } + + // If current timepoint is baseline, the prior is comparison if exists regardless of default comparison timepoint + if (current.timepointType === 'baseline') { + const prior = this.prior(); + if (prior) { + return prior; + } + } + + const comparison = this[comparisonTimepointKey](); + + // Do not return a comparison if it would be identical to + // the current. + if (comparison && comparison.timepointId === current.timepointId) { + return; + } + + return comparison; + } + + /** + * Return the latest initial (prebaseline or baseline) timepoint after current and before the next followup timepoint + * @returns {*} + */ + latestInitialTimepointAfterCurrent() { + let currentTimepoint = this.current(); + + // Skip if the current timepoint is FU since there is no initial timepoint after follow-up + if (currentTimepoint.timepointType === 'followup') { + return; + } + + // Get all next timepoints newer than the current timepoint sorted by visitDate ascending + const sortedTimepoints = this.timepoints.sort((tp1, tp2) => { + return tp1.visitDate > tp2.visitDate ? 1 : -1; + }); + const allNextTimepoints = sortedTimepoints.filter( + tp => tp.visitDate > currentTimepoint.visitDate + ); + + const nextFollowupIndex = allNextTimepoints.findIndex( + tp => tp.timepointType === 'followup' + ); + const latestInitialBeforeNextFUIndex = nextFollowupIndex - 1; + + if (latestInitialBeforeNextFUIndex < 0) { + // There is no FU and all next timepoints are initial, so return the last one + return allNextTimepoints[allNextTimepoints.length - 1]; + } + + // Return the latest initial timepoint before the next FU + return allNextTimepoints[latestInitialBeforeNextFUIndex]; + } + + /** + * Return timepoint ids of initial timepoints which are prebaseline and baseline + * @returns {*} + */ + initialTimepointIds() { + let timepointToCheck = this.current(); + + // If the current timepoint is PBL or BL, then get the recent PBL/BL of the current timepoint by its first FU + // If it does not exist, then there is no newer initial timepoint, so the current timepoint is used to determine initial timepoint ids + if ( + timepointToCheck.timepointType === 'prebaseline' || + timepointToCheck.timepointType === 'baseline' + ) { + timepointToCheck = + this.latestInitialTimepointAfterCurrent() || timepointToCheck; + } + + const visitDateToCheck = timepointToCheck.visitDate; + + const preBaselineTimepoints = + this.timepoints.filter( + tp => + tp.timepointType === 'prebaseline' && tp.visitDate <= visitDateToCheck + ) || []; + const preBaselineTimepointIds = preBaselineTimepoints.map( + timepoint => timepoint.timepointId + ); + + const baselineTimepoints = + this.timepoints.filter( + tp => + tp.timepointType === 'baseline' && tp.visitDate <= visitDateToCheck + ) || []; + const baselineTimepointIds = baselineTimepoints.map( + timepoint => timepoint.timepointId + ); + + return preBaselineTimepointIds.concat(baselineTimepointIds); + } + + // Return only the baseline timepoint + baseline() { + const currentVisitDate = this.current().visitDate; + return this.all().find( + tp => tp.timepointType === 'baseline' && tp.visitDate <= currentVisitDate + ); + } + + /** + * Return only the nadir timepoint. Must be prior to the current timepoint + * @return {any} + */ + nadir() { + const current = this.current(); + const nadir = this.all().find( + tp => + tp.timepointId !== current.timepointId && + tp.timepointKey === 'nadir' && + tp.visitDate <= current.visitDate + ); + + // If we have found a nadir, return that + if (nadir) { + return nadir; + } + + // Otherwise, return the most recent baseline + // This should only happen if we are only at FU1, + // so the baseline is the nadir. + return this.baseline(); + } + + // Return only the key timepoints (current, prior, nadir and baseline) + key() { + const result = [this.current()]; + const prior = this.prior(); + const nadir = this.nadir(); + const baseline = this.baseline(); + + const resultIncludes = timepoint => + !!result.find(x => x.timepointId === timepoint.timepointId); + + if (prior && resultIncludes(prior) === false) { + result.push(prior); + } + + if (nadir && resultIncludes(nadir) === false) { + result.push(nadir); + } + + if (baseline && resultIncludes(baseline) === false) { + result.push(baseline); + } + + return result; + } + + // Return only the timepoints for the given study + study(studyInstanceUid) { + return this.all().filter(timepoint => + timepoint.studyInstanceUids.includes(studyInstanceUid) + ); + } + + // Return the timepoint's name + name(timepoint) { + const timepointTypeName = TIMEPOINT_TYPE_NAMES[timepoint.timepointType]; + + // Check if this is a Baseline timepoint, if it is, return 'Baseline' + if (timepoint.timepointType === 'baseline') { + return 'Baseline'; + } else if (timepoint.visitNumber) { + return `${timepointTypeName} ${timepoint.visitNumber}`; + } + + const visitNumber = this.calculateVisitNumber(timepoint); + + // Return the timepoint name as 'Follow-up N' + return `${timepointTypeName} ${visitNumber}`; + } + + // Build the timepoint title based on its date + title(timepoint) { + const timepointName = this.name(timepoint); + + const all = this.all(); + let index = -1; + let currentIndex = null; + for (let i = 0; i < all.length; i++) { + const currentTimepoint = all[i]; + + // Skip the iterations until we can't find the selected timepoint on study list + if (this.currentTimepointId === currentTimepoint.timepointId) { + currentIndex = 0; + } + + if (currentIndex !== null) { + index = currentIndex++; + } + + // Break the loop if reached the timepoint to get the title + if (currentTimepoint.timepointId === timepoint.timepointId) { + break; + } + } + + const states = { + 0: ['Current'], + 1: ['Prior'], + }; + const parenthesis = states[index] || []; + const nadir = this.nadir(); + + if (nadir && nadir.timepointId === timepoint.timepointId) { + parenthesis.push('Nadir'); + } + + let parenthesisText = ''; + if (parenthesis.length) { + parenthesisText = `(${parenthesis.join(', ')})`; + } + + return `${timepointName} ${parenthesisText}`; + } +} diff --git a/packages/_core/src/measurements/classes/index.js b/packages/_core/src/measurements/classes/index.js new file mode 100644 index 000000000..4cd734312 --- /dev/null +++ b/packages/_core/src/measurements/classes/index.js @@ -0,0 +1,4 @@ +import MeasurementApi from './MeasurementApi'; +import TimepointApi from './TimepointApi'; + +export { TimepointApi, MeasurementApi }; diff --git a/packages/_core/src/measurements/configuration.js b/packages/_core/src/measurements/configuration.js new file mode 100644 index 000000000..e82925868 --- /dev/null +++ b/packages/_core/src/measurements/configuration.js @@ -0,0 +1,41 @@ +import { TimepointApi, MeasurementApi } from './classes'; +import { allTools } from './toolGroups/allTools'; +import { + retrieveMeasurements, + storeMeasurements, + retrieveTimepoints, + storeTimepoints, + removeTimepoint, + updateTimepoint, + disassociateStudy, +} from './dataExchange'; + +MeasurementApi.setConfiguration({ + measurementTools: [allTools], + newLesions: [ + { + id: 'newTargets', + name: 'New Targets', + toolGroupId: 'targets', + }, + { + id: 'newNonTargets', + name: 'New Non-Targets', + toolGroupId: 'nonTargets', + }, + ], + dataExchange: { + retrieve: retrieveMeasurements, + store: storeMeasurements, + }, +}); + +TimepointApi.setConfiguration({ + dataExchange: { + retrieve: retrieveTimepoints, + store: storeTimepoints, + remove: removeTimepoint, + update: updateTimepoint, + disassociate: disassociateStudy, + }, +}); diff --git a/packages/_core/src/measurements/conformance/ConformanceCriteria.js b/packages/_core/src/measurements/conformance/ConformanceCriteria.js new file mode 100644 index 000000000..b30532659 --- /dev/null +++ b/packages/_core/src/measurements/conformance/ConformanceCriteria.js @@ -0,0 +1,229 @@ +import { CriteriaEvaluator } from './CriteriaEvaluator'; +import * as initialEvaluations from './evaluations'; +import log from '../../log'; + +const evaluations = Object.assign({}, initialEvaluations); + +const BASELINE = 'baseline'; +const FOLLOWUP = 'followup'; +const BOTH = 'both'; +const TARGETS = 'targets'; +const NONTARGETS = 'nonTargets'; + +class ConformanceCriteria { + constructor(measurementApi, timepointApi, options = {}) { + this.measurementApi = measurementApi; + this.timepointApi = timepointApi; + this.nonconformities = []; + this.groupedNonConformities = []; + this.maxTargets = null; + this.maxNewTargets = null; + this.options = options; + } + + loadStudy(studyInstanceUid) { + if (typeof this.options.loadStudy !== 'function') { + throw new Error('loadStudy callback is not defined'); + } + + return this.options.loadStudy(null, studyInstanceUid); + } + + async validate(trialCriteriaType) { + const baselinePromise = this.getData(BASELINE); + const followupPromise = this.getData(FOLLOWUP); + const [baselineData, followupData] = await Promise.all([ + baselinePromise, + followupPromise, + ]); + const mergedData = { + targets: [], + nonTargets: [], + }; + + mergedData.targets = mergedData.targets.concat(baselineData.targets); + mergedData.targets = mergedData.targets.concat(followupData.targets); + mergedData.nonTargets = mergedData.nonTargets.concat( + baselineData.nonTargets + ); + mergedData.nonTargets = mergedData.nonTargets.concat( + followupData.nonTargets + ); + + this.maxTargets = null; + this.maxNewTargets = null; + const resultBoth = this.validateTimepoint( + BOTH, + trialCriteriaType, + mergedData + ); + const resultBaseline = this.validateTimepoint( + BASELINE, + trialCriteriaType, + baselineData + ); + const resultFollowup = this.validateTimepoint( + FOLLOWUP, + trialCriteriaType, + followupData + ); + const nonconformities = resultBaseline + .concat(resultFollowup) + .concat(resultBoth); + const groupedNonConformities = this.groupNonConformities(nonconformities); + + // Keep both? Group the data only on viewer/measurementTable views? + // Work with not grouped data (worse lookup performance on measurementTableRow)? + this.nonconformities = nonconformities; + this.groupedNonConformities = groupedNonConformities; + + console.warn('nonconformities'); + console.warn(nonconformities); + console.warn('groupedNonConformities'); + console.warn(groupedNonConformities); + + return nonconformities; + } + + groupNonConformities(nonconformities) { + const groups = {}; + const toolsGroupsMap = this.measurementApi.toolsGroupsMap; + + nonconformities.forEach(nonConformity => { + if (nonConformity.isGlobal) { + groups.globals = groups.globals || { messages: [] }; + groups.globals.messages.push(nonConformity.message); + + return; + } + + nonConformity.measurements.forEach(measurement => { + const groupName = toolsGroupsMap[measurement.toolType]; + groups[groupName] = groups[groupName] || { measurementNumbers: {} }; + + const group = groups[groupName]; + const measureNumber = measurement.measurementNumber; + let measurementNumbers = group.measurementNumbers[measureNumber]; + + if (!measurementNumbers) { + measurementNumbers = group.measurementNumbers[measureNumber] = { + messages: [], + measurements: [], + }; + } + + measurementNumbers.messages.push(nonConformity.message); + measurementNumbers.measurements.push(measurement); + }); + }); + + return groups; + } + + validateTimepoint(timepointType, trialCriteriaType, data) { + const evaluators = this.getEvaluators(timepointType, trialCriteriaType); + let nonconformities = []; + + evaluators.forEach(evaluator => { + const maxTargets = evaluator.getMaxTargets(false); + const maxNewTargets = evaluator.getMaxTargets(true); + if (maxTargets) { + this.maxTargets = maxTargets; + } + + if (maxNewTargets) { + this.maxNewTargets = maxNewTargets; + } + + const result = evaluator.evaluate(data); + + if (result.length > 0) { + result.forEach(resultItem => { + resultItem.timepointType = timepointType; + }); + } + + nonconformities = nonconformities.concat(result); + }); + + return nonconformities; + } + + getEvaluators(timepointType, trialCriteriaType) { + const evaluators = []; + console.warn(evaluations); + const trialCriteriaTypeId = trialCriteriaType.id.toLowerCase(); + const evaluation = evaluations[trialCriteriaTypeId]; + + if (evaluation) { + const evaluationTimepoint = evaluation[timepointType]; + + if (evaluationTimepoint) { + evaluators.push(new CriteriaEvaluator(evaluationTimepoint)); + } + } + + return evaluators; + } + + /* + * Build the data that will be used to do the conformance criteria checks + */ + async getData(timepointType) { + const data = { + targets: [], + nonTargets: [], + }; + + const studyPromises = []; + + const fillData = measurementType => { + const measurements = this.measurementApi.fetch(measurementType); + + measurements.forEach(measurement => { + const { studyInstanceUid } = measurement; + + const timepointId = measurement.timepointId; + const timepoint = + timepointId && + this.timepointApi.timepoints.find(a => a.timepointId === timepointId); + + if ( + !timepoint || + (timepointType !== BOTH && timepoint.timepointType !== timepointType) + ) { + return; + } + + const promise = this.loadStudy(studyInstanceUid); + promise.then( + studyMetadata => { + data[measurementType].push({ + measurement, + metadata: studyMetadata.getFirstInstance(), + timepoint, + }); + }, + error => { + throw new Error(error); + } + ); + studyPromises.push(promise); + }); + }; + + fillData(TARGETS); + fillData(NONTARGETS); + + await Promise.all(studyPromises); + + return data; + } + + static setEvaluationDefinitions(evaluationKey, evaluationDefinitions) { + evaluations[evaluationKey] = evaluationDefinitions; + } +} + +export default ConformanceCriteria; +//OHIF.measurements.ConformanceCriteria = ConformanceCriteria; diff --git a/packages/_core/src/measurements/conformance/CriteriaEvaluator.js b/packages/_core/src/measurements/conformance/CriteriaEvaluator.js new file mode 100644 index 000000000..bddfb76b6 --- /dev/null +++ b/packages/_core/src/measurements/conformance/CriteriaEvaluator.js @@ -0,0 +1,94 @@ +import { BaseCriterion } from './criteria/BaseCriterion'; +import * as initialCriteria from './criteria'; +import Ajv from 'ajv'; + +const Criteria = Object.assign({}, initialCriteria); + +export class CriteriaEvaluator { + constructor(criteriaObject) { + const criteriaValidator = this.getCriteriaValidator(); + this.criteria = []; + + if (!criteriaValidator(criteriaObject)) { + let message = ''; + criteriaValidator.errors.forEach(error => { + message += `\noptions${error.dataPath} ${error.message}`; + }); + throw new Error(message); + } + + Object.keys(criteriaObject).forEach(criterionkey => { + const optionsObject = criteriaObject[criterionkey]; + const Criterion = Criteria[`${criterionkey}Criterion`]; + const optionsArray = + optionsObject instanceof Array ? optionsObject : [optionsObject]; + optionsArray.forEach(options => + this.criteria.push(new Criterion(options, criterionkey)) + ); + }); + } + + getMaxTargets(newTarget = false) { + let result = 0; + this.criteria.forEach(criterion => { + const newTargetMatch = newTarget === !!criterion.options.newTarget; + if (criterion instanceof Criteria.MaxTargetsCriterion && newTargetMatch) { + const { limit } = criterion.options; + if (limit > result) { + result = limit; + } + } + }); + return result; + } + + getCriteriaValidator() { + if (CriteriaEvaluator.criteriaValidator) { + return CriteriaEvaluator.criteriaValidator; + } + + const schema = { + properties: {}, + definitions: {}, + }; + + Object.keys(Criteria).forEach(key => { + const Criterion = Criteria[key]; + if (Criterion.prototype instanceof BaseCriterion) { + const criterionkey = key.replace(/Criterion$/, ''); + const criterionDefinition = `#/definitions/${criterionkey}`; + + schema.definitions[criterionkey] = Criteria[`${criterionkey}Schema`]; + schema.properties[criterionkey] = { + oneOf: [ + { $ref: criterionDefinition }, + { + type: 'array', + items: { + $ref: criterionDefinition, + }, + }, + ], + }; + } + }); + + CriteriaEvaluator.criteriaValidator = new Ajv().compile(schema); + return CriteriaEvaluator.criteriaValidator; + } + + evaluate(data) { + const nonconformities = []; + this.criteria.forEach(criterion => { + const criterionResult = criterion.evaluate(data); + if (!criterionResult.passed) { + nonconformities.push(criterionResult); + } + }); + return nonconformities; + } + + static setCriterion(criterionKey, criterionDefinitions) { + Criteria[criterionKey] = criterionDefinitions; + } +} diff --git a/packages/_core/src/measurements/conformance/criteria/BaseCriterion.js b/packages/_core/src/measurements/conformance/criteria/BaseCriterion.js new file mode 100644 index 000000000..0b88eca7f --- /dev/null +++ b/packages/_core/src/measurements/conformance/criteria/BaseCriterion.js @@ -0,0 +1,44 @@ +export class BaseCriterion { + constructor(options, criterionName) { + this.options = options; + this.criterionName = criterionName; + } + + generateResponse(message, measurements) { + const passed = !message; + const isGlobal = !measurements || !measurements.length; + + return { + passed, + isGlobal, + message, + measurements, + criterionName: this.criterionName, + }; + } + + getNewTargetNumbers(data) { + const { options } = this; + const baselineMeasurementNumbers = []; + const newTargetNumbers = new Set(); + + if (options.newTarget) { + data.targets.forEach(target => { + const { measurementNumber } = target.measurement; + if (target.timepoint.timepointType === 'baseline') { + baselineMeasurementNumbers.push(measurementNumber); + } + }); + data.targets.forEach(target => { + const { measurementNumber } = target.measurement; + if (target.timepoint.timepointType === 'followup') { + if (!baselineMeasurementNumbers.includes(measurementNumber)) { + newTargetNumbers.add(measurementNumber); + } + } + }); + } + + return newTargetNumbers; + } +} diff --git a/packages/_core/src/measurements/conformance/criteria/Location.js b/packages/_core/src/measurements/conformance/criteria/Location.js new file mode 100644 index 000000000..208026c78 --- /dev/null +++ b/packages/_core/src/measurements/conformance/criteria/Location.js @@ -0,0 +1,34 @@ +import { BaseCriterion } from './BaseCriterion'; + +export const LocationSchema = { + type: 'object', +}; + +/* LocationCriterion + * Check if the there are non-target measurements with response different than "present" on baseline + */ +export class LocationCriterion extends BaseCriterion { + constructor(...props) { + super(...props); + } + + evaluate(data) { + const items = data.targets.concat(data.nonTargets); + const measurements = []; + let message; + + items.forEach(item => { + const measurement = item.measurement; + + if (!measurement.location) { + measurements.push(measurement); + } + }); + + if (measurements.length) { + message = 'All measurements should have a location'; + } + + return this.generateResponse(message, measurements); + } +} diff --git a/packages/_core/src/measurements/conformance/criteria/MaxTargets.js b/packages/_core/src/measurements/conformance/criteria/MaxTargets.js new file mode 100644 index 000000000..cbf3a985f --- /dev/null +++ b/packages/_core/src/measurements/conformance/criteria/MaxTargets.js @@ -0,0 +1,81 @@ +import { BaseCriterion } from './BaseCriterion'; + +export const MaxTargetsSchema = { + type: 'object', + properties: { + limit: { + label: 'Max targets allowed in study', + type: 'integer', + minimum: 0, + }, + newTarget: { + label: 'Flag to evaluate only new targets', + type: 'boolean', + }, + locationIn: { + label: + 'Filter to evaluate only measurements with the specified locations', + type: 'array', + items: { + type: 'string', + }, + minItems: 1, + uniqueItems: true, + }, + locationNotIn: { + label: + 'Filter to evaluate only measurements without the specified locations', + type: 'array', + items: { + type: 'string', + }, + minItems: 1, + uniqueItems: true, + }, + }, + required: ['limit'], +}; + +/* MaxTargetsCriterion + * Check if the number of target measurements exceeded the limit allowed + * Options: + * limit: Max targets allowed in study + * newTarget: Flag to evaluate only new targets (must be evaluated on both) + * locationIn: Filter to evaluate only measurements with the specified locations + * locationNotIn: Filter to evaluate only measurements without the specified locations + * message: Message to be displayed in case of nonconformity + */ +export class MaxTargetsCriterion extends BaseCriterion { + constructor(...props) { + super(...props); + } + + evaluate(data) { + const { options } = this; + + const newTargetNumbers = this.getNewTargetNumbers(data); + const measurementNumbers = []; + data.targets.forEach(target => { + const { location, measurementNumber, isSplitLesion } = target.measurement; + if (isSplitLesion) return; + if (options.newTarget && !newTargetNumbers.has(measurementNumber)) return; + if (options.locationIn && options.locationIn.indexOf(location) === -1) + return; + if (options.locationNotIn && options.locationNotIn.indexOf(location) > -1) + return; + measurementNumbers.push(measurementNumber); + }); + + let message; + if (measurementNumbers.length > options.limit) { + const increment = options.newTarget ? 'new ' : ''; + const plural = options.limit === 1 ? '' : 's'; + const amount = options.limit === 0 ? '' : `more than ${options.limit}`; + message = + options.message || + `The study should not have ${amount} ${increment}target${plural}.`; + } + + return this.generateResponse(message); + } +} diff --git a/packages/_core/src/measurements/conformance/criteria/MaxTargetsPerOrgan.js b/packages/_core/src/measurements/conformance/criteria/MaxTargetsPerOrgan.js new file mode 100644 index 000000000..15867749c --- /dev/null +++ b/packages/_core/src/measurements/conformance/criteria/MaxTargetsPerOrgan.js @@ -0,0 +1,68 @@ +import { BaseCriterion } from './BaseCriterion'; + +export const MaxTargetsPerOrganSchema = { + type: 'object', + properties: { + limit: { + label: 'Max targets allowed per organ', + type: 'integer', + minimum: 1, + }, + newTarget: { + label: 'Flag to evaluate only new targets', + type: 'boolean', + }, + }, + required: ['limit'], +}; + +/* + * MaxTargetsPerOrganCriterion + * Check if the number of target measurements per organ exceeded the limit allowed + * Options: + * limit: Max targets allowed in study + * newTarget: Flag to evaluate only new targets (must be evaluated on both) + */ +export class MaxTargetsPerOrganCriterion extends BaseCriterion { + constructor(...props) { + super(...props); + } + + evaluate(data) { + const { options } = this; + const targetsPerOrgan = {}; + let measurements = []; + + const newTargetNumbers = this.getNewTargetNumbers(data); + data.targets.forEach(target => { + const { measurement } = target; + const { location, measurementNumber, isSplitLesion } = measurement; + + if (isSplitLesion) return; + + if (!targetsPerOrgan[location]) { + targetsPerOrgan[location] = new Set(); + } + + if (!options.newTarget || newTargetNumbers.has(measurementNumber)) { + targetsPerOrgan[location].add(measurementNumber); + } + + if (targetsPerOrgan[location].size > options.limit) { + measurements.push(measurement); + } + }); + + let message; + if (measurements.length) { + const increment = options.newTarget ? 'new ' : ''; + message = + options.message || + `Each organ should not have more than ${ + options.limit + } ${increment}targets.`; + } + + return this.generateResponse(message, measurements); + } +} diff --git a/packages/_core/src/measurements/conformance/criteria/MeasurementsLength.js b/packages/_core/src/measurements/conformance/criteria/MeasurementsLength.js new file mode 100644 index 000000000..a0d79ffba --- /dev/null +++ b/packages/_core/src/measurements/conformance/criteria/MeasurementsLength.js @@ -0,0 +1,154 @@ +import { BaseCriterion } from './BaseCriterion'; + +export const MeasurementsLengthSchema = { + type: 'object', + properties: { + longAxis: { + label: 'Minimum length of long axis', + type: 'number', + minimum: 0, + }, + shortAxis: { + label: 'Minimum length of short axis', + type: 'number', + minimum: 0, + }, + longAxisSliceThicknessMultiplier: { + label: 'Length of long axis multiplier', + type: 'number', + minimum: 0, + }, + shortAxisSliceThicknessMultiplier: { + label: 'Length of short axis multiplier', + type: 'number', + minimum: 0, + }, + modalityIn: { + label: + 'Filter to evaluate only measurements with the specified modalities', + type: 'array', + items: { + type: 'string', + }, + minItems: 1, + uniqueItems: true, + }, + modalityNotIn: { + label: + 'Filter to evaluate only measurements without the specified modalities', + type: 'array', + items: { + type: 'string', + }, + minItems: 1, + uniqueItems: true, + }, + locationIn: { + label: + 'Filter to evaluate only measurements with the specified locations', + type: 'array', + items: { + type: 'string', + }, + minItems: 1, + uniqueItems: true, + }, + locationNotIn: { + label: + 'Filter to evaluate only measurements without the specified locations', + type: 'array', + items: { + type: 'string', + }, + minItems: 1, + uniqueItems: true, + }, + message: { + label: 'Message to be displayed in case of nonconformity', + type: 'string', + }, + }, + anyOf: [ + { required: ['message', 'longAxis'] }, + { required: ['message', 'shortAxis'] }, + { required: ['message', 'longAxisSliceThicknessMultiplier'] }, + { required: ['message', 'shortAxisSliceThicknessMultiplier'] }, + ], +}; + +/* + * MeasurementsLengthCriterion + * Check the measurements of all bidirectional tools based on + * short axis, long axis, modalities, location and slice thickness + * Options: + * longAxis: Minimum length of long axis + * shortAxis: Minimum length of short axis + * longAxisSliceThicknessMultiplier: Length of long axis multiplier + * shortAxisSliceThicknessMultiplier: Length of short axis multiplier + * modalityIn: Filter to evaluate only measurements with the specified modalities + * modalityNotIn: Filter to evaluate only measurements without the specified modalities + * locationIn: Filter to evaluate only measurements with the specified locations + * locationNotIn: Filter to evaluate only measurements without the specified locations + * message: Message to be displayed in case of nonconformity + */ +export class MeasurementsLengthCriterion extends BaseCriterion { + constructor(...props) { + super(...props); + } + + evaluate(data) { + let message; + let measurements = []; + const { options } = this; + const longMultiplier = options.longAxisSliceThicknessMultiplier; + const shortMultiplier = options.shortAxisSliceThicknessMultiplier; + + data.targets.forEach(item => { + const { metadata, measurement } = item; + const { location } = measurement; + + let { longestDiameter, shortestDiameter } = measurement; + if (measurement.childToolsCount) { + const child = measurement.bidirectional; + longestDiameter = (child && child.longestDiameter) || 0; + shortestDiameter = (child && child.shortestDiameter) || 0; + } + + const { sliceThickness } = metadata; + const modality = (metadata.getRawValue('x00080060') || '').toUpperCase(); + + // Stop here if the measurement does not match the modality and location filters + if (options.locationIn && options.locationIn.indexOf(location) === -1) + return; + if (options.modalityIn && options.modalityIn.indexOf(modality) === -1) + return; + if (options.locationNotIn && options.locationNotIn.indexOf(location) > -1) + return; + if (options.modalityNotIn && options.modalityNotIn.indexOf(modality) > -1) + return; + + // Check the measurement length + const failed = + (options.longAxis && longestDiameter < options.longAxis) || + (options.shortAxis && shortestDiameter < options.shortAxis) || + (longMultiplier && + !isNaN(sliceThickness) && + longestDiameter < longMultiplier * sliceThickness) || + (shortMultiplier && + !isNaN(sliceThickness) && + shortestDiameter < shortMultiplier * sliceThickness); + + // Mark this measurement as invalid if some of the checks have failed + if (failed) { + measurements.push(measurement); + } + }); + + // Use the options' message if some measurement is invalid + if (measurements.length) { + message = options.message; + } + + return this.generateResponse(message, measurements); + } +} diff --git a/packages/_core/src/measurements/conformance/criteria/Modality.js b/packages/_core/src/measurements/conformance/criteria/Modality.js new file mode 100644 index 000000000..64bf480d7 --- /dev/null +++ b/packages/_core/src/measurements/conformance/criteria/Modality.js @@ -0,0 +1,84 @@ +import { BaseCriterion } from './BaseCriterion'; + +export const ModalitySchema = { + type: 'object', + properties: { + method: { + label: 'Specify if it\'s goinig to "allow" or "deny" the modalities', + type: 'string', + enum: ['allow', 'deny'], + }, + measurementTypes: { + label: 'List of measurement types that will be evaluated', + type: 'array', + items: { + type: 'string', + }, + minItems: 1, + uniqueItems: true, + }, + modalities: { + label: 'List of allowed/denied modalities', + type: 'array', + items: { + type: 'string', + }, + minItems: 1, + uniqueItems: true, + }, + }, + required: ['method', 'modalities'], +}; + +/* + * ModalityCriteria + * Check if a modality is allowed or denied + * Options: + * method (string): Specify if it\'s goinig to "allow" or "deny" the modalities + * measurementTypes (string[]): List of measurement types that will be evaluated + * modalities (string[]): List of allowed/denied modalities + */ +export class ModalityCriterion extends BaseCriterion { + constructor(...props) { + super(...props); + } + + evaluate(data) { + const measurementTypes = this.options.measurementTypes || ['targets']; + const modalitiesSet = new Set(this.options.modalities); + const validationMethod = this.options.method; + const measurements = []; + const invalidModalities = new Set(); + let message; + + measurementTypes.forEach(measurementType => { + const items = data[measurementType]; + + items.forEach(item => { + const { measurement, metadata } = item; + const modality = ( + metadata.getRawValue('x00080060') || '' + ).toUpperCase(); + + if ( + (validationMethod === 'allow' && !modalitiesSet.has(modality)) || + (validationMethod === 'deny' && modalitiesSet.has(modality)) + ) { + measurements.push(measurement); + invalidModalities.add(modality); + } + }); + }); + + if (measurements.length) { + const uniqueModalities = Array.from(invalidModalities); + const uniqueModalitiesText = uniqueModalities.join(', '); + const modalityText = + uniqueModalities.length > 1 ? 'modalities' : 'modality'; + + message = `The ${modalityText} ${uniqueModalitiesText} should not be used as a method of measurement`; + } + + return this.generateResponse(message, measurements); + } +} diff --git a/packages/_core/src/measurements/conformance/criteria/NonTargetResponse.js b/packages/_core/src/measurements/conformance/criteria/NonTargetResponse.js new file mode 100644 index 000000000..f8b4f9665 --- /dev/null +++ b/packages/_core/src/measurements/conformance/criteria/NonTargetResponse.js @@ -0,0 +1,35 @@ +import { BaseCriterion } from './BaseCriterion'; + +export const NonTargetResponseSchema = { + type: 'object', +}; + +/* NonTargetResponseCriterion + * Check if the there are non-target measurements with response different than "present" on baseline + */ +export class NonTargetResponseCriterion extends BaseCriterion { + constructor(...props) { + super(...props); + } + + evaluate(data) { + const items = data.nonTargets; + const measurements = []; + let message; + + items.forEach(item => { + const measurement = item.measurement; + const response = (measurement.response || '').toLowerCase(); + + if (response !== 'present') { + measurements.push(measurement); + } + }); + + if (measurements.length) { + message = 'Non-targets can only be assessed as "present"'; + } + + return this.generateResponse(message, measurements); + } +} diff --git a/packages/_core/src/measurements/conformance/criteria/TargetType.js b/packages/_core/src/measurements/conformance/criteria/TargetType.js new file mode 100644 index 000000000..b40f63962 --- /dev/null +++ b/packages/_core/src/measurements/conformance/criteria/TargetType.js @@ -0,0 +1,38 @@ +import { BaseCriterion } from './BaseCriterion'; + +export const TargetTypeSchema = { + type: 'object', +}; + +/* TargetTypeCriterion + * Check if the there are non-bidirectional target measurements on baseline + */ +export class TargetTypeCriterion extends BaseCriterion { + constructor(...props) { + super(...props); + } + + evaluate(data) { + const items = data.targets; + const measurements = []; + let message; + + items.forEach(item => { + const measurement = item.measurement; + + if ( + measurement.toolType !== 'Bidirectional' && + !measurement.bidirectional + ) { + measurements.push(measurement); + } + }); + + if (measurements.length) { + message = + 'Target lesions must have measurements (cannot be assessed as CR, UN/NE, EX)'; + } + + return this.generateResponse(message, measurements); + } +} diff --git a/packages/_core/src/measurements/conformance/criteria/index.js b/packages/_core/src/measurements/conformance/criteria/index.js new file mode 100644 index 000000000..5501e2c7a --- /dev/null +++ b/packages/_core/src/measurements/conformance/criteria/index.js @@ -0,0 +1,7 @@ +export * from './Location'; +export * from './MaxTargetsPerOrgan'; +export * from './MaxTargets'; +export * from './MeasurementsLength'; +export * from './Modality'; +export * from './NonTargetResponse'; +export * from './TargetType'; diff --git a/packages/_core/src/measurements/conformance/evaluations/index.js b/packages/_core/src/measurements/conformance/evaluations/index.js new file mode 100644 index 000000000..ffb8fbb72 --- /dev/null +++ b/packages/_core/src/measurements/conformance/evaluations/index.js @@ -0,0 +1,3 @@ +import * as recistEvaluation from './recist.json'; + +export const recist11 = recistEvaluation; diff --git a/packages/_core/src/measurements/conformance/evaluations/recist.json b/packages/_core/src/measurements/conformance/evaluations/recist.json new file mode 100644 index 000000000..fe93839d6 --- /dev/null +++ b/packages/_core/src/measurements/conformance/evaluations/recist.json @@ -0,0 +1,38 @@ +{ + "both": { + "Location": {} + }, + "baseline": { + "TargetType": {}, + "MaxTargetsPerOrgan": { + "limit": 2 + }, + "MaxTargets": { + "limit": 5 + }, + "MeasurementsLength": [ + { + "longAxis": 10, + "longAxisSliceThicknessMultiplier": 2, + "modalityIn": ["CT", "MR"], + "locationNotIn": ["Lymph Node"], + "message": "Extranodal lesions must be >= 10mm long axis AND >= double the acquisition slice thickness by CT and MR" + }, + { + "shortAxis": 20, + "longAxis": 20, + "modalityIn": ["PX", "XA"], + "locationNotIn": ["Lymph Node"], + "message": "Extranodal lesions must be >= 20mm on chest x-ray (although x-rays rarely used for clinical trial assessment)" + }, + { + "shortAxis": 15, + "shortAxisSliceThicknessMultiplier": 2, + "modalityIn": ["CT", "MR"], + "locationIn": ["Lymph Node"], + "message": "Nodal lesions must be >= 15mm short axis AND >= double the acquisition slice thickness by CT and MR" + } + ] + }, + "followup": {} +} diff --git a/packages/_core/src/measurements/conformance/index.js b/packages/_core/src/measurements/conformance/index.js new file mode 100644 index 000000000..901d433e7 --- /dev/null +++ b/packages/_core/src/measurements/conformance/index.js @@ -0,0 +1,3 @@ +import ConformanceCriteria from './ConformanceCriteria'; + +export { ConformanceCriteria }; diff --git a/packages/_core/src/measurements/dataExchange.js b/packages/_core/src/measurements/dataExchange.js new file mode 100644 index 000000000..0af694d4d --- /dev/null +++ b/packages/_core/src/measurements/dataExchange.js @@ -0,0 +1,36 @@ +import log from '../log'; + +export const retrieveMeasurements = (patientId, timepointIds) => { + log.error('retrieveMeasurements'); + return Promise.resolve(); +}; + +export const storeMeasurements = (measurementData, timepointIds) => { + log.error('storeMeasurements'); + return Promise.resolve(); +}; + +export const retrieveTimepoints = filter => { + log.error('retrieveTimepoints'); + return Promise.resolve(); +}; + +export const storeTimepoints = timepointData => { + log.error('storeTimepoints'); + return Promise.resolve(); +}; + +export const updateTimepoint = (timepointData, query) => { + log.error('updateTimepoint'); + return Promise.resolve(); +}; + +export const removeTimepoint = timepointId => { + log.error('removeTimepoint'); + return Promise.resolve(); +}; + +export const disassociateStudy = (timepointIds, studyInstanceUid) => { + log.error('disassociateStudy'); + return Promise.resolve(); +}; diff --git a/packages/_core/src/measurements/index.js b/packages/_core/src/measurements/index.js new file mode 100644 index 000000000..0b84a1385 --- /dev/null +++ b/packages/_core/src/measurements/index.js @@ -0,0 +1,28 @@ +import './configuration'; + +import * as tools from './tools'; + +import { MeasurementApi, TimepointApi } from './classes'; + +import { ConformanceCriteria } from './conformance'; +import MeasurementHandlers from './measurementHandlers'; +import getDescription from './lib/getDescription'; +import getImageAttributes from './lib/getImageAttributes'; +import getImageIdForImagePath from './lib/getImageIdForImagePath'; +import getLabel from './lib/getLabel'; +import ltTools from './ltTools'; + +const measurements = { + TimepointApi, + MeasurementApi, + ConformanceCriteria, + MeasurementHandlers, + ltTools, + tools, + getLabel, + getDescription, + getImageAttributes, + getImageIdForImagePath, +}; + +export default measurements; diff --git a/packages/_core/src/measurements/lib/getDescription.js b/packages/_core/src/measurements/lib/getDescription.js new file mode 100644 index 000000000..e6e83018c --- /dev/null +++ b/packages/_core/src/measurements/lib/getDescription.js @@ -0,0 +1,3 @@ +export default function(measurement) { + return measurement.description; +} diff --git a/packages/_core/src/measurements/lib/getImageAttributes.js b/packages/_core/src/measurements/lib/getImageAttributes.js new file mode 100644 index 000000000..caa804e4d --- /dev/null +++ b/packages/_core/src/measurements/lib/getImageAttributes.js @@ -0,0 +1,37 @@ +import cornerstone from 'cornerstone-core'; + +export default function(element) { + // Get the Cornerstone imageId + const enabledElement = cornerstone.getEnabledElement(element); + const imageId = enabledElement.image.imageId; + + // Get studyInstanceUid & patientId + const study = cornerstone.metaData.get('study', imageId); + const studyInstanceUid = study.studyInstanceUid; + const patientId = study.patientId; + + // Get seriesInstanceUid + const series = cornerstone.metaData.get('series', imageId); + const seriesInstanceUid = series.seriesInstanceUid; + + // Get sopInstanceUid + const sopInstance = cornerstone.metaData.get('instance', imageId); + const sopInstanceUid = sopInstance.sopInstanceUid; + const frameIndex = sopInstance.frame || 0; + + const imagePath = [ + studyInstanceUid, + seriesInstanceUid, + sopInstanceUid, + frameIndex, + ].join('_'); + + return { + patientId, + studyInstanceUid, + seriesInstanceUid, + sopInstanceUid, + frameIndex, + imagePath, + }; +} diff --git a/packages/_core/src/measurements/lib/getImageIdForImagePath.js b/packages/_core/src/measurements/lib/getImageIdForImagePath.js new file mode 100644 index 000000000..943e0c72a --- /dev/null +++ b/packages/_core/src/measurements/lib/getImageIdForImagePath.js @@ -0,0 +1,14 @@ +import studyMetadataManager from '../../utils/studyMetadataManager'; + +export default function(imagePath, thumbnail = false) { + const [ + studyInstanceUid, + seriesInstanceUid, + sopInstanceUid, + frameIndex, + ] = imagePath.split('_'); + const studyMetadata = studyMetadataManager.get(studyInstanceUid); + const series = studyMetadata.getSeriesByUID(seriesInstanceUid); + const instance = series.getInstanceByUID(sopInstanceUid); + return instance.getImageId(frameIndex, thumbnail); +} diff --git a/packages/_core/src/measurements/lib/getLabel.js b/packages/_core/src/measurements/lib/getLabel.js new file mode 100644 index 000000000..cfb10363f --- /dev/null +++ b/packages/_core/src/measurements/lib/getLabel.js @@ -0,0 +1,15 @@ +export default function(measurement) { + if (!measurement) { + return; + } + + switch (measurement.toolType) { + case 'Bidirectional': + case 'TargetCR': + case 'TargetNE': + case 'TargetUN': + return `Target ${measurement.lesionNamingNumber}`; + case 'NonTarget': + return `Non-Target ${measurement.lesionNamingNumber}`; + } +} diff --git a/packages/_core/src/measurements/ltTools.js b/packages/_core/src/measurements/ltTools.js new file mode 100644 index 000000000..c99bced63 --- /dev/null +++ b/packages/_core/src/measurements/ltTools.js @@ -0,0 +1,14 @@ +import { targets } from './toolGroups/targets'; +import { nonTargets } from './toolGroups/nonTargets'; +import { temp } from './toolGroups/temp'; +import cloneDeep from 'lodash.clonedeep'; + +const ltTools = cloneDeep([targets, nonTargets, temp]); + +ltTools.forEach(toolGroup => { + toolGroup.childTools.forEach(tool => { + tool.toolGroup = toolGroup.id; + }); +}); + +export default ltTools; diff --git a/packages/_core/src/measurements/measurementHandlers/handleChildMeasurementAdded.js b/packages/_core/src/measurements/measurementHandlers/handleChildMeasurementAdded.js new file mode 100644 index 000000000..bdb7d5d48 --- /dev/null +++ b/packages/_core/src/measurements/measurementHandlers/handleChildMeasurementAdded.js @@ -0,0 +1,98 @@ +import cornerstone from 'cornerstone-core'; +import { MeasurementApi } from '../classes'; +import log from '../../log'; +import user from '../../user'; +import getImageAttributes from '../lib/getImageAttributes'; +import getLabel from '../lib/getLabel'; + +export default function({ eventData, tool, toolGroupId, toolGroup }) { + const measurementApi = MeasurementApi.Instance; + if (!measurementApi) { + log.warn('Measurement API is not initialized'); + } + + const { measurementData } = eventData; + + const collection = measurementApi.tools[tool.parentTool]; + + // Stop here if the tool data shall not be persisted (e.g. temp tools) + if (!collection) return; + + // Stop here if there's no measurement data or if it was cancelled + if (!measurementData || measurementData.cancelled) return; + + log.info('CornerstoneToolsMeasurementAdded'); + + const imageAttributes = getImageAttributes(eventData.element); + + const additionalProperties = Object.assign(imageAttributes, { + userId: user.getUserId(), + }); + + const childMeasurement = Object.assign( + {}, + measurementData, + additionalProperties + ); + + const parentMeasurement = collection.find( + t => + t.toolType === tool.parentTool && + t.patientId === imageAttributes.patientId && + t[tool.attribute] === null + ); + + // Check if a measurement to fit this child tool already exists + if (parentMeasurement) { + const key = tool.attribute; + + // Add the createdAt attribute + childMeasurement.createdAt = new Date(); + + // Update the parent measurement + parentMeasurement[key] = childMeasurement; + parentMeasurement.childToolsCount = + (parentMeasurement.childToolsCount || 0) + 1; + measurementApi.updateMeasurement(tool.parentTool, parentMeasurement); + + // Update the measurementData ID and lesionNamingNumber + measurementData._id = parentMeasurement._id; + measurementData.lesionNamingNumber = parentMeasurement.lesionNamingNumber; + } else { + const measurement = { + toolType: tool.parentTool, + lesionNamingNumber: measurementData.lesionNamingNumber, + userId: user.getUserId(), + patientId: imageAttributes.patientId, + studyInstanceUid: imageAttributes.studyInstanceUid, + }; + + measurement[tool.attribute] = Object.assign( + {}, + measurementData, + additionalProperties + ); + + const addedMeasurement = measurementApi.addMeasurement( + tool.parentTool, + measurement + ); + Object.assign(measurementData, addedMeasurement); + } + + const measurementLabel = getLabel(measurementData); + if (measurementLabel) { + measurementData.labels = [measurementLabel]; + } + + // TODO: This is very hacky, but will work for now + cornerstone.getEnabledElements().forEach(enabledElement => { + cornerstone.updateImage(enabledElement.element); + }); + + // TODO: Notify about the last activated measurement + + if (MeasurementApi.isToolIncluded(tool)) { + // TODO: Notify that viewer suffered changes + } +} diff --git a/packages/_core/src/measurements/measurementHandlers/handleChildMeasurementModified.js b/packages/_core/src/measurements/measurementHandlers/handleChildMeasurementModified.js new file mode 100644 index 000000000..05d44777d --- /dev/null +++ b/packages/_core/src/measurements/measurementHandlers/handleChildMeasurementModified.js @@ -0,0 +1,38 @@ +import cornerstone from 'cornerstone-core'; +import { MeasurementApi } from '../classes'; +import log from '../../log'; + +export default function({ eventData, tool, toolGroupId, toolGroup }) { + const measurementApi = MeasurementApi.Instance; + if (!measurementApi) { + log.warn('Measurement API is not initialized'); + } + + const { measurementData } = eventData; + + const collection = measurementApi.tools[tool.parentTool]; + + // Stop here if the tool data shall not be persisted (e.g. temp tools) + if (!collection) return; + + log.info('CornerstoneToolsMeasurementModified'); + + const measurement = collection.find(t => t._id === measurementData._id); + let childMeasurement = measurement && measurement[tool.attribute]; + + // Stop here if the measurement is already deleted + if (!childMeasurement) return; + + childMeasurement = Object.assign(childMeasurement, measurementData); + childMeasurement.viewport = cornerstone.getViewport(eventData.element); + + // Update the parent measurement + measurement[tool.attribute] = childMeasurement; + measurementApi.updateMeasurement(tool.parentTool, measurement); + + // TODO: Notify about the last activated measurement + + if (MeasurementApi.isToolIncluded(tool)) { + // TODO: Notify that viewer suffered changes + } +} diff --git a/packages/_core/src/measurements/measurementHandlers/handleChildMeasurementRemoved.js b/packages/_core/src/measurements/measurementHandlers/handleChildMeasurementRemoved.js new file mode 100644 index 000000000..21ae8b9d4 --- /dev/null +++ b/packages/_core/src/measurements/measurementHandlers/handleChildMeasurementRemoved.js @@ -0,0 +1,47 @@ +import cornerstone from 'cornerstone-core'; +import { MeasurementApi } from '../classes'; +import log from '../../log'; + +export default function({ eventData, tool, toolGroupId, toolGroup }) { + log.info('CornerstoneToolsMeasurementRemoved'); + const { measurementData } = eventData; + + const measurementApi = MeasurementApi.Instance; + if (!measurementApi) { + log.warn('Measurement API is not initialized'); + } + + const collection = measurementApi.tools[tool.parentTool]; + + // Stop here if the tool data shall not be persisted (e.g. temp tools) + if (!collection) return; + + const measurementIndex = collection.findIndex( + t => t._id === measurementData._id + ); + const measurement = + measurementIndex > -1 ? collection[measurementIndex] : null; + + // Stop here if the measurement is already gone or never existed + if (!measurement) return; + + if (measurement.childToolsCount === 1) { + // Remove the measurement + collection.splice(measurementIndex, 1); + measurementApi.onMeasurementRemoved(tool.parentTool, measurement); + } else { + // Update the measurement + measurement[tool.attribute] = null; + measurement.childToolsCount = (measurement.childToolsCount || 0) - 1; + measurementApi.updateMeasurement(tool.parentTool, measurement); + } + + // TODO: This is very hacky, but will work for now + cornerstone.getEnabledElements().forEach(enabledElement => { + cornerstone.updateImage(enabledElement.element); + }); + + if (MeasurementApi.isToolIncluded(tool)) { + // TODO: Notify that viewer suffered changes + } +} diff --git a/packages/_core/src/measurements/measurementHandlers/handleSingleMeasurementAdded.js b/packages/_core/src/measurements/measurementHandlers/handleSingleMeasurementAdded.js new file mode 100644 index 000000000..55ecc7b5f --- /dev/null +++ b/packages/_core/src/measurements/measurementHandlers/handleSingleMeasurementAdded.js @@ -0,0 +1,51 @@ +import cornerstone from 'cornerstone-core'; +import { MeasurementApi } from '../classes'; +import log from '../../log'; +import user from '../../user'; +import getImageAttributes from '../lib/getImageAttributes'; +import getLabel from '../lib/getLabel'; + +export default function handleSingleMeasurementAdded({ eventData, tool }) { + const measurementApi = MeasurementApi.Instance; + if (!measurementApi) { + log.warn('Measurement API is not initialized'); + } + + const { measurementData, toolType } = eventData; + + const collection = measurementApi.tools[toolType]; + + // Stop here if the tool data shall not be persisted (e.g. temp tools) + if (!collection) return; + + // Stop here if there's no measurement data or if it was cancelled + if (!measurementData || measurementData.cancelled) return; + + log.info('CornerstoneToolsMeasurementAdded'); + + const imageAttributes = getImageAttributes(eventData.element); + const measurement = Object.assign({}, measurementData, imageAttributes, { + lesionNamingNumber: measurementData.lesionNamingNumber, + userId: user.getUserId(), + toolType, + }); + + const addedMeasurement = measurementApi.addMeasurement(toolType, measurement); + Object.assign(measurementData, addedMeasurement); + + const measurementLabel = getLabel(measurementData); + if (measurementLabel) { + measurementData.labels = [measurementLabel]; + } + + // TODO: This is very hacky, but will work for now + cornerstone.getEnabledElements().forEach(enabledElement => { + cornerstone.updateImage(enabledElement.element); + }); + + // TODO: Notify about the last activated measurement + + if (MeasurementApi.isToolIncluded(tool)) { + // TODO: Notify that viewer suffered changes + } +} diff --git a/packages/_core/src/measurements/measurementHandlers/handleSingleMeasurementModified.js b/packages/_core/src/measurements/measurementHandlers/handleSingleMeasurementModified.js new file mode 100644 index 000000000..23c5b08d6 --- /dev/null +++ b/packages/_core/src/measurements/measurementHandlers/handleSingleMeasurementModified.js @@ -0,0 +1,34 @@ +import cornerstone from 'cornerstone-core'; +import { MeasurementApi } from '../classes'; +import log from '../../log'; + +export default function({ eventData, tool, toolGroupId, toolGroup }) { + const measurementApi = MeasurementApi.Instance; + if (!measurementApi) { + log.warn('Measurement API is not initialized'); + } + + const { measurementData, toolType } = eventData; + + const collection = measurementApi.tools[toolType]; + + // Stop here if the tool data shall not be persisted (e.g. temp tools) + if (!collection) return; + + log.info('CornerstoneToolsMeasurementModified'); + let measurement = collection.find(t => t._id === measurementData._id); + + // Stop here if the measurement is already deleted + if (!measurement) return; + + measurement = Object.assign(measurement, measurementData); + measurement.viewport = cornerstone.getViewport(eventData.element); + + measurementApi.updateMeasurement(toolType, measurement); + + // TODO: Notify about the last activated measurement + + if (MeasurementApi.isToolIncluded(tool)) { + // TODO: Notify that viewer suffered changes + } +} diff --git a/packages/_core/src/measurements/measurementHandlers/handleSingleMeasurementRemoved.js b/packages/_core/src/measurements/measurementHandlers/handleSingleMeasurementRemoved.js new file mode 100644 index 000000000..7faca56f9 --- /dev/null +++ b/packages/_core/src/measurements/measurementHandlers/handleSingleMeasurementRemoved.js @@ -0,0 +1,45 @@ +import cornerstone from 'cornerstone-core'; +import { MeasurementApi } from '../classes'; +import log from '../../log'; + +export default function handleSingleMeasurementRemoved({ + eventData, + tool, + toolGroupId, + toolGroup, +}) { + log.info('CornerstoneToolsMeasurementRemoved'); + const { measurementData, toolType } = eventData; + + const measurementApi = MeasurementApi.Instance; + if (!measurementApi) { + log.warn('Measurement API is not initialized'); + } + + const collection = measurementApi.tools[toolType]; + + // Stop here if the tool data shall not be persisted (e.g. temp tools) + if (!collection) return; + + const measurementTypeId = measurementApi.toolsGroupsMap[toolType]; + const measurement = collection.find(t => t._id === measurementData._id); + + // Stop here if the measurement is already gone or never existed + if (!measurement) return; + + // Remove all the measurements with the given type and number + const { lesionNamingNumber, timepointId } = measurement; + measurementApi.deleteMeasurements(toolType, measurementTypeId, { + lesionNamingNumber, + timepointId, + }); + + // TODO: This is very hacky, but will work for now + cornerstone.getEnabledElements().forEach(enabledElement => { + cornerstone.updateImage(enabledElement.element); + }); + + if (MeasurementApi.isToolIncluded(tool)) { + // TODO: Notify that viewer suffered changes + } +} diff --git a/packages/_core/src/measurements/measurementHandlers/index.js b/packages/_core/src/measurements/measurementHandlers/index.js new file mode 100644 index 000000000..7f01f690a --- /dev/null +++ b/packages/_core/src/measurements/measurementHandlers/index.js @@ -0,0 +1,99 @@ +import { MeasurementApi } from '../classes'; +import handleSingleMeasurementAdded from './handleSingleMeasurementAdded'; +import handleChildMeasurementAdded from './handleChildMeasurementAdded'; +import handleSingleMeasurementModified from './handleSingleMeasurementModified'; +import handleChildMeasurementModified from './handleChildMeasurementModified'; +import handleSingleMeasurementRemoved from './handleSingleMeasurementRemoved'; +import handleChildMeasurementRemoved from './handleChildMeasurementRemoved'; + +const getEventData = event => { + const eventData = event.detail; + if (eventData.toolName) { + eventData.toolType = eventData.toolName; + } + + return eventData; +}; + +const MeasurementHandlers = { + handleSingleMeasurementAdded, + handleChildMeasurementAdded, + handleSingleMeasurementModified, + handleChildMeasurementModified, + handleSingleMeasurementRemoved, + handleChildMeasurementRemoved, + + onAdded(event) { + const eventData = getEventData(event); + const { toolType } = eventData; + const { + toolGroupId, + toolGroup, + tool, + } = MeasurementApi.getToolConfiguration(toolType); + const params = { + eventData, + tool, + toolGroupId, + toolGroup, + }; + + if (!tool) return; + + if (tool.parentTool) { + handleChildMeasurementAdded(params); + } else { + handleSingleMeasurementAdded(params); + } + }, + + onModified(event) { + const eventData = getEventData(event); + const { toolType } = eventData; + const { + toolGroupId, + toolGroup, + tool, + } = MeasurementApi.getToolConfiguration(toolType); + const params = { + eventData, + tool, + toolGroupId, + toolGroup, + }; + + if (!tool) return; + + if (tool.parentTool) { + handleChildMeasurementModified(params); + } else { + handleSingleMeasurementModified(params); + } + }, + + onRemoved(event) { + const eventData = getEventData(event); + const { toolType } = eventData; + const { + toolGroupId, + toolGroup, + tool, + } = MeasurementApi.getToolConfiguration(toolType); + const params = { + eventData, + tool, + toolGroupId, + toolGroup, + }; + + if (!tool) return; + + if (tool.parentTool) { + handleChildMeasurementRemoved(params); + } else { + handleSingleMeasurementRemoved(params); + } + }, +}; + +export default MeasurementHandlers; diff --git a/packages/_core/src/measurements/toolGroups/allTools.js b/packages/_core/src/measurements/toolGroups/allTools.js new file mode 100644 index 000000000..0aa6a6ab1 --- /dev/null +++ b/packages/_core/src/measurements/toolGroups/allTools.js @@ -0,0 +1,16 @@ +import * as tools from '../tools'; + +const childTools = []; +Object.keys(tools).forEach(key => childTools.push(tools[key])); + +export const allTools = { + id: 'allTools', + name: 'Measurements', + childTools: childTools, + options: { + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/measurements/toolGroups/nonTargets.js b/packages/_core/src/measurements/toolGroups/nonTargets.js new file mode 100644 index 000000000..954924430 --- /dev/null +++ b/packages/_core/src/measurements/toolGroups/nonTargets.js @@ -0,0 +1,13 @@ +import { nonTarget } from '../tools'; + +export const nonTargets = { + id: 'nonTargets', + name: 'Non-Targets', + childTools: [nonTarget], + options: { + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/measurements/toolGroups/targets.js b/packages/_core/src/measurements/toolGroups/targets.js new file mode 100644 index 000000000..29d3bec5c --- /dev/null +++ b/packages/_core/src/measurements/toolGroups/targets.js @@ -0,0 +1,13 @@ +import { bidirectional, targetCR, targetUN, targetNE } from '../tools'; + +export const targets = { + id: 'targets', + name: 'Targets', + childTools: [bidirectional, targetCR, targetUN, targetNE], + options: { + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/measurements/toolGroups/temp.js b/packages/_core/src/measurements/toolGroups/temp.js new file mode 100644 index 000000000..228486e0a --- /dev/null +++ b/packages/_core/src/measurements/toolGroups/temp.js @@ -0,0 +1,26 @@ +import { length, ellipticalRoi } from '../tools'; +import cloneDeep from 'lodash.clonedeep'; + +const childTools = cloneDeep([length, ellipticalRoi]); + +// Exclude temp tools from case progress +childTools.forEach(childTool => { + childTool.options = Object.assign({}, childTool.options, { + caseProgress: { + include: false, + evaluate: false, + }, + }); +}); + +export const temp = { + id: 'temp', + name: 'Temporary', + childTools, + options: { + caseProgress: { + include: false, + evaluate: false, + }, + }, +}; diff --git a/packages/_core/src/measurements/tools/angle.js b/packages/_core/src/measurements/tools/angle.js new file mode 100644 index 000000000..852cc37e5 --- /dev/null +++ b/packages/_core/src/measurements/tools/angle.js @@ -0,0 +1,23 @@ +const displayFunction = data => { + let text = ''; + if (data.rAngle) { + text = data.rAngle.toFixed(2) + String.fromCharCode(parseInt('00B0', 16)); + } + return text; +}; + +export const angle = { + id: 'Angle', + name: 'Angle', + toolGroup: 'allTools', + cornerstoneToolType: 'Angle', + options: { + measurementTable: { + displayFunction, + }, + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/measurements/tools/arrowAnnotate.js b/packages/_core/src/measurements/tools/arrowAnnotate.js new file mode 100644 index 000000000..a45822add --- /dev/null +++ b/packages/_core/src/measurements/tools/arrowAnnotate.js @@ -0,0 +1,19 @@ +const displayFunction = data => { + return data.text || ''; +}; + +export const arrowAnnotate = { + id: 'ArrowAnnotate', + name: 'ArrowAnnotate', + toolGroup: 'allTools', + cornerstoneToolType: 'ArrowAnnotate', + options: { + measurementTable: { + displayFunction, + }, + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/measurements/tools/bidirectional.js b/packages/_core/src/measurements/tools/bidirectional.js new file mode 100644 index 000000000..e17955070 --- /dev/null +++ b/packages/_core/src/measurements/tools/bidirectional.js @@ -0,0 +1,24 @@ +const displayFunction = data => { + if (data.shortestDiameter) { + // TODO: Make this check criteria again to see if we should display shortest x longest + return data.longestDiameter + ' x ' + data.shortestDiameter; + } + + return data.longestDiameter; +}; + +export const bidirectional = { + id: 'Bidirectional', + name: 'Target', + toolGroup: 'allTools', + cornerstoneToolType: 'Bidirectional', + options: { + measurementTable: { + displayFunction, + }, + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/measurements/tools/circleRoi.js b/packages/_core/src/measurements/tools/circleRoi.js new file mode 100644 index 000000000..0f8cef3fe --- /dev/null +++ b/packages/_core/src/measurements/tools/circleRoi.js @@ -0,0 +1,24 @@ +const displayFunction = data => { + let meanValue = ''; + const { cachedStats } = data; + if (cachedStats && cachedStats.mean) { + meanValue = cachedStats.mean.toFixed(2) + ' HU'; + } + return meanValue; +}; + +export const circleRoi = { + id: 'CircleRoi', + name: 'Circle', + toolGroup: 'allTools', + cornerstoneToolType: 'CircleRoi', + options: { + measurementTable: { + displayFunction, + }, + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/measurements/tools/ellipticalRoi.js b/packages/_core/src/measurements/tools/ellipticalRoi.js new file mode 100644 index 000000000..f392002d2 --- /dev/null +++ b/packages/_core/src/measurements/tools/ellipticalRoi.js @@ -0,0 +1,24 @@ +const displayFunction = data => { + let meanValue = ''; + const { cachedStats } = data; + if (cachedStats && cachedStats.mean) { + meanValue = cachedStats.mean.toFixed(2) + ' HU'; + } + return meanValue; +}; + +export const ellipticalRoi = { + id: 'EllipticalRoi', + name: 'Ellipse', + toolGroup: 'allTools', + cornerstoneToolType: 'EllipticalRoi', + options: { + measurementTable: { + displayFunction, + }, + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/measurements/tools/freehandMouse.js b/packages/_core/src/measurements/tools/freehandMouse.js new file mode 100644 index 000000000..ea26bd6b2 --- /dev/null +++ b/packages/_core/src/measurements/tools/freehandMouse.js @@ -0,0 +1,23 @@ +const displayFunction = data => { + let meanValue = ''; + if (data.meanStdDev && data.meanStdDev.mean) { + meanValue = data.meanStdDev.mean.toFixed(2) + ' HU'; + } + return meanValue; +}; + +export const freehandMouse = { + id: 'FreehandMouse', + name: 'Freehand', + toolGroup: 'allTools', + cornerstoneToolType: 'FreehandMouse', + options: { + measurementTable: { + displayFunction, + }, + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/measurements/tools/index.js b/packages/_core/src/measurements/tools/index.js new file mode 100644 index 000000000..16035e221 --- /dev/null +++ b/packages/_core/src/measurements/tools/index.js @@ -0,0 +1,27 @@ +import { arrowAnnotate } from './arrowAnnotate'; +import { bidirectional } from './bidirectional'; +import { ellipticalRoi } from './ellipticalRoi'; +import { circleRoi } from './circleRoi'; +import { freehandMouse } from './freehandMouse'; +import { length } from './length'; +import { nonTarget } from './nonTarget'; +import { rectangleRoi } from './rectangleRoi'; +import { angle } from './angle'; +import { targetCR } from './targetCR'; +import { targetNE } from './targetNE'; +import { targetUN } from './targetUN'; + +export { + arrowAnnotate, + bidirectional, + ellipticalRoi, + circleRoi, + freehandMouse, + length, + nonTarget, + rectangleRoi, + angle, + targetCR, + targetNE, + targetUN, +}; diff --git a/packages/_core/src/measurements/tools/length.js b/packages/_core/src/measurements/tools/length.js new file mode 100644 index 000000000..2f8331f5e --- /dev/null +++ b/packages/_core/src/measurements/tools/length.js @@ -0,0 +1,23 @@ +const displayFunction = data => { + let lengthValue = ''; + if (data.length) { + lengthValue = data.length.toFixed(2) + ' mm'; + } + return lengthValue; +}; + +export const length = { + id: 'Length', + name: 'Length', + toolGroup: 'allTools', + cornerstoneToolType: 'Length', + options: { + measurementTable: { + displayFunction, + }, + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/measurements/tools/nonTarget.js b/packages/_core/src/measurements/tools/nonTarget.js new file mode 100644 index 000000000..7e0848018 --- /dev/null +++ b/packages/_core/src/measurements/tools/nonTarget.js @@ -0,0 +1,15 @@ +export const nonTarget = { + id: 'NonTarget', + name: 'Non-Target', + toolGroup: 'allTools', + cornerstoneToolType: 'NonTarget', + options: { + measurementTable: { + displayFunction: data => data.response, + }, + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/measurements/tools/rectangleRoi.js b/packages/_core/src/measurements/tools/rectangleRoi.js new file mode 100644 index 000000000..6a3593809 --- /dev/null +++ b/packages/_core/src/measurements/tools/rectangleRoi.js @@ -0,0 +1,24 @@ +const displayFunction = data => { + let meanValue = ''; + const { cachedStats } = data; + if (cachedStats && cachedStats.mean) { + meanValue = cachedStats.mean.toFixed(2) + ' HU'; + } + return meanValue; +}; + +export const rectangleRoi = { + id: 'RectangleRoi', + name: 'Rectangle', + toolGroup: 'allTools', + cornerstoneToolType: 'RectangleRoi', + options: { + measurementTable: { + displayFunction, + }, + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/measurements/tools/targetCR.js b/packages/_core/src/measurements/tools/targetCR.js new file mode 100644 index 000000000..fffd29f25 --- /dev/null +++ b/packages/_core/src/measurements/tools/targetCR.js @@ -0,0 +1,15 @@ +export const targetCR = { + id: 'TargetCR', + name: 'CR Target', + toolGroup: 'allTools', + cornerstoneToolType: 'TargetCR', + options: { + measurementTable: { + displayFunction: data => data.response, + }, + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/measurements/tools/targetNE.js b/packages/_core/src/measurements/tools/targetNE.js new file mode 100644 index 000000000..361de89d0 --- /dev/null +++ b/packages/_core/src/measurements/tools/targetNE.js @@ -0,0 +1,15 @@ +export const targetNE = { + id: 'TargetNE', + name: 'NE Target', + toolGroup: 'allTools', + cornerstoneToolType: 'TargetNE', + options: { + measurementTable: { + displayFunction: data => data.response, + }, + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/measurements/tools/targetUN.js b/packages/_core/src/measurements/tools/targetUN.js new file mode 100644 index 000000000..3bf8acdc7 --- /dev/null +++ b/packages/_core/src/measurements/tools/targetUN.js @@ -0,0 +1,15 @@ +export const targetUN = { + id: 'TargetUN', + name: 'UN Target', + toolGroup: 'allTools', + cornerstoneToolType: 'TargetUN', + options: { + measurementTable: { + displayFunction: data => data.response, + }, + caseProgress: { + include: true, + evaluate: true, + }, + }, +}; diff --git a/packages/_core/src/object.js b/packages/_core/src/object.js new file mode 100644 index 000000000..030793f52 --- /dev/null +++ b/packages/_core/src/object.js @@ -0,0 +1,55 @@ +// Transforms a shallow object with keys separated by "." into a nested object +function getNestedObject(shallowObject) { + const nestedObject = {}; + for (let key in shallowObject) { + if (!shallowObject.hasOwnProperty(key)) continue; + const value = shallowObject[key]; + const propertyArray = key.split('.'); + let currentObject = nestedObject; + while (propertyArray.length) { + const currentProperty = propertyArray.shift(); + if (!propertyArray.length) { + currentObject[currentProperty] = value; + } else { + if (!currentObject[currentProperty]) { + currentObject[currentProperty] = {}; + } + + currentObject = currentObject[currentProperty]; + } + } + } + + return nestedObject; +} + +// Transforms a nested object into a shallowObject merging its keys with "." character +function getShallowObject(nestedObject) { + const shallowObject = {}; + const putValues = (baseKey, nestedObject, resultObject) => { + for (let key in nestedObject) { + if (!nestedObject.hasOwnProperty(key)) continue; + let currentKey = baseKey ? `${baseKey}.${key}` : key; + const currentValue = nestedObject[key]; + if (typeof currentValue === 'object') { + if (currentValue instanceof Array) { + currentKey += '[]'; + } + + putValues(currentKey, currentValue, resultObject); + } else { + resultObject[currentKey] = currentValue; + } + } + }; + + putValues('', nestedObject, shallowObject); + return shallowObject; +} + +const object = { + getNestedObject, + getShallowObject, +}; + +export default object; diff --git a/packages/_core/src/redux/actions.js b/packages/_core/src/redux/actions.js new file mode 100644 index 000000000..323fefb8e --- /dev/null +++ b/packages/_core/src/redux/actions.js @@ -0,0 +1,114 @@ +/** Action Creators: + * https://redux.js.org/basics/actions#action-creators + */ + +import { + CLEAR_VIEWPORT, + SET_ACTIVE_SPECIFIC_DATA, + SET_SERVERS, + SET_VIEWPORT, + SET_VIEWPORT_ACTIVE, + SET_VIEWPORT_LAYOUT, + SET_VIEWPORT_LAYOUT_AND_DATA, +} from './constants/ActionTypes.js'; + +/** + * VIEWPORT + */ +export const setViewportSpecificData = (viewportIndex, data) => ({ + type: SET_VIEWPORT, + viewportIndex, + data, +}); + +export const setViewportActive = viewportIndex => ({ + type: SET_VIEWPORT_ACTIVE, + viewportIndex, +}); + +export const setLayout = layout => ({ + type: SET_VIEWPORT_LAYOUT, + layout, +}); + +export const clearViewportSpecificData = viewportIndex => ({ + type: CLEAR_VIEWPORT, + viewportIndex, +}); + +export const setActiveViewportSpecificData = data => ({ + type: SET_ACTIVE_SPECIFIC_DATA, + data, +}); + +/** + * NOT-VIEWPORT + */ +export const setStudyLoadingProgress = (progressId, progressData) => ({ + type: 'SET_STUDY_LOADING_PROGRESS', + progressId, + progressData, +}); + +export const clearStudyLoadingProgress = progressId => ({ + type: 'CLEAR_STUDY_LOADING_PROGRESS', + progressId, +}); + +export const setUserPreferences = state => ({ + type: 'SET_USER_PREFERENCES', + state, +}); + +export const setExtensionData = (extension, data) => ({ + type: 'SET_EXTENSION_DATA', + extension, + data, +}); + +export const setTimepoints = state => ({ + type: 'SET_TIMEPOINTS', + state, +}); + +export const setMeasurements = state => ({ + type: 'SET_MEASUREMENTS', + state, +}); + +export const setStudyData = (studyInstanceUid, data) => ({ + type: 'SET_STUDY_DATA', + studyInstanceUid, + data, +}); + +export const setServers = servers => ({ + type: SET_SERVERS, + servers, +}); + +export const setViewportLayoutAndData = (layout, viewportSpecificData) => ({ + type: SET_VIEWPORT_LAYOUT_AND_DATA, + layout, + viewportSpecificData, +}); + +const actions = { + // VIEWPORT + setViewportActive, + setViewportSpecificData, + setViewportLayoutAndData, + setLayout, + clearViewportSpecificData, + setActiveViewportSpecificData, + setStudyLoadingProgress, + clearStudyLoadingProgress, + setUserPreferences, + setExtensionData, + setTimepoints, + setMeasurements, + setStudyData, + setServers, +}; + +export default actions; diff --git a/packages/_core/src/redux/actions.test.js b/packages/_core/src/redux/actions.test.js new file mode 100644 index 000000000..2613586bd --- /dev/null +++ b/packages/_core/src/redux/actions.test.js @@ -0,0 +1,112 @@ +import * as types from './constants/ActionTypes.js'; + +import actions from './actions.js'; + +describe('actions', () => { + test('exports have not changed', () => { + const expectedExports = [ + 'setViewportActive', + 'setViewportSpecificData', + 'setViewportLayoutAndData', + 'setLayout', + 'clearViewportSpecificData', + 'setActiveViewportSpecificData', + 'setStudyLoadingProgress', + 'clearStudyLoadingProgress', + 'setUserPreferences', + 'setExtensionData', + 'setTimepoints', + 'setMeasurements', + 'setServers', + 'setStudyData', + ].sort(); + + const exports = Object.keys(actions).sort(); + + expect(exports).toEqual(expectedExports); + }); + + describe('viewport action creators', () => { + it('should create an action to set the viewport specific data', () => { + const data = { + displaySetInstanceUid: 'ef859a23-4631-93ab-d26b-7940a822c699', + seriesDate: '20151026', + seriesTime: '082611.370000', + seriesInstanceUid: + '1.3.6.1.4.1.25403.345050719074.3824.20170126085406.5', + seriesNumber: 2, + seriesDescription: 'Chest 3x3 Soft', + numImageFrames: 126, + modality: 'CT', + isMultiFrame: false, + instanceNumber: 1, + studyInstanceUid: + '1.3.6.1.4.1.25403.345050719074.3824.20170126085406.1', + sopClassUids: ['1.2.840.10008.5.1.4.1.1.2'], + plugin: 'cornerstone', + viewport: { + zoomScale: null, + rotation: 360, + resetViewport: null, + invert: null, + vflip: null, + hflip: null, + clearTools: null, + scrollUp: null, + scrollDown: null, + scrollFirstImage: null, + scrollLastImage: null, + previousPanel: null, + nextPanel: null, + nextSeries: null, + previousSeries: null, + }, + }; + + const expectedAction = { + type: types.SET_ACTIVE_SPECIFIC_DATA, + data, + }; + + expect(actions.setActiveViewportSpecificData(data)).toEqual( + expectedAction + ); + }); + + it('should create an action to clear clearViewportSpecificData', () => { + const viewportIndex = 1; + const expectedAction = { + type: types.CLEAR_VIEWPORT, + viewportIndex, + }; + expect(actions.clearViewportSpecificData(viewportIndex)).toEqual( + expectedAction + ); + }); + + it('should create an action to set the active viewport', () => { + const viewportIndex = 1; + const expectedAction = { + type: types.SET_VIEWPORT_ACTIVE, + viewportIndex, + }; + expect(actions.setViewportActive(viewportIndex)).toEqual(expectedAction); + }); + + it('should create an action to set the viewport layout', () => { + const layout = { + viewports: [ + { + height: '100%', + width: '100%', + }, + ], + }; + const expectedAction = { + type: types.SET_VIEWPORT_LAYOUT, + layout, + }; + expect(actions.setLayout(layout)).toEqual(expectedAction); + }); + }); +}); diff --git a/packages/_core/src/redux/constants/ActionTypes.js b/packages/_core/src/redux/constants/ActionTypes.js new file mode 100644 index 000000000..4a9cdccf4 --- /dev/null +++ b/packages/_core/src/redux/constants/ActionTypes.js @@ -0,0 +1,22 @@ +/** + * VIEWPORT + */ +export const SET_VIEWPORT = 'VIEWPORT::SET'; +export const SET_VIEWPORT_ACTIVE = 'VIEWPORT::SET_ACTIVE'; +export const SET_VIEWPORT_LAYOUT = 'VIEWPORT::SET_LAYOUT'; +export const SET_VIEWPORT_LAYOUT_AND_DATA = + 'VIEWPORT::SET_VIEWPORT_LAYOUT_AND_DATA'; +export const CLEAR_VIEWPORT = 'VIEWPORT::CLEAR'; +export const SET_SPECIFIC_DATA = 'VIEWPORT::SET_SPECIFIC_DATA'; +export const SET_ACTIVE_SPECIFIC_DATA = 'VIEWPORT::SET_ACTIVE_SPECIFIC_DATA'; + +/** + * SERVERS + */ +export const ADD_SERVER = 'ADD_SERVER'; +export const SET_SERVERS = 'SET_SERVERS'; + +/** + * EXTENSIONS + */ +export const SET_EXTENSION_DATA = 'SET_EXTENSION_DATA'; diff --git a/packages/_core/src/redux/index.js b/packages/_core/src/redux/index.js new file mode 100644 index 000000000..26c1988d6 --- /dev/null +++ b/packages/_core/src/redux/index.js @@ -0,0 +1,11 @@ +import actions from './actions.js'; +import reducers from './reducers'; +import localStorage from './localStorage.js'; + +const redux = { + reducers, + actions, + localStorage, +}; + +export default redux; diff --git a/packages/_core/src/redux/index.test.js b/packages/_core/src/redux/index.test.js new file mode 100644 index 000000000..cd1c82cf2 --- /dev/null +++ b/packages/_core/src/redux/index.test.js @@ -0,0 +1,11 @@ +import redux from './index.js'; + +describe('redux exports', () => { + test('have not changed', () => { + const expectedExports = ['actions', 'reducers', 'localStorage'].sort(); + + const exports = Object.keys(redux).sort(); + + expect(exports).toEqual(expectedExports); + }); +}); diff --git a/packages/_core/src/redux/localStorage.js b/packages/_core/src/redux/localStorage.js new file mode 100644 index 000000000..89ab0d0b1 --- /dev/null +++ b/packages/_core/src/redux/localStorage.js @@ -0,0 +1,26 @@ +export const loadState = () => { + try { + const serializedState = window.localStorage.getItem('state'); + if (!serializedState) { + return undefined; + } + + return JSON.parse(serializedState); + } catch (e) { + return undefined; + } +}; + +export const saveState = state => { + try { + const serializedState = JSON.stringify(state); + localStorage.setItem('state', serializedState); + } catch (e) {} +}; + +const localStorage = { + saveState, + loadState, +}; + +export default localStorage; diff --git a/packages/_core/src/redux/reducers/extensions.js b/packages/_core/src/redux/reducers/extensions.js new file mode 100644 index 000000000..10b88b913 --- /dev/null +++ b/packages/_core/src/redux/reducers/extensions.js @@ -0,0 +1,25 @@ +export const defaultState = {}; + +const extensions = (state = defaultState, action) => { + switch (action.type) { + case 'SET_EXTENSION_DATA': + const extensionName = action.extension; + const currentData = state[extensionName] || {}; + + const incomingData = action.data; + + const extension = { + [extensionName]: { + ...currentData, + ...incomingData, + }, + }; + + return { ...state, ...extension }; + + default: + return state; + } +}; + +export default extensions; diff --git a/packages/_core/src/redux/reducers/extensions.test.js b/packages/_core/src/redux/reducers/extensions.test.js new file mode 100644 index 000000000..ff2797952 --- /dev/null +++ b/packages/_core/src/redux/reducers/extensions.test.js @@ -0,0 +1,50 @@ +import { Reducer } from 'redux-testkit'; + +import reducer, { defaultState } from './extensions'; +import * as actionTypes from './../constants/ActionTypes.js'; + +describe('viewports reducer', () => { + it('should return the initial state', () => { + expect(reducer(undefined, {})).toEqual(defaultState); + }); + + it('should set new data on first SET_EXTENSION_DATA', () => { + const initialState = defaultState; + + const action = { + type: actionTypes.SET_EXTENSION_DATA, + extension: 'uber plugin', + data: { greeting: 'Hello!' }, + }; + + const expectedState = { + 'uber plugin': { greeting: 'Hello!' }, + }; + + Reducer(reducer) + .withState(initialState) + .expect(action) + .toReturnState(expectedState); + }); + + it('should shallow-merge extension data, keeping unmodified fields, on SET_EXTENSION_DATA', () => { + const initialState = { + 'uber plugin': { greeting: 'Hello!', "Can't touch this": 42 }, + }; + + const action = { + type: actionTypes.SET_EXTENSION_DATA, + extension: 'uber plugin', + data: { greeting: 'Aloha!' }, + }; + + const expectedState = { + 'uber plugin': { greeting: 'Aloha!', "Can't touch this": 42 }, + }; + + Reducer(reducer) + .withState(initialState) + .expect(action) + .toReturnState(expectedState); + }); +}); diff --git a/packages/_core/src/redux/reducers/index.js b/packages/_core/src/redux/reducers/index.js new file mode 100644 index 000000000..44bf26755 --- /dev/null +++ b/packages/_core/src/redux/reducers/index.js @@ -0,0 +1,19 @@ +import extensions from './extensions'; +import loading from './loading'; +import preferences from './preferences'; +import servers from './servers'; +import studies from './studies'; +import timepointManager from './timepointManager'; +import viewports from './viewports'; + +const reducers = { + extensions, + loading, + preferences, + servers, + studies, + timepointManager, + viewports, +}; + +export default reducers; diff --git a/packages/_core/src/redux/reducers/loading.js b/packages/_core/src/redux/reducers/loading.js new file mode 100644 index 000000000..b82a57d27 --- /dev/null +++ b/packages/_core/src/redux/reducers/loading.js @@ -0,0 +1,33 @@ +import cloneDeep from 'lodash.clonedeep'; + +const defaultState = { + progress: {}, + lastUpdated: null, +}; + +const loading = (state = defaultState, action) => { + let progress; + let lastUpdated; + switch (action.type) { + case 'SET_STUDY_LOADING_PROGRESS': + progress = cloneDeep(state).progress; + progress[action.progressId] = action.progressData; + + // This is a workaround so we can easily identify changes + // to the progress object without doing deep comparison. + lastUpdated = new Date().getTime(); + + return Object.assign({}, state, { progress, lastUpdated }); + case 'CLEAR_STUDY_LOADING_PROGRESS': + progress = cloneDeep(state).progress; + delete progress[action.progressId]; + + lastUpdated = new Date().getTime(); + + return Object.assign({}, state, { progress, lastUpdated }); + default: + return state; + } +}; + +export default loading; diff --git a/packages/_core/src/redux/reducers/preferences.js b/packages/_core/src/redux/reducers/preferences.js new file mode 100644 index 000000000..2c9ccdf76 --- /dev/null +++ b/packages/_core/src/redux/reducers/preferences.js @@ -0,0 +1,31 @@ +import cloneDeep from 'lodash.clonedeep'; + +const defaultState = { + // Top level key + viewer: { + // First tab + hotKeysData: { + // hotkeyName, label, keys, column + // zoom: { label: 'Zoom', command: 'Z', column: 0 }, + }, + // Second tab + windowLevelData: { + // order, description, window (int), level (int) + // 0: { description: 'Soft tissue', window: '', level: '' }, + }, + }, +}; + +const preferences = (state, action) => { + switch (action.type) { + case 'SET_USER_PREFERENCES': { + const newState = action.state ? action.state : cloneDeep(defaultState); + + return Object.assign({}, state, newState); + } + default: + return cloneDeep(state) || cloneDeep(defaultState); + } +}; + +export default preferences; diff --git a/packages/_core/src/redux/reducers/servers.js b/packages/_core/src/redux/reducers/servers.js new file mode 100644 index 000000000..b834f4fb0 --- /dev/null +++ b/packages/_core/src/redux/reducers/servers.js @@ -0,0 +1,22 @@ +import uniqBy from 'lodash/uniqBy'; + +export const defaultState = { + servers: [], +}; + +const servers = (state = defaultState, action) => { + switch (action.type) { + case 'ADD_SERVER': + let servers = uniqBy([...state.servers, action.server], 'id'); + servers.forEach(s => (s.active = true)); + return { ...state, servers }; + + case 'SET_SERVERS': + return { ...state, servers: action.servers }; + + default: + return state; + } +}; + +export default servers; diff --git a/packages/_core/src/redux/reducers/servers.test.js b/packages/_core/src/redux/reducers/servers.test.js new file mode 100644 index 000000000..cbd5155ed --- /dev/null +++ b/packages/_core/src/redux/reducers/servers.test.js @@ -0,0 +1,89 @@ +import { Reducer } from 'redux-testkit'; + +import reducer, { defaultState } from './servers'; +import * as types from './../constants/ActionTypes.js'; + +describe('viewports reducer', () => { + it('should return the initial state', () => { + expect(reducer(undefined, {})).toEqual(defaultState); + }); + + it('should result in one server when there were no servers before on ADD_SERVER', () => { + const initialState = defaultState; + + const action = { type: types.ADD_SERVER, server: { id: 'some-server-id' } }; + + const expectedState = { servers: [action.server] }; + + Reducer(reducer) + .withState(initialState) + .expect(action) + .toReturnState(expectedState); + }); + + it('should add to servers list on ADD_SERVER', () => { + const initialState = { + servers: [ + { id: 'one', active: true }, + { id: 'two', active: true }, + { id: 'three', active: true }, + { id: 'four', active: true }, + ], + }; + + const action = { + type: types.ADD_SERVER, + server: { id: 'five', active: true }, + }; + + const expectedState = { + servers: [...initialState.servers, action.server], + }; + + Reducer(reducer) + .withState(initialState) + .expect(action) + .toReturnState(expectedState); + }); + + it('should not add duplicated servers on ADD_SERVER', () => { + const initialState = { + servers: [ + { id: 'one', active: true }, + { id: 'two', active: true }, + { id: 'three', active: true }, + { id: 'four', active: true }, + ], + }; + + const action = { + type: types.ADD_SERVER, + server: { id: 'two', active: true }, + }; + + Reducer(reducer) + .withState(initialState) + .expect(action) + .toReturnState(initialState); + }); + + it('should replace servers on SET_SERVERS', () => { + const initialState = { + servers: [{ id: 'one' }, { id: 'two' }, { id: 'three' }, { id: 'four' }], + }; + + const action = { + type: types.SET_SERVERS, + servers: [{ id: 'un' }, { id: 'deux' }, { id: 'trois' }], + }; + + const expectedState = { + servers: action.servers, + }; + + Reducer(reducer) + .withState(initialState) + .expect(action) + .toReturnState(expectedState); + }); +}); diff --git a/packages/_core/src/redux/reducers/studies.js b/packages/_core/src/redux/reducers/studies.js new file mode 100644 index 000000000..3bd61aef2 --- /dev/null +++ b/packages/_core/src/redux/reducers/studies.js @@ -0,0 +1,19 @@ +import cloneDeep from 'lodash.clonedeep'; + +const defaultState = { + studyData: {}, +}; + +const servers = (state = defaultState, action) => { + switch (action.type) { + case 'SET_STUDY_DATA': + const updatedStudyData = cloneDeep(state).studyData; + updatedStudyData[action.studyInstanceUid] = action.data; + + return Object.assign({}, state, { studyData: updatedStudyData }); + default: + return state; + } +}; + +export default servers; diff --git a/packages/_core/src/redux/reducers/timepointManager.js b/packages/_core/src/redux/reducers/timepointManager.js new file mode 100644 index 000000000..98f03e8c4 --- /dev/null +++ b/packages/_core/src/redux/reducers/timepointManager.js @@ -0,0 +1,17 @@ +const defaultState = { + timepoints: [], + measurements: [], +}; + +const timepointManager = (state = defaultState, action) => { + switch (action.type) { + case 'SET_TIMEPOINTS': + return Object.assign({}, state, { timepoints: action.state }); + case 'SET_MEASUREMENTS': + return Object.assign({}, state, { measurements: action.state }); + default: + return state; + } +}; + +export default timepointManager; diff --git a/packages/_core/src/redux/reducers/viewports.js b/packages/_core/src/redux/reducers/viewports.js new file mode 100644 index 000000000..be0cc2313 --- /dev/null +++ b/packages/_core/src/redux/reducers/viewports.js @@ -0,0 +1,97 @@ +import { + CLEAR_VIEWPORT, + SET_ACTIVE_SPECIFIC_DATA, + SET_SPECIFIC_DATA, + SET_VIEWPORT, + SET_VIEWPORT_ACTIVE, + SET_VIEWPORT_LAYOUT, + SET_VIEWPORT_LAYOUT_AND_DATA, +} from './../constants/ActionTypes.js'; + +import cloneDeep from 'lodash.clonedeep'; +import merge from 'lodash.merge'; + +const defaultState = { + activeViewportIndex: 0, + layout: { + viewports: [ + { + // plugin: 'cornerstone', + height: '100%', + width: '100%', + }, + ], + }, + viewportSpecificData: {}, +}; + +/** + * @param {Object} [state=defaultState] + * @param {Object} action + * @param {string} [action.type] + * @param {number} [action.viewportIndex] + * @param {Object} [action.layout] + * @param {Object} [action.viewportSpecificData] + */ +const viewports = (state = defaultState, action) => { + let currentData; + let viewportSpecificData; + let useActiveViewport = false; + switch (action.type) { + case SET_VIEWPORT_LAYOUT_AND_DATA: + return Object.assign({}, state, { + viewportSpecificData: action.viewportSpecificData, + layout: action.layout, + }); + case SET_VIEWPORT_ACTIVE: + return Object.assign({}, state, { + activeViewportIndex: action.viewportIndex, + }); + case SET_VIEWPORT_LAYOUT: + return Object.assign({}, state, { layout: action.layout }); + case SET_VIEWPORT: { + const layout = cloneDeep(state.layout); + const hasPlugin = action.data && action.data.plugin; + + viewportSpecificData = cloneDeep(state.viewportSpecificData); + viewportSpecificData[action.viewportIndex] = merge( + {}, + viewportSpecificData[action.viewportIndex], + action.data + ); + + if (hasPlugin) { + layout.viewports[action.viewportIndex].plugin = action.data.plugin; + } + + return Object.assign({}, state, { layout, viewportSpecificData }); + } + case SET_ACTIVE_SPECIFIC_DATA: + useActiveViewport = true; + // Allow fall-through + // eslint-disable-next-line + case SET_SPECIFIC_DATA: { + const viewportIndex = useActiveViewport + ? state.activeViewportIndex + : action.viewportIndex; + currentData = cloneDeep(state.viewportSpecificData[viewportIndex]) || {}; + viewportSpecificData = cloneDeep(state.viewportSpecificData); + viewportSpecificData[viewportIndex] = merge({}, currentData, action.data); + + return Object.assign({}, state, { viewportSpecificData }); + } + case CLEAR_VIEWPORT: + viewportSpecificData = cloneDeep(state.viewportSpecificData); + if (action.viewportIndex) { + viewportSpecificData[action.viewportIndex] = {}; + return Object.assign({}, state, { viewportSpecificData }); + } else { + return defaultState; + } + + default: + return state; + } +}; + +export default viewports; diff --git a/packages/_core/src/redux/reducers/viewports.test.js b/packages/_core/src/redux/reducers/viewports.test.js new file mode 100644 index 000000000..fd949e20e --- /dev/null +++ b/packages/_core/src/redux/reducers/viewports.test.js @@ -0,0 +1,101 @@ +// https://medium.com/@netxm/testing-redux-reducers-with-jest-6653abbfe3e1 +import reducer from './viewports.js'; +import * as types from './../constants/ActionTypes.js'; + +describe('viewports reducer', () => { + it('should return the initial state', () => { + expect(reducer(undefined, {})).toEqual({ + activeViewportIndex: 0, + layout: { + viewports: [ + { + height: '100%', + width: '100%', + }, + ], + }, + viewportSpecificData: {}, + }); + }); + + it('should handle SET_VIEWPORT_ACTIVE', () => { + const setViewportActiveAction = { + type: types.SET_VIEWPORT_ACTIVE, + viewportIndex: 100, + }; + + const updatedState = reducer({}, setViewportActiveAction); + + expect(updatedState.activeViewportIndex).toEqual( + setViewportActiveAction.viewportIndex + ); + }); + + it('should handle SET_VIEWPORT_LAYOUT', () => { + const setViewportLayoutAction = { + type: types.SET_VIEWPORT_LAYOUT, + layout: { + viewports: [ + { + height: '100%', + width: '50%', + }, + { + height: '100%', + width: '50%', + }, + ], + }, + }; + + const updatedState = reducer({}, setViewportLayoutAction); + + expect(updatedState.layout).toEqual(setViewportLayoutAction.layout); + }); + + // If there were previous keys, this would have + // "merge" behavior, not a clear & set + // May be worth another test? + it('should handle SET_VIEWPORT', () => { + const viewportToSet = 0; + const setViewportAction = { + type: types.SET_VIEWPORT, + viewportIndex: viewportToSet, + data: { + hello: 'this is that data for the viewport', + world: 'that will be set for the viewportIndex', + }, + }; + + const updatedState = reducer(undefined, setViewportAction); + const updatedViewport = updatedState.viewportSpecificData[viewportToSet]; + + expect(updatedViewport).toEqual(setViewportAction.data); + }); + + it('should handle CLEAR_VIEWPORT', () => { + const existingViewportData = { + viewportSpecificData: { + 0: { + viewportProperty: 'hello world', + }, + 1: { + viewportProperty: 'fizzbuzz', + }, + }, + }; + const clearViewportAction = { + type: types.CLEAR_VIEWPORT, + viewportIndex: 1, + }; + + const updatedState = reducer(existingViewportData, clearViewportAction); + const clearedViewport = + updatedState.viewportSpecificData[clearViewportAction.viewportIndex]; + const originalOtherViewport = existingViewportData.viewportSpecificData[0]; + const updatedOtherViewport = updatedState.viewportSpecificData[0]; + + expect(clearedViewport).toEqual({}); + expect(updatedOtherViewport).toEqual(originalOtherViewport); + }); +}); diff --git a/packages/_core/src/schema.js b/packages/_core/src/schema.js new file mode 100644 index 000000000..74544e6d0 --- /dev/null +++ b/packages/_core/src/schema.js @@ -0,0 +1,34 @@ +//import SimpleSchema from 'simpl-schema' + +/* + Extend the available options on schema definitions: + + * valuesLabels: Used in conjunction with allowedValues to define the text + label for each value (used on forms) + + * textOptional: Used to allow empty strings + + */ +/*SimpleSchema.extendOptions({ + valuesLabels: Match.Optional([String]), + textOptional: Match.Optional(Boolean) +}); + +// Add default required validation for empty strings which can be bypassed +// using textOptional=true definition +SimpleSchema.addValidator(function() { + if ( + this.definition.optional !== true && + this.definition.textOptional !== true && + this.value === '' + ) { + return 'required'; + } +});*/ + +// Including [label] for some messages +/*SimpleSchema.messages({ + maxCount: '[label] can not have more than [maxCount] values', + minCount: '[label] must have at least [minCount] values', + notAllowed: '[label] has an invalid value: "[value]"' +});*/ diff --git a/packages/_core/src/schema/servers.js b/packages/_core/src/schema/servers.js new file mode 100644 index 000000000..08b68904e --- /dev/null +++ b/packages/_core/src/schema/servers.js @@ -0,0 +1,320 @@ +/*import SimpleSchema from 'simpl-schema'; + +const serverNameDefinitions = { + type: String, + label: 'Server Name', + max: 100 +}; + +const serverTypeDefinitions = { + type: String, + label: 'Server Type', + allowedValues: ['dicomWeb', 'dimse'], + valuesLabels: ['DICOM Web', 'DIMSE'], + optional: true +}; + +const wadoUriRootDefinitions = { + type: String, + label: 'WADO URI root', + max: 1000 +}; + +const availableMouseButtonTools = ['wwwc', 'zoom', 'pan', 'stackScroll']; + +export const DICOMWebRequestOptions = new SimpleSchema({ + auth: { + type: String, + label: 'Authentication', + defaultValue: 'orthanc:orthanc', + optional: true + }, + requestFromBrowser: { + type: Boolean, + label: 'Make DICOMWeb requests from the Browser', + defaultValue: false, + optional: true + }, + logRequests: { + type: Boolean, + defaultValue: true, + label: 'Requests' + }, + logResponses: { + type: Boolean, + defaultValue: false, + label: 'Responses' + }, + logTiming: { + type: Boolean, + defaultValue: true, + label: 'Timing' + } +}); + +export const DICOMWebServer = new SimpleSchema({ + name: serverNameDefinitions, + type: serverTypeDefinitions, + wadoUriRoot: wadoUriRootDefinitions, + wadoRoot: { + type: String, + label: 'WADO root', + max: 1000 + }, + imageRendering: { + type: String, + label: 'Image rendering', + allowedValues: ['wadouri', 'wadors'], + valuesLabels: ['WADO URI', 'WADO RS'], + defaultValue: 'wadouri' + }, + thumbnailRendering: { + type: String, + label: 'Thumbnail rendering', + allowedValues: ['wadouri', 'wadors'], + valuesLabels: ['WADO URI', 'WADO RS'], + defaultValue: 'wadouri' + }, + qidoRoot: { + type: String, + label: 'QIDO root', + max: 1000 + }, + qidoSupportsIncludeField: { + type: Boolean, + label: 'QIDO supports "includefield" query key', + defaultValue: false + }, + requestOptions: { + type: DICOMWebRequestOptions, + label: 'Request Options' + } +}); + +export const DIMSEPeer = new SimpleSchema({ + aeTitle: { + type: String, + label: 'AE Title' + }, + hostAE: { + type: String, + label: 'AE Host', + optional: true + }, + host: { + type: String, + label: 'Host Domain/IP', + regEx: SimpleSchema.RegEx.WeakDomain + }, + port: { + type: Number, + label: 'Port', + min: 1, + defaultValue: 11112, + max: 65535 + }, + default: { + type: Boolean, + label: 'Default', + defaultValue: false + }, + server: { + type: Boolean, + label: 'Server', + defaultValue: false + }, + supportsInstanceRetrievalByStudyUid: { + type: Boolean, + label: 'Supports instance retrieval by StudyUid', + defaultValue: true + } +}); + +export const DIMSEServer = new SimpleSchema({ + name: serverNameDefinitions, + type: serverTypeDefinitions, + wadoUriRoot: wadoUriRootDefinitions, + requestOptions: { + type: DICOMWebRequestOptions, + label: 'Request Options' + }, + peers: { + type: [DIMSEPeer], + label: 'Peer List', + minCount: 1 + } +}); + +export const UISettings = new SimpleSchema({ + studyListFunctionsEnabled: { + type: Boolean, + label: 'Study List Functions Enabled?', + defaultValue: true + }, + leftSidebarOpen: { + type: Boolean, + label: 'Left sidebar open by default?', + defaultValue: false + }, + leftSidebarDragAndDrop: { + type: Boolean, + label: + 'Left sidebar allows thumbnail drag and drop. If false, images will be loaded on single click.', + defaultValue: true + }, + displaySetNavigationLoopOverSeries: { + type: Boolean, + label: + 'The UP/DOWN display set navigation buttons will start over when reach the last display set in viewport?', + defaultValue: true + }, + displaySetNavigationMultipleViewports: { + type: Boolean, + label: + 'The UP/DOWN display set navigation buttons will iterate over all the viewports at once?', + defaultValue: false + }, + displayEchoUltrasoundWorkflow: { + type: Boolean, + label: 'Enable cine dialog enhancements for multiframe images.', + defaultValue: false + }, + autoPositionMeasurementsTextCallOuts: { + type: String, + label: 'Auto position text call-outs for measurements when creating them.', + defaultValue: 'TRBL' + }, + studyListDateFilterNumDays: { + type: Number, + label: 'Number of days to be used on Study List date filter', + min: 1 + }, + showStackLoadingProgressBar: { + type: Boolean, + label: + 'Show a progress bar closest to the thumbnail showing how much the stack has loaded', + defaultValue: true + }, + cornerstoneRenderer: { + type: String, + label: 'Cornerstone default image renderer', + defaultValue: 'webgl' + }, + sortSeriesByIncomingOrder: { + type: Boolean, + label: + "Define if the series' images shall be sorted by incoming order. Sort by Instance Number by default.", + defaultValue: false + }, + useMiddleSeriesInstanceAsThumbnail: { + type: Boolean, + label: + 'Define if the middle instance of a series will be used as thumbnail. If not, the first instance will be used.', + defaultValue: true + } +}); + +export const PrefetchSchema = new SimpleSchema({ + order: { + type: String, + label: 'Prefetch Order', + allowedValues: ['topdown', 'downward', 'closest'], + optional: false + }, + displaySetCount: { + type: Number, + label: 'Display Set Count', + min: 1, + defaultValue: 1 + } +}); + +export const MouseButtonToolSchema = new SimpleSchema({ + left: { + type: String, + label: 'Left Mouse Button', + allowedValues: availableMouseButtonTools, + optional: true + }, + right: { + type: String, + label: 'Right Mouse Button', + allowedValues: availableMouseButtonTools, + optional: true + }, + middle: { + type: String, + label: 'Middle Mouse Button', + allowedValues: availableMouseButtonTools, + optional: true + } +}); + +export const PublicServerConfig = new SimpleSchema({ + verifyEmail: { + type: Boolean, + label: 'Verify Email', + defaultValue: false + }, + demoUserEnabled: { + type: Boolean, + label: 'Creates demo user on startup and show TestDrive button', + defaultValue: true + }, + userAuthenticationRoutesEnabled: { + type: Boolean, + label: 'Enables routing to /login page.', + defaultValue: false + }, + ui: { + type: UISettings, + label: 'UI Settings' + }, + prefetch: { + type: PrefetchSchema, + label: 'Prefetch settings' + }, + defaultMouseButtonTools: { + type: MouseButtonToolSchema, + label: 'Default Mouse Button Tools' + } +}); + +export const Servers = new SimpleSchema({ + dicomWeb: { + type: [DICOMWebServer], + label: 'DICOMWeb Servers', + optional: true + }, + dimse: { + type: [DIMSEServer], + label: 'DIMSE Servers', + optional: true + } +}); + +export const ServerConfiguration = new SimpleSchema({ + servers: { + type: Servers, + label: 'Servers' + }, + defaultServiceType: { + type: String, + label: 'Default Service Type', + defaultValue: 'dicomWeb' + }, + dropCollections: { + type: Boolean, + label: 'Drop database collections', + defaultValue: false + }, + public: { + type: PublicServerConfig, + label: 'Public Server Configuration' + }, + origin: { + type: String, + label: 'Origin', + optional: true + } +});*/ diff --git a/packages/_core/src/string.js b/packages/_core/src/string.js new file mode 100644 index 000000000..117e16d92 --- /dev/null +++ b/packages/_core/src/string.js @@ -0,0 +1,67 @@ +// TODO: This is duplicated in TypeSafeCollection +function isObject(subject) { + return ( + subject instanceof Object || + (typeof subject === 'object' && subject !== null) + ); +} + +// TODO: This is duplicated in TypeSafeCollection +function isString(subject) { + return typeof subject === 'string'; +} + +// Search for some string inside any object or array +function search(object, query, property = null, result = []) { + // Create the search pattern + const pattern = new RegExp(query.trim(), 'i'); + + Object.keys(object).forEach(key => { + const item = object[key]; + + // Stop here if item is empty + if (!item) { + return; + } + + // Get the value to be compared + const value = isString(property) ? item[property] : item; + + // Check if the value match the pattern + if (isString(value) && pattern.test(value)) { + // Add the current item to the result + result.push(item); + } + + if (isObject(item)) { + // Search recursively the item if the current item is an object + search(item, query, property, result); + } + }); + + // Return the found items + return result; +} + +// Encode any string into a safe format for HTML id attribute +function encodeId(input) { + const string = input && input.toString ? input.toString() : input; + + // Return an underscore if the given string is empty or if it's not a string + if (string === '' || typeof string !== 'string') { + return '_'; + } + + // Create a converter to replace non accepted chars + const converter = match => '_' + match[0].charCodeAt(0).toString(16) + '_'; + + // Encode the given string and return it + return string.replace(/[^a-zA-Z0-9-]/g, converter); +} + +const string = { + search, + encodeId, +}; + +export default string; diff --git a/packages/_core/src/studies/getStudyBoxData.js b/packages/_core/src/studies/getStudyBoxData.js new file mode 100644 index 000000000..a67b047ad --- /dev/null +++ b/packages/_core/src/studies/getStudyBoxData.js @@ -0,0 +1,16 @@ +/** + * Overridable namespace to allow getting study boxes data externally. + * + * The function must handle the first parameter as a studyInformation object containing at least the + * studyInstanceUid attribute. + * + * Shall return a promise that will be resolved with an object containing those attributes: + * - studyInstanceUid {String}: copy of studyInformation.studyInstanceUid + * - modalities {String}: 2 uppercase letters for each modality split by any non-alphabetical char(s) + * - studyDate {String}: date formatted as YYYYMMDD + * - studyDescription {String}: study description string + */ +// TODO: What is this for? +const getStudyBoxData = false; + +export default getStudyBoxData; diff --git a/packages/_core/src/studies/index.js b/packages/_core/src/studies/index.js new file mode 100644 index 000000000..86839da72 --- /dev/null +++ b/packages/_core/src/studies/index.js @@ -0,0 +1,26 @@ +import { QIDO, WADO } from './services/'; +import { + deleteStudyMetadataPromise, + retrieveStudyMetadata, +} from './retrieveStudyMetadata.js'; + +import getStudyBoxData from './getStudyBoxData'; +import retrieveStudiesMetadata from './retrieveStudiesMetadata.js'; +import searchStudies from './searchStudies'; +import sortStudy from './sortStudy'; + +const studies = { + services: { + QIDO, + WADO, + }, + loadingDict: {}, + retrieveStudyMetadata, + deleteStudyMetadataPromise, + retrieveStudiesMetadata, + getStudyBoxData, + searchStudies, + sortStudy, +}; + +export default studies; diff --git a/packages/_core/src/studies/retrieveStudiesMetadata.js b/packages/_core/src/studies/retrieveStudiesMetadata.js new file mode 100644 index 000000000..2e27ac044 --- /dev/null +++ b/packages/_core/src/studies/retrieveStudiesMetadata.js @@ -0,0 +1,41 @@ +import log from '../log.js'; +import { retrieveStudyMetadata } from './retrieveStudyMetadata'; + +/** + * Retrieves metaData for multiple studies at once. + * + * This function calls retrieveStudyMetadata several times, asynchronously, + * and waits for all of the results to be returned. + * + * @param studyInstanceUids The UIDs of the Studies to be retrieved + * @return Promise + */ +export default function retrieveStudiesMetadata( + server, + studyInstanceUids, + seriesInstanceUids +) { + // Create an empty array to store the Promises for each metaData retrieval call + const promises = []; + + // Loop through the array of studyInstanceUids + studyInstanceUids.forEach(function(studyInstanceUid) { + // Send the call and resolve or reject the related promise based on its outcome + const promise = retrieveStudyMetadata( + server, + studyInstanceUid, + seriesInstanceUids + ); + + // Add the current promise to the array of promises + promises.push(promise); + }); + + // When all of the promises are complete, this callback runs + const promise = Promise.all(promises); + + // Warn the error on console if some retrieval failed + promise.catch(error => log.warn(error)); + + return promise; +} diff --git a/packages/_core/src/studies/retrieveStudyMetadata.js b/packages/_core/src/studies/retrieveStudyMetadata.js new file mode 100644 index 000000000..8c25f9d93 --- /dev/null +++ b/packages/_core/src/studies/retrieveStudyMetadata.js @@ -0,0 +1,57 @@ +import RetrieveMetadata from './services/wado/retrieveMetadata.js'; + +const module = 'RetrieveStudyMetadata'; +// Cache for promises. Prevents unnecessary subsequent calls to the server +const StudyMetaDataPromises = new Map(); + +/** + * Retrieves study metadata + * + * @param {Object} server + * @param {string} studyInstanceUid The UID of the Study to be retrieved + * @returns {Promise} that will be resolved with the metadata or rejected with the error + */ +export function retrieveStudyMetadata(server, studyInstanceUid) { + // @TODO: Whenever a study metadata request has failed, its related promise will be rejected once and for all + // and further requests for that metadata will always fail. On failure, we probably need to remove the + // corresponding promise from the "StudyMetaDataPromises" map... + + if (!server) { + throw new Error(`${module}: Required 'server' parameter not provided.`); + } + if (!studyInstanceUid) { + throw new Error( + `${module}: Required 'studyInstanceUid' parameter not provided.` + ); + } + + // Already waiting on result? Return cached promise + if (StudyMetaDataPromises.has(studyInstanceUid)) { + return StudyMetaDataPromises.get(studyInstanceUid); + } + + // Create a promise to handle the data retrieval + const promise = new Promise((resolve, reject) => { + RetrieveMetadata(server, studyInstanceUid).then(function(data) { + resolve(data); + }, reject); + }); + + // Store the promise in cache + StudyMetaDataPromises.set(studyInstanceUid, promise); + + return promise; +} + +/** + * Delete the cached study metadata retrieval promise to ensure that the browser will + * re-retrieve the study metadata when it is next requested + * + * @param {String} studyInstanceUid The UID of the Study to be removed from cache + * + */ +export function deleteStudyMetadataPromise(studyInstanceUid) { + if (StudyMetaDataPromises.has(studyInstanceUid)) { + StudyMetaDataPromises.delete(studyInstanceUid); + } +} diff --git a/packages/_core/src/studies/retrieveStudyMetadata.test.js b/packages/_core/src/studies/retrieveStudyMetadata.test.js new file mode 100644 index 000000000..4c2718587 --- /dev/null +++ b/packages/_core/src/studies/retrieveStudyMetadata.test.js @@ -0,0 +1,35 @@ +import { retrieveStudyMetadata } from './retrieveStudyMetadata.js'; + +const fakeDicomWebServer = {}; + +// Testing Promises: https://jestjs.io/docs/en/asynchronous#promises +describe('retrieveStudyMetadata.js', () => { + it('throws an exception if no server parameter is provided', () => { + const callWithNoServer = () => { + retrieveStudyMetadata(null, 'fake-study-instance-uid'); + }; + + expect(callWithNoServer).toThrow(Error); + }); + + it('throws an exception if no studyInstanceUid parameter is provided', () => { + const callWithNoStudyInstanceUid = () => { + retrieveStudyMetadata(fakeDicomWebServer, null); + }; + + expect(callWithNoStudyInstanceUid).toThrow(Error); + }); + + it('caches and returns the same promise for identical studyInstanceUIDs', () => { + const firstPromise = retrieveStudyMetadata( + fakeDicomWebServer, + 'fake-study-instance-uid' + ); + const secondPromise = retrieveStudyMetadata( + fakeDicomWebServer, + 'fake-study-instance-uid' + ); + + expect(firstPromise).toBe(secondPromise); + }); +}); diff --git a/packages/_core/src/studies/searchStudies.js b/packages/_core/src/studies/searchStudies.js new file mode 100644 index 000000000..fc6ec5cba --- /dev/null +++ b/packages/_core/src/studies/searchStudies.js @@ -0,0 +1,22 @@ +import Studies from './services/qido/studies'; + +const studySearchPromises = new Map(); + +/** + * Search for studies information by the given filter + * + * @param {Object} filter Filter that will be used on search + * @returns {Promise} resolved with an array of studies information or rejected with an error + */ +export default function searchStudies(server, filter) { + const promiseKey = JSON.stringify(filter); + if (studySearchPromises.has(promiseKey)) { + return studySearchPromises.get(promiseKey); + } else { + const promise = Studies(server, filter); + + studySearchPromises.set(promiseKey, promise); + + return promise; + } +} diff --git a/packages/_core/src/studies/services/index.js b/packages/_core/src/studies/services/index.js new file mode 100644 index 000000000..c059fefc7 --- /dev/null +++ b/packages/_core/src/studies/services/index.js @@ -0,0 +1,15 @@ +// DICOMWeb instance, study, and metadata retrieval +import Instances from './qido/instances.js'; +import Studies from './qido/studies.js'; +import RetrieveMetadata from './wado/retrieveMetadata.js'; + +const WADO = { + RetrieveMetadata, +}; + +const QIDO = { + Studies, + Instances, +}; + +export { QIDO, WADO }; diff --git a/packages/_core/src/studies/services/qido/instances.js b/packages/_core/src/studies/services/qido/instances.js new file mode 100644 index 000000000..76d581bbb --- /dev/null +++ b/packages/_core/src/studies/services/qido/instances.js @@ -0,0 +1,103 @@ +import DICOMWeb from '../../../DICOMWeb/'; +import { api } from 'dicomweb-client'; + +/** + * Parses data returned from a QIDO search and transforms it into + * an array of series that are present in the study + * + * @param server The DICOM server + * @param studyInstanceUid + * @param resultData + * @returns {Array} Series List + */ +function resultDataToStudyMetadata(server, studyInstanceUid, resultData) { + const seriesMap = {}; + const seriesList = []; + + resultData.forEach(function(instance) { + // Use seriesMap to cache series data + // If the series instance UID has already been used to + // process series data, continue using that series + var seriesInstanceUid = DICOMWeb.getString(instance['0020000E']); + var series = seriesMap[seriesInstanceUid]; + + // If no series data exists in the seriesMap cache variable, + // process any available series data + if (!series) { + series = { + seriesInstanceUid: seriesInstanceUid, + seriesNumber: DICOMWeb.getString(instance['00200011']), + instances: [], + }; + + // Save this data in the seriesMap cache variable + seriesMap[seriesInstanceUid] = series; + seriesList.push(series); + } + + // The uri for the dicomweb + // NOTE: DCM4CHEE seems to return the data zipped + // NOTE: Orthanc returns the data with multi-part mime which cornerstoneWADOImageLoader doesn't + // know how to parse yet + //var uri = DICOMWeb.getString(instance['00081190']); + //uri = uri.replace('wado-rs', 'dicom-web'); + + // manually create a WADO-URI from the UIDs + // NOTE: Haven't been able to get Orthanc's WADO-URI to work yet - maybe its not configured? + var sopInstanceUid = DICOMWeb.getString(instance['00080018']); + var uri = + server.wadoUriRoot + + '?requestType=WADO&studyUID=' + + studyInstanceUid + + '&seriesUID=' + + seriesInstanceUid + + '&objectUID=' + + sopInstanceUid + + '&contentType=application%2Fdicom'; + + // Add this instance to the current series + series.instances.push({ + sopClassUid: DICOMWeb.getString(instance['00080016']), + sopInstanceUid: sopInstanceUid, + uri: uri, + instanceNumber: DICOMWeb.getString(instance['00200013']), + }); + }); + return seriesList; +} + +/** + * Retrieve a set of instances using a QIDO call + * @param server + * @param studyInstanceUid + * @throws ECONNREFUSED + * @returns {{wadoUriRoot: String, studyInstanceUid: String, seriesList: Array}} + */ +export default function Instances(server, studyInstanceUid) { + // TODO: Are we using this function anywhere?? Can we remove it? + + const config = { + url: server.qidoRoot, + headers: DICOMWeb.getAuthorizationHeader(server), + }; + const dicomWeb = new api.DICOMwebClient(config); + const queryParams = getQIDOQueryParams( + filter, + server.qidoSupportsIncludeField + ); + const options = { + studyInstanceUID: studyInstanceUid, + }; + + return dicomWeb.searchForInstances(options).then(result => { + return { + wadoUriRoot: server.wadoUriRoot, + studyInstanceUid: studyInstanceUid, + seriesList: resultDataToStudyMetadata( + server, + studyInstanceUid, + result.data + ), + }; + }); +} diff --git a/packages/_core/src/studies/services/qido/studies.js b/packages/_core/src/studies/services/qido/studies.js new file mode 100644 index 000000000..9ec7832b7 --- /dev/null +++ b/packages/_core/src/studies/services/qido/studies.js @@ -0,0 +1,129 @@ +import { api } from 'dicomweb-client'; +import DICOMWeb from '../../../DICOMWeb/'; + +/** + * Creates a QIDO date string for a date range query + * Assumes the year is positive, at most 4 digits long. + * + * @param date The Date object to be formatted + * @returns {string} The formatted date string + */ +function dateToString(date) { + if (!date) return ''; + let year = date.getFullYear().toString(); + let month = (date.getMonth() + 1).toString(); + let day = date.getDate().toString(); + year = '0'.repeat(4 - year.length).concat(year); + month = '0'.repeat(2 - month.length).concat(month); + day = '0'.repeat(2 - day.length).concat(day); + return ''.concat(year, month, day); +} + +/** + * Produces a QIDO URL given server details and a set of specified search filter + * items + * + * @param filter + * @param serverSupportsQIDOIncludeField + * @returns {string} The URL with encoded filter query data + */ +function getQIDOQueryParams(filter, serverSupportsQIDOIncludeField) { + const commaSeparatedFields = [ + '00081030', // Study Description + '00080060', //Modality + // Add more fields here if you want them in the result + ].join(','); + + const parameters = { + PatientName: filter.patientName, + PatientID: filter.patientId, + AccessionNumber: filter.accessionNumber, + StudyDescription: filter.studyDescription, + ModalitiesInStudy: filter.modalitiesInStudy, + limit: filter.limit, + offset: filter.offset, + includefield: serverSupportsQIDOIncludeField ? commaSeparatedFields : 'all', + }; + + // build the StudyDate range parameter + if (filter.studyDateFrom || filter.studyDateTo) { + const dateFrom = dateToString(new Date(filter.studyDateFrom)); + const dateTo = dateToString(new Date(filter.studyDateTo)); + parameters.StudyDate = `${dateFrom}-${dateTo}`; + } + + // Build the StudyInstanceUID parameter + if (filter.studyInstanceUid) { + let studyUids = filter.studyInstanceUid; + studyUids = Array.isArray(studyUids) ? studyUids.join() : studyUids; + studyUids = studyUids.replace(/[^0-9.]+/g, '\\'); + parameters.StudyInstanceUID = studyUids; + } + + // Clean query params of undefined values. + const params = {}; + Object.keys(parameters).forEach(key => { + if (parameters[key] !== undefined && parameters[key] !== '') { + params[key] = parameters[key]; + } + }); + + return params; +} + +/** + * Parses resulting data from a QIDO call into a set of Study MetaData + * + * @param resultData + * @returns {Array} An array of Study MetaData objects + */ +function resultDataToStudies(resultData) { + const studies = []; + + if (!resultData || !resultData.length) return; + + resultData.forEach(study => + studies.push({ + studyInstanceUid: DICOMWeb.getString(study['0020000D']), + // 00080005 = SpecificCharacterSet + studyDate: DICOMWeb.getString(study['00080020']), + studyTime: DICOMWeb.getString(study['00080030']), + accessionNumber: DICOMWeb.getString(study['00080050']), + referringPhysicianName: DICOMWeb.getString(study['00080090']), + // 00081190 = URL + patientName: DICOMWeb.getName(study['00100010']), + patientId: DICOMWeb.getString(study['00100020']), + patientBirthdate: DICOMWeb.getString(study['00100030']), + patientSex: DICOMWeb.getString(study['00100040']), + studyId: DICOMWeb.getString(study['00200010']), + numberOfStudyRelatedSeries: DICOMWeb.getString(study['00201206']), + numberOfStudyRelatedInstances: DICOMWeb.getString(study['00201208']), + studyDescription: DICOMWeb.getString(study['00081030']), + // modality: DICOMWeb.getString(study['00080060']), + // modalitiesInStudy: DICOMWeb.getString(study['00080061']), + modalities: DICOMWeb.getString( + DICOMWeb.getModalities(study['00080060'], study['00080061']) + ), + }) + ); + + return studies; +} + +export default function Studies(server, filter) { + const config = { + url: server.qidoRoot, + headers: DICOMWeb.getAuthorizationHeader(server), + }; + + const dicomWeb = new api.DICOMwebClient(config); + const queryParams = getQIDOQueryParams( + filter, + server.qidoSupportsIncludeField + ); + const options = { + queryParams, + }; + + return dicomWeb.searchForStudies(options).then(resultDataToStudies); +} diff --git a/packages/_core/src/studies/services/wado/retrieveMetadata.js b/packages/_core/src/studies/services/wado/retrieveMetadata.js new file mode 100644 index 000000000..e984567d0 --- /dev/null +++ b/packages/_core/src/studies/services/wado/retrieveMetadata.js @@ -0,0 +1,467 @@ +import { api } from 'dicomweb-client'; +import DICOMWeb from '../../../DICOMWeb/'; + +const WADOProxy = { + convertURL: (url, server) => { + // TODO: Remove all WADOProxy stuff from this file + return url; + }, +}; + +function parseFloatArray(obj) { + const result = []; + + if (!obj) { + return result; + } + + const objs = obj.split('\\'); + for (let i = 0; i < objs.length; i++) { + result.push(parseFloat(objs[i])); + } + + return result; +} + +/** + * Simple cache schema for retrieved color palettes. + */ +const paletteColorCache = { + count: 0, + maxAge: 24 * 60 * 60 * 1000, // 24h cache? + entries: {}, + isValidUID: function(paletteUID) { + return typeof paletteUID === 'string' && paletteUID.length > 0; + }, + get: function(paletteUID) { + let entry = null; + if (this.entries.hasOwnProperty(paletteUID)) { + entry = this.entries[paletteUID]; + // check how the entry is... + if (Date.now() - entry.time > this.maxAge) { + // entry is too old... remove entry. + delete this.entries[paletteUID]; + this.count--; + entry = null; + } + } + return entry; + }, + add: function(entry) { + if (this.isValidUID(entry.uid)) { + let paletteUID = entry.uid; + if (this.entries.hasOwnProperty(paletteUID) !== true) { + this.count++; // increment cache entry count... + } + entry.time = Date.now(); + this.entries[paletteUID] = entry; + // @TODO: Add logic to get rid of old entries and reduce memory usage... + } + }, +}; + +/** Returns a WADO url for an instance + * + * @param studyInstanceUid + * @param seriesInstanceUid + * @param sopInstanceUid + * @returns {string} + */ +function buildInstanceWadoUrl( + server, + studyInstanceUid, + seriesInstanceUid, + sopInstanceUid +) { + // TODO: This can be removed, since DICOMWebClient has the same function. Not urgent, though + const params = []; + + params.push('requestType=WADO'); + params.push(`studyUID=${studyInstanceUid}`); + params.push(`seriesUID=${seriesInstanceUid}`); + params.push(`objectUID=${sopInstanceUid}`); + params.push('contentType=application/dicom'); + params.push('transferSyntax=*'); + + const paramString = params.join('&'); + + return `${server.wadoUriRoot}?${paramString}`; +} + +function buildInstanceWadoRsUri( + server, + studyInstanceUid, + seriesInstanceUid, + sopInstanceUid +) { + return `${ + server.wadoRoot + }/studies/${studyInstanceUid}/series/${seriesInstanceUid}/instances/${sopInstanceUid}`; +} + +function buildInstanceFrameWadoRsUri( + server, + studyInstanceUid, + seriesInstanceUid, + sopInstanceUid, + frame +) { + const baseWadoRsUri = buildInstanceWadoRsUri( + server, + studyInstanceUid, + seriesInstanceUid, + sopInstanceUid + ); + frame = frame != null || 1; + + return `${baseWadoRsUri}/frames/${frame}`; +} + +/** + * Parses the SourceImageSequence, if it exists, in order + * to return a ReferenceSOPInstanceUID. The ReferenceSOPInstanceUID + * is used to refer to this image in any accompanying DICOM-SR documents. + * + * @param instance + * @returns {String} The ReferenceSOPInstanceUID + */ +function getSourceImageInstanceUid(instance) { + // TODO= Parse the whole Source Image Sequence + // This is a really poor workaround for now. + // Later we should probably parse the whole sequence. + var SourceImageSequence = instance['00082112']; + if ( + SourceImageSequence && + SourceImageSequence.Value && + SourceImageSequence.Value.length + ) { + return SourceImageSequence.Value[0]['00081155'].Value[0]; + } +} + +function getPaletteColor(server, instance, tag, lutDescriptor) { + const numLutEntries = lutDescriptor[0]; + const bits = lutDescriptor[2]; + + let uri = WADOProxy.convertURL(instance[tag].BulkDataURI, server); + + // TODO: Workaround for dcm4chee behind SSL-terminating proxy returning + // incorrect bulk data URIs + if (server.wadoRoot.indexOf('https') === 0 && !uri.includes('https')) { + uri = uri.replace('http', 'https'); + } + + const config = { + url: server.wadoRoot, //BulkDataURI is absolute, so this isn't used + headers: DICOMWeb.getAuthorizationHeader(server), + }; + const dicomWeb = new api.DICOMwebClient(config); + const options = { + BulkDataURI: uri, + }; + + const readUInt16 = (byteArray, position) => { + return byteArray[position] + byteArray[position + 1] * 256; + }; + + const arrayBufferToPaletteColorLUT = arraybuffer => { + const byteArray = new Uint8Array(arraybuffer); + const lut = []; + + for (let i = 0; i < numLutEntries; i++) { + if (bits === 16) { + lut[i] = readUInt16(byteArray, i * 2); + } else { + lut[i] = byteArray[i]; + } + } + + return lut; + }; + + return dicomWeb.retrieveBulkData(options).then(arrayBufferToPaletteColorLUT); +} + +/** + * Fetch palette colors for instances with "PALETTE COLOR" photometricInterpretation. + * + * @param server {Object} Current server; + * @param instance {Object} The retrieved instance metadata; + * @returns {String} The ReferenceSOPInstanceUID + */ +async function getPaletteColors(server, instance, lutDescriptor) { + let paletteUID = DICOMWeb.getString(instance['00281199']); + + return new Promise((resolve, reject) => { + let entry; + if (paletteColorCache.isValidUID(paletteUID)) { + entry = paletteColorCache.get(paletteUID); + + if (entry) { + return resolve(entry); + } + } + + // no entry in cache... Fetch remote data. + const r = getPaletteColor(server, instance, '00281201', lutDescriptor); + const g = getPaletteColor(server, instance, '00281202', lutDescriptor); + const b = getPaletteColor(server, instance, '00281203', lutDescriptor); + + const promises = [r, g, b]; + + Promise.all(promises).then(args => { + entry = { + red: args[0], + green: args[1], + blue: args[2], + }; + + // when paletteUID is present, the entry can be cached... + entry.uid = paletteUID; + paletteColorCache.add(entry); + + resolve(entry); + }); + }); +} + +function getFrameIncrementPointer(element) { + const frameIncrementPointerNames = { + '00181065': 'frameTimeVector', + '00181063': 'frameTime', + }; + + if (!element || !element.Value || !element.Value.length) { + return; + } + + const value = element.Value[0]; + return frameIncrementPointerNames[value]; +} + +function getRadiopharmaceuticalInfo(instance) { + const modality = DICOMWeb.getString(instance['00080060']); + + if (modality !== 'PT') { + return; + } + + const radiopharmaceuticalInfo = instance['00540016']; + if ( + radiopharmaceuticalInfo === undefined || + !radiopharmaceuticalInfo.Value || + !radiopharmaceuticalInfo.Value.length + ) { + return; + } + + const firstPetRadiopharmaceuticalInfo = radiopharmaceuticalInfo.Value[0]; + return { + radiopharmaceuticalStartTime: DICOMWeb.getString( + firstPetRadiopharmaceuticalInfo['00181072'] + ), + radionuclideTotalDose: DICOMWeb.getNumber( + firstPetRadiopharmaceuticalInfo['00181074'] + ), + radionuclideHalfLife: DICOMWeb.getNumber( + firstPetRadiopharmaceuticalInfo['00181075'] + ), + }; +} + +/** + * Parses result data from a WADO search into Study MetaData + * Returns an object populated with study metadata, including the + * series list. + * + * @param server + * @param studyInstanceUid + * @param resultData + * @returns {{seriesList: Array, patientName: *, patientId: *, accessionNumber: *, studyDate: *, modalities: *, studyDescription: *, imageCount: *, studyInstanceUid: *}} + */ +async function resultDataToStudyMetadata(server, studyInstanceUid, resultData) { + if (!resultData.length) { + return; + } + + const anInstance = resultData[0]; + if (!anInstance) { + return; + } + + // TODO: Pass a reference ID to the server instead of including the URLs here + const studyData = { + seriesList: [], + studyInstanceUid, + wadoUriRoot: server.wadoUriRoot, + wadoRoot: server.wadoRoot, + qidoRoot: server.qidoRoot, + patientName: DICOMWeb.getName(anInstance['00100010']), + patientId: DICOMWeb.getString(anInstance['00100020']), + patientAge: DICOMWeb.getNumber(anInstance['00101010']), + patientSize: DICOMWeb.getNumber(anInstance['00101020']), + patientWeight: DICOMWeb.getNumber(anInstance['00101030']), + accessionNumber: DICOMWeb.getString(anInstance['00080050']), + studyDate: DICOMWeb.getString(anInstance['00080020']), + modalities: DICOMWeb.getString(anInstance['00080061']), + studyDescription: DICOMWeb.getString(anInstance['00081030']), + imageCount: DICOMWeb.getString(anInstance['00201208']), + studyInstanceUid: DICOMWeb.getString(anInstance['0020000D']), + institutionName: DICOMWeb.getString(anInstance['00080080']), + }; + + const seriesMap = {}; + + await Promise.all( + resultData.map(async function(instance) { + const seriesInstanceUid = DICOMWeb.getString(instance['0020000E']); + let series = seriesMap[seriesInstanceUid]; + + if (!series) { + series = { + seriesDescription: DICOMWeb.getString(instance['0008103E']), + modality: DICOMWeb.getString(instance['00080060']), + seriesInstanceUid: seriesInstanceUid, + seriesNumber: DICOMWeb.getNumber(instance['00200011']), + seriesDate: DICOMWeb.getString(instance['00080021']), + seriesTime: DICOMWeb.getString(instance['00080031']), + instances: [], + }; + seriesMap[seriesInstanceUid] = series; + studyData.seriesList.push(series); + } + + const sopInstanceUid = DICOMWeb.getString(instance['00080018']); + const wadouri = buildInstanceWadoUrl( + server, + studyInstanceUid, + seriesInstanceUid, + sopInstanceUid + ); + const baseWadoRsUri = buildInstanceWadoRsUri( + server, + studyInstanceUid, + seriesInstanceUid, + sopInstanceUid + ); + const wadorsuri = buildInstanceFrameWadoRsUri( + server, + studyInstanceUid, + seriesInstanceUid, + sopInstanceUid + ); + + const instanceSummary = { + imageType: DICOMWeb.getString(instance['00080008']), + sopClassUid: DICOMWeb.getString(instance['00080016']), + modality: DICOMWeb.getString(instance['00080060']), + sopInstanceUid, + instanceNumber: DICOMWeb.getNumber(instance['00200013']), + imagePositionPatient: DICOMWeb.getString(instance['00200032']), + imageOrientationPatient: DICOMWeb.getString(instance['00200037']), + frameOfReferenceUID: DICOMWeb.getString(instance['00200052']), + sliceLocation: DICOMWeb.getNumber(instance['00201041']), + samplesPerPixel: DICOMWeb.getNumber(instance['00280002']), + photometricInterpretation: DICOMWeb.getString(instance['00280004']), + planarConfiguration: DICOMWeb.getNumber(instance['00280006']), + rows: DICOMWeb.getNumber(instance['00280010']), + columns: DICOMWeb.getNumber(instance['00280011']), + pixelSpacing: DICOMWeb.getString(instance['00280030']), + pixelAspectRatio: DICOMWeb.getString(instance['00280034']), + bitsAllocated: DICOMWeb.getNumber(instance['00280100']), + bitsStored: DICOMWeb.getNumber(instance['00280101']), + highBit: DICOMWeb.getNumber(instance['00280102']), + pixelRepresentation: DICOMWeb.getNumber(instance['00280103']), + smallestPixelValue: DICOMWeb.getNumber(instance['00280106']), + largestPixelValue: DICOMWeb.getNumber(instance['00280107']), + windowCenter: DICOMWeb.getString(instance['00281050']), + windowWidth: DICOMWeb.getString(instance['00281051']), + rescaleIntercept: DICOMWeb.getNumber(instance['00281052']), + rescaleSlope: DICOMWeb.getNumber(instance['00281053']), + rescaleType: DICOMWeb.getNumber(instance['00281054']), + sourceImageInstanceUid: getSourceImageInstanceUid(instance), + laterality: DICOMWeb.getString(instance['00200062']), + viewPosition: DICOMWeb.getString(instance['00185101']), + acquisitionDateTime: DICOMWeb.getString(instance['0008002A']), + numberOfFrames: DICOMWeb.getNumber(instance['00280008']), + frameIncrementPointer: getFrameIncrementPointer(instance['00280009']), + frameTime: DICOMWeb.getNumber(instance['00181063']), + frameTimeVector: parseFloatArray( + DICOMWeb.getString(instance['00181065']) + ), + sliceThickness: DICOMWeb.getNumber(instance['00180050']), + lossyImageCompression: DICOMWeb.getString(instance['00282110']), + derivationDescription: DICOMWeb.getString(instance['00282111']), + lossyImageCompressionRatio: DICOMWeb.getString(instance['00282112']), + lossyImageCompressionMethod: DICOMWeb.getString(instance['00282114']), + echoNumber: DICOMWeb.getString(instance['00180086']), + contrastBolusAgent: DICOMWeb.getString(instance['00180010']), + radiopharmaceuticalInfo: getRadiopharmaceuticalInfo(instance), + baseWadoRsUri: baseWadoRsUri, + wadouri: WADOProxy.convertURL(wadouri, server), + wadorsuri: WADOProxy.convertURL(wadorsuri, server), + imageRendering: server.imageRendering, + thumbnailRendering: server.thumbnailRendering, + }; + + // Get additional information if the instance uses "PALETTE COLOR" photometric interpretation + if (instanceSummary.photometricInterpretation === 'PALETTE COLOR') { + const redPaletteColorLookupTableDescriptor = parseFloatArray( + DICOMWeb.getString(instance['00281101']) + ); + const greenPaletteColorLookupTableDescriptor = parseFloatArray( + DICOMWeb.getString(instance['00281102']) + ); + const bluePaletteColorLookupTableDescriptor = parseFloatArray( + DICOMWeb.getString(instance['00281103']) + ); + const palettes = await getPaletteColors( + server, + instance, + redPaletteColorLookupTableDescriptor + ); + + if (palettes) { + if (palettes.uid) { + instanceSummary.paletteColorLookupTableUID = palettes.uid; + } + + instanceSummary.redPaletteColorLookupTableData = palettes.red; + instanceSummary.greenPaletteColorLookupTableData = palettes.green; + instanceSummary.bluePaletteColorLookupTableData = palettes.blue; + instanceSummary.redPaletteColorLookupTableDescriptor = redPaletteColorLookupTableDescriptor; + instanceSummary.greenPaletteColorLookupTableDescriptor = greenPaletteColorLookupTableDescriptor; + instanceSummary.bluePaletteColorLookupTableDescriptor = bluePaletteColorLookupTableDescriptor; + } + } + + series.instances.push(instanceSummary); + }) + ); + + return studyData; +} + +/** + * Retrieve Study MetaData from a DICOM server using a WADO call + * + * @param server + * @param studyInstanceUid + * @returns {Promise} + */ +async function RetrieveMetadata(server, studyInstanceUid) { + const config = { + url: server.wadoRoot, + headers: DICOMWeb.getAuthorizationHeader(server), + }; + const dicomWeb = new api.DICOMwebClient(config); + const options = { + studyInstanceUID: studyInstanceUid, + }; + + return dicomWeb.retrieveStudyMetadata(options).then(result => { + return resultDataToStudyMetadata(server, studyInstanceUid, result); + }); +} + +export default RetrieveMetadata; diff --git a/packages/_core/src/studies/sortStudy.js b/packages/_core/src/studies/sortStudy.js new file mode 100644 index 000000000..b02cbad19 --- /dev/null +++ b/packages/_core/src/studies/sortStudy.js @@ -0,0 +1,17 @@ +/** + * Sorts the series and instances inside a study instance by their series + * and instance numbers in ascending order. + * + * @param {Object} study The study instance + */ +export default function sortStudy(study) { + if (!study || !study.seriesList) { + throw new Error('Insufficient study data was provided to sortStudy'); + } + + study.seriesList.sort((a, b) => a.seriesNumber - b.seriesNumber); + + study.seriesList.forEach(series => { + series.instances.sort((a, b) => a.instanceNumber - b.instanceNumber); + }); +} diff --git a/packages/_core/src/ui/getOffset.js b/packages/_core/src/ui/getOffset.js new file mode 100644 index 000000000..773d75253 --- /dev/null +++ b/packages/_core/src/ui/getOffset.js @@ -0,0 +1,21 @@ +/** + * Get the offset for the given element + * + * @param {Object} element DOM element which will have the offser calculated + * @returns {Object} Object containing the top and left offset + */ +export default function getOffset(element) { + let top = 0; + let left = 0; + if (element.offsetParent) { + do { + left += element.offsetLeft; + top += element.offsetTop; + } while ((element = element.offsetParent)); + } + + return { + left, + top, + }; +} diff --git a/packages/_core/src/ui/getScrollbarSize.js b/packages/_core/src/ui/getScrollbarSize.js new file mode 100644 index 000000000..16362c638 --- /dev/null +++ b/packages/_core/src/ui/getScrollbarSize.js @@ -0,0 +1,41 @@ +/** + * Get the vertical and horizontal scrollbar sizes + * Got from https://stackoverflow.com/questions/986937/how-can-i-get-the-browsers-scrollbar-sizes + * + * @returns {Array} Array containing the scrollbar horizontal and vertical sizes + */ +export default function getScrollbarSize() { + const inner = document.createElement('p'); + inner.style.width = '100%'; + inner.style.height = '100%'; + + const outer = document.createElement('div'); + outer.style.position = 'absolute'; + outer.style.top = '0px'; + outer.style.left = '0px'; + outer.style.visibility = 'hidden'; + outer.style.width = '100px'; + outer.style.height = '100px'; + outer.style.overflow = 'hidden'; + outer.appendChild(inner); + + document.body.appendChild(outer); + + const w1 = inner.offsetWidth; + const h1 = inner.offsetHeight; + outer.style.overflow = 'scroll'; + let w2 = inner.offsetWidth; + let h2 = inner.offsetHeight; + + if (w1 === w2) { + w2 = outer.clientWidth; + } + + if (h1 === h2) { + h2 = outer.clientHeight; + } + + document.body.removeChild(outer); + + return [w1 - w2, h1 - h2]; +} diff --git a/packages/_core/src/ui/handleError.js b/packages/_core/src/ui/handleError.js new file mode 100644 index 000000000..cbfb6f27c --- /dev/null +++ b/packages/_core/src/ui/handleError.js @@ -0,0 +1,33 @@ +import log from '../log.js'; + +export default function handleError(error) { + let { title, message } = error; + + if (!title) { + if (error instanceof Error) { + title = error.name; + } + } + + if (!message) { + if (error instanceof Error) { + message = error.message; + } + } + + const data = Object.assign( + { + title, + message, + class: 'themed', + hideConfirm: true, + cancelLabel: 'Dismiss', + cancelClass: 'btn-secondary', + }, + error || {} + ); + + log.error(error); + // TODO: Find a better way to handle errors instead of displaying a dialog for all of them. + // OHIF.ui.showDialog('dialogForm', data); +} diff --git a/packages/_core/src/ui/index.js b/packages/_core/src/ui/index.js new file mode 100644 index 000000000..942807a66 --- /dev/null +++ b/packages/_core/src/ui/index.js @@ -0,0 +1,14 @@ +import unsavedChanges from './unsavedChanges.js'; +import handleError from './handleError.js'; +import isCharacterKeyPress from './isCharacterKeyPress.js'; +import getOffset from './getOffset.js'; +import getScrollbarSize from './getScrollbarSize.js'; + +const ui = { + getScrollbarSize, + getOffset, + isCharacterKeyPress, + handleError, +}; + +export default ui; diff --git a/packages/_core/src/ui/isCharacterKeyPress.js b/packages/_core/src/ui/isCharacterKeyPress.js new file mode 100644 index 000000000..b3c5b91e9 --- /dev/null +++ b/packages/_core/src/ui/isCharacterKeyPress.js @@ -0,0 +1,21 @@ +/** + * Check if the pressed key combination will result in a character input + * Got from https://stackoverflow.com/questions/4179708/how-to-detect-if-the-pressed-key-will-produce-a-character-inside-an-input-text + * + * @returns {Boolean} Whether the pressed key combination will input a character or not + */ +export default function isCharacterKeyPress(event) { + if (typeof event.which === 'undefined') { + // This is IE, which only fires keypress events for printable keys + return true; + } else if (typeof event.which === 'number' && event.which > 0) { + // In other browsers except old versions of WebKit, event.which is + // only greater than zero if the keypress is a printable key. + // We need to filter out backspace and ctrl/alt/meta key combinations + return ( + !event.ctrlKey && !event.metaKey && !event.altKey && event.which !== 8 + ); + } + + return false; +} diff --git a/packages/_core/src/ui/unsavedChanges.js b/packages/_core/src/ui/unsavedChanges.js new file mode 100644 index 000000000..cbc00f9ed --- /dev/null +++ b/packages/_core/src/ui/unsavedChanges.js @@ -0,0 +1,536 @@ +const FUNCTION = 'function'; +const STRING = 'string'; +const UNDEFINED = 'undefined'; +const WILDCARD = '*'; // "*" is a special name which means "all children". +const SEPARATOR = '.'; + +/** + * Main Namespace Component Class + */ + +class Node { + constructor() { + this.value = 0; + this.children = {}; + this.handlers = {}; + } + + getPathComponents(path) { + return typeof path === STRING ? path.split(SEPARATOR) : null; + } + + getNodeUpToIndex(path, index) { + let node = this; + + for (let i = 0; i < index; ++i) { + let item = path[i]; + if (node.children.hasOwnProperty(item)) { + node = node.children[item]; + } else { + node = null; + break; + } + } + + return node; + } + + append(name, value) { + const children = this.children; + let node = null; + + if (children.hasOwnProperty(name)) { + node = children[name]; + } else if (typeof name === STRING && name !== WILDCARD) { + node = new Node(); + children[name] = node; + } + + if (node !== null) { + node.value += value > 0 ? parseInt(value) : 0; + } + + return node; + } + + probe(recursively) { + let value = this.value; + + // Calculate entire tree value recursively? + if (recursively === true) { + const children = this.children; + for (let item in children) { + if (children.hasOwnProperty(item)) { + value += children[item].probe(recursively); + } + } + } + + return value; + } + + clear(recursively) { + this.value = 0; + + // Clear entire tree recursively? + if (recursively === true) { + const children = this.children; + for (let item in children) { + if (children.hasOwnProperty(item)) { + children[item].clear(recursively); + } + } + } + } + + appendPath(path, value) { + path = this.getPathComponents(path); + + if (path !== null) { + const last = path.length - 1; + let node = this; + for (let i = 0; i < last; ++i) { + node = node.append(path[i], 0); + if (node === null) { + return false; + } + } + + return node.append(path[last], value) !== null; + } + + return false; + } + + clearPath(path, recursively) { + path = this.getPathComponents(path); + + if (path !== null) { + const last = path.length - 1; + let node = this.getNodeUpToIndex(path, last); + if (node !== null) { + let item = path[last]; + if (item !== WILDCARD) { + if (node.children.hasOwnProperty(item)) { + node.children[item].clear(recursively); + return true; + } + } else { + const children = node.children; + for (item in children) { + if (children.hasOwnProperty(item)) { + children[item].clear(recursively); + } + } + + return true; + } + } + } + + return false; + } + + probePath(path, recursively) { + path = this.getPathComponents(path); + + if (path !== null) { + const last = path.length - 1; + let node = this.getNodeUpToIndex(path, last); + if (node !== null) { + let item = path[last]; + if (item !== WILDCARD) { + if (node.children.hasOwnProperty(item)) { + return node.children[item].probe(recursively); + } + } else { + const children = node.children; + let value = 0; + for (item in children) { + if (children.hasOwnProperty(item)) { + value += children[item].probe(recursively); + } + } + + return value; + } + } + } + + return 0; + } + + attachHandler(type, handler) { + let result = false; + + if (typeof type === STRING && typeof handler === FUNCTION) { + const handlers = this.handlers; + const list = handlers.hasOwnProperty(type) + ? handlers[type] + : (handlers[type] = []); + const length = list.length; + + let notFound = true; + + for (let i = 0; i < length; ++i) { + if (handler === list[i]) { + notFound = false; + break; + } + } + + if (notFound) { + list[length] = handler; + result = true; + } + } + + return result; + } + + removeHandler(type, handler) { + let result = false; + + if (typeof type === STRING && typeof handler === FUNCTION) { + const handlers = this.handlers; + if (handlers.hasOwnProperty(type)) { + const list = handlers[type]; + const length = list.length; + for (let i = 0; i < length; ++i) { + if (handler === list[i]) { + list.splice(i, 1); + result = true; + break; + } + } + } + } + + return result; + } + + trigger(type, nonRecursively) { + if (typeof type === STRING) { + const handlers = this.handlers; + + if (handlers.hasOwnProperty(type)) { + const list = handlers[type]; + const length = list.length; + for (let i = 0; i < length; ++i) { + list[i].call(null); + } + } + + if (nonRecursively !== true) { + const children = this.children; + for (let item in children) { + if (children.hasOwnProperty(item)) { + children[item].trigger(type); + } + } + } + } + } + + attachHandlerForPath(path, type, handler) { + path = this.getPathComponents(path); + + if (path !== null) { + let node = this.getNodeUpToIndex(path, path.length); + if (node !== null) { + return node.attachHandler(type, handler); + } + } + + return false; + } + + removeHandlerForPath(path, type, handler) { + path = this.getPathComponents(path); + + if (path !== null) { + let node = this.getNodeUpToIndex(path, path.length); + if (node !== null) { + return node.removeHandler(type, handler); + } + } + + return false; + } + + triggerHandlersForPath(path, type, nonRecursively) { + path = this.getPathComponents(path); + + if (path !== null) { + let node = this.getNodeUpToIndex(path, path.length); + if (node !== null) { + node.trigger(type, nonRecursively); + } + } + } +} + +/** + * Root Namespace Node and API + */ + +const rootNode = new Node(); + +export const unsavedChanges = { + rootNode: rootNode, + + observer: null, //new Tracker.Dependency(), + + hooks: new Map(), + + /** + * Register a reactive dependency on every change any path suffers + */ + depend: function() { + return; // this.observer.depend(); + }, + + /** + * Signal an unsaved change for a given namespace. + * @param {String} path A string (e.g., "viewer.studyViewer.measurements.targets") that identifies the namespace of the signaled changes. + * @return {Boolean} Returns false if the signal could not be saved or the supplied namespace is invalid. Otherwise, true is returned. + */ + set: function(path) { + const result = rootNode.appendPath(path, 1); + //this.observer.changed(); + return result; + }, + + /** + * Clear all signaled unsaved changes for a given namespace. If the supplied namespace is a wildcard, all signals below that namespace + * are cleared. + * @param {String} path A string that identifies the namespace of the signaled changes (e.g., "viewer.studyViewer.measurements.targets" + * for clearing the "targets" item of the "viewer.studyViewer.measurements" namespace or "viewer.studyViewer.*" to specify all signaled + * changes for the "viewer.studyViewer" namespace). + * @param {Boolean} recursively Clear node and all its children recursively. If not specified defaults to true. + * @return {Boolean} Returns false if the signal could not be removed or the supplied namespace is invalid. Otherwise, true is returned. + */ + clear: function(path, recursively) { + const result = rootNode.clearPath( + path, + typeof recursively === UNDEFINED ? true : recursively + ); + //this.observer.changed(); + return result; + }, + + /** + * Count the amount of signaled unsaved changes for a given namespace. If the supplied namespace is a wildcard, all signals below that + * namespace will also be accounted. + * @param {String} path A string that identifies the namespace of the signaled changes (e.g., "viewer.studyViewer.measurements.targets" + * for counting the amount of signals for the "targets" item of the "viewer.studyViewer.measurements" namespace or "viewer.studyViewer.*" + * to count all signaled changes for the "viewer.studyViewer" namespace). + * @param {Boolean} recursively Probe node and all its children recursively. If not specified defaults to true. + * @return {Number} Returns the amount of signaled changes for a given namespace. If the supplied namespace is a wildcard, the sum of all + * changes for that namespace are returned. + */ + probe: function(path, recursively) { + return rootNode.probePath( + path, + typeof recursively === UNDEFINED ? true : recursively + ); + }, + + /** + * Attach an event handler to the specified namespace. + * @param {String} name A string that identifies the namespace to which the event handler will be attached (e.g., + * "viewer.studyViewer.measurements" to attach an event handler for that namespace). + * @param {String} type A string that identifies the event type to which the event handler will be attached. + * @param {Function} handler The handler that will be executed when the specifed event is triggered. + * @return {Boolean} Returns true on success and false on failure. + */ + attachHandler: function(path, type, handler) { + return ( + rootNode.appendPath(path, 0) && + rootNode.attachHandlerForPath(path, type, handler) + ); + }, + + /** + * Detach an event handler from the specified namespace. + * @param {String} name A string that identifies the namespace from which the event handler will be detached (e.g., + * "viewer.studyViewer.measurements" to remove an event handler from that namespace). + * @param {String} type A string that identifies the event type to which the event handler was attached. + * @param {Function} handler The handler that will be removed from execution list. + * @return {Boolean} Returns true on success and false on failure. + */ + removeHandler: function(path, type, handler) { + return rootNode.removeHandlerForPath(path, type, handler); + }, + + /** + * Trigger all event handlers for the specified namespace and type. + * @param {String} name A string that identifies the namespace from which the event handler will be detached (e.g., + * "viewer.studyViewer.measurements" to remove an event handler from that namespace). + * @param {String} type A string that identifies the event type which will be triggered. + * @param {Boolean} nonRecursively If set to true, prevents triggering event handlers from descending tree. + * @return {Void} No value is returned. + */ + trigger: function(path, type, nonRecursively) { + rootNode.triggerHandlersForPath(path, type, nonRecursively); + }, + + /** + * UI utility that presents a confirmation dialog to the user if any unsaved changes where signaled for the given namespace. + * @param {String} path A string that identifies the namespace of the signaled changes (e.g., "viewer.studyViewer.measurements.targets" + * for considering only the signals for the "targets" item of the "viewer.studyViewer.measurements" namespace or "viewer.studyViewer.*" + * to consider all signaled changes for the "viewer.studyViewer" namespace). + * @param {Function} callback A callback function (e.g, function(shouldProceed, hasChanges) { ... }) that will be executed after assessment. + * Upon execution, the callback will receive two boolean arguments (shouldProceed and hasChanges) indicating if the action can be performed + * or not and if changes that need to be cleared exist. + * @param {Object} options (Optional) An object with UI presentation options. + * @param {String} options.title The string that will be used as a title for confirmation dialog. + * @param {String} options.message The string that will be used as a message for confirmation dialog. + * @return {void} No value is returned. + */ + checkBeforeAction: function(path, callback, options) { + let probe, hasChanges, shouldProceed; + + if (typeof callback !== 'function') { + // nothing to do if no callback function is supplied... + return; + } + + probe = this.probe(path); + if (probe > 0) { + // Unsaved changes exist... + hasChanges = true; + let dialogOptions = Object.assign( + { + title: 'You have unsaved changes!', + message: + "Your changes will be lost if you don't save them before leaving the current page... Are you sure you want to proceed?", + }, + options + ); + OHIF.ui.showDialog('dialogConfirm', dialogOptions).then( + function() { + // Unsaved changes exist but user confirms action... + shouldProceed = true; + callback.call(null, shouldProceed, hasChanges); + }, + function() { + // Unsaved changes exist and user does NOT confirm action... + shouldProceed = false; + callback.call(null, shouldProceed, hasChanges); + } + ); + } else { + // No unsaved changes, action can be performed... + hasChanges = false; + shouldProceed = true; + callback.call(null, shouldProceed, hasChanges); + } + }, + + /** + * UI utility that presents a "proactive" dialog (with three options: stay, abandon-changes, save-changes) to the user if any unsaved changes where signaled for the given namespace. + * @param {String} path A string that identifies the namespace of the signaled changes (e.g., "viewer.studyViewer.measurements.targets" + * for considering only the signals for the "targets" item of the "viewer.studyViewer.measurements" namespace or "viewer.studyViewer.*" + * to consider all signaled changes for the "viewer.studyViewer" namespace). + * @param {Function} callback A callback function (e.g, function(hasChanges, userChoice) { ... }) that will be executed after assessment. + * Upon execution, the callback will receive two arguments: one boolean (hasChanges) indicating that unsaved changes exist and one string with the ID of the + * option picked by the user on the dialog ('abort-action', 'abandon-changes' and 'save-changes'). If no unsaved changes exist, the second argument is null. + * @param {Object} options (Optional) An object with UI presentation options. + * @param {Object} options.position An object with optimal position (e.g., { x: ..., y: ... }) for the dialog. + * @return {void} No value is returned. + */ + presentProactiveDialog: function(path, callback, options) { + let probe, hasChanges; + + if (typeof callback !== 'function') { + // nothing to do if no callback function is supplied... + return; + } + + probe = this.probe(path, true); + if (probe > 0) { + // Unsaved changes exist... + hasChanges = true; + OHIF.ui.unsavedChangesDialog(function(choice) { + callback.call(null, hasChanges, choice); + }, options); + } else { + // No unsaved changes, action can be performed... + hasChanges = false; + callback.call(null, hasChanges, null); + } + }, + + addHook(saveCallback, options = {}) { + if (!options.path) { + options.path = '*'; + } + + if (!options.message) { + options.message = 'There are unsaved changes'; + } + + this.hooks.set(saveCallback, options); + }, + + removeHook(saveCallback) { + this.hooks.delete(saveCallback); + }, + + confirmNavigation(navigateCallback, event) { + let dialogPresented = false; + Array.from(this.hooks.keys()).every(saveCallback => { + const options = this.hooks.get(saveCallback); + const probe = this.probe(options.path, true); + if (!probe) return true; + + const dialogOptions = Object.assign({ class: 'themed' }, options); + if (event) { + dialogOptions.position = { + x: event.clientX + 15, + y: event.clientY + 15, + }; + } + + OHIF.ui.unsavedChanges.presentProactiveDialog( + options.path, + (hasChanges, userChoice) => { + if (!hasChanges) return; + + const clear = () => this.clear(options.path, true); + switch (userChoice) { + case 'abort-action': + return; + case 'save-changes': + const result = saveCallback(); + if (result instanceof Promise) { + return result.then(() => { + clear(); + this.confirmNavigation(navigateCallback, event); + }); + } + + clear(); + return this.confirmNavigation(navigateCallback, event); + case 'abandon-changes': + clear(); + break; + } + + navigateCallback(); + }, + dialogOptions + ); + + dialogPresented = true; + return false; + }); + + if (!dialogPresented) { + navigateCallback(); + } + }, +}; + +export default unsavedChanges; diff --git a/packages/_core/src/user.js b/packages/_core/src/user.js new file mode 100644 index 000000000..9e5df8d06 --- /dev/null +++ b/packages/_core/src/user.js @@ -0,0 +1,13 @@ +// These should be overridden by the implementation +let user = { + userLoggedIn: () => false, + getUserId: () => null, + getName: () => null, + getAccessToken: () => null, + login: () => new Promise((resolve, reject) => reject()), + logout: () => new Promise((resolve, reject) => reject()), + getData: key => null, + setData: (key, value) => null, +}; + +export default user; diff --git a/packages/_core/src/utils/DICOMTagDescriptions.js b/packages/_core/src/utils/DICOMTagDescriptions.js new file mode 100644 index 000000000..32215c5ac --- /dev/null +++ b/packages/_core/src/utils/DICOMTagDescriptions.js @@ -0,0 +1,3268 @@ +// TODO: Deprecate since we have the same thing in dcmjs? +const NUMBER = 'number'; +const STRING = 'string'; +const REGEX_TAG = /^x[0-9a-fx]{8}$/; + +const DICOMTagDescriptions = Object.create(Object.prototype, { + _descriptions: { + configurable: false, + enumerable: false, + writable: false, + value: Object.create(null), + }, + tagNumberToString: { + configurable: false, + enumerable: true, + writable: false, + value: function tagNumberToString(tag) { + let string; // by default, undefined is returned... + if (this.isValidTagNumber(tag)) { + // if it's a number, build its hexadecimal representation... + string = 'x' + ('00000000' + tag.toString(16)).substr(-8); + } + return string; + }, + }, + isValidTagNumber: { + configurable: false, + enumerable: true, + writable: false, + value: function isValidTagNumber(tag) { + return typeof tag === NUMBER && tag >= 0 && tag <= 0xffffffff; + }, + }, + isValidTag: { + configurable: false, + enumerable: true, + writable: false, + value: function isValidTag(tag) { + return typeof tag === STRING + ? REGEX_TAG.test(tag) + : this.isValidTagNumber(tag); + }, + }, + find: { + configurable: false, + enumerable: true, + writable: false, + value: function find(name) { + let description; // by default, undefined is returned... + if (typeof name !== STRING) { + // if it's a number, a tag string will be returned... + name = this.tagNumberToString(name); + } + if (typeof name === STRING) { + description = this._descriptions[name]; + } + return description; + }, + }, + init: { + configurable: false, + enumerable: true, + writable: false, + value: function init(descriptionMap) { + const _hasOwn = Object.prototype.hasOwnProperty; + const _descriptions = this._descriptions; + for (let tag in descriptionMap) { + if (_hasOwn.call(descriptionMap, tag)) { + if (!this.isValidTag(tag)) { + // Skip in case tag is not valid... + console.info(`DICOMTagDescriptions: Invalid tag "${tag}"...`); + continue; + } + if (tag in _descriptions) { + // Skip in case the tag is duplicated... + console.info(`DICOMTagDescriptions: Duplicated tag "${tag}"...`); + continue; + } + // Save keyword... + const keyword = descriptionMap[tag]; + // Create a description entry and freeze it... + const entry = Object.create(null); + entry.tag = tag; + entry.keyword = keyword; + Object.freeze(entry); + // Add tag references to entry... + _descriptions[tag] = entry; + // Add keyword references to entry (if not present already)... + if (keyword in _descriptions) { + const currentEntry = _descriptions[keyword]; + console.info( + `DICOMTagDescriptions: Using <${currentEntry.tag},${ + currentEntry.keyword + }> instead of <${entry.tag},${ + entry.keyword + }> for keyword "${keyword}"...` + ); + } else { + _descriptions[keyword] = entry; + } + } + } + // Freeze internal description map... + Object.freeze(_descriptions); + // Freeze itself... + Object.freeze(this); + }, + }, +}); + +/** + * Map with DICOM Tag Descriptions + */ +let initialTagDescriptionMap = { + x00020000: 'FileMetaInfoGroupLength', + x00020001: 'FileMetaInfoVersion', + x00020002: 'MediaStorageSOPClassUID', + x00020003: 'MediaStorageSOPInstanceUID', + x00020010: 'TransferSyntaxUID', + x00020012: 'ImplementationClassUID', + x00020013: 'ImplementationVersionName', + x00020016: 'SourceApplicationEntityTitle', + x00020100: 'PrivateInformationCreatorUID', + x00020102: 'PrivateInformation', + x00041130: 'FileSetID', + x00041141: 'FileSetDescriptorFileID', + x00041142: 'SpecificCharacterSetOfFile', + x00041200: 'FirstDirectoryRecordOffset', + x00041202: 'LastDirectoryRecordOffset', + x00041212: 'FileSetConsistencyFlag', + x00041220: 'DirectoryRecordSequence', + x00041400: 'OffsetOfNextDirectoryRecord', + x00041410: 'RecordInUseFlag', + x00041420: 'LowerLevelDirectoryEntityOffset', + x00041430: 'DirectoryRecordType', + x00041432: 'PrivateRecordUID', + x00041500: 'ReferencedFileID', + x00041504: 'MRDRDirectoryRecordOffset', + x00041510: 'ReferencedSOPClassUIDInFile', + x00041511: 'ReferencedSOPInstanceUIDInFile', + x00041512: 'ReferencedTransferSyntaxUIDInFile', + x0004151a: 'ReferencedRelatedSOPClassUIDInFile', + x00041600: 'NumberOfReferences', + x00080000: 'IdentifyingGroupLength', + x00080001: 'LengthToEnd', + x00080005: 'SpecificCharacterSet', + x00080006: 'LanguageCodeSequence', + x00080008: 'ImageType', + x00080010: 'RecognitionCode', + x00080012: 'InstanceCreationDate', + x00080013: 'InstanceCreationTime', + x00080014: 'InstanceCreatorUID', + x00080016: 'SOPClassUID', + x00080018: 'SOPInstanceUID', + x0008001a: 'RelatedGeneralSOPClassUID', + x0008001b: 'OriginalSpecializedSOPClassUID', + x00080020: 'StudyDate', + x00080021: 'SeriesDate', + x00080022: 'AcquisitionDate', + x00080023: 'ContentDate', + x00080024: 'OverlayDate', + x00080025: 'CurveDate', + x0008002a: 'AcquisitionDateTime', + x00080030: 'StudyTime', + x00080031: 'SeriesTime', + x00080032: 'AcquisitionTime', + x00080033: 'ContentTime', + x00080034: 'OverlayTime', + x00080035: 'CurveTime', + x00080040: 'DataSetType', + x00080041: 'DataSetSubtype', + x00080042: 'NuclearMedicineSeriesType', + x00080050: 'AccessionNumber', + x00080052: 'QueryRetrieveLevel', + x00080054: 'RetrieveAETitle', + x00080056: 'InstanceAvailability', + x00080058: 'FailedSOPInstanceUIDList', + x00080060: 'Modality', + x00080061: 'ModalitiesInStudy', + x00080062: 'SOPClassesInStudy', + x00080064: 'ConversionType', + x00080068: 'PresentationIntentType', + x00080070: 'Manufacturer', + x00080080: 'InstitutionName', + x00080081: 'InstitutionAddress', + x00080082: 'InstitutionCodeSequence', + x00080090: 'ReferringPhysicianName', + x00080092: 'ReferringPhysicianAddress', + x00080094: 'ReferringPhysicianTelephoneNumber', + x00080096: 'ReferringPhysicianIDSequence', + x00080100: 'CodeValue', + x00080102: 'CodingSchemeDesignator', + x00080103: 'CodingSchemeVersion', + x00080104: 'CodeMeaning', + x00080105: 'MappingResource', + x00080106: 'ContextGroupVersion', + x00080107: 'ContextGroupLocalVersion', + x0008010b: 'ContextGroupExtensionFlag', + x0008010c: 'CodingSchemeUID', + x0008010d: 'ContextGroupExtensionCreatorUID', + x0008010f: 'ContextIdentifier', + x00080110: 'CodingSchemeIDSequence', + x00080112: 'CodingSchemeRegistry', + x00080114: 'CodingSchemeExternalID', + x00080115: 'CodingSchemeName', + x00080116: 'CodingSchemeResponsibleOrganization', + x00080117: 'ContextUID', + x00080201: 'TimezoneOffsetFromUTC', + x00081000: 'NetworkID', + x00081010: 'StationName', + x00081030: 'StudyDescription', + x00081032: 'ProcedureCodeSequence', + x0008103e: 'SeriesDescription', + x00081040: 'InstitutionalDepartmentName', + x00081048: 'PhysiciansOfRecord', + x00081049: 'PhysiciansOfRecordIDSequence', + x00081050: 'PerformingPhysicianName', + x00081052: 'PerformingPhysicianIDSequence', + x00081060: 'NameOfPhysicianReadingStudy', + x00081062: 'PhysicianReadingStudyIDSequence', + x00081070: 'OperatorsName', + x00081072: 'OperatorIDSequence', + x00081080: 'AdmittingDiagnosesDescription', + x00081084: 'AdmittingDiagnosesCodeSequence', + x00081090: 'ManufacturersModelName', + x00081100: 'ReferencedResultsSequence', + x00081110: 'ReferencedStudySequence', + x00081111: 'ReferencedPerformedProcedureStepSequence', + x00081115: 'ReferencedSeriesSequence', + x00081120: 'ReferencedPatientSequence', + x00081125: 'ReferencedVisitSequence', + x00081130: 'ReferencedOverlaySequence', + x0008113a: 'ReferencedWaveformSequence', + x00081140: 'ReferencedImageSequence', + x00081145: 'ReferencedCurveSequence', + x0008114a: 'ReferencedInstanceSequence', + x00081150: 'ReferencedSOPClassUID', + x00081155: 'ReferencedSOPInstanceUID', + x0008115a: 'SOPClassesSupported', + x00081160: 'ReferencedFrameNumber', + x00081161: 'SimpleFrameList', + x00081162: 'CalculatedFrameList', + x00081163: 'TimeRange', + x00081164: 'FrameExtractionSequence', + x00081195: 'TransactionUID', + x00081197: 'FailureReason', + x00081198: 'FailedSOPSequence', + x00081199: 'ReferencedSOPSequence', + x00081200: 'OtherReferencedStudiesSequence', + x00081250: 'RelatedSeriesSequence', + x00082110: 'LossyImageCompressionRetired', + x00082111: 'DerivationDescription', + x00082112: 'SourceImageSequence', + x00082120: 'StageName', + x00082122: 'StageNumber', + x00082124: 'NumberOfStages', + x00082127: 'ViewName', + x00082128: 'ViewNumber', + x00082129: 'NumberOfEventTimers', + x0008212a: 'NumberOfViewsInStage', + x00082130: 'EventElapsedTimes', + x00082132: 'EventTimerNames', + x00082133: 'EventTimerSequence', + x00082134: 'EventTimeOffset', + x00082135: 'EventCodeSequence', + x00082142: 'StartTrim', + x00082143: 'StopTrim', + x00082144: 'RecommendedDisplayFrameRate', + x00082200: 'TransducerPosition', + x00082204: 'TransducerOrientation', + x00082208: 'AnatomicStructure', + x00082218: 'AnatomicRegionSequence', + x00082220: 'AnatomicRegionModifierSequence', + x00082228: 'PrimaryAnatomicStructureSequence', + x00082229: 'AnatomicStructureOrRegionSequence', + x00082230: 'AnatomicStructureModifierSequence', + x00082240: 'TransducerPositionSequence', + x00082242: 'TransducerPositionModifierSequence', + x00082244: 'TransducerOrientationSequence', + x00082246: 'TransducerOrientationModifierSeq', + x00082253: 'AnatomicEntrancePortalCodeSeqTrial', + x00082255: 'AnatomicApproachDirCodeSeqTrial', + x00082256: 'AnatomicPerspectiveDescrTrial', + x00082257: 'AnatomicPerspectiveCodeSeqTrial', + x00083001: 'AlternateRepresentationSequence', + x00083010: 'IrradiationEventUID', + x00084000: 'IdentifyingComments', + x00089007: 'FrameType', + x00089092: 'ReferencedImageEvidenceSequence', + x00089121: 'ReferencedRawDataSequence', + x00089123: 'CreatorVersionUID', + x00089124: 'DerivationImageSequence', + x00089154: 'SourceImageEvidenceSequence', + x00089205: 'PixelPresentation', + x00089206: 'VolumetricProperties', + x00089207: 'VolumeBasedCalculationTechnique', + x00089208: 'ComplexImageComponent', + x00089209: 'AcquisitionContrast', + x00089215: 'DerivationCodeSequence', + x00089237: 'GrayscalePresentationStateSequence', + x00089410: 'ReferencedOtherPlaneSequence', + x00089458: 'FrameDisplaySequence', + x00089459: 'RecommendedDisplayFrameRateInFloat', + x00089460: 'SkipFrameRangeFlag', + // x00091001: 'FullFidelity', + // x00091002: 'SuiteID', + // x00091004: 'ProductID', + // x00091027: 'ImageActualDate', + // x00091030: 'ServiceID', + // x00091031: 'MobileLocationNumber', + // x000910e3: 'EquipmentUID', + // x000910e6: 'GenesisVersionNow', + // x000910e7: 'ExamRecordChecksum', + // x000910e9: 'ActualSeriesDataTimeStamp', + x00100000: 'PatientGroupLength', + x00100010: 'PatientName', + x00100020: 'PatientID', + x00100021: 'IssuerOfPatientID', + x00100022: 'TypeOfPatientID', + x00100030: 'PatientBirthDate', + x00100032: 'PatientBirthTime', + x00100040: 'PatientSex', + x00100050: 'PatientInsurancePlanCodeSequence', + x00100101: 'PatientPrimaryLanguageCodeSeq', + x00100102: 'PatientPrimaryLanguageCodeModSeq', + x00101000: 'OtherPatientIDs', + x00101001: 'OtherPatientNames', + x00101002: 'OtherPatientIDsSequence', + x00101005: 'PatientBirthName', + x00101010: 'PatientAge', + x00101020: 'PatientSize', + x00101030: 'PatientWeight', + x00101040: 'PatientAddress', + x00101050: 'InsurancePlanIdentification', + x00101060: 'PatientMotherBirthName', + x00101080: 'MilitaryRank', + x00101081: 'BranchOfService', + x00101090: 'MedicalRecordLocator', + x00102000: 'MedicalAlerts', + x00102110: 'Allergies', + x00102150: 'CountryOfResidence', + x00102152: 'RegionOfResidence', + x00102154: 'PatientTelephoneNumbers', + x00102160: 'EthnicGroup', + x00102180: 'Occupation', + x001021a0: 'SmokingStatus', + x001021b0: 'AdditionalPatientHistory', + x001021c0: 'PregnancyStatus', + x001021d0: 'LastMenstrualDate', + x001021f0: 'PatientReligiousPreference', + x00102201: 'PatientSpeciesDescription', + x00102202: 'PatientSpeciesCodeSequence', + x00102203: 'PatientSexNeutered', + x00102210: 'AnatomicalOrientationType', + x00102292: 'PatientBreedDescription', + x00102293: 'PatientBreedCodeSequence', + x00102294: 'BreedRegistrationSequence', + x00102295: 'BreedRegistrationNumber', + x00102296: 'BreedRegistryCodeSequence', + x00102297: 'ResponsiblePerson', + x00102298: 'ResponsiblePersonRole', + x00102299: 'ResponsibleOrganization', + x00104000: 'PatientComments', + x00109431: 'ExaminedBodyThickness', + x00111010: 'PatientStatus', + x00120010: 'ClinicalTrialSponsorName', + x00120020: 'ClinicalTrialProtocolID', + x00120021: 'ClinicalTrialProtocolName', + x00120030: 'ClinicalTrialSiteID', + x00120031: 'ClinicalTrialSiteName', + x00120040: 'ClinicalTrialSubjectID', + x00120042: 'ClinicalTrialSubjectReadingID', + x00120050: 'ClinicalTrialTimePointID', + x00120051: 'ClinicalTrialTimePointDescription', + x00120060: 'ClinicalTrialCoordinatingCenter', + x00120062: 'PatientIdentityRemoved', + x00120063: 'DeidentificationMethod', + x00120064: 'DeidentificationMethodCodeSequence', + x00120071: 'ClinicalTrialSeriesID', + x00120072: 'ClinicalTrialSeriesDescription', + x00120084: 'DistributionType', + x00120085: 'ConsentForDistributionFlag', + x00180000: 'AcquisitionGroupLength', + x00180010: 'ContrastBolusAgent', + x00180012: 'ContrastBolusAgentSequence', + x00180014: 'ContrastBolusAdministrationRoute', + x00180015: 'BodyPartExamined', + x00180020: 'ScanningSequence', + x00180021: 'SequenceVariant', + x00180022: 'ScanOptions', + x00180023: 'MRAcquisitionType', + x00180024: 'SequenceName', + x00180025: 'AngioFlag', + x00180026: 'InterventionDrugInformationSeq', + x00180027: 'InterventionDrugStopTime', + x00180028: 'InterventionDrugDose', + x00180029: 'InterventionDrugSequence', + x0018002a: 'AdditionalDrugSequence', + x00180030: 'Radionuclide', + x00180031: 'Radiopharmaceutical', + x00180032: 'EnergyWindowCenterline', + x00180033: 'EnergyWindowTotalWidth', + x00180034: 'InterventionDrugName', + x00180035: 'InterventionDrugStartTime', + x00180036: 'InterventionSequence', + x00180037: 'TherapyType', + x00180038: 'InterventionStatus', + x00180039: 'TherapyDescription', + x0018003a: 'InterventionDescription', + x00180040: 'CineRate', + x00180042: 'InitialCineRunState', + x00180050: 'SliceThickness', + x00180060: 'KVP', + x00180070: 'CountsAccumulated', + x00180071: 'AcquisitionTerminationCondition', + x00180072: 'EffectiveDuration', + x00180073: 'AcquisitionStartCondition', + x00180074: 'AcquisitionStartConditionData', + x00180075: 'AcquisitionEndConditionData', + x00180080: 'RepetitionTime', + x00180081: 'EchoTime', + x00180082: 'InversionTime', + x00180083: 'NumberOfAverages', + x00180084: 'ImagingFrequency', + x00180085: 'ImagedNucleus', + x00180086: 'EchoNumber', + x00180087: 'MagneticFieldStrength', + x00180088: 'SpacingBetweenSlices', + x00180089: 'NumberOfPhaseEncodingSteps', + x00180090: 'DataCollectionDiameter', + x00180091: 'EchoTrainLength', + x00180093: 'PercentSampling', + x00180094: 'PercentPhaseFieldOfView', + x00180095: 'PixelBandwidth', + x00181000: 'DeviceSerialNumber', + x00181002: 'DeviceUID', + x00181003: 'DeviceID', + x00181004: 'PlateID', + x00181005: 'GeneratorID', + x00181006: 'GridID', + x00181007: 'CassetteID', + x00181008: 'GantryID', + x00181010: 'SecondaryCaptureDeviceID', + x00181011: 'HardcopyCreationDeviceID', + x00181012: 'DateOfSecondaryCapture', + x00181014: 'TimeOfSecondaryCapture', + x00181016: 'SecondaryCaptureDeviceManufacturer', + x00181017: 'HardcopyDeviceManufacturer', + x00181018: 'SecondaryCaptureDeviceModelName', + x00181019: 'SecondaryCaptureDeviceSoftwareVers', + x0018101a: 'HardcopyDeviceSoftwareVersion', + x0018101b: 'HardcopyDeviceModelName', + x00181020: 'SoftwareVersion', + x00181022: 'VideoImageFormatAcquired', + x00181023: 'DigitalImageFormatAcquired', + x00181030: 'ProtocolName', + x00181040: 'ContrastBolusRoute', + x00181041: 'ContrastBolusVolume', + x00181042: 'ContrastBolusStartTime', + x00181043: 'ContrastBolusStopTime', + x00181044: 'ContrastBolusTotalDose', + x00181045: 'SyringeCounts', + x00181046: 'ContrastFlowRate', + x00181047: 'ContrastFlowDuration', + x00181048: 'ContrastBolusIngredient', + x00181049: 'ContrastBolusConcentration', + x00181050: 'SpatialResolution', + x00181060: 'TriggerTime', + x00181061: 'TriggerSourceOrType', + x00181062: 'NominalInterval', + x00181063: 'FrameTime', + x00181064: 'CardiacFramingType', + x00181065: 'FrameTimeVector', + x00181066: 'FrameDelay', + x00181067: 'ImageTriggerDelay', + x00181068: 'MultiplexGroupTimeOffset', + x00181069: 'TriggerTimeOffset', + x0018106a: 'SynchronizationTrigger', + x0018106c: 'SynchronizationChannel', + x0018106e: 'TriggerSamplePosition', + x00181070: 'RadiopharmaceuticalRoute', + x00181071: 'RadiopharmaceuticalVolume', + x00181072: 'RadiopharmaceuticalStartTime', + x00181073: 'RadiopharmaceuticalStopTime', + x00181074: 'RadionuclideTotalDose', + x00181075: 'RadionuclideHalfLife', + x00181076: 'RadionuclidePositronFraction', + x00181077: 'RadiopharmaceuticalSpecActivity', + x00181078: 'RadiopharmaceuticalStartDateTime', + x00181079: 'RadiopharmaceuticalStopDateTime', + x00181080: 'BeatRejectionFlag', + x00181081: 'LowRRValue', + x00181082: 'HighRRValue', + x00181083: 'IntervalsAcquired', + x00181084: 'IntervalsRejected', + x00181085: 'PVCRejection', + x00181086: 'SkipBeats', + x00181088: 'HeartRate', + x00181090: 'CardiacNumberOfImages', + x00181094: 'TriggerWindow', + x00181100: 'ReconstructionDiameter', + x00181110: 'DistanceSourceToDetector', + x00181111: 'DistanceSourceToPatient', + x00181114: 'EstimatedRadiographicMagnification', + x00181120: 'GantryDetectorTilt', + x00181121: 'GantryDetectorSlew', + x00181130: 'TableHeight', + x00181131: 'TableTraverse', + x00181134: 'TableMotion', + x00181135: 'TableVerticalIncrement', + x00181136: 'TableLateralIncrement', + x00181137: 'TableLongitudinalIncrement', + x00181138: 'TableAngle', + x0018113a: 'TableType', + x00181140: 'RotationDirection', + x00181141: 'AngularPosition', + x00181142: 'RadialPosition', + x00181143: 'ScanArc', + x00181144: 'AngularStep', + x00181145: 'CenterOfRotationOffset', + x00181146: 'RotationOffset', + x00181147: 'FieldOfViewShape', + x00181149: 'FieldOfViewDimensions', + x00181150: 'ExposureTime', + x00181151: 'XRayTubeCurrent', + x00181152: 'Exposure', + x00181153: 'ExposureInMicroAmpSec', + x00181154: 'AveragePulseWidth', + x00181155: 'RadiationSetting', + x00181156: 'RectificationType', + x0018115a: 'RadiationMode', + x0018115e: 'ImageAreaDoseProduct', + x00181160: 'FilterType', + x00181161: 'TypeOfFilters', + x00181162: 'IntensifierSize', + x00181164: 'ImagerPixelSpacing', + x00181166: 'Grid', + x00181170: 'GeneratorPower', + x00181180: 'CollimatorGridName', + x00181181: 'CollimatorType', + x00181182: 'FocalDistance', + x00181183: 'XFocusCenter', + x00181184: 'YFocusCenter', + x00181190: 'FocalSpots', + x00181191: 'AnodeTargetMaterial', + x001811a0: 'BodyPartThickness', + x001811a2: 'CompressionForce', + x00181200: 'DateOfLastCalibration', + x00181201: 'TimeOfLastCalibration', + x00181210: 'ConvolutionKernel', + x00181240: 'UpperLowerPixelValues', + x00181242: 'ActualFrameDuration', + x00181243: 'CountRate', + x00181244: 'PreferredPlaybackSequencing', + x00181250: 'ReceiveCoilName', + x00181251: 'TransmitCoilName', + x00181260: 'PlateType', + x00181261: 'PhosphorType', + x00181300: 'ScanVelocity', + x00181301: 'WholeBodyTechnique', + x00181302: 'ScanLength', + x00181310: 'AcquisitionMatrix', + x00181312: 'InPlanePhaseEncodingDirection', + x00181314: 'FlipAngle', + x00181315: 'VariableFlipAngleFlag', + x00181316: 'SAR', + x00181318: 'DB-Dt', + x00181400: 'AcquisitionDeviceProcessingDescr', + x00181401: 'AcquisitionDeviceProcessingCode', + x00181402: 'CassetteOrientation', + x00181403: 'CassetteSize', + x00181404: 'ExposuresOnPlate', + x00181405: 'RelativeXRayExposure', + x00181450: 'ColumnAngulation', + x00181460: 'TomoLayerHeight', + x00181470: 'TomoAngle', + x00181480: 'TomoTime', + x00181490: 'TomoType', + x00181491: 'TomoClass', + x00181495: 'NumberOfTomosynthesisSourceImages', + x00181500: 'PositionerMotion', + x00181508: 'PositionerType', + x00181510: 'PositionerPrimaryAngle', + x00181511: 'PositionerSecondaryAngle', + x00181520: 'PositionerPrimaryAngleIncrement', + x00181521: 'PositionerSecondaryAngleIncrement', + x00181530: 'DetectorPrimaryAngle', + x00181531: 'DetectorSecondaryAngle', + x00181600: 'ShutterShape', + x00181602: 'ShutterLeftVerticalEdge', + x00181604: 'ShutterRightVerticalEdge', + x00181606: 'ShutterUpperHorizontalEdge', + x00181608: 'ShutterLowerHorizontalEdge', + x00181610: 'CenterOfCircularShutter', + x00181612: 'RadiusOfCircularShutter', + x00181620: 'VerticesOfPolygonalShutter', + x00181622: 'ShutterPresentationValue', + x00181623: 'ShutterOverlayGroup', + x00181624: 'ShutterPresentationColorCIELabVal', + x00181700: 'CollimatorShape', + x00181702: 'CollimatorLeftVerticalEdge', + x00181704: 'CollimatorRightVerticalEdge', + x00181706: 'CollimatorUpperHorizontalEdge', + x00181708: 'CollimatorLowerHorizontalEdge', + x00181710: 'CenterOfCircularCollimator', + x00181712: 'RadiusOfCircularCollimator', + x00181720: 'VerticesOfPolygonalCollimator', + x00181800: 'AcquisitionTimeSynchronized', + x00181801: 'TimeSource', + x00181802: 'TimeDistributionProtocol', + x00181803: 'NTPSourceAddress', + x00182001: 'PageNumberVector', + x00182002: 'FrameLabelVector', + x00182003: 'FramePrimaryAngleVector', + x00182004: 'FrameSecondaryAngleVector', + x00182005: 'SliceLocationVector', + x00182006: 'DisplayWindowLabelVector', + x00182010: 'NominalScannedPixelSpacing', + x00182020: 'DigitizingDeviceTransportDirection', + x00182030: 'RotationOfScannedFilm', + x00183100: 'IVUSAcquisition', + x00183101: 'IVUSPullbackRate', + x00183102: 'IVUSGatedRate', + x00183103: 'IVUSPullbackStartFrameNumber', + x00183104: 'IVUSPullbackStopFrameNumber', + x00183105: 'LesionNumber', + x00184000: 'AcquisitionComments', + x00185000: 'OutputPower', + x00185010: 'TransducerData', + x00185012: 'FocusDepth', + x00185020: 'ProcessingFunction', + x00185021: 'PostprocessingFunction', + x00185022: 'MechanicalIndex', + x00185024: 'BoneThermalIndex', + x00185026: 'CranialThermalIndex', + x00185027: 'SoftTissueThermalIndex', + x00185028: 'SoftTissueFocusThermalIndex', + x00185029: 'SoftTissueSurfaceThermalIndex', + x00185030: 'DynamicRange', + x00185040: 'TotalGain', + x00185050: 'DepthOfScanField', + x00185100: 'PatientPosition', + x00185101: 'ViewPosition', + x00185104: 'ProjectionEponymousNameCodeSeq', + x00185210: 'ImageTransformationMatrix', + x00185212: 'ImageTranslationVector', + x00186000: 'Sensitivity', + x00186011: 'SequenceOfUltrasoundRegions', + x00186012: 'RegionSpatialFormat', + x00186014: 'RegionDataType', + x00186016: 'RegionFlags', + x00186018: 'RegionLocationMinX0', + x0018601a: 'RegionLocationMinY0', + x0018601c: 'RegionLocationMaxX1', + x0018601e: 'RegionLocationMaxY1', + x00186020: 'ReferencePixelX0', + x00186022: 'ReferencePixelY0', + x00186024: 'PhysicalUnitsXDirection', + x00186026: 'PhysicalUnitsYDirection', + x00186028: 'ReferencePixelPhysicalValueX', + x0018602a: 'ReferencePixelPhysicalValueY', + x0018602c: 'PhysicalDeltaX', + x0018602e: 'PhysicalDeltaY', + x00186030: 'TransducerFrequency', + x00186031: 'TransducerType', + x00186032: 'PulseRepetitionFrequency', + x00186034: 'DopplerCorrectionAngle', + x00186036: 'SteeringAngle', + x00186038: 'DopplerSampleVolumeXPosRetired', + x00186039: 'DopplerSampleVolumeXPosition', + x0018603a: 'DopplerSampleVolumeYPosRetired', + x0018603b: 'DopplerSampleVolumeYPosition', + x0018603c: 'TMLinePositionX0Retired', + x0018603d: 'TMLinePositionX0', + x0018603e: 'TMLinePositionY0Retired', + x0018603f: 'TMLinePositionY0', + x00186040: 'TMLinePositionX1Retired', + x00186041: 'TMLinePositionX1', + x00186042: 'TMLinePositionY1Retired', + x00186043: 'TMLinePositionY1', + x00186044: 'PixelComponentOrganization', + x00186046: 'PixelComponentMask', + x00186048: 'PixelComponentRangeStart', + x0018604a: 'PixelComponentRangeStop', + x0018604c: 'PixelComponentPhysicalUnits', + x0018604e: 'PixelComponentDataType', + x00186050: 'NumberOfTableBreakPoints', + x00186052: 'TableOfXBreakPoints', + x00186054: 'TableOfYBreakPoints', + x00186056: 'NumberOfTableEntries', + x00186058: 'TableOfPixelValues', + x0018605a: 'TableOfParameterValues', + x00186060: 'RWaveTimeVector', + x00187000: 'DetectorConditionsNominalFlag', + x00187001: 'DetectorTemperature', + x00187004: 'DetectorType', + x00187005: 'DetectorConfiguration', + x00187006: 'DetectorDescription', + x00187008: 'DetectorMode', + x0018700a: 'DetectorID', + x0018700c: 'DateOfLastDetectorCalibration', + x0018700e: 'TimeOfLastDetectorCalibration', + x00187010: 'DetectorExposuresSinceCalibration', + x00187011: 'DetectorExposuresSinceManufactured', + x00187012: 'DetectorTimeSinceLastExposure', + x00187014: 'DetectorActiveTime', + x00187016: 'DetectorActiveOffsetFromExposure', + x0018701a: 'DetectorBinning', + x00187020: 'DetectorElementPhysicalSize', + x00187022: 'DetectorElementSpacing', + x00187024: 'DetectorActiveShape', + x00187026: 'DetectorActiveDimensions', + x00187028: 'DetectorActiveOrigin', + x0018702a: 'DetectorManufacturerName', + x0018702b: 'DetectorManufacturersModelName', + x00187030: 'FieldOfViewOrigin', + x00187032: 'FieldOfViewRotation', + x00187034: 'FieldOfViewHorizontalFlip', + x00187040: 'GridAbsorbingMaterial', + x00187041: 'GridSpacingMaterial', + x00187042: 'GridThickness', + x00187044: 'GridPitch', + x00187046: 'GridAspectRatio', + x00187048: 'GridPeriod', + x0018704c: 'GridFocalDistance', + x00187050: 'FilterMaterial', + x00187052: 'FilterThicknessMinimum', + x00187054: 'FilterThicknessMaximum', + x00187060: 'ExposureControlMode', + x00187062: 'ExposureControlModeDescription', + x00187064: 'ExposureStatus', + x00187065: 'PhototimerSetting', + x00188150: 'ExposureTimeInMicroSec', + x00188151: 'XRayTubeCurrentInMicroAmps', + x00189004: 'ContentQualification', + x00189005: 'PulseSequenceName', + x00189006: 'MRImagingModifierSequence', + x00189008: 'EchoPulseSequence', + x00189009: 'InversionRecovery', + x00189010: 'FlowCompensation', + x00189011: 'MultipleSpinEcho', + x00189012: 'MultiPlanarExcitation', + x00189014: 'PhaseContrast', + x00189015: 'TimeOfFlightContrast', + x00189016: 'Spoiling', + x00189017: 'SteadyStatePulseSequence', + x00189018: 'EchoPlanarPulseSequence', + x00189019: 'TagAngleFirstAxis', + x00189020: 'MagnetizationTransfer', + x00189021: 'T2Preparation', + x00189022: 'BloodSignalNulling', + x00189024: 'SaturationRecovery', + x00189025: 'SpectrallySelectedSuppression', + x00189026: 'SpectrallySelectedExcitation', + x00189027: 'SpatialPresaturation', + x00189028: 'Tagging', + x00189029: 'OversamplingPhase', + x00189030: 'TagSpacingFirstDimension', + x00189032: 'GeometryOfKSpaceTraversal', + x00189033: 'SegmentedKSpaceTraversal', + x00189034: 'RectilinearPhaseEncodeReordering', + x00189035: 'TagThickness', + x00189036: 'PartialFourierDirection', + x00189037: 'CardiacSynchronizationTechnique', + x00189041: 'ReceiveCoilManufacturerName', + x00189042: 'MRReceiveCoilSequence', + x00189043: 'ReceiveCoilType', + x00189044: 'QuadratureReceiveCoil', + x00189045: 'MultiCoilDefinitionSequence', + x00189046: 'MultiCoilConfiguration', + x00189047: 'MultiCoilElementName', + x00189048: 'MultiCoilElementUsed', + x00189049: 'MRTransmitCoilSequence', + x00189050: 'TransmitCoilManufacturerName', + x00189051: 'TransmitCoilType', + x00189052: 'SpectralWidth', + x00189053: 'ChemicalShiftReference', + x00189054: 'VolumeLocalizationTechnique', + x00189058: 'MRAcquisitionFrequencyEncodeSteps', + x00189059: 'Decoupling', + x00189060: 'DecoupledNucleus', + x00189061: 'DecouplingFrequency', + x00189062: 'DecouplingMethod', + x00189063: 'DecouplingChemicalShiftReference', + x00189064: 'KSpaceFiltering', + x00189065: 'TimeDomainFiltering', + x00189066: 'NumberOfZeroFills', + x00189067: 'BaselineCorrection', + x00189069: 'ParallelReductionFactorInPlane', + x00189070: 'CardiacRRIntervalSpecified', + x00189073: 'AcquisitionDuration', + x00189074: 'FrameAcquisitionDateTime', + x00189075: 'DiffusionDirectionality', + x00189076: 'DiffusionGradientDirectionSequence', + x00189077: 'ParallelAcquisition', + x00189078: 'ParallelAcquisitionTechnique', + x00189079: 'InversionTimes', + x00189080: 'MetaboliteMapDescription', + x00189081: 'PartialFourier', + x00189082: 'EffectiveEchoTime', + x00189083: 'MetaboliteMapCodeSequence', + x00189084: 'ChemicalShiftSequence', + x00189085: 'CardiacSignalSource', + x00189087: 'DiffusionBValue', + x00189089: 'DiffusionGradientOrientation', + x00189090: 'VelocityEncodingDirection', + x00189091: 'VelocityEncodingMinimumValue', + x00189093: 'NumberOfKSpaceTrajectories', + x00189094: 'CoverageOfKSpace', + x00189095: 'SpectroscopyAcquisitionPhaseRows', + x00189096: 'ParallelReductFactorInPlaneRetired', + x00189098: 'TransmitterFrequency', + x00189100: 'ResonantNucleus', + x00189101: 'FrequencyCorrection', + x00189103: 'MRSpectroscopyFOV-GeometrySequence', + x00189104: 'SlabThickness', + x00189105: 'SlabOrientation', + x00189106: 'MidSlabPosition', + x00189107: 'MRSpatialSaturationSequence', + x00189112: 'MRTimingAndRelatedParametersSeq', + x00189114: 'MREchoSequence', + x00189115: 'MRModifierSequence', + x00189117: 'MRDiffusionSequence', + x00189118: 'CardiacTriggerSequence', + x00189119: 'MRAveragesSequence', + x00189125: 'MRFOV-GeometrySequence', + x00189126: 'VolumeLocalizationSequence', + x00189127: 'SpectroscopyAcquisitionDataColumns', + x00189147: 'DiffusionAnisotropyType', + x00189151: 'FrameReferenceDateTime', + x00189152: 'MRMetaboliteMapSequence', + x00189155: 'ParallelReductionFactorOutOfPlane', + x00189159: 'SpectroscopyOutOfPlanePhaseSteps', + x00189166: 'BulkMotionStatus', + x00189168: 'ParallelReductionFactSecondInPlane', + x00189169: 'CardiacBeatRejectionTechnique', + x00189170: 'RespiratoryMotionCompTechnique', + x00189171: 'RespiratorySignalSource', + x00189172: 'BulkMotionCompensationTechnique', + x00189173: 'BulkMotionSignalSource', + x00189174: 'ApplicableSafetyStandardAgency', + x00189175: 'ApplicableSafetyStandardDescr', + x00189176: 'OperatingModeSequence', + x00189177: 'OperatingModeType', + x00189178: 'OperatingMode', + x00189179: 'SpecificAbsorptionRateDefinition', + x00189180: 'GradientOutputType', + x00189181: 'SpecificAbsorptionRateValue', + x00189182: 'GradientOutput', + x00189183: 'FlowCompensationDirection', + x00189184: 'TaggingDelay', + x00189185: 'RespiratoryMotionCompTechDescr', + x00189186: 'RespiratorySignalSourceID', + x00189195: 'ChemicalShiftsMinIntegrateLimitHz', + x00189196: 'ChemicalShiftsMaxIntegrateLimitHz', + x00189197: 'MRVelocityEncodingSequence', + x00189198: 'FirstOrderPhaseCorrection', + x00189199: 'WaterReferencedPhaseCorrection', + x00189200: 'MRSpectroscopyAcquisitionType', + x00189214: 'RespiratoryCyclePosition', + x00189217: 'VelocityEncodingMaximumValue', + x00189218: 'TagSpacingSecondDimension', + x00189219: 'TagAngleSecondAxis', + x00189220: 'FrameAcquisitionDuration', + x00189226: 'MRImageFrameTypeSequence', + x00189227: 'MRSpectroscopyFrameTypeSequence', + x00189231: 'MRAcqPhaseEncodingStepsInPlane', + x00189232: 'MRAcqPhaseEncodingStepsOutOfPlane', + x00189234: 'SpectroscopyAcqPhaseColumns', + x00189236: 'CardiacCyclePosition', + x00189239: 'SpecificAbsorptionRateSequence', + x00189240: 'RFEchoTrainLength', + x00189241: 'GradientEchoTrainLength', + x00189295: 'ChemicalShiftsMinIntegrateLimitPPM', + x00189296: 'ChemicalShiftsMaxIntegrateLimitPPM', + x00189301: 'CTAcquisitionTypeSequence', + x00189302: 'AcquisitionType', + x00189303: 'TubeAngle', + x00189304: 'CTAcquisitionDetailsSequence', + x00189305: 'RevolutionTime', + x00189306: 'SingleCollimationWidth', + x00189307: 'TotalCollimationWidth', + x00189308: 'CTTableDynamicsSequence', + x00189309: 'TableSpeed', + x00189310: 'TableFeedPerRotation', + x00189311: 'SpiralPitchFactor', + x00189312: 'CTGeometrySequence', + x00189313: 'DataCollectionCenterPatient', + x00189314: 'CTReconstructionSequence', + x00189315: 'ReconstructionAlgorithm', + x00189316: 'ConvolutionKernelGroup', + x00189317: 'ReconstructionFieldOfView', + x00189318: 'ReconstructionTargetCenterPatient', + x00189319: 'ReconstructionAngle', + x00189320: 'ImageFilter', + x00189321: 'CTExposureSequence', + x00189322: 'ReconstructionPixelSpacing', + x00189323: 'ExposureModulationType', + x00189324: 'EstimatedDoseSaving', + x00189325: 'CTXRayDetailsSequence', + x00189326: 'CTPositionSequence', + x00189327: 'TablePosition', + x00189328: 'ExposureTimeInMilliSec', + x00189329: 'CTImageFrameTypeSequence', + x00189330: 'XRayTubeCurrentInMilliAmps', + x00189332: 'ExposureInMilliAmpSec', + x00189333: 'ConstantVolumeFlag', + x00189334: 'FluoroscopyFlag', + x00189335: 'SourceToDataCollectionCenterDist', + x00189337: 'ContrastBolusAgentNumber', + x00189338: 'ContrastBolusIngredientCodeSeq', + x00189340: 'ContrastAdministrationProfileSeq', + x00189341: 'ContrastBolusUsageSequence', + x00189342: 'ContrastBolusAgentAdministered', + x00189343: 'ContrastBolusAgentDetected', + x00189344: 'ContrastBolusAgentPhase', + x00189345: 'CTDIvol', + x00189346: 'CTDIPhantomTypeCodeSequence', + x00189351: 'CalciumScoringMassFactorPatient', + x00189352: 'CalciumScoringMassFactorDevice', + x00189353: 'EnergyWeightingFactor', + x00189360: 'CTAdditionalXRaySourceSequence', + x00189401: 'ProjectionPixelCalibrationSequence', + x00189402: 'DistanceSourceToIsocenter', + x00189403: 'DistanceObjectToTableTop', + x00189404: 'ObjectPixelSpacingInCenterOfBeam', + x00189405: 'PositionerPositionSequence', + x00189406: 'TablePositionSequence', + x00189407: 'CollimatorShapeSequence', + x00189412: 'XA-XRFFrameCharacteristicsSequence', + x00189417: 'FrameAcquisitionSequence', + x00189420: 'XRayReceptorType', + x00189423: 'AcquisitionProtocolName', + x00189424: 'AcquisitionProtocolDescription', + x00189425: 'ContrastBolusIngredientOpaque', + x00189426: 'DistanceReceptorPlaneToDetHousing', + x00189427: 'IntensifierActiveShape', + x00189428: 'IntensifierActiveDimensions', + x00189429: 'PhysicalDetectorSize', + x00189430: 'PositionOfIsocenterProjection', + x00189432: 'FieldOfViewSequence', + x00189433: 'FieldOfViewDescription', + x00189434: 'ExposureControlSensingRegionsSeq', + x00189435: 'ExposureControlSensingRegionShape', + x00189436: 'ExposureControlSensRegionLeftEdge', + x00189437: 'ExposureControlSensRegionRightEdge', + x00189440: 'CenterOfCircExposControlSensRegion', + x00189441: 'RadiusOfCircExposControlSensRegion', + x00189447: 'ColumnAngulationPatient', + x00189449: 'BeamAngle', + x00189451: 'FrameDetectorParametersSequence', + x00189452: 'CalculatedAnatomyThickness', + x00189455: 'CalibrationSequence', + x00189456: 'ObjectThicknessSequence', + x00189457: 'PlaneIdentification', + x00189461: 'FieldOfViewDimensionsInFloat', + x00189462: 'IsocenterReferenceSystemSequence', + x00189463: 'PositionerIsocenterPrimaryAngle', + x00189464: 'PositionerIsocenterSecondaryAngle', + x00189465: 'PositionerIsocenterDetRotAngle', + x00189466: 'TableXPositionToIsocenter', + x00189467: 'TableYPositionToIsocenter', + x00189468: 'TableZPositionToIsocenter', + x00189469: 'TableHorizontalRotationAngle', + x00189470: 'TableHeadTiltAngle', + x00189471: 'TableCradleTiltAngle', + x00189472: 'FrameDisplayShutterSequence', + x00189473: 'AcquiredImageAreaDoseProduct', + x00189474: 'CArmPositionerTabletopRelationship', + x00189476: 'XRayGeometrySequence', + x00189477: 'IrradiationEventIDSequence', + x00189504: 'XRay3DFrameTypeSequence', + x00189506: 'ContributingSourcesSequence', + x00189507: 'XRay3DAcquisitionSequence', + x00189508: 'PrimaryPositionerScanArc', + x00189509: 'SecondaryPositionerScanArc', + x00189510: 'PrimaryPositionerScanStartAngle', + x00189511: 'SecondaryPositionerScanStartAngle', + x00189514: 'PrimaryPositionerIncrement', + x00189515: 'SecondaryPositionerIncrement', + x00189516: 'StartAcquisitionDateTime', + x00189517: 'EndAcquisitionDateTime', + x00189524: 'ApplicationName', + x00189525: 'ApplicationVersion', + x00189526: 'ApplicationManufacturer', + x00189527: 'AlgorithmType', + x00189528: 'AlgorithmDescription', + x00189530: 'XRay3DReconstructionSequence', + x00189531: 'ReconstructionDescription', + x00189538: 'PerProjectionAcquisitionSequence', + x00189601: 'DiffusionBMatrixSequence', + x00189602: 'DiffusionBValueXX', + x00189603: 'DiffusionBValueXY', + x00189604: 'DiffusionBValueXZ', + x00189605: 'DiffusionBValueYY', + x00189606: 'DiffusionBValueYZ', + x00189607: 'DiffusionBValueZZ', + x00189701: 'DecayCorrectionDateTime', + x00189715: 'StartDensityThreshold', + x00189722: 'TerminationTimeThreshold', + x00189725: 'DetectorGeometry', + x00189727: 'AxialDetectorDimension', + x00189735: 'PETPositionSequence', + x00189739: 'NumberOfIterations', + x00189740: 'NumberOfSubsets', + x00189751: 'PETFrameTypeSequence', + x00189756: 'ReconstructionType', + x00189758: 'DecayCorrected', + x00189759: 'AttenuationCorrected', + x00189760: 'ScatterCorrected', + x00189761: 'DeadTimeCorrected', + x00189762: 'GantryMotionCorrected', + x00189763: 'PatientMotionCorrected', + x00189765: 'RandomsCorrected', + x00189767: 'SensitivityCalibrated', + x00189801: 'DepthsOfFocus', + x00189804: 'ExclusionStartDatetime', + x00189805: 'ExclusionDuration', + x00189807: 'ImageDataTypeSequence', + x00189808: 'DataType', + x0018980b: 'AliasedDataType', + x0018a001: 'ContributingEquipmentSequence', + x0018a002: 'ContributionDateTime', + x0018a003: 'ContributionDescription', + // x00191002: 'NumberOfCellsIInDetector', + // x00191003: 'CellNumberAtTheta', + // x00191004: 'CellSpacing', + // x0019100f: 'HorizFrameOfRef', + // x00191011: 'SeriesContrast', + // x00191012: 'LastPseq', + // x00191013: 'StartNumberForBaseline', + // x00191014: 'EndNumberForBaseline', + // x00191015: 'StartNumberForEnhancedScans', + // x00191016: 'EndNumberForEnhancedScans', + // x00191017: 'SeriesPlane', + // x00191018: 'FirstScanRas', + // x00191019: 'FirstScanLocation', + // x0019101a: 'LastScanRas', + // x0019101b: 'LastScanLoc', + // x0019101e: 'DisplayFieldOfView', + // x00191023: 'TableSpeed', + // x00191024: 'MidScanTime', + // x00191025: 'MidScanFlag', + // x00191026: 'DegreesOfAzimuth', + // x00191027: 'GantryPeriod', + // x0019102a: 'XRayOnPosition', + // x0019102b: 'XRayOffPosition', + // x0019102c: 'NumberOfTriggers', + // x0019102e: 'AngleOfFirstView', + // x0019102f: 'TriggerFrequency', + // x00191039: 'ScanFOVType', + // x00191040: 'StatReconFlag', + // x00191041: 'ComputeType', + // x00191042: 'SegmentNumber', + // x00191043: 'TotalSegmentsRequested', + // x00191044: 'InterscanDelay', + // x00191047: 'ViewCompressionFactor', + // x0019104a: 'TotalNoOfRefChannels', + // x0019104b: 'DataSizeForScanData', + // x00191052: 'ReconPostProcflag', + // x00191057: 'CTWaterNumber', + // x00191058: 'CTBoneNumber', + // x0019105a: 'AcquisitionDuration', + // x0019105e: 'NumberOfChannels', + // x0019105f: 'IncrementBetweenChannels', + // x00191060: 'StartingView', + // x00191061: 'NumberOfViews', + // x00191062: 'IncrementBetweenViews', + // x0019106a: 'DependantOnNoViewsProcessed', + // x0019106b: 'FieldOfViewInDetectorCells', + // x00191070: 'ValueOfBackProjectionButton', + // x00191071: 'SetIfFatqEstimatesWereUsed', + // x00191072: 'ZChanAvgOverViews', + // x00191073: 'AvgOfLeftRefChansOverViews', + // x00191074: 'MaxLeftChanOverViews', + // x00191075: 'AvgOfRightRefChansOverViews', + // x00191076: 'MaxRightChanOverViews', + // x0019107d: 'SecondEcho', + // x0019107e: 'NumberOfEchoes', + // x0019107f: 'TableDelta', + // x00191081: 'Contiguous', + // x00191084: 'PeakSAR', + // x00191085: 'MonitorSAR', + // x00191087: 'CardiacRepetitionTime', + // x00191088: 'ImagesPerCardiacCycle', + // x0019108a: 'ActualReceiveGainAnalog', + // x0019108b: 'ActualReceiveGainDigital', + // x0019108d: 'DelayAfterTrigger', + // x0019108f: 'Swappf', + // x00191090: 'PauseInterval', + // x00191091: 'PulseTime', + // x00191092: 'SliceOffsetOnFreqAxis', + // x00191093: 'CenterFrequency', + // x00191094: 'TransmitGain', + // x00191095: 'AnalogReceiverGain', + // x00191096: 'DigitalReceiverGain', + // x00191097: 'BitmapDefiningCVs', + // x00191098: 'CenterFreqMethod', + // x0019109b: 'PulseSeqMode', + // x0019109c: 'PulseSeqName', + // x0019109d: 'PulseSeqDate', + // x0019109e: 'InternalPulseSeqName', + // x0019109f: 'TransmittingCoil', + // x001910a0: 'SurfaceCoilType', + // x001910a1: 'ExtremityCoilFlag', + // x001910a2: 'RawDataRunNumber', + // x001910a3: 'CalibratedFieldStrength', + // x001910a4: 'SATFatWaterBone', + // x001910a5: 'ReceiveBandwidth', + // x001910a7: 'UserData01', + // x001910a8: 'UserData02', + // x001910a9: 'UserData03', + // x001910aa: 'UserData04', + // x001910ab: 'UserData05', + // x001910ac: 'UserData06', + // x001910ad: 'UserData07', + // x001910ae: 'UserData08', + // x001910af: 'UserData09', + // x001910b0: 'UserData10', + // x001910b1: 'UserData11', + // x001910b2: 'UserData12', + // x001910b3: 'UserData13', + // x001910b4: 'UserData14', + // x001910b5: 'UserData15', + // x001910b6: 'UserData16', + // x001910b7: 'UserData17', + // x001910b8: 'UserData18', + // x001910b9: 'UserData19', + // x001910ba: 'UserData20', + // x001910bb: 'UserData21', + // x001910bc: 'UserData22', + // x001910bd: 'UserData23', + // x001910be: 'ProjectionAngle', + // x001910c0: 'SaturationPlanes', + // x001910c1: 'SurfaceCoilIntensity', + // x001910c2: 'SATLocationR', + // x001910c3: 'SATLocationL', + // x001910c4: 'SATLocationA', + // x001910c5: 'SATLocationP', + // x001910c6: 'SATLocationH', + // x001910c7: 'SATLocationF', + // x001910c8: 'SATThicknessR-L', + // x001910c9: 'SATThicknessA-P', + // x001910ca: 'SATThicknessH-F', + // x001910cb: 'PrescribedFlowAxis', + // x001910cc: 'VelocityEncoding', + // x001910cd: 'ThicknessDisclaimer', + // x001910ce: 'PrescanType', + // x001910cf: 'PrescanStatus', + // x001910d0: 'RawDataType', + // x001910d2: 'ProjectionAlgorithm', + // x001910d3: 'ProjectionAlgorithm', + // x001910d5: 'FractionalEcho', + // x001910d6: 'PrepPulse', + // x001910d7: 'CardiacPhases', + // x001910d8: 'VariableEchoflag', + // x001910d9: 'ConcatenatedSAT', + // x001910da: 'ReferenceChannelUsed', + // x001910db: 'BackProjectorCoefficient', + // x001910dc: 'PrimarySpeedCorrectionUsed', + // x001910dd: 'OverrangeCorrectionUsed', + // x001910de: 'DynamicZAlphaValue', + // x001910df: 'UserData', + // x001910e0: 'UserData', + // x001910e2: 'VelocityEncodeScale', + // x001910f2: 'FastPhases', + // x001910f9: 'TransmissionGain', + x00200000: 'RelationshipGroupLength', + x0020000d: 'StudyInstanceUID', + x0020000e: 'SeriesInstanceUID', + x00200010: 'StudyID', + x00200011: 'SeriesNumber', + x00200012: 'AcquisitionNumber', + x00200013: 'InstanceNumber', + x00200014: 'IsotopeNumber', + x00200015: 'PhaseNumber', + x00200016: 'IntervalNumber', + x00200017: 'TimeSlotNumber', + x00200018: 'AngleNumber', + x00200019: 'ItemNumber', + x00200020: 'PatientOrientation', + x00200022: 'OverlayNumber', + x00200024: 'CurveNumber', + x00200026: 'LookupTableNumber', + x00200030: 'ImagePosition', + x00200032: 'ImagePositionPatient', + x00200035: 'ImageOrientation', + x00200037: 'ImageOrientationPatient', + x00200050: 'Location', + x00200052: 'FrameOfReferenceUID', + x00200060: 'Laterality', + x00200062: 'ImageLaterality', + x00200070: 'ImageGeometryType', + x00200080: 'MaskingImage', + x00200100: 'TemporalPositionIdentifier', + x00200105: 'NumberOfTemporalPositions', + x00200110: 'TemporalResolution', + x00200200: 'SynchronizationFrameOfReferenceUID', + x00201000: 'SeriesInStudy', + x00201001: 'AcquisitionsInSeries', + x00201002: 'ImagesInAcquisition', + x00201003: 'ImagesInSeries', + x00201004: 'AcquisitionsInStudy', + x00201005: 'ImagesInStudy', + x00201020: 'Reference', + x00201040: 'PositionReferenceIndicator', + x00201041: 'SliceLocation', + x00201070: 'OtherStudyNumbers', + x00201200: 'NumberOfPatientRelatedStudies', + x00201202: 'NumberOfPatientRelatedSeries', + x00201204: 'NumberOfPatientRelatedInstances', + x00201206: 'NumberOfStudyRelatedSeries', + x00201208: 'NumberOfStudyRelatedInstances', + x00201209: 'NumberOfSeriesRelatedInstances', + x002031xx: 'SourceImageIDs', + x00203401: 'ModifyingDeviceID', + x00203402: 'ModifiedImageID', + x00203403: 'ModifiedImageDate', + x00203404: 'ModifyingDeviceManufacturer', + x00203405: 'ModifiedImageTime', + x00203406: 'ModifiedImageDescription', + x00204000: 'ImageComments', + x00205000: 'OriginalImageIdentification', + x00205002: 'OriginalImageIdentNomenclature', + x00209056: 'StackID', + x00209057: 'InStackPositionNumber', + x00209071: 'FrameAnatomySequence', + x00209072: 'FrameLaterality', + x00209111: 'FrameContentSequence', + x00209113: 'PlanePositionSequence', + x00209116: 'PlaneOrientationSequence', + x00209128: 'TemporalPositionIndex', + x00209153: 'TriggerDelayTime', + x00209156: 'FrameAcquisitionNumber', + x00209157: 'DimensionIndexValues', + x00209158: 'FrameComments', + x00209161: 'ConcatenationUID', + x00209162: 'InConcatenationNumber', + x00209163: 'InConcatenationTotalNumber', + x00209164: 'DimensionOrganizationUID', + x00209165: 'DimensionIndexPointer', + x00209167: 'FunctionalGroupPointer', + x00209213: 'DimensionIndexPrivateCreator', + x00209221: 'DimensionOrganizationSequence', + x00209222: 'DimensionIndexSequence', + x00209228: 'ConcatenationFrameOffsetNumber', + x00209238: 'FunctionalGroupPrivateCreator', + x00209241: 'NominalPercentageOfCardiacPhase', + x00209245: 'NominalPercentOfRespiratoryPhase', + x00209246: 'StartingRespiratoryAmplitude', + x00209247: 'StartingRespiratoryPhase', + x00209248: 'EndingRespiratoryAmplitude', + x00209249: 'EndingRespiratoryPhase', + x00209250: 'RespiratoryTriggerType', + x00209251: 'RRIntervalTimeNominal', + x00209252: 'ActualCardiacTriggerDelayTime', + x00209253: 'RespiratorySynchronizationSequence', + x00209254: 'RespiratoryIntervalTime', + x00209255: 'NominalRespiratoryTriggerDelayTime', + x00209256: 'RespiratoryTriggerDelayThreshold', + x00209257: 'ActualRespiratoryTriggerDelayTime', + x00209301: 'ImagePositionVolume', + x00209302: 'ImageOrientationVolume', + x00209308: 'ApexPosition', + x00209421: 'DimensionDescriptionLabel', + x00209450: 'PatientOrientationInFrameSequence', + x00209453: 'FrameLabel', + x00209518: 'AcquisitionIndex', + x00209529: 'ContributingSOPInstancesRefSeq', + x00209536: 'ReconstructionIndex', + // x00211003: 'SeriesFromWhichPrescribed', + // x00211005: 'GenesisVersionNow', + // x00211007: 'SeriesRecordChecksum', + // x00211018: 'GenesisVersionNow', + // x00211019: 'AcqreconRecordChecksum', + // x00211020: 'TableStartLocation', + // x00211035: 'SeriesFromWhichPrescribed', + // x00211036: 'ImageFromWhichPrescribed', + // x00211037: 'ScreenFormat', + // x0021104a: 'AnatomicalReferenceForScout', + // x0021104f: 'LocationsInAcquisition', + // x00211050: 'GraphicallyPrescribed', + // x00211051: 'RotationFromSourceXRot', + // x00211052: 'RotationFromSourceYRot', + // x00211053: 'RotationFromSourceZRot', + // x00211054: 'ImagePosition', + // x00211055: 'ImageOrientation', + // x00211056: 'IntegerSlop', + // x00211057: 'IntegerSlop', + // x00211058: 'IntegerSlop', + // x00211059: 'IntegerSlop', + // x0021105a: 'IntegerSlop', + // x0021105b: 'FloatSlop', + // x0021105c: 'FloatSlop', + // x0021105d: 'FloatSlop', + // x0021105e: 'FloatSlop', + // x0021105f: 'FloatSlop', + // x00211081: 'AutoWindowLevelAlpha', + // x00211082: 'AutoWindowLevelBeta', + // x00211083: 'AutoWindowLevelWindow', + // x00211084: 'ToWindowLevelLevel', + // x00211090: 'TubeFocalSpotPosition', + // x00211091: 'BiopsyPosition', + // x00211092: 'BiopsyTLocation', + // x00211093: 'BiopsyRefLocation', + x00220001: 'LightPathFilterPassThroughWavelen', + x00220002: 'LightPathFilterPassBand', + x00220003: 'ImagePathFilterPassThroughWavelen', + x00220004: 'ImagePathFilterPassBand', + x00220005: 'PatientEyeMovementCommanded', + x00220006: 'PatientEyeMovementCommandCodeSeq', + x00220007: 'SphericalLensPower', + x00220008: 'CylinderLensPower', + x00220009: 'CylinderAxis', + x0022000a: 'EmmetropicMagnification', + x0022000b: 'IntraOcularPressure', + x0022000c: 'HorizontalFieldOfView', + x0022000d: 'PupilDilated', + x0022000e: 'DegreeOfDilation', + x00220010: 'StereoBaselineAngle', + x00220011: 'StereoBaselineDisplacement', + x00220012: 'StereoHorizontalPixelOffset', + x00220013: 'StereoVerticalPixelOffset', + x00220014: 'StereoRotation', + x00220015: 'AcquisitionDeviceTypeCodeSequence', + x00220016: 'IlluminationTypeCodeSequence', + x00220017: 'LightPathFilterTypeStackCodeSeq', + x00220018: 'ImagePathFilterTypeStackCodeSeq', + x00220019: 'LensesCodeSequence', + x0022001a: 'ChannelDescriptionCodeSequence', + x0022001b: 'RefractiveStateSequence', + x0022001c: 'MydriaticAgentCodeSequence', + x0022001d: 'RelativeImagePositionCodeSequence', + x00220020: 'StereoPairsSequence', + x00220021: 'LeftImageSequence', + x00220022: 'RightImageSequence', + x00220030: 'AxialLengthOfTheEye', + x00220031: 'OphthalmicFrameLocationSequence', + x00220032: 'ReferenceCoordinates', + x00220035: 'DepthSpatialResolution', + x00220036: 'MaximumDepthDistortion', + x00220037: 'AlongScanSpatialResolution', + x00220038: 'MaximumAlongScanDistortion', + x00220039: 'OphthalmicImageOrientation', + x00220041: 'DepthOfTransverseImage', + x00220042: 'MydriaticAgentConcUnitsSeq', + x00220048: 'AcrossScanSpatialResolution', + x00220049: 'MaximumAcrossScanDistortion', + x0022004e: 'MydriaticAgentConcentration', + x00220055: 'IlluminationWaveLength', + x00220056: 'IlluminationPower', + x00220057: 'IlluminationBandwidth', + x00220058: 'MydriaticAgentSequence', + // x00231001: 'NumberOfSeriesInStudy', + // x00231002: 'NumberOfUnarchivedSeries', + // x00231010: 'ReferenceImageField', + // x00231050: 'SummaryImage', + // x00231070: 'StartTimeSecsInFirstAxial', + // x00231074: 'NoofUpdatesToHeader', + // x0023107d: 'IndicatesIfTheStudyHasCompleteInfo', + // x00251006: 'LastPulseSequenceUsed', + // x00251007: 'ImagesInSeries', + // x00251010: 'LandmarkCounter', + // x00251011: 'NumberOfAcquisitions', + // x00251014: 'IndicatesNoofUpdatesToHeader', + // x00251017: 'SeriesCompleteFlag', + // x00251018: 'NumberOfImagesArchived', + // x00251019: 'LastImageNumberUsed', + // x0025101a: 'PrimaryReceiverSuiteAndHost', + // x00271006: 'ImageArchiveFlag', + // x00271010: 'ScoutType', + // x0027101c: 'VmaMamp', + // x0027101d: 'VmaPhase', + // x0027101e: 'VmaMod', + // x0027101f: 'VmaClip', + // x00271020: 'SmartScanOnOffFlag', + // x00271030: 'ForeignImageRevision', + // x00271031: 'ImagingMode', + // x00271032: 'PulseSequence', + // x00271033: 'ImagingOptions', + // x00271035: 'PlaneType', + // x00271036: 'ObliquePlane', + // x00271040: 'RASLetterOfImageLocation', + // x00271041: 'ImageLocation', + // x00271042: 'CenterRCoordOfPlaneImage', + // x00271043: 'CenterACoordOfPlaneImage', + // x00271044: 'CenterSCoordOfPlaneImage', + // x00271045: 'NormalRCoord', + // x00271046: 'NormalACoord', + // x00271047: 'NormalSCoord', + // x00271048: 'RCoordOfTopRightCorner', + // x00271049: 'ACoordOfTopRightCorner', + // x0027104a: 'SCoordOfTopRightCorner', + // x0027104b: 'RCoordOfBottomRightCorner', + // x0027104c: 'ACoordOfBottomRightCorner', + // x0027104d: 'SCoordOfBottomRightCorner', + // x00271050: 'TableStartLocation', + // x00271051: 'TableEndLocation', + // x00271052: 'RASLetterForSideOfImage', + // x00271053: 'RASLetterForAnteriorPosterior', + // x00271054: 'RASLetterForScoutStartLoc', + // x00271055: 'RASLetterForScoutEndLoc', + // x00271060: 'ImageDimensionX', + // x00271061: 'ImageDimensionY', + // x00271062: 'NumberOfExcitations', + x00280000: 'ImagePresentationGroupLength', + x00280002: 'SamplesPerPixel', + x00280003: 'SamplesPerPixelUsed', + x00280004: 'PhotometricInterpretation', + x00280005: 'ImageDimensions', + x00280006: 'PlanarConfiguration', + x00280008: 'NumberOfFrames', + x00280009: 'FrameIncrementPointer', + x0028000a: 'FrameDimensionPointer', + x00280010: 'Rows', + x00280011: 'Columns', + x00280012: 'Planes', + x00280014: 'UltrasoundColorDataPresent', + x00280030: 'PixelSpacing', + x00280031: 'ZoomFactor', + x00280032: 'ZoomCenter', + x00280034: 'PixelAspectRatio', + x00280040: 'ImageFormat', + x00280050: 'ManipulatedImage', + x00280051: 'CorrectedImage', + x0028005f: 'CompressionRecognitionCode', + x00280060: 'CompressionCode', + x00280061: 'CompressionOriginator', + x00280062: 'CompressionLabel', + x00280063: 'CompressionDescription', + x00280065: 'CompressionSequence', + x00280066: 'CompressionStepPointers', + x00280068: 'RepeatInterval', + x00280069: 'BitsGrouped', + x00280070: 'PerimeterTable', + x00280071: 'PerimeterValue', + x00280080: 'PredictorRows', + x00280081: 'PredictorColumns', + x00280082: 'PredictorConstants', + x00280090: 'BlockedPixels', + x00280091: 'BlockRows', + x00280092: 'BlockColumns', + x00280093: 'RowOverlap', + x00280094: 'ColumnOverlap', + x00280100: 'BitsAllocated', + x00280101: 'BitsStored', + x00280102: 'HighBit', + x00280103: 'PixelRepresentation', + x00280104: 'SmallestValidPixelValue', + x00280105: 'LargestValidPixelValue', + x00280106: 'SmallestImagePixelValue', + x00280107: 'LargestImagePixelValue', + x00280108: 'SmallestPixelValueInSeries', + x00280109: 'LargestPixelValueInSeries', + x00280110: 'SmallestImagePixelValueInPlane', + x00280111: 'LargestImagePixelValueInPlane', + x00280120: 'PixelPaddingValue', + x00280121: 'PixelPaddingRangeLimit', + x00280200: 'ImageLocation', + x00280300: 'QualityControlImage', + x00280301: 'BurnedInAnnotation', + x00280400: 'TransformLabel', + x00280401: 'TransformVersionNumber', + x00280402: 'NumberOfTransformSteps', + x00280403: 'SequenceOfCompressedData', + x00280404: 'DetailsOfCoefficients', + x002804x2: 'CoefficientCoding', + x002804x3: 'CoefficientCodingPointers', + x00280700: 'DCTLabel', + x00280701: 'DataBlockDescription', + x00280702: 'DataBlock', + x00280710: 'NormalizationFactorFormat', + x00280720: 'ZonalMapNumberFormat', + x00280721: 'ZonalMapLocation', + x00280722: 'ZonalMapFormat', + x00280730: 'AdaptiveMapFormat', + x00280740: 'CodeNumberFormat', + x002808x0: 'CodeLabel', + x002808x2: 'NumberOfTables', + x002808x3: 'CodeTableLocation', + x002808x4: 'BitsForCodeWord', + x002808x8: 'ImageDataLocation', + x00280a02: 'PixelSpacingCalibrationType', + x00280a04: 'PixelSpacingCalibrationDescription', + x00281040: 'PixelIntensityRelationship', + x00281041: 'PixelIntensityRelationshipSign', + x00281050: 'WindowCenter', + x00281051: 'WindowWidth', + x00281052: 'RescaleIntercept', + x00281053: 'RescaleSlope', + x00281054: 'RescaleType', + x00281055: 'WindowCenterAndWidthExplanation', + x00281056: 'VOI_LUTFunction', + x00281080: 'GrayScale', + x00281090: 'RecommendedViewingMode', + x00281100: 'GrayLookupTableDescriptor', + x00281101: 'RedPaletteColorTableDescriptor', + x00281102: 'GreenPaletteColorTableDescriptor', + x00281103: 'BluePaletteColorTableDescriptor', + x00281111: 'LargeRedPaletteColorTableDescr', + x00281112: 'LargeGreenPaletteColorTableDescr', + x00281113: 'LargeBluePaletteColorTableDescr', + x00281199: 'PaletteColorTableUID', + x00281200: 'GrayLookupTableData', + x00281201: 'RedPaletteColorTableData', + x00281202: 'GreenPaletteColorTableData', + x00281203: 'BluePaletteColorTableData', + x00281211: 'LargeRedPaletteColorTableData', + x00281212: 'LargeGreenPaletteColorTableData', + x00281213: 'LargeBluePaletteColorTableData', + x00281214: 'LargePaletteColorLookupTableUID', + x00281221: 'SegmentedRedColorTableData', + x00281222: 'SegmentedGreenColorTableData', + x00281223: 'SegmentedBlueColorTableData', + x00281300: 'BreastImplantPresent', + x00281350: 'PartialView', + x00281351: 'PartialViewDescription', + x00281352: 'PartialViewCodeSequence', + x0028135a: 'SpatialLocationsPreserved', + x00281402: 'DataPathAssignment', + x00281404: 'BlendingLUT1Sequence', + x00281406: 'BlendingWeightConstant', + x00281408: 'BlendingLookupTableData', + x0028140c: 'BlendingLUT2Sequence', + x0028140e: 'DataPathID', + x0028140f: 'RGBLUTTransferFunction', + x00281410: 'AlphaLUTTransferFunction', + x00282000: 'ICCProfile', + x00282110: 'LossyImageCompression', + x00282112: 'LossyImageCompressionRatio', + x00282114: 'LossyImageCompressionMethod', + x00283000: 'ModalityLUTSequence', + x00283002: 'LUTDescriptor', + x00283003: 'LUTExplanation', + x00283004: 'ModalityLUTType', + x00283006: 'LUTData', + x00283010: 'VOILUTSequence', + x00283110: 'SoftcopyVOILUTSequence', + x00284000: 'ImagePresentationComments', + x00285000: 'BiPlaneAcquisitionSequence', + x00286010: 'RepresentativeFrameNumber', + x00286020: 'FrameNumbersOfInterest', + x00286022: 'FrameOfInterestDescription', + x00286023: 'FrameOfInterestType', + x00286030: 'MaskPointers', + x00286040: 'RWavePointer', + x00286100: 'MaskSubtractionSequence', + x00286101: 'MaskOperation', + x00286102: 'ApplicableFrameRange', + x00286110: 'MaskFrameNumbers', + x00286112: 'ContrastFrameAveraging', + x00286114: 'MaskSubPixelShift', + x00286120: 'TIDOffset', + x00286190: 'MaskOperationExplanation', + x00287fe0: 'PixelDataProviderURL', + x00289001: 'DataPointRows', + x00289002: 'DataPointColumns', + x00289003: 'SignalDomainColumns', + x00289099: 'LargestMonochromePixelValue', + x00289108: 'DataRepresentation', + x00289110: 'PixelMeasuresSequence', + x00289132: 'FrameVOILUTSequence', + x00289145: 'PixelValueTransformationSequence', + x00289235: 'SignalDomainRows', + x00289411: 'DisplayFilterPercentage', + x00289415: 'FramePixelShiftSequence', + x00289416: 'SubtractionItemID', + x00289422: 'PixelIntensityRelationshipLUTSeq', + x00289443: 'FramePixelDataPropertiesSequence', + x00289444: 'GeometricalProperties', + x00289445: 'GeometricMaximumDistortion', + x00289446: 'ImageProcessingApplied', + x00289454: 'MaskSelectionMode', + x00289474: 'LUTFunction', + x00289478: 'MaskVisibilityPercentage', + x00289501: 'PixelShiftSequence', + x00289502: 'RegionPixelShiftSequence', + x00289503: 'VerticesOfTheRegion', + x00289506: 'PixelShiftFrameRange', + x00289507: 'LUTFrameRange', + x00289520: 'ImageToEquipmentMappingMatrix', + x00289537: 'EquipmentCoordinateSystemID', + // x00291004: 'LowerRangeOfPixels1a', + // x00291005: 'LowerRangeOfPixels1b', + // x00291006: 'LowerRangeOfPixels1c', + // x00291007: 'LowerRangeOfPixels1d', + // x00291008: 'LowerRangeOfPixels1e', + // x00291009: 'LowerRangeOfPixels1f', + // x0029100a: 'LowerRangeOfPixels1g', + // x00291015: 'LowerRangeOfPixels1h', + // x00291016: 'LowerRangeOfPixels1i', + // x00291017: 'LowerRangeOfPixels2', + // x00291018: 'UpperRangeOfPixels2', + // x0029101a: 'LenOfTotHdrInBytes', + // x00291026: 'VersionOfTheHdrStruct', + // x00291034: 'AdvantageCompOverflow', + // x00291035: 'AdvantageCompUnderflow', + x00320000: 'StudyGroupLength', + x0032000a: 'StudyStatusID', + x0032000c: 'StudyPriorityID', + x00320012: 'StudyIDIssuer', + x00320032: 'StudyVerifiedDate', + x00320033: 'StudyVerifiedTime', + x00320034: 'StudyReadDate', + x00320035: 'StudyReadTime', + x00321000: 'ScheduledStudyStartDate', + x00321001: 'ScheduledStudyStartTime', + x00321010: 'ScheduledStudyStopDate', + x00321011: 'ScheduledStudyStopTime', + x00321020: 'ScheduledStudyLocation', + x00321021: 'ScheduledStudyLocationAETitle', + x00321030: 'ReasonForStudy', + x00321031: 'RequestingPhysicianIDSequence', + x00321032: 'RequestingPhysician', + x00321033: 'RequestingService', + x00321040: 'StudyArrivalDate', + x00321041: 'StudyArrivalTime', + x00321050: 'StudyCompletionDate', + x00321051: 'StudyCompletionTime', + x00321055: 'StudyComponentStatusID', + x00321060: 'RequestedProcedureDescription', + x00321064: 'RequestedProcedureCodeSequence', + x00321070: 'RequestedContrastAgent', + x00324000: 'StudyComments', + x00380004: 'ReferencedPatientAliasSequence', + x00380008: 'VisitStatusID', + x00380010: 'AdmissionID', + x00380011: 'IssuerOfAdmissionID', + x00380016: 'RouteOfAdmissions', + x0038001a: 'ScheduledAdmissionDate', + x0038001b: 'ScheduledAdmissionTime', + x0038001c: 'ScheduledDischargeDate', + x0038001d: 'ScheduledDischargeTime', + x0038001e: 'ScheduledPatientInstitResidence', + x00380020: 'AdmittingDate', + x00380021: 'AdmittingTime', + x00380030: 'DischargeDate', + x00380032: 'DischargeTime', + x00380040: 'DischargeDiagnosisDescription', + x00380044: 'DischargeDiagnosisCodeSequence', + x00380050: 'SpecialNeeds', + x00380060: 'ServiceEpisodeID', + x00380061: 'IssuerOfServiceEpisodeID', + x00380062: 'ServiceEpisodeDescription', + x00380100: 'PertinentDocumentsSequence', + x00380300: 'CurrentPatientLocation', + x00380400: 'PatientInstitutionResidence', + x00380500: 'PatientState', + x00380502: 'PatientClinicalTrialParticipSeq', + x00384000: 'VisitComments', + x003a0004: 'WaveformOriginality', + x003a0005: 'NumberOfWaveformChannels', + x003a0010: 'NumberOfWaveformSamples', + x003a001a: 'SamplingFrequency', + x003a0020: 'MultiplexGroupLabel', + x003a0200: 'ChannelDefinitionSequence', + x003a0202: 'WaveformChannelNumber', + x003a0203: 'ChannelLabel', + x003a0205: 'ChannelStatus', + x003a0208: 'ChannelSourceSequence', + x003a0209: 'ChannelSourceModifiersSequence', + x003a020a: 'SourceWaveformSequence', + x003a020c: 'ChannelDerivationDescription', + x003a0210: 'ChannelSensitivity', + x003a0211: 'ChannelSensitivityUnitsSequence', + x003a0212: 'ChannelSensitivityCorrectionFactor', + x003a0213: 'ChannelBaseline', + x003a0214: 'ChannelTimeSkew', + x003a0215: 'ChannelSampleSkew', + x003a0218: 'ChannelOffset', + x003a021a: 'WaveformBitsStored', + x003a0220: 'FilterLowFrequency', + x003a0221: 'FilterHighFrequency', + x003a0222: 'NotchFilterFrequency', + x003a0223: 'NotchFilterBandwidth', + x003a0230: 'WaveformDataDisplayScale', + x003a0231: 'WaveformDisplayBkgCIELabValue', + x003a0240: 'WaveformPresentationGroupSequence', + x003a0241: 'PresentationGroupNumber', + x003a0242: 'ChannelDisplaySequence', + x003a0244: 'ChannelRecommendDisplayCIELabValue', + x003a0245: 'ChannelPosition', + x003a0246: 'DisplayShadingFlag', + x003a0247: 'FractionalChannelDisplayScale', + x003a0248: 'AbsoluteChannelDisplayScale', + x003a0300: 'MultiplexAudioChannelsDescrCodeSeq', + x003a0301: 'ChannelIdentificationCode', + x003a0302: 'ChannelMode', + x00400001: 'ScheduledStationAETitle', + x00400002: 'ScheduledProcedureStepStartDate', + x00400003: 'ScheduledProcedureStepStartTime', + x00400004: 'ScheduledProcedureStepEndDate', + x00400005: 'ScheduledProcedureStepEndTime', + x00400006: 'ScheduledPerformingPhysiciansName', + x00400007: 'ScheduledProcedureStepDescription', + x00400008: 'ScheduledProtocolCodeSequence', + x00400009: 'ScheduledProcedureStepID', + x0040000a: 'StageCodeSequence', + x0040000b: 'ScheduledPerformingPhysicianIDSeq', + x00400010: 'ScheduledStationName', + x00400011: 'ScheduledProcedureStepLocation', + x00400012: 'PreMedication', + x00400020: 'ScheduledProcedureStepStatus', + x00400031: 'LocalNamespaceEntityID', + x00400032: 'UniversalEntityID', + x00400033: 'UniversalEntityIDType', + x00400035: 'IdentifierTypeCode', + x00400036: 'AssigningFacilitySequence', + x00400100: 'ScheduledProcedureStepSequence', + x00400220: 'ReferencedNonImageCompositeSOPSeq', + x00400241: 'PerformedStationAETitle', + x00400242: 'PerformedStationName', + x00400243: 'PerformedLocation', + x00400244: 'PerformedProcedureStepStartDate', + x00400245: 'PerformedProcedureStepStartTime', + x00400250: 'PerformedProcedureStepEndDate', + x00400251: 'PerformedProcedureStepEndTime', + x00400252: 'PerformedProcedureStepStatus', + x00400253: 'PerformedProcedureStepID', + x00400254: 'PerformedProcedureStepDescription', + x00400255: 'PerformedProcedureTypeDescription', + x00400260: 'PerformedProtocolCodeSequence', + x00400261: 'PerformedProtocolType', + x00400270: 'ScheduledStepAttributesSequence', + x00400275: 'RequestAttributesSequence', + x00400280: 'CommentsOnPerformedProcedureStep', + x00400281: 'ProcStepDiscontinueReasonCodeSeq', + x00400293: 'QuantitySequence', + x00400294: 'Quantity', + x00400295: 'MeasuringUnitsSequence', + x00400296: 'BillingItemSequence', + x00400300: 'TotalTimeOfFluoroscopy', + x00400301: 'TotalNumberOfExposures', + x00400302: 'EntranceDose', + x00400303: 'ExposedArea', + x00400306: 'DistanceSourceToEntrance', + x00400307: 'DistanceSourceToSupport', + x0040030e: 'ExposureDoseSequence', + x00400310: 'CommentsOnRadiationDose', + x00400312: 'XRayOutput', + x00400314: 'HalfValueLayer', + x00400316: 'OrganDose', + x00400318: 'OrganExposed', + x00400320: 'BillingProcedureStepSequence', + x00400321: 'FilmConsumptionSequence', + x00400324: 'BillingSuppliesAndDevicesSequence', + x00400330: 'ReferencedProcedureStepSequence', + x00400340: 'PerformedSeriesSequence', + x00400400: 'CommentsOnScheduledProcedureStep', + x00400440: 'ProtocolContextSequence', + x00400441: 'ContentItemModifierSequence', + x0040050a: 'SpecimenAccessionNumber', + x00400512: 'ContainerIdentifier', + x0040051a: 'ContainerDescription', + x00400550: 'SpecimenSequence', + x00400551: 'SpecimenIdentifier', + x00400552: 'SpecimenDescriptionSequenceTrial', + x00400553: 'SpecimenDescriptionTrial', + x00400554: 'SpecimenUID', + x00400555: 'AcquisitionContextSequence', + x00400556: 'AcquisitionContextDescription', + x0040059a: 'SpecimenTypeCodeSequence', + x00400600: 'SpecimenShortDescription', + x004006fa: 'SlideIdentifier', + x0040071a: 'ImageCenterPointCoordinatesSeq', + x0040072a: 'XOffsetInSlideCoordinateSystem', + x0040073a: 'YOffsetInSlideCoordinateSystem', + x0040074a: 'ZOffsetInSlideCoordinateSystem', + x004008d8: 'PixelSpacingSequence', + x004008da: 'CoordinateSystemAxisCodeSequence', + x004008ea: 'MeasurementUnitsCodeSequence', + x004009f8: 'VitalStainCodeSequenceTrial', + x00401001: 'RequestedProcedureID', + x00401002: 'ReasonForRequestedProcedure', + x00401003: 'RequestedProcedurePriority', + x00401004: 'PatientTransportArrangements', + x00401005: 'RequestedProcedureLocation', + x00401006: 'PlacerOrderNumber-Procedure', + x00401007: 'FillerOrderNumber-Procedure', + x00401008: 'ConfidentialityCode', + x00401009: 'ReportingPriority', + x0040100a: 'ReasonForRequestedProcedureCodeSeq', + x00401010: 'NamesOfIntendedRecipientsOfResults', + x00401011: 'IntendedRecipientsOfResultsIDSeq', + x00401101: 'PersonIdentificationCodeSequence', + x00401102: 'PersonAddress', + x00401103: 'PersonTelephoneNumbers', + x00401400: 'RequestedProcedureComments', + x00402001: 'ReasonForImagingServiceRequest', + x00402004: 'IssueDateOfImagingServiceRequest', + x00402005: 'IssueTimeOfImagingServiceRequest', + x00402006: 'PlacerOrderNumberImagingServiceRequestRetired', + x00402007: 'FillerOrderNumberImagingServiceRequestRetired', + x00402008: 'OrderEnteredBy', + x00402009: 'OrderEntererLocation', + x00402010: 'OrderCallbackPhoneNumber', + x00402016: 'PlacerOrderNum-ImagingServiceReq', + x00402017: 'FillerOrderNum-ImagingServiceReq', + x00402400: 'ImagingServiceRequestComments', + x00403001: 'ConfidentialityOnPatientDataDescr', + x00404001: 'GenPurposeScheduledProcStepStatus', + x00404002: 'GenPurposePerformedProcStepStatus', + x00404003: 'GenPurposeSchedProcStepPriority', + x00404004: 'SchedProcessingApplicationsCodeSeq', + x00404005: 'SchedProcedureStepStartDateAndTime', + x00404006: 'MultipleCopiesFlag', + x00404007: 'PerformedProcessingAppsCodeSeq', + x00404009: 'HumanPerformerCodeSequence', + x00404010: 'SchedProcStepModificationDateTime', + x00404011: 'ExpectedCompletionDateAndTime', + x00404015: 'ResultingGenPurposePerfProcStepSeq', + x00404016: 'RefGenPurposeSchedProcStepSeq', + x00404018: 'ScheduledWorkitemCodeSequence', + x00404019: 'PerformedWorkitemCodeSequence', + x00404020: 'InputAvailabilityFlag', + x00404021: 'InputInformationSequence', + x00404022: 'RelevantInformationSequence', + x00404023: 'RefGenPurSchedProcStepTransUID', + x00404025: 'ScheduledStationNameCodeSequence', + x00404026: 'ScheduledStationClassCodeSequence', + x00404027: 'SchedStationGeographicLocCodeSeq', + x00404028: 'PerformedStationNameCodeSequence', + x00404029: 'PerformedStationClassCodeSequence', + x00404030: 'PerformedStationGeogLocCodeSeq', + x00404031: 'RequestedSubsequentWorkItemCodeSeq', + x00404032: 'NonDICOMOutputCodeSequence', + x00404033: 'OutputInformationSequence', + x00404034: 'ScheduledHumanPerformersSequence', + x00404035: 'ActualHumanPerformersSequence', + x00404036: 'HumanPerformersOrganization', + x00404037: 'HumanPerformerName', + x00404040: 'RawDataHandling', + x00408302: 'EntranceDoseInMilliGy', + x00409094: 'RefImageRealWorldValueMappingSeq', + x00409096: 'RealWorldValueMappingSequence', + x00409098: 'PixelValueMappingCodeSequence', + x00409210: 'LUTLabel', + x00409211: 'RealWorldValueLastValueMapped', + x00409212: 'RealWorldValueLUTData', + x00409216: 'RealWorldValueFirstValueMapped', + x00409224: 'RealWorldValueIntercept', + x00409225: 'RealWorldValueSlope', + x0040a010: 'RelationshipType', + x0040a027: 'VerifyingOrganization', + x0040a030: 'VerificationDateTime', + x0040a032: 'ObservationDateTime', + x0040a040: 'ValueType', + x0040a043: 'ConceptNameCodeSequence', + x0040a050: 'ContinuityOfContent', + x0040a073: 'VerifyingObserverSequence', + x0040a075: 'VerifyingObserverName', + x0040a078: 'AuthorObserverSequence', + x0040a07a: 'ParticipantSequence', + x0040a07c: 'CustodialOrganizationSequence', + x0040a080: 'ParticipationType', + x0040a082: 'ParticipationDateTime', + x0040a084: 'ObserverType', + x0040a088: 'VerifyingObserverIdentCodeSequence', + x0040a090: 'EquivalentCDADocumentSequence', + x0040a0b0: 'ReferencedWaveformChannels', + x0040a120: 'DateTime', + x0040a121: 'Date', + x0040a122: 'Time', + x0040a123: 'PersonName', + x0040a124: 'UID', + x0040a130: 'TemporalRangeType', + x0040a132: 'ReferencedSamplePositions', + x0040a136: 'ReferencedFrameNumbers', + x0040a138: 'ReferencedTimeOffsets', + x0040a13a: 'ReferencedDateTime', + x0040a160: 'TextValue', + x0040a168: 'ConceptCodeSequence', + x0040a170: 'PurposeOfReferenceCodeSequence', + x0040a180: 'AnnotationGroupNumber', + x0040a195: 'ModifierCodeSequence', + x0040a300: 'MeasuredValueSequence', + x0040a301: 'NumericValueQualifierCodeSequence', + x0040a30a: 'NumericValue', + x0040a353: 'AddressTrial', + x0040a354: 'TelephoneNumberTrial', + x0040a360: 'PredecessorDocumentsSequence', + x0040a370: 'ReferencedRequestSequence', + x0040a372: 'PerformedProcedureCodeSequence', + x0040a375: 'CurrentRequestedProcEvidenceSeq', + x0040a385: 'PertinentOtherEvidenceSequence', + x0040a390: 'HL7StructuredDocumentRefSeq', + x0040a491: 'CompletionFlag', + x0040a492: 'CompletionFlagDescription', + x0040a493: 'VerificationFlag', + x0040a494: 'ArchiveRequested', + x0040a496: 'PreliminaryFlag', + x0040a504: 'ContentTemplateSequence', + x0040a525: 'IdenticalDocumentsSequence', + x0040a730: 'ContentSequence', + x0040b020: 'AnnotationSequence', + x0040db00: 'TemplateIdentifier', + x0040db06: 'TemplateVersion', + x0040db07: 'TemplateLocalVersion', + x0040db0b: 'TemplateExtensionFlag', + x0040db0c: 'TemplateExtensionOrganizationUID', + x0040db0d: 'TemplateExtensionCreatorUID', + x0040db73: 'ReferencedContentItemIdentifier', + x0040e001: 'HL7InstanceIdentifier', + x0040e004: 'HL7DocumentEffectiveTime', + x0040e006: 'HL7DocumentTypeCodeSequence', + x0040e010: 'RetrieveURI', + x0040e011: 'RetrieveLocationUID', + x00420010: 'DocumentTitle', + x00420011: 'EncapsulatedDocument', + x00420012: 'MIMETypeOfEncapsulatedDocument', + x00420013: 'SourceInstanceSequence', + x00420014: 'ListOfMIMETypes', + // x00431001: 'BitmapOfPrescanOptions', + // x00431002: 'GradientOffsetInX', + // x00431003: 'GradientOffsetInY', + // x00431004: 'GradientOffsetInZ', + // x00431005: 'ImgIsOriginalOrUnoriginal', + // x00431006: 'NumberOfEPIShots', + // x00431007: 'ViewsPerSegment', + // x00431008: 'RespiratoryRateBpm', + // x00431009: 'RespiratoryTriggerPoint', + // x0043100a: 'TypeOfReceiverUsed', + // x0043100b: 'PeakRateOfChangeOfGradientField', + // x0043100c: 'LimitsInUnitsOfPercent', + // x0043100d: 'PSDEstimatedLimit', + // x0043100e: 'PSDEstimatedLimitInTeslaPerSecond', + // x0043100f: 'Saravghead', + // x00431010: 'WindowValue', + // x00431011: 'TotalInputViews', + // x00431012: 'X-RayChain', + // x00431013: 'DeconKernelParameters', + // x00431014: 'CalibrationParameters', + // x00431015: 'TotalOutputViews', + // x00431016: 'NumberOfOverranges', + // x00431017: 'IBHImageScaleFactors', + // x00431018: 'BBHCoefficients', + // x00431019: 'NumberOfBBHChainsToBlend', + // x0043101a: 'StartingChannelNumber', + // x0043101b: 'PpscanParameters', + // x0043101c: 'GEImageIntegrity', + // x0043101d: 'LevelValue', + // x0043101e: 'DeltaStartTime', + // x0043101f: 'MaxOverrangesInAView', + // x00431020: 'AvgOverrangesAllViews', + // x00431021: 'CorrectedAfterGlowTerms', + // x00431025: 'ReferenceChannels', + // x00431026: 'NoViewsRefChansBlocked', + // x00431027: 'ScanPitchRatio', + // x00431028: 'UniqueImageIden', + // x00431029: 'HistogramTables', + // x0043102a: 'UserDefinedData', + // x0043102b: 'PrivateScanOptions', + // x0043102c: 'EffectiveEchoSpacing', + // x0043102d: 'StringSlopField1', + // x0043102e: 'StringSlopField2', + // x0043102f: 'RawDataType', + // x00431030: 'RawDataType', + // x00431031: 'RACordOfTargetReconCenter', + // x00431032: 'RawDataType', + // x00431033: 'NegScanspacing', + // x00431034: 'OffsetFrequency', + // x00431035: 'UserUsageTag', + // x00431036: 'UserFillMapMSW', + // x00431037: 'UserFillMapLSW', + // x00431038: 'User25-48', + // x00431039: 'SlopInt6-9', + // x00431040: 'TriggerOnPosition', + // x00431041: 'DegreeOfRotation', + // x00431042: 'DASTriggerSource', + // x00431043: 'DASFpaGain', + // x00431044: 'DASOutputSource', + // x00431045: 'DASAdInput', + // x00431046: 'DASCalMode', + // x00431047: 'DASCalFrequency', + // x00431048: 'DASRegXm', + // x00431049: 'DASAutoZero', + // x0043104a: 'StartingChannelOfView', + // x0043104b: 'DASXmPattern', + // x0043104c: 'TGGCTriggerMode', + // x0043104d: 'StartScanToXrayOnDelay', + // x0043104e: 'DurationOfXrayOn', + // x00431060: 'SlopInt10-17', + // x00431061: 'ScannerStudyEntityUID', + // x00431062: 'ScannerStudyID', + // x0043106f: 'ScannerTableEntry', + x00440001: 'ProductPackageIdentifier', + x00440002: 'SubstanceAdministrationApproval', + x00440003: 'ApprovalStatusFurtherDescription', + x00440004: 'ApprovalStatusDateTime', + x00440007: 'ProductTypeCodeSequence', + x00440008: 'ProductName', + x00440009: 'ProductDescription', + x0044000a: 'ProductLotIdentifier', + x0044000b: 'ProductExpirationDateTime', + x00440010: 'SubstanceAdministrationDateTime', + x00440011: 'SubstanceAdministrationNotes', + x00440012: 'SubstanceAdministrationDeviceID', + x00440013: 'ProductParameterSequence', + x00440019: 'SubstanceAdminParameterSeq', + // x00451001: 'NumberOfMacroRowsInDetector', + // x00451002: 'MacroWidthAtISOCenter', + // x00451003: 'DASType', + // x00451004: 'DASGain', + // x00451005: 'DASTemperature', + // x00451006: 'TableDirectionInOrOut', + // x00451007: 'ZSmoothingFactor', + // x00451008: 'ViewWeightingMode', + // x00451009: 'SigmaRowNumberWhichRowsWereUsed', + // x0045100a: 'MinimumDasValueFoundInTheScanData', + // x0045100b: 'MaximumOffsetShiftValueUsed', + // x0045100c: 'NumberOfViewsShifted', + // x0045100d: 'ZTrackingFlag', + // x0045100e: 'MeanZError', + // x0045100f: 'ZTrackingMaximumError', + // x00451010: 'StartingViewForRow2a', + // x00451011: 'NumberOfViewsInRow2a', + // x00451012: 'StartingViewForRow1a', + // x00451013: 'SigmaMode', + // x00451014: 'NumberOfViewsInRow1a', + // x00451015: 'StartingViewForRow2b', + // x00451016: 'NumberOfViewsInRow2b', + // x00451017: 'StartingViewForRow1b', + // x00451018: 'NumberOfViewsInRow1b', + // x00451019: 'AirFilterCalibrationDate', + // x0045101a: 'AirFilterCalibrationTime', + // x0045101b: 'PhantomCalibrationDate', + // x0045101c: 'PhantomCalibrationTime', + // x0045101d: 'ZSlopeCalibrationDate', + // x0045101e: 'ZSlopeCalibrationTime', + // x0045101f: 'CrosstalkCalibrationDate', + // x00451020: 'CrosstalkCalibrationTime', + // x00451021: 'IterboneOptionFlag', + // x00451022: 'PeristalticFlagOption', + x00460012: 'LensDescription', + x00460014: 'RightLensSequence', + x00460015: 'LeftLensSequence', + x00460018: 'CylinderSequence', + x00460028: 'PrismSequence', + x00460030: 'HorizontalPrismPower', + x00460032: 'HorizontalPrismBase', + x00460034: 'VerticalPrismPower', + x00460036: 'VerticalPrismBase', + x00460038: 'LensSegmentType', + x00460040: 'OpticalTransmittance', + x00460042: 'ChannelWidth', + x00460044: 'PupilSize', + x00460046: 'CornealSize', + x00460060: 'DistancePupillaryDistance', + x00460062: 'NearPupillaryDistance', + x00460064: 'OtherPupillaryDistance', + x00460075: 'RadiusOfCurvature', + x00460076: 'KeratometricPower', + x00460077: 'KeratometricAxis', + x00460092: 'BackgroundColor', + x00460094: 'Optotype', + x00460095: 'OptotypePresentation', + x00460100: 'AddNearSequence', + x00460101: 'AddIntermediateSequence', + x00460102: 'AddOtherSequence', + x00460104: 'AddPower', + x00460106: 'ViewingDistance', + x00460125: 'ViewingDistanceType', + x00460135: 'VisualAcuityModifiers', + x00460137: 'DecimalVisualAcuity', + x00460139: 'OptotypeDetailedDefinition', + x00460146: 'SpherePower', + x00460147: 'CylinderPower', + x00500004: 'CalibrationImage', + x00500010: 'DeviceSequence', + x00500014: 'DeviceLength', + x00500015: 'ContainerComponentWidth', + x00500016: 'DeviceDiameter', + x00500017: 'DeviceDiameterUnits', + x00500018: 'DeviceVolume', + x00500019: 'InterMarkerDistance', + x0050001b: 'ContainerComponentID', + x00500020: 'DeviceDescription', + x00540010: 'EnergyWindowVector', + x00540011: 'NumberOfEnergyWindows', + x00540012: 'EnergyWindowInformationSequence', + x00540013: 'EnergyWindowRangeSequence', + x00540014: 'EnergyWindowLowerLimit', + x00540015: 'EnergyWindowUpperLimit', + x00540016: 'RadiopharmaceuticalInformationSeq', + x00540017: 'ResidualSyringeCounts', + x00540018: 'EnergyWindowName', + x00540020: 'DetectorVector', + x00540021: 'NumberOfDetectors', + x00540022: 'DetectorInformationSequence', + x00540030: 'PhaseVector', + x00540031: 'NumberOfPhases', + x00540032: 'PhaseInformationSequence', + x00540033: 'NumberOfFramesInPhase', + x00540036: 'PhaseDelay', + x00540038: 'PauseBetweenFrames', + x00540039: 'PhaseDescription', + x00540050: 'RotationVector', + x00540051: 'NumberOfRotations', + x00540052: 'RotationInformationSequence', + x00540053: 'NumberOfFramesInRotation', + x00540060: 'RRIntervalVector', + x00540061: 'NumberOfRRIntervals', + x00540062: 'GatedInformationSequence', + x00540063: 'DataInformationSequence', + x00540070: 'TimeSlotVector', + x00540071: 'NumberOfTimeSlots', + x00540072: 'TimeSlotInformationSequence', + x00540073: 'TimeSlotTime', + x00540080: 'SliceVector', + x00540081: 'NumberOfSlices', + x00540090: 'AngularViewVector', + x00540100: 'TimeSliceVector', + x00540101: 'NumberOfTimeSlices', + x00540200: 'StartAngle', + x00540202: 'TypeOfDetectorMotion', + x00540210: 'TriggerVector', + x00540211: 'NumberOfTriggersInPhase', + x00540220: 'ViewCodeSequence', + x00540222: 'ViewModifierCodeSequence', + x00540300: 'RadionuclideCodeSequence', + x00540302: 'AdministrationRouteCodeSequence', + x00540304: 'RadiopharmaceuticalCodeSequence', + x00540306: 'CalibrationDataSequence', + x00540308: 'EnergyWindowNumber', + x00540400: 'ImageID', + x00540410: 'PatientOrientationCodeSequence', + x00540412: 'PatientOrientationModifierCodeSeq', + x00540414: 'PatientGantryRelationshipCodeSeq', + x00540500: 'SliceProgressionDirection', + x00541000: 'SeriesType', + x00541001: 'Units', + x00541002: 'CountsSource', + x00541004: 'ReprojectionMethod', + x00541100: 'RandomsCorrectionMethod', + x00541101: 'AttenuationCorrectionMethod', + x00541102: 'DecayCorrection', + x00541103: 'ReconstructionMethod', + x00541104: 'DetectorLinesOfResponseUsed', + x00541105: 'ScatterCorrectionMethod', + x00541200: 'AxialAcceptance', + x00541201: 'AxialMash', + x00541202: 'TransverseMash', + x00541203: 'DetectorElementSize', + x00541210: 'CoincidenceWindowWidth', + x00541220: 'SecondaryCountsType', + x00541300: 'FrameReferenceTime', + x00541310: 'PrimaryCountsAccumulated', + x00541311: 'SecondaryCountsAccumulated', + x00541320: 'SliceSensitivityFactor', + x00541321: 'DecayFactor', + x00541322: 'DoseCalibrationFactor', + x00541323: 'ScatterFractionFactor', + x00541324: 'DeadTimeFactor', + x00541330: 'ImageIndex', + x00541400: 'CountsIncluded', + x00541401: 'DeadTimeCorrectionFlag', + x00603000: 'HistogramSequence', + x00603002: 'HistogramNumberOfBins', + x00603004: 'HistogramFirstBinValue', + x00603006: 'HistogramLastBinValue', + x00603008: 'HistogramBinWidth', + x00603010: 'HistogramExplanation', + x00603020: 'HistogramData', + x00620001: 'SegmentationType', + x00620002: 'SegmentSequence', + x00620003: 'SegmentedPropertyCategoryCodeSeq', + x00620004: 'SegmentNumber', + x00620005: 'SegmentLabel', + x00620006: 'SegmentDescription', + x00620008: 'SegmentAlgorithmType', + x00620009: 'SegmentAlgorithmName', + x0062000a: 'SegmentIdentificationSequence', + x0062000b: 'ReferencedSegmentNumber', + x0062000c: 'RecommendedDisplayGrayscaleValue', + x0062000d: 'RecommendedDisplayCIELabValue', + x0062000e: 'MaximumFractionalValue', + x0062000f: 'SegmentedPropertyTypeCodeSequence', + x00620010: 'SegmentationFractionalType', + x00640002: 'DeformableRegistrationSequence', + x00640003: 'SourceFrameOfReferenceUID', + x00640005: 'DeformableRegistrationGridSequence', + x00640007: 'GridDimensions', + x00640008: 'GridResolution', + x00640009: 'VectorGridData', + x0064000f: 'PreDeformationMatrixRegistSeq', + x00640010: 'PostDeformationMatrixRegistSeq', + x00660001: 'NumberOfSurfaces', + x00660002: 'SurfaceSequence', + x00660003: 'SurfaceNumber', + x00660004: 'SurfaceComments', + x00660009: 'SurfaceProcessing', + x0066000a: 'SurfaceProcessingRatio', + x0066000e: 'FiniteVolume', + x00660010: 'Manifold', + x00660011: 'SurfacePointsSequence', + x00660015: 'NumberOfSurfacePoints', + x00660016: 'PointCoordinatesData', + x00660017: 'PointPositionAccuracy', + x00660018: 'MeanPointDistance', + x00660019: 'MaximumPointDistance', + x0066001b: 'AxisOfRotation', + x0066001c: 'CenterOfRotation', + x0066001e: 'NumberOfVectors', + x0066001f: 'VectorDimensionality', + x00660020: 'VectorAccuracy', + x00660021: 'VectorCoordinateData', + x00660023: 'TrianglePointIndexList', + x00660024: 'EdgePointIndexList', + x00660025: 'VertexPointIndexList', + x00660026: 'TriangleStripSequence', + x00660027: 'TriangleFanSequence', + x00660028: 'LineSequence', + x00660029: 'PrimitivePointIndexList', + x0066002a: 'SurfaceCount', + x0066002f: 'AlgorithmFamilyCodeSequ', + x00660031: 'AlgorithmVersion', + x00660032: 'AlgorithmParameters', + x00660034: 'FacetSequence', + x00660036: 'AlgorithmName', + x00700001: 'GraphicAnnotationSequence', + x00700002: 'GraphicLayer', + x00700003: 'BoundingBoxAnnotationUnits', + x00700004: 'AnchorPointAnnotationUnits', + x00700005: 'GraphicAnnotationUnits', + x00700006: 'UnformattedTextValue', + x00700008: 'TextObjectSequence', + x00700009: 'GraphicObjectSequence', + x00700010: 'BoundingBoxTopLeftHandCorner', + x00700011: 'BoundingBoxBottomRightHandCorner', + x00700012: 'BoundingBoxTextHorizJustification', + x00700014: 'AnchorPoint', + x00700015: 'AnchorPointVisibility', + x00700020: 'GraphicDimensions', + x00700021: 'NumberOfGraphicPoints', + x00700022: 'GraphicData', + x00700023: 'GraphicType', + x00700024: 'GraphicFilled', + x00700040: 'ImageRotationRetired', + x00700041: 'ImageHorizontalFlip', + x00700042: 'ImageRotation', + x00700050: 'DisplayedAreaTopLeftTrial', + x00700051: 'DisplayedAreaBottomRightTrial', + x00700052: 'DisplayedAreaTopLeft', + x00700053: 'DisplayedAreaBottomRight', + x0070005a: 'DisplayedAreaSelectionSequence', + x00700060: 'GraphicLayerSequence', + x00700062: 'GraphicLayerOrder', + x00700066: 'GraphicLayerRecDisplayGraysclValue', + x00700067: 'GraphicLayerRecDisplayRGBValue', + x00700068: 'GraphicLayerDescription', + x00700080: 'ContentLabel', + x00700081: 'ContentDescription', + x00700082: 'PresentationCreationDate', + x00700083: 'PresentationCreationTime', + x00700084: 'ContentCreatorName', + x00700086: 'ContentCreatorIDCodeSequence', + x00700100: 'PresentationSizeMode', + x00700101: 'PresentationPixelSpacing', + x00700102: 'PresentationPixelAspectRatio', + x00700103: 'PresentationPixelMagRatio', + x00700306: 'ShapeType', + x00700308: 'RegistrationSequence', + x00700309: 'MatrixRegistrationSequence', + x0070030a: 'MatrixSequence', + x0070030c: 'FrameOfRefTransformationMatrixType', + x0070030d: 'RegistrationTypeCodeSequence', + x0070030f: 'FiducialDescription', + x00700310: 'FiducialIdentifier', + x00700311: 'FiducialIdentifierCodeSequence', + x00700312: 'ContourUncertaintyRadius', + x00700314: 'UsedFiducialsSequence', + x00700318: 'GraphicCoordinatesDataSequence', + x0070031a: 'FiducialUID', + x0070031c: 'FiducialSetSequence', + x0070031e: 'FiducialSequence', + x00700401: 'GraphicLayerRecomDisplayCIELabVal', + x00700402: 'BlendingSequence', + x00700403: 'RelativeOpacity', + x00700404: 'ReferencedSpatialRegistrationSeq', + x00700405: 'BlendingPosition', + x00720002: 'HangingProtocolName', + x00720004: 'HangingProtocolDescription', + x00720006: 'HangingProtocolLevel', + x00720008: 'HangingProtocolCreator', + x0072000a: 'HangingProtocolCreationDateTime', + x0072000c: 'HangingProtocolDefinitionSequence', + x0072000e: 'HangingProtocolUserIDCodeSequence', + x00720010: 'HangingProtocolUserGroupName', + x00720012: 'SourceHangingProtocolSequence', + x00720014: 'NumberOfPriorsReferenced', + x00720020: 'ImageSetsSequence', + x00720022: 'ImageSetSelectorSequence', + x00720024: 'ImageSetSelectorUsageFlag', + x00720026: 'SelectorAttribute', + x00720028: 'SelectorValueNumber', + x00720030: 'TimeBasedImageSetsSequence', + x00720032: 'ImageSetNumber', + x00720034: 'ImageSetSelectorCategory', + x00720038: 'RelativeTime', + x0072003a: 'RelativeTimeUnits', + x0072003c: 'AbstractPriorValue', + x0072003e: 'AbstractPriorCodeSequence', + x00720040: 'ImageSetLabel', + x00720050: 'SelectorAttributeVR', + x00720052: 'SelectorSequencePointer', + x00720054: 'SelectorSeqPointerPrivateCreator', + x00720056: 'SelectorAttributePrivateCreator', + x00720060: 'SelectorATValue', + x00720062: 'SelectorCSValue', + x00720064: 'SelectorISValue', + x00720066: 'SelectorLOValue', + x00720068: 'SelectorLTValue', + x0072006a: 'SelectorPNValue', + x0072006c: 'SelectorSHValue', + x0072006e: 'SelectorSTValue', + x00720070: 'SelectorUTValue', + x00720072: 'SelectorDSValue', + x00720074: 'SelectorFDValue', + x00720076: 'SelectorFLValue', + x00720078: 'SelectorULValue', + x0072007a: 'SelectorUSValue', + x0072007c: 'SelectorSLValue', + x0072007e: 'SelectorSSValue', + x00720080: 'SelectorCodeSequenceValue', + x00720100: 'NumberOfScreens', + x00720102: 'NominalScreenDefinitionSequence', + x00720104: 'NumberOfVerticalPixels', + x00720106: 'NumberOfHorizontalPixels', + x00720108: 'DisplayEnvironmentSpatialPosition', + x0072010a: 'ScreenMinimumGrayscaleBitDepth', + x0072010c: 'ScreenMinimumColorBitDepth', + x0072010e: 'ApplicationMaximumRepaintTime', + x00720200: 'DisplaySetsSequence', + x00720202: 'DisplaySetNumber', + x00720203: 'DisplaySetLabel', + x00720204: 'DisplaySetPresentationGroup', + x00720206: 'DisplaySetPresentationGroupDescr', + x00720208: 'PartialDataDisplayHandling', + x00720210: 'SynchronizedScrollingSequence', + x00720212: 'DisplaySetScrollingGroup', + x00720214: 'NavigationIndicatorSequence', + x00720216: 'NavigationDisplaySet', + x00720218: 'ReferenceDisplaySets', + x00720300: 'ImageBoxesSequence', + x00720302: 'ImageBoxNumber', + x00720304: 'ImageBoxLayoutType', + x00720306: 'ImageBoxTileHorizontalDimension', + x00720308: 'ImageBoxTileVerticalDimension', + x00720310: 'ImageBoxScrollDirection', + x00720312: 'ImageBoxSmallScrollType', + x00720314: 'ImageBoxSmallScrollAmount', + x00720316: 'ImageBoxLargeScrollType', + x00720318: 'ImageBoxLargeScrollAmount', + x00720320: 'ImageBoxOverlapPriority', + x00720330: 'CineRelativeToRealTime', + x00720400: 'FilterOperationsSequence', + x00720402: 'FilterByCategory', + x00720404: 'FilterByAttributePresence', + x00720406: 'FilterByOperator', + x00720432: 'SynchronizedImageBoxList', + x00720434: 'TypeOfSynchronization', + x00720500: 'BlendingOperationType', + x00720510: 'ReformattingOperationType', + x00720512: 'ReformattingThickness', + x00720514: 'ReformattingInterval', + x00720516: 'ReformattingOpInitialViewDir', + x00720520: 'RenderingType3D', + x00720600: 'SortingOperationsSequence', + x00720602: 'SortByCategory', + x00720604: 'SortingDirection', + x00720700: 'DisplaySetPatientOrientation', + x00720702: 'VOIType', + x00720704: 'PseudoColorType', + x00720706: 'ShowGrayscaleInverted', + x00720710: 'ShowImageTrueSizeFlag', + x00720712: 'ShowGraphicAnnotationFlag', + x00720714: 'ShowPatientDemographicsFlag', + x00720716: 'ShowAcquisitionTechniquesFlag', + x00720717: 'DisplaySetHorizontalJustification', + x00720718: 'DisplaySetVerticalJustification', + x00741000: 'UnifiedProcedureStepState', + x00741002: 'UPSProgressInformationSequence', + x00741004: 'UnifiedProcedureStepProgress', + x00741006: 'UnifiedProcedureStepProgressDescr', + x00741008: 'UnifiedProcedureStepComURISeq', + x0074100a: 'ContactURI', + x0074100c: 'ContactDisplayName', + x00741020: 'BeamTaskSequence', + x00741022: 'BeamTaskType', + x00741024: 'BeamOrderIndex', + x00741030: 'DeliveryVerificationImageSequence', + x00741032: 'VerificationImageTiming', + x00741034: 'DoubleExposureFlag', + x00741036: 'DoubleExposureOrdering', + x00741038: 'DoubleExposureMeterset', + x0074103a: 'DoubleExposureFieldDelta', + x00741040: 'RelatedReferenceRTImageSequence', + x00741042: 'GeneralMachineVerificationSequence', + x00741044: 'ConventionalMachineVerificationSeq', + x00741046: 'IonMachineVerificationSequence', + x00741048: 'FailedAttributesSequence', + x0074104a: 'OverriddenAttributesSequence', + x0074104c: 'ConventionalControlPointVerifySeq', + x0074104e: 'IonControlPointVerificationSeq', + x00741050: 'AttributeOccurrenceSequence', + x00741052: 'AttributeOccurrencePointer', + x00741054: 'AttributeItemSelector', + x00741056: 'AttributeOccurrencePrivateCreator', + x00741200: 'ScheduledProcedureStepPriority', + x00741202: 'StudyListLabel', + x00741204: 'ProcedureStepLabel', + x00741210: 'ScheduledProcessingParametersSeq', + x00741212: 'PerformedProcessingParametersSeq', + x00741216: 'UPSPerformedProcedureSequence', + x00741220: 'RelatedProcedureStepSequence', + x00741222: 'ProcedureStepRelationshipType', + x00741230: 'DeletionLock', + x00741234: 'ReceivingAE', + x00741236: 'RequestingAE', + x00741238: 'ReasonForCancellation', + x00741242: 'SCPStatus', + x00741244: 'SubscriptionListStatus', + x00741246: 'UPSListStatus', + x00880130: 'StorageMediaFileSetID', + x00880140: 'StorageMediaFileSetUID', + x00880200: 'IconImageSequence', + x00880904: 'TopicTitle', + x00880906: 'TopicSubject', + x00880910: 'TopicAuthor', + x00880912: 'TopicKeywords', + x01000410: 'SOPInstanceStatus', + x01000420: 'SOPAuthorizationDateAndTime', + x01000424: 'SOPAuthorizationComment', + x01000426: 'AuthorizationEquipmentCertNumber', + x04000005: 'MACIDNumber', + x04000010: 'MACCalculationTransferSyntaxUID', + x04000015: 'MACAlgorithm', + x04000020: 'DataElementsSigned', + x04000100: 'DigitalSignatureUID', + x04000105: 'DigitalSignatureDateTime', + x04000110: 'CertificateType', + x04000115: 'CertificateOfSigner', + x04000120: 'Signature', + x04000305: 'CertifiedTimestampType', + x04000310: 'CertifiedTimestamp', + x04000401: 'DigitalSignaturePurposeCodeSeq', + x04000402: 'ReferencedDigitalSignatureSeq', + x04000403: 'ReferencedSOPInstanceMACSeq', + x04000404: 'MAC', + x04000500: 'EncryptedAttributesSequence', + x04000510: 'EncryptedContentTransferSyntaxUID', + x04000520: 'EncryptedContent', + x04000550: 'ModifiedAttributesSequence', + x04000561: 'OriginalAttributesSequence', + x04000562: 'AttributeModificationDateTime', + x04000563: 'ModifyingSystem', + x04000564: 'SourceOfPreviousValues', + x04000565: 'ReasonForTheAttributeModification', + x1000xxx0: 'EscapeTriplet', + x1000xxx1: 'RunLengthTriplet', + x1000xxx2: 'HuffmanTableSize', + x1000xxx3: 'HuffmanTableTriplet', + x1000xxx4: 'ShiftTableSize', + x1000xxx5: 'ShiftTableTriplet', + x1010xxxx: 'ZonalMap', + x20000010: 'NumberOfCopies', + x2000001e: 'PrinterConfigurationSequence', + x20000020: 'PrintPriority', + x20000030: 'MediumType', + x20000040: 'FilmDestination', + x20000050: 'FilmSessionLabel', + x20000060: 'MemoryAllocation', + x20000061: 'MaximumMemoryAllocation', + x20000062: 'ColorImagePrintingFlag', + x20000063: 'CollationFlag', + x20000065: 'AnnotationFlag', + x20000067: 'ImageOverlayFlag', + x20000069: 'PresentationLUTFlag', + x2000006a: 'ImageBoxPresentationLUTFlag', + x200000a0: 'MemoryBitDepth', + x200000a1: 'PrintingBitDepth', + x200000a2: 'MediaInstalledSequence', + x200000a4: 'OtherMediaAvailableSequence', + x200000a8: 'SupportedImageDisplayFormatSeq', + x20000500: 'ReferencedFilmBoxSequence', + x20000510: 'ReferencedStoredPrintSequence', + x20100010: 'ImageDisplayFormat', + x20100030: 'AnnotationDisplayFormatID', + x20100040: 'FilmOrientation', + x20100050: 'FilmSizeID', + x20100052: 'PrinterResolutionID', + x20100054: 'DefaultPrinterResolutionID', + x20100060: 'MagnificationType', + x20100080: 'SmoothingType', + x201000a6: 'DefaultMagnificationType', + x201000a7: 'OtherMagnificationTypesAvailable', + x201000a8: 'DefaultSmoothingType', + x201000a9: 'OtherSmoothingTypesAvailable', + x20100100: 'BorderDensity', + x20100110: 'EmptyImageDensity', + x20100120: 'MinDensity', + x20100130: 'MaxDensity', + x20100140: 'Trim', + x20100150: 'ConfigurationInformation', + x20100152: 'ConfigurationInformationDescr', + x20100154: 'MaximumCollatedFilms', + x2010015e: 'Illumination', + x20100160: 'ReflectedAmbientLight', + x20100376: 'PrinterPixelSpacing', + x20100500: 'ReferencedFilmSessionSequence', + x20100510: 'ReferencedImageBoxSequence', + x20100520: 'ReferencedBasicAnnotationBoxSeq', + x20200010: 'ImageBoxPosition', + x20200020: 'Polarity', + x20200030: 'RequestedImageSize', + x20200040: 'RequestedDecimate-CropBehavior', + x20200050: 'RequestedResolutionID', + x202000a0: 'RequestedImageSizeFlag', + x202000a2: 'DecimateCropResult', + x20200110: 'BasicGrayscaleImageSequence', + x20200111: 'BasicColorImageSequence', + x20200130: 'ReferencedImageOverlayBoxSequence', + x20200140: 'ReferencedVOILUTBoxSequence', + x20300010: 'AnnotationPosition', + x20300020: 'TextString', + x20400010: 'ReferencedOverlayPlaneSequence', + x20400011: 'ReferencedOverlayPlaneGroups', + x20400020: 'OverlayPixelDataSequence', + x20400060: 'OverlayMagnificationType', + x20400070: 'OverlaySmoothingType', + x20400072: 'OverlayOrImageMagnification', + x20400074: 'MagnifyToNumberOfColumns', + x20400080: 'OverlayForegroundDensity', + x20400082: 'OverlayBackgroundDensity', + x20400090: 'OverlayMode', + x20400100: 'ThresholdDensity', + x20400500: 'ReferencedImageBoxSequenceRetired', + x20500010: 'PresentationLUTSequence', + x20500020: 'PresentationLUTShape', + x20500500: 'ReferencedPresentationLUTSequence', + x21000010: 'PrintJobID', + x21000020: 'ExecutionStatus', + x21000030: 'ExecutionStatusInfo', + x21000040: 'CreationDate', + x21000050: 'CreationTime', + x21000070: 'Originator', + x21000140: 'DestinationAE', + x21000160: 'OwnerID', + x21000170: 'NumberOfFilms', + x21000500: 'ReferencedPrintJobSequencePullStoredPrint', + x21100010: 'PrinterStatus', + x21100020: 'PrinterStatusInfo', + x21100030: 'PrinterName', + x21100099: 'PrintQueueID', + x21200010: 'QueueStatus', + x21200050: 'PrintJobDescriptionSequence', + x21200070: 'ReferencedPrintJobSequence', + x21300010: 'PrintManagementCapabilitiesSeq', + x21300015: 'PrinterCharacteristicsSequence', + x21300030: 'FilmBoxContentSequence', + x21300040: 'ImageBoxContentSequence', + x21300050: 'AnnotationContentSequence', + x21300060: 'ImageOverlayBoxContentSequence', + x21300080: 'PresentationLUTContentSequence', + x213000a0: 'ProposedStudySequence', + x213000c0: 'OriginalImageSequence', + x22000001: 'LabelFromInfoExtractedFromInstance', + x22000002: 'LabelText', + x22000003: 'LabelStyleSelection', + x22000004: 'MediaDisposition', + x22000005: 'BarcodeValue', + x22000006: 'BarcodeSymbology', + x22000007: 'AllowMediaSplitting', + x22000008: 'IncludeNonDICOMObjects', + x22000009: 'IncludeDisplayApplication', + x2200000a: 'SaveCompInstancesAfterMediaCreate', + x2200000b: 'TotalNumberMediaPiecesCreated', + x2200000c: 'RequestedMediaApplicationProfile', + x2200000d: 'ReferencedStorageMediaSequence', + x2200000e: 'FailureAttributes', + x2200000f: 'AllowLossyCompression', + x22000020: 'RequestPriority', + x30020002: 'RTImageLabel', + x30020003: 'RTImageName', + x30020004: 'RTImageDescription', + x3002000a: 'ReportedValuesOrigin', + x3002000c: 'RTImagePlane', + x3002000d: 'XRayImageReceptorTranslation', + x3002000e: 'XRayImageReceptorAngle', + x30020010: 'RTImageOrientation', + x30020011: 'ImagePlanePixelSpacing', + x30020012: 'RTImagePosition', + x30020020: 'RadiationMachineName', + x30020022: 'RadiationMachineSAD', + x30020024: 'RadiationMachineSSD', + x30020026: 'RTImageSID', + x30020028: 'SourceToReferenceObjectDistance', + x30020029: 'FractionNumber', + x30020030: 'ExposureSequence', + x30020032: 'MetersetExposure', + x30020034: 'DiaphragmPosition', + x30020040: 'FluenceMapSequence', + x30020041: 'FluenceDataSource', + x30020042: 'FluenceDataScale', + x30020051: 'FluenceMode', + x30020052: 'FluenceModeID', + x30040001: 'DVHType', + x30040002: 'DoseUnits', + x30040004: 'DoseType', + x30040006: 'DoseComment', + x30040008: 'NormalizationPoint', + x3004000a: 'DoseSummationType', + x3004000c: 'GridFrameOffsetVector', + x3004000e: 'DoseGridScaling', + x30040010: 'RTDoseROISequence', + x30040012: 'DoseValue', + x30040014: 'TissueHeterogeneityCorrection', + x30040040: 'DVHNormalizationPoint', + x30040042: 'DVHNormalizationDoseValue', + x30040050: 'DVHSequence', + x30040052: 'DVHDoseScaling', + x30040054: 'DVHVolumeUnits', + x30040056: 'DVHNumberOfBins', + x30040058: 'DVHData', + x30040060: 'DVHReferencedROISequence', + x30040062: 'DVHROIContributionType', + x30040070: 'DVHMinimumDose', + x30040072: 'DVHMaximumDose', + x30040074: 'DVHMeanDose', + x30060002: 'StructureSetLabel', + x30060004: 'StructureSetName', + x30060006: 'StructureSetDescription', + x30060008: 'StructureSetDate', + x30060009: 'StructureSetTime', + x30060010: 'ReferencedFrameOfReferenceSequence', + x30060012: 'RTReferencedStudySequence', + x30060014: 'RTReferencedSeriesSequence', + x30060016: 'ContourImageSequence', + x30060020: 'StructureSetROISequence', + x30060022: 'ROINumber', + x30060024: 'ReferencedFrameOfReferenceUID', + x30060026: 'ROIName', + x30060028: 'ROIDescription', + x3006002a: 'ROIDisplayColor', + x3006002c: 'ROIVolume', + x30060030: 'RTRelatedROISequence', + x30060033: 'RTROIRelationship', + x30060036: 'ROIGenerationAlgorithm', + x30060038: 'ROIGenerationDescription', + x30060039: 'ROIContourSequence', + x30060040: 'ContourSequence', + x30060042: 'ContourGeometricType', + x30060044: 'ContourSlabThickness', + x30060045: 'ContourOffsetVector', + x30060046: 'NumberOfContourPoints', + x30060048: 'ContourNumber', + x30060049: 'AttachedContours', + x30060050: 'ContourData', + x30060080: 'RTROIObservationsSequence', + x30060082: 'ObservationNumber', + x30060084: 'ReferencedROINumber', + x30060085: 'ROIObservationLabel', + x30060086: 'RTROIIdentificationCodeSequence', + x30060088: 'ROIObservationDescription', + x300600a0: 'RelatedRTROIObservationsSequence', + x300600a4: 'RTROIInterpretedType', + x300600a6: 'ROIInterpreter', + x300600b0: 'ROIPhysicalPropertiesSequence', + x300600b2: 'ROIPhysicalProperty', + x300600b4: 'ROIPhysicalPropertyValue', + x300600b6: 'ROIElementalCompositionSequence', + x300600b7: 'ROIElementalCompAtomicNumber', + x300600b8: 'ROIElementalCompAtomicMassFraction', + x300600c0: 'FrameOfReferenceRelationshipSeq', + x300600c2: 'RelatedFrameOfReferenceUID', + x300600c4: 'FrameOfReferenceTransformType', + x300600c6: 'FrameOfReferenceTransformMatrix', + x300600c8: 'FrameOfReferenceTransformComment', + x30080010: 'MeasuredDoseReferenceSequence', + x30080012: 'MeasuredDoseDescription', + x30080014: 'MeasuredDoseType', + x30080016: 'MeasuredDoseValue', + x30080020: 'TreatmentSessionBeamSequence', + x30080021: 'TreatmentSessionIonBeamSequence', + x30080022: 'CurrentFractionNumber', + x30080024: 'TreatmentControlPointDate', + x30080025: 'TreatmentControlPointTime', + x3008002a: 'TreatmentTerminationStatus', + x3008002b: 'TreatmentTerminationCode', + x3008002c: 'TreatmentVerificationStatus', + x30080030: 'ReferencedTreatmentRecordSequence', + x30080032: 'SpecifiedPrimaryMeterset', + x30080033: 'SpecifiedSecondaryMeterset', + x30080036: 'DeliveredPrimaryMeterset', + x30080037: 'DeliveredSecondaryMeterset', + x3008003a: 'SpecifiedTreatmentTime', + x3008003b: 'DeliveredTreatmentTime', + x30080040: 'ControlPointDeliverySequence', + x30080041: 'IonControlPointDeliverySequence', + x30080042: 'SpecifiedMeterset', + x30080044: 'DeliveredMeterset', + x30080045: 'MetersetRateSet', + x30080046: 'MetersetRateDelivered', + x30080047: 'ScanSpotMetersetsDelivered', + x30080048: 'DoseRateDelivered', + x30080050: 'TreatmentSummaryCalcDoseRefSeq', + x30080052: 'CumulativeDoseToDoseReference', + x30080054: 'FirstTreatmentDate', + x30080056: 'MostRecentTreatmentDate', + x3008005a: 'NumberOfFractionsDelivered', + x30080060: 'OverrideSequence', + x30080061: 'ParameterSequencePointer', + x30080062: 'OverrideParameterPointer', + x30080063: 'ParameterItemIndex', + x30080064: 'MeasuredDoseReferenceNumber', + x30080065: 'ParameterPointer', + x30080066: 'OverrideReason', + x30080068: 'CorrectedParameterSequence', + x3008006a: 'CorrectionValue', + x30080070: 'CalculatedDoseReferenceSequence', + x30080072: 'CalculatedDoseReferenceNumber', + x30080074: 'CalculatedDoseReferenceDescription', + x30080076: 'CalculatedDoseReferenceDoseValue', + x30080078: 'StartMeterset', + x3008007a: 'EndMeterset', + x30080080: 'ReferencedMeasuredDoseReferenceSeq', + x30080082: 'ReferencedMeasuredDoseReferenceNum', + x30080090: 'ReferencedCalculatedDoseRefSeq', + x30080092: 'ReferencedCalculatedDoseRefNumber', + x300800a0: 'BeamLimitingDeviceLeafPairsSeq', + x300800b0: 'RecordedWedgeSequence', + x300800c0: 'RecordedCompensatorSequence', + x300800d0: 'RecordedBlockSequence', + x300800e0: 'TreatmentSummaryMeasuredDoseRefSeq', + x300800f0: 'RecordedSnoutSequence', + x300800f2: 'RecordedRangeShifterSequence', + x300800f4: 'RecordedLateralSpreadingDeviceSeq', + x300800f6: 'RecordedRangeModulatorSequence', + x30080100: 'RecordedSourceSequence', + x30080105: 'SourceSerialNumber', + x30080110: 'TreatmentSessionAppSetupSeq', + x30080116: 'ApplicationSetupCheck', + x30080120: 'RecordedBrachyAccessoryDeviceSeq', + x30080122: 'ReferencedBrachyAccessoryDeviceNum', + x30080130: 'RecordedChannelSequence', + x30080132: 'SpecifiedChannelTotalTime', + x30080134: 'DeliveredChannelTotalTime', + x30080136: 'SpecifiedNumberOfPulses', + x30080138: 'DeliveredNumberOfPulses', + x3008013a: 'SpecifiedPulseRepetitionInterval', + x3008013c: 'DeliveredPulseRepetitionInterval', + x30080140: 'RecordedSourceApplicatorSequence', + x30080142: 'ReferencedSourceApplicatorNumber', + x30080150: 'RecordedChannelShieldSequence', + x30080152: 'ReferencedChannelShieldNumber', + x30080160: 'BrachyControlPointDeliveredSeq', + x30080162: 'SafePositionExitDate', + x30080164: 'SafePositionExitTime', + x30080166: 'SafePositionReturnDate', + x30080168: 'SafePositionReturnTime', + x30080200: 'CurrentTreatmentStatus', + x30080202: 'TreatmentStatusComment', + x30080220: 'FractionGroupSummarySequence', + x30080223: 'ReferencedFractionNumber', + x30080224: 'FractionGroupType', + x30080230: 'BeamStopperPosition', + x30080240: 'FractionStatusSummarySequence', + x30080250: 'TreatmentDate', + x30080251: 'TreatmentTime', + x300a0002: 'RTPlanLabel', + x300a0003: 'RTPlanName', + x300a0004: 'RTPlanDescription', + x300a0006: 'RTPlanDate', + x300a0007: 'RTPlanTime', + x300a0009: 'TreatmentProtocols', + x300a000a: 'PlanIntent', + x300a000b: 'TreatmentSites', + x300a000c: 'RTPlanGeometry', + x300a000e: 'PrescriptionDescription', + x300a0010: 'DoseReferenceSequence', + x300a0012: 'DoseReferenceNumber', + x300a0013: 'DoseReferenceUID', + x300a0014: 'DoseReferenceStructureType', + x300a0015: 'NominalBeamEnergyUnit', + x300a0016: 'DoseReferenceDescription', + x300a0018: 'DoseReferencePointCoordinates', + x300a001a: 'NominalPriorDose', + x300a0020: 'DoseReferenceType', + x300a0021: 'ConstraintWeight', + x300a0022: 'DeliveryWarningDose', + x300a0023: 'DeliveryMaximumDose', + x300a0025: 'TargetMinimumDose', + x300a0026: 'TargetPrescriptionDose', + x300a0027: 'TargetMaximumDose', + x300a0028: 'TargetUnderdoseVolumeFraction', + x300a002a: 'OrganAtRiskFullVolumeDose', + x300a002b: 'OrganAtRiskLimitDose', + x300a002c: 'OrganAtRiskMaximumDose', + x300a002d: 'OrganAtRiskOverdoseVolumeFraction', + x300a0040: 'ToleranceTableSequence', + x300a0042: 'ToleranceTableNumber', + x300a0043: 'ToleranceTableLabel', + x300a0044: 'GantryAngleTolerance', + x300a0046: 'BeamLimitingDeviceAngleTolerance', + x300a0048: 'BeamLimitingDeviceToleranceSeq', + x300a004a: 'BeamLimitingDevicePositionTol', + x300a004b: 'SnoutPositionTolerance', + x300a004c: 'PatientSupportAngleTolerance', + x300a004e: 'TableTopEccentricAngleTolerance', + x300a004f: 'TableTopPitchAngleTolerance', + x300a0050: 'TableTopRollAngleTolerance', + x300a0051: 'TableTopVerticalPositionTolerance', + x300a0052: 'TableTopLongitudinalPositionTol', + x300a0053: 'TableTopLateralPositionTolerance', + x300a0055: 'RTPlanRelationship', + x300a0070: 'FractionGroupSequence', + x300a0071: 'FractionGroupNumber', + x300a0072: 'FractionGroupDescription', + x300a0078: 'NumberOfFractionsPlanned', + x300a0079: 'NumberFractionPatternDigitsPerDay', + x300a007a: 'RepeatFractionCycleLength', + x300a007b: 'FractionPattern', + x300a0080: 'NumberOfBeams', + x300a0082: 'BeamDoseSpecificationPoint', + x300a0084: 'BeamDose', + x300a0086: 'BeamMeterset', + x300a0088: 'BeamDosePointDepth', + x300a0089: 'BeamDosePointEquivalentDepth', + x300a008a: 'BeamDosePointSSD', + x300a00a0: 'NumberOfBrachyApplicationSetups', + x300a00a2: 'BrachyAppSetupDoseSpecPoint', + x300a00a4: 'BrachyApplicationSetupDose', + x300a00b0: 'BeamSequence', + x300a00b2: 'TreatmentMachineName', + x300a00b3: 'PrimaryDosimeterUnit', + x300a00b4: 'SourceAxisDistance', + x300a00b6: 'BeamLimitingDeviceSequence', + x300a00b8: 'RTBeamLimitingDeviceType', + x300a00ba: 'SourceToBeamLimitingDeviceDistance', + x300a00bb: 'IsocenterToBeamLimitingDeviceDist', + x300a00bc: 'NumberOfLeafJawPairs', + x300a00be: 'LeafPositionBoundaries', + x300a00c0: 'BeamNumber', + x300a00c2: 'BeamName', + x300a00c3: 'BeamDescription', + x300a00c4: 'BeamType', + x300a00c6: 'RadiationType', + x300a00c7: 'HighDoseTechniqueType', + x300a00c8: 'ReferenceImageNumber', + x300a00ca: 'PlannedVerificationImageSequence', + x300a00cc: 'ImagingDeviceSpecificAcqParams', + x300a00ce: 'TreatmentDeliveryType', + x300a00d0: 'NumberOfWedges', + x300a00d1: 'WedgeSequence', + x300a00d2: 'WedgeNumber', + x300a00d3: 'WedgeType', + x300a00d4: 'WedgeID', + x300a00d5: 'WedgeAngle', + x300a00d6: 'WedgeFactor', + x300a00d7: 'TotalWedgeTrayWaterEquivThickness', + x300a00d8: 'WedgeOrientation', + x300a00d9: 'IsocenterToWedgeTrayDistance', + x300a00da: 'SourceToWedgeTrayDistance', + x300a00db: 'WedgeThinEdgePosition', + x300a00dc: 'BolusID', + x300a00dd: 'BolusDescription', + x300a00e0: 'NumberOfCompensators', + x300a00e1: 'MaterialID', + x300a00e2: 'TotalCompensatorTrayFactor', + x300a00e3: 'CompensatorSequence', + x300a00e4: 'CompensatorNumber', + x300a00e5: 'CompensatorID', + x300a00e6: 'SourceToCompensatorTrayDistance', + x300a00e7: 'CompensatorRows', + x300a00e8: 'CompensatorColumns', + x300a00e9: 'CompensatorPixelSpacing', + x300a00ea: 'CompensatorPosition', + x300a00eb: 'CompensatorTransmissionData', + x300a00ec: 'CompensatorThicknessData', + x300a00ed: 'NumberOfBoli', + x300a00ee: 'CompensatorType', + x300a00f0: 'NumberOfBlocks', + x300a00f2: 'TotalBlockTrayFactor', + x300a00f3: 'TotalBlockTrayWaterEquivThickness', + x300a00f4: 'BlockSequence', + x300a00f5: 'BlockTrayID', + x300a00f6: 'SourceToBlockTrayDistance', + x300a00f7: 'IsocenterToBlockTrayDistance', + x300a00f8: 'BlockType', + x300a00f9: 'AccessoryCode', + x300a00fa: 'BlockDivergence', + x300a00fb: 'BlockMountingPosition', + x300a00fc: 'BlockNumber', + x300a00fe: 'BlockName', + x300a0100: 'BlockThickness', + x300a0102: 'BlockTransmission', + x300a0104: 'BlockNumberOfPoints', + x300a0106: 'BlockData', + x300a0107: 'ApplicatorSequence', + x300a0108: 'ApplicatorID', + x300a0109: 'ApplicatorType', + x300a010a: 'ApplicatorDescription', + x300a010c: 'CumulativeDoseReferenceCoefficient', + x300a010e: 'FinalCumulativeMetersetWeight', + x300a0110: 'NumberOfControlPoints', + x300a0111: 'ControlPointSequence', + x300a0112: 'ControlPointIndex', + x300a0114: 'NominalBeamEnergy', + x300a0115: 'DoseRateSet', + x300a0116: 'WedgePositionSequence', + x300a0118: 'WedgePosition', + x300a011a: 'BeamLimitingDevicePositionSequence', + x300a011c: 'LeafJawPositions', + x300a011e: 'GantryAngle', + x300a011f: 'GantryRotationDirection', + x300a0120: 'BeamLimitingDeviceAngle', + x300a0121: 'BeamLimitingDeviceRotateDirection', + x300a0122: 'PatientSupportAngle', + x300a0123: 'PatientSupportRotationDirection', + x300a0124: 'TableTopEccentricAxisDistance', + x300a0125: 'TableTopEccentricAngle', + x300a0126: 'TableTopEccentricRotateDirection', + x300a0128: 'TableTopVerticalPosition', + x300a0129: 'TableTopLongitudinalPosition', + x300a012a: 'TableTopLateralPosition', + x300a012c: 'IsocenterPosition', + x300a012e: 'SurfaceEntryPoint', + x300a0130: 'SourceToSurfaceDistance', + x300a0134: 'CumulativeMetersetWeight', + x300a0140: 'TableTopPitchAngle', + x300a0142: 'TableTopPitchRotationDirection', + x300a0144: 'TableTopRollAngle', + x300a0146: 'TableTopRollRotationDirection', + x300a0148: 'HeadFixationAngle', + x300a014a: 'GantryPitchAngle', + x300a014c: 'GantryPitchRotationDirection', + x300a014e: 'GantryPitchAngleTolerance', + x300a0180: 'PatientSetupSequence', + x300a0182: 'PatientSetupNumber', + x300a0183: 'PatientSetupLabel', + x300a0184: 'PatientAdditionalPosition', + x300a0190: 'FixationDeviceSequence', + x300a0192: 'FixationDeviceType', + x300a0194: 'FixationDeviceLabel', + x300a0196: 'FixationDeviceDescription', + x300a0198: 'FixationDevicePosition', + x300a0199: 'FixationDevicePitchAngle', + x300a019a: 'FixationDeviceRollAngle', + x300a01a0: 'ShieldingDeviceSequence', + x300a01a2: 'ShieldingDeviceType', + x300a01a4: 'ShieldingDeviceLabel', + x300a01a6: 'ShieldingDeviceDescription', + x300a01a8: 'ShieldingDevicePosition', + x300a01b0: 'SetupTechnique', + x300a01b2: 'SetupTechniqueDescription', + x300a01b4: 'SetupDeviceSequence', + x300a01b6: 'SetupDeviceType', + x300a01b8: 'SetupDeviceLabel', + x300a01ba: 'SetupDeviceDescription', + x300a01bc: 'SetupDeviceParameter', + x300a01d0: 'SetupReferenceDescription', + x300a01d2: 'TableTopVerticalSetupDisplacement', + x300a01d4: 'TableTopLongitudinalSetupDisplace', + x300a01d6: 'TableTopLateralSetupDisplacement', + x300a0200: 'BrachyTreatmentTechnique', + x300a0202: 'BrachyTreatmentType', + x300a0206: 'TreatmentMachineSequence', + x300a0210: 'SourceSequence', + x300a0212: 'SourceNumber', + x300a0214: 'SourceType', + x300a0216: 'SourceManufacturer', + x300a0218: 'ActiveSourceDiameter', + x300a021a: 'ActiveSourceLength', + x300a0222: 'SourceEncapsulationNomThickness', + x300a0224: 'SourceEncapsulationNomTransmission', + x300a0226: 'SourceIsotopeName', + x300a0228: 'SourceIsotopeHalfLife', + x300a0229: 'SourceStrengthUnits', + x300a022a: 'ReferenceAirKermaRate', + x300a022b: 'SourceStrength', + x300a022c: 'SourceStrengthReferenceDate', + x300a022e: 'SourceStrengthReferenceTime', + x300a0230: 'ApplicationSetupSequence', + x300a0232: 'ApplicationSetupType', + x300a0234: 'ApplicationSetupNumber', + x300a0236: 'ApplicationSetupName', + x300a0238: 'ApplicationSetupManufacturer', + x300a0240: 'TemplateNumber', + x300a0242: 'TemplateType', + x300a0244: 'TemplateName', + x300a0250: 'TotalReferenceAirKerma', + x300a0260: 'BrachyAccessoryDeviceSequence', + x300a0262: 'BrachyAccessoryDeviceNumber', + x300a0263: 'BrachyAccessoryDeviceID', + x300a0264: 'BrachyAccessoryDeviceType', + x300a0266: 'BrachyAccessoryDeviceName', + x300a026a: 'BrachyAccessoryDeviceNomThickness', + x300a026c: 'BrachyAccessoryDevNomTransmission', + x300a0280: 'ChannelSequence', + x300a0282: 'ChannelNumber', + x300a0284: 'ChannelLength', + x300a0286: 'ChannelTotalTime', + x300a0288: 'SourceMovementType', + x300a028a: 'NumberOfPulses', + x300a028c: 'PulseRepetitionInterval', + x300a0290: 'SourceApplicatorNumber', + x300a0291: 'SourceApplicatorID', + x300a0292: 'SourceApplicatorType', + x300a0294: 'SourceApplicatorName', + x300a0296: 'SourceApplicatorLength', + x300a0298: 'SourceApplicatorManufacturer', + x300a029c: 'SourceApplicatorWallNomThickness', + x300a029e: 'SourceApplicatorWallNomTrans', + x300a02a0: 'SourceApplicatorStepSize', + x300a02a2: 'TransferTubeNumber', + x300a02a4: 'TransferTubeLength', + x300a02b0: 'ChannelShieldSequence', + x300a02b2: 'ChannelShieldNumber', + x300a02b3: 'ChannelShieldID', + x300a02b4: 'ChannelShieldName', + x300a02b8: 'ChannelShieldNominalThickness', + x300a02ba: 'ChannelShieldNominalTransmission', + x300a02c8: 'FinalCumulativeTimeWeight', + x300a02d0: 'BrachyControlPointSequence', + x300a02d2: 'ControlPointRelativePosition', + x300a02d4: 'ControlPoint3DPosition', + x300a02d6: 'CumulativeTimeWeight', + x300a02e0: 'CompensatorDivergence', + x300a02e1: 'CompensatorMountingPosition', + x300a02e2: 'SourceToCompensatorDistance', + x300a02e3: 'TotalCompTrayWaterEquivThickness', + x300a02e4: 'IsocenterToCompensatorTrayDistance', + x300a02e5: 'CompensatorColumnOffset', + x300a02e6: 'IsocenterToCompensatorDistances', + x300a02e7: 'CompensatorRelStoppingPowerRatio', + x300a02e8: 'CompensatorMillingToolDiameter', + x300a02ea: 'IonRangeCompensatorSequence', + x300a02eb: 'CompensatorDescription', + x300a0302: 'RadiationMassNumber', + x300a0304: 'RadiationAtomicNumber', + x300a0306: 'RadiationChargeState', + x300a0308: 'ScanMode', + x300a030a: 'VirtualSourceAxisDistances', + x300a030c: 'SnoutSequence', + x300a030d: 'SnoutPosition', + x300a030f: 'SnoutID', + x300a0312: 'NumberOfRangeShifters', + x300a0314: 'RangeShifterSequence', + x300a0316: 'RangeShifterNumber', + x300a0318: 'RangeShifterID', + x300a0320: 'RangeShifterType', + x300a0322: 'RangeShifterDescription', + x300a0330: 'NumberOfLateralSpreadingDevices', + x300a0332: 'LateralSpreadingDeviceSequence', + x300a0334: 'LateralSpreadingDeviceNumber', + x300a0336: 'LateralSpreadingDeviceID', + x300a0338: 'LateralSpreadingDeviceType', + x300a033a: 'LateralSpreadingDeviceDescription', + x300a033c: 'LateralSpreadingDevWaterEquivThick', + x300a0340: 'NumberOfRangeModulators', + x300a0342: 'RangeModulatorSequence', + x300a0344: 'RangeModulatorNumber', + x300a0346: 'RangeModulatorID', + x300a0348: 'RangeModulatorType', + x300a034a: 'RangeModulatorDescription', + x300a034c: 'BeamCurrentModulationID', + x300a0350: 'PatientSupportType', + x300a0352: 'PatientSupportID', + x300a0354: 'PatientSupportAccessoryCode', + x300a0356: 'FixationLightAzimuthalAngle', + x300a0358: 'FixationLightPolarAngle', + x300a035a: 'MetersetRate', + x300a0360: 'RangeShifterSettingsSequence', + x300a0362: 'RangeShifterSetting', + x300a0364: 'IsocenterToRangeShifterDistance', + x300a0366: 'RangeShifterWaterEquivThickness', + x300a0370: 'LateralSpreadingDeviceSettingsSeq', + x300a0372: 'LateralSpreadingDeviceSetting', + x300a0374: 'IsocenterToLateralSpreadingDevDist', + x300a0380: 'RangeModulatorSettingsSequence', + x300a0382: 'RangeModulatorGatingStartValue', + x300a0384: 'RangeModulatorGatingStopValue', + x300a038a: 'IsocenterToRangeModulatorDistance', + x300a0390: 'ScanSpotTuneID', + x300a0392: 'NumberOfScanSpotPositions', + x300a0394: 'ScanSpotPositionMap', + x300a0396: 'ScanSpotMetersetWeights', + x300a0398: 'ScanningSpotSize', + x300a039a: 'NumberOfPaintings', + x300a03a0: 'IonToleranceTableSequence', + x300a03a2: 'IonBeamSequence', + x300a03a4: 'IonBeamLimitingDeviceSequence', + x300a03a6: 'IonBlockSequence', + x300a03a8: 'IonControlPointSequence', + x300a03aa: 'IonWedgeSequence', + x300a03ac: 'IonWedgePositionSequence', + x300a0401: 'ReferencedSetupImageSequence', + x300a0402: 'SetupImageComment', + x300a0410: 'MotionSynchronizationSequence', + x300a0412: 'ControlPointOrientation', + x300a0420: 'GeneralAccessorySequence', + x300a0421: 'GeneralAccessoryID', + x300a0422: 'GeneralAccessoryDescription', + x300a0423: 'GeneralAccessoryType', + x300a0424: 'GeneralAccessoryNumber', + x300c0002: 'ReferencedRTPlanSequence', + x300c0004: 'ReferencedBeamSequence', + x300c0006: 'ReferencedBeamNumber', + x300c0007: 'ReferencedReferenceImageNumber', + x300c0008: 'StartCumulativeMetersetWeight', + x300c0009: 'EndCumulativeMetersetWeight', + x300c000a: 'ReferencedBrachyAppSetupSeq', + x300c000c: 'ReferencedBrachyAppSetupNumber', + x300c000e: 'ReferencedSourceNumber', + x300c0020: 'ReferencedFractionGroupSequence', + x300c0022: 'ReferencedFractionGroupNumber', + x300c0040: 'ReferencedVerificationImageSeq', + x300c0042: 'ReferencedReferenceImageSequence', + x300c0050: 'ReferencedDoseReferenceSequence', + x300c0051: 'ReferencedDoseReferenceNumber', + x300c0055: 'BrachyReferencedDoseReferenceSeq', + x300c0060: 'ReferencedStructureSetSequence', + x300c006a: 'ReferencedPatientSetupNumber', + x300c0080: 'ReferencedDoseSequence', + x300c00a0: 'ReferencedToleranceTableNumber', + x300c00b0: 'ReferencedBolusSequence', + x300c00c0: 'ReferencedWedgeNumber', + x300c00d0: 'ReferencedCompensatorNumber', + x300c00e0: 'ReferencedBlockNumber', + x300c00f0: 'ReferencedControlPointIndex', + x300c00f2: 'ReferencedControlPointSequence', + x300c00f4: 'ReferencedStartControlPointIndex', + x300c00f6: 'ReferencedStopControlPointIndex', + x300c0100: 'ReferencedRangeShifterNumber', + x300c0102: 'ReferencedLateralSpreadingDevNum', + x300c0104: 'ReferencedRangeModulatorNumber', + x300e0002: 'ApprovalStatus', + x300e0004: 'ReviewDate', + x300e0005: 'ReviewTime', + x300e0008: 'ReviewerName', + x40000000: 'TextGroupLength', + x40000010: 'Arbitrary', + x40004000: 'TextComments', + x40080040: 'ResultsID', + x40080042: 'ResultsIDIssuer', + x40080050: 'ReferencedInterpretationSequence', + x40080100: 'InterpretationRecordedDate', + x40080101: 'InterpretationRecordedTime', + x40080102: 'InterpretationRecorder', + x40080103: 'ReferenceToRecordedSound', + x40080108: 'InterpretationTranscriptionDate', + x40080109: 'InterpretationTranscriptionTime', + x4008010a: 'InterpretationTranscriber', + x4008010b: 'InterpretationText', + x4008010c: 'InterpretationAuthor', + x40080111: 'InterpretationApproverSequence', + x40080112: 'InterpretationApprovalDate', + x40080113: 'InterpretationApprovalTime', + x40080114: 'PhysicianApprovingInterpretation', + x40080115: 'InterpretationDiagnosisDescription', + x40080117: 'InterpretationDiagnosisCodeSeq', + x40080118: 'ResultsDistributionListSequence', + x40080119: 'DistributionName', + x4008011a: 'DistributionAddress', + x40080200: 'InterpretationID', + x40080202: 'InterpretationIDIssuer', + x40080210: 'InterpretationTypeID', + x40080212: 'InterpretationStatusID', + x40080300: 'Impressions', + x40084000: 'ResultsComments', + x4ffe0001: 'MACParametersSequence', + x50xx0005: 'CurveDimensions', + x50xx0010: 'NumberOfPoints', + x50xx0020: 'TypeOfData', + x50xx0022: 'CurveDescription', + x50xx0030: 'AxisUnits', + x50xx0040: 'AxisLabels', + x50xx0103: 'DataValueRepresentation', + x50xx0104: 'MinimumCoordinateValue', + x50xx0105: 'MaximumCoordinateValue', + x50xx0106: 'CurveRange', + x50xx0110: 'CurveDataDescriptor', + x50xx0112: 'CoordinateStartValue', + x50xx0114: 'CoordinateStepValue', + x50xx1001: 'CurveActivationLayer', + x50xx2000: 'AudioType', + x50xx2002: 'AudioSampleFormat', + x50xx2004: 'NumberOfChannels', + x50xx2006: 'NumberOfSamples', + x50xx2008: 'SampleRate', + x50xx200a: 'TotalTime', + x50xx200c: 'AudioSampleData', + x50xx200e: 'AudioComments', + x50xx2500: 'CurveLabel', + x50xx2600: 'CurveReferencedOverlaySequence', + x50xx2610: 'ReferencedOverlayGroup', + x50xx3000: 'CurveData', + x52009229: 'SharedFunctionalGroupsSequence', + x52009230: 'PerFrameFunctionalGroupsSequence', + x54000100: 'WaveformSequence', + x54000110: 'ChannelMinimumValue', + x54000112: 'ChannelMaximumValue', + x54001004: 'WaveformBitsAllocated', + x54001006: 'WaveformSampleInterpretation', + x5400100a: 'WaveformPaddingValue', + x54001010: 'WaveformData', + x56000010: 'FirstOrderPhaseCorrectionAngle', + x56000020: 'SpectroscopyData', + x60000000: 'OverlayGroupLength', + x60xx0010: 'OverlayRows', + x60xx0011: 'OverlayColumns', + x60xx0012: 'OverlayPlanes', + x60xx0015: 'NumberOfFramesInOverlay', + x60xx0022: 'OverlayDescription', + x60xx0040: 'OverlayType', + x60xx0045: 'OverlaySubtype', + x60xx0050: 'OverlayOrigin', + x60xx0051: 'ImageFrameOrigin', + x60xx0052: 'OverlayPlaneOrigin', + x60xx0060: 'OverlayCompressionCode', + x60xx0061: 'OverlayCompressionOriginator', + x60xx0062: 'OverlayCompressionLabel', + x60xx0063: 'OverlayCompressionDescription', + x60xx0066: 'OverlayCompressionStepPointers', + x60xx0068: 'OverlayRepeatInterval', + x60xx0069: 'OverlayBitsGrouped', + x60xx0100: 'OverlayBitsAllocated', + x60xx0102: 'OverlayBitPosition', + x60xx0110: 'OverlayFormat', + x60xx0200: 'OverlayLocation', + x60xx0800: 'OverlayCodeLabel', + x60xx0802: 'OverlayNumberOfTables', + x60xx0803: 'OverlayCodeTableLocation', + x60xx0804: 'OverlayBitsForCodeWord', + x60xx1001: 'OverlayActivationLayer', + x60xx1100: 'OverlayDescriptorGray', + x60xx1101: 'OverlayDescriptorRed', + x60xx1102: 'OverlayDescriptorGreen', + x60xx1103: 'OverlayDescriptorBlue', + x60xx1200: 'OverlaysGray', + x60xx1201: 'OverlaysRed', + x60xx1202: 'OverlaysGreen', + x60xx1203: 'OverlaysBlue', + x60xx1301: 'ROIArea', + x60xx1302: 'ROIMean', + x60xx1303: 'ROIStandardDeviation', + x60xx1500: 'OverlayLabel', + x60xx3000: 'OverlayData', + x60xx4000: 'OverlayComments', + x7fxx0000: 'PixelDataGroupLength', + x7fxx0010: 'PixelData', + x7fxx0011: 'VariableNextDataGroup', + x7fxx0020: 'VariableCoefficientsSDVN', + x7fxx0030: 'VariableCoefficientsSDHN', + x7fxx0040: 'VariableCoefficientsSDDN', + xfffafffa: 'DigitalSignaturesSequence', + xfffcfffc: 'DataSetTrailingPadding', + xfffee000: 'StartOfItem', + xfffee00d: 'EndOfItems', + xfffee0dd: 'EndOfSequence', +}; + +DICOMTagDescriptions.init(initialTagDescriptionMap); + +// Discard original map... +initialTagDescriptionMap = null; + +export { DICOMTagDescriptions }; diff --git a/packages/_core/src/utils/StackManager.js b/packages/_core/src/utils/StackManager.js new file mode 100644 index 000000000..4a675a19c --- /dev/null +++ b/packages/_core/src/utils/StackManager.js @@ -0,0 +1,174 @@ +import OHIFError from '../classes/OHIFError.js'; +import getImageId from './getImageId'; + +let stackMap = {}; +let configuration = {}; +let stackManagerMetaDataProvider; +const stackUpdatedCallbacks = []; + +/** + * Loop through the current series and add metadata to the + * Cornerstone meta data provider. This will be used to fill information + * into the viewport overlays, and to calculate reference lines and orientation markers + * @param {Object} stackMap stackMap object + * @param {Object} study Study object + * @param {Object} displaySet The set of images to make the stack from + * @return {Array} Array with image IDs + */ +function createAndAddStack( + stackMap, + study, + displaySet, + stackUpdatedCallbacks, + metadataProvider +) { + const images = displaySet.images; + if (!images) { + return; + } + + const numImages = images.length; + const imageIds = []; + let imageId; + + displaySet.images.forEach((instance, imageIndex) => { + const image = instance.getData(); + const metaData = { + instance: image, // in this context, instance will be the data of the InstanceMetadata object... + series: displaySet, // TODO: Check this + study, + numImages, + imageIndex: imageIndex + 1, + }; + + const numberOfFrames = image.numberOfFrames; + if (numberOfFrames > 1) { + for (let i = 0; i < numberOfFrames; i++) { + metaData.frameNumber = i; + imageId = getImageId(image, i); + imageIds.push(imageId); + metadataProvider.addMetadata(imageId, metaData); + } + } else { + metaData.frameNumber = 1; + imageId = getImageId(image); + imageIds.push(imageId); + metadataProvider.addMetadata(imageId, metaData); + } + }); + + const stack = { + studyInstanceUid: study.studyInstanceUid, + displaySetInstanceUid: displaySet.displaySetInstanceUid, + imageIds, + frameRate: displaySet.frameRate, + isClip: displaySet.isClip, + }; + + stackMap[displaySet.displaySetInstanceUid] = stack; + + return stack; +} + +configuration = { + createAndAddStack, +}; + +/** + * This object contains all the functions needed for interacting with the stack manager. + * Generally, findStack is the only function used. If you want to know when new stacks + * come in, you can register a callback with addStackUpdatedCallback. + */ +const StackManager = { + setMetadataProvider(provider) { + stackManagerMetaDataProvider = provider; + }, + /** + * Removes all current stacks + */ + clearStacks() { + stackMap = {}; + }, + /** + * Create a stack from an image set, as well as add in the metadata on a per image bases. + * @param study The study who's metadata will be added + * @param displaySet The set of images to make the stack from + * @return {Array} Array with image IDs + */ + makeAndAddStack(study, displaySet) { + if (!stackManagerMetaDataProvider) { + throw new Error( + 'Please call StackManager.setMetadataProvider(provider) first.' + ); + } + + return configuration.createAndAddStack( + stackMap, + study, + displaySet, + stackUpdatedCallbacks, + stackManagerMetaDataProvider + ); + }, + /** + * Find a stack from the currently created stacks. + * @param displaySetInstanceUid The UID of the stack to find. + * @returns {*} undefined if not found, otherwise the stack object is returned. + */ + findStack(displaySetInstanceUid) { + return stackMap[displaySetInstanceUid]; + }, + /** + * Find a stack or reate one if it has not been created yet + * @param study The study who's metadata will be added + * @param displaySet The set of images to make the stack from + * @return {Array} Array with image IDs + */ + findOrCreateStack(study, displaySet) { + let stack = this.findStack(displaySet.displaySetInstanceUid); + + if (!stack || !stack.imageIds) { + stack = this.makeAndAddStack(study, displaySet); + } + + return stack; + }, + /** + * Gets the underlying map of displaySetInstanceUid to stack object. + * WARNING: Do not change this object. It directly affects the manager. + * @returns {{}} map of displaySetInstanceUid -> stack. + */ + getAllStacks() { + return stackMap; + }, + /** + * Adds in a callback to be called on a stack being added / updated. + * @param callback must accept at minimum one argument, + * which is the stack that was added / updated. + */ + addStackUpdatedCallback(callback) { + if (typeof callback !== 'function') { + throw new OHIFError('callback must be provided as a function'); + } + stackUpdatedCallbacks.push(callback); + }, + /** + * Return configuration + */ + getConfiguration() { + return configuration; + }, + /** + * Set configuration, in order to provide compatibility + * with other systems by overriding this functions + * @param {Object} config object with functions to be overrided + * + * For now, only makeAndAddStack can be overrided + */ + setConfiguration(config) { + configuration = config; + }, +}; + +export { StackManager }; +export default StackManager; diff --git a/packages/_core/src/utils/absoluteUrl.js b/packages/_core/src/utils/absoluteUrl.js new file mode 100644 index 000000000..172229780 --- /dev/null +++ b/packages/_core/src/utils/absoluteUrl.js @@ -0,0 +1,16 @@ +export default function absoluteUrl(path) { + let absolutePath = '/'; + + // TODO: Find another way to get root url + const absoluteUrl = window.location.origin; + const absoluteUrlParts = absoluteUrl.split('/'); + + if (absoluteUrlParts.length > 4) { + const rootUrlPrefixIndex = absoluteUrl.indexOf(absoluteUrlParts[3]); + absolutePath += absoluteUrl.substring(rootUrlPrefixIndex) + path; + } else { + absolutePath += path; + } + + return absolutePath.replace(/\/\/+/g, '/'); +} diff --git a/packages/_core/src/utils/addServers.js b/packages/_core/src/utils/addServers.js new file mode 100644 index 000000000..0ff6c7f19 --- /dev/null +++ b/packages/_core/src/utils/addServers.js @@ -0,0 +1,15 @@ +// TODO: figure out where else to put this function +export default function addServers(servers, store) { + Object.keys(servers).forEach(serverType => { + const endpoints = servers[serverType]; + endpoints.forEach(endpoint => { + const server = Object.assign({}, endpoint); + server.type = serverType; + + store.dispatch({ + type: 'ADD_SERVER', + server, + }); + }); + }); +} diff --git a/packages/_core/src/utils/createStacks.draft-test.js b/packages/_core/src/utils/createStacks.draft-test.js new file mode 100644 index 000000000..b8a29b06e --- /dev/null +++ b/packages/_core/src/utils/createStacks.draft-test.js @@ -0,0 +1,33 @@ +// Leaving here as a starting point +// import createStacks from './createStacks.js'; + +// describe('createStacks.js', () => { +// const seriesMetadatas = [ +// { +// getInstanceCount: jest.fn().mockReturnValue(1), +// getData: jest.fn().mockReturnValue({ +// seriesDate: '2019-06-04', +// }), +// }, +// { +// getInstanceCount: jest.fn().mockReturnValue(1), +// getData: jest.fn().mockReturnValue({ +// seriesDate: '2018-06-04', +// }), +// }, +// ]; +// const studyMetadata = { +// getSeriesCount: jest.fn().mockReturnValue(2), +// forEachSeries: jest.fn().mockImplementation(callback => { +// callback(seriesMetadatas[0], 0); +// callback(seriesMetadatas[1], 1); +// }), +// getStudyInstanceUID: jest.fn(), +// }; + +// it('sorts displaySets by seriesNumber, then by seriesDate', () => { +// const displaySets = createStacks(studyMetadata); + +// expect(displaySets.length).toBe(2); +// }); +// }); diff --git a/packages/_core/src/utils/getImageId.js b/packages/_core/src/utils/getImageId.js new file mode 100644 index 000000000..ccd5e3917 --- /dev/null +++ b/packages/_core/src/utils/getImageId.js @@ -0,0 +1,55 @@ +import getWADORSImageId from './getWADORSImageId'; + +// https://stackoverflow.com/a/6021027/3895126 +function updateQueryStringParameter(uri, key, value) { + const regex = new RegExp('([?&])' + key + '=.*?(&|$)', 'i'); + const separator = uri.indexOf('?') !== -1 ? '&' : '?'; + if (uri.match(regex)) { + return uri.replace(regex, '$1' + key + '=' + value + '$2'); + } else { + return uri + separator + key + '=' + value; + } +} + +/** + * Obtain an imageId for Cornerstone from an image instance + * + * @param instance + * @param frame + * @param thumbnail + * @returns {string} The imageId to be used by Cornerstone + */ +export default function getImageId(instance, frame, thumbnail = false) { + if (!instance) { + return; + } + + if (typeof instance.getImageId === 'function') { + return instance.getImageId(); + } + + if (instance.url) { + if (frame !== undefined) { + instance.url = updateQueryStringParameter(instance.url, 'frame', frame); + } + + return instance.url; + } + + const renderingAttr = thumbnail ? 'thumbnailRendering' : 'imageRendering'; + + if ( + !instance[renderingAttr] || + instance[renderingAttr] === 'wadouri' || + !instance.wadorsuri + ) { + let imageId = 'dicomweb:' + instance.wadouri; + if (frame !== undefined) { + imageId += '&frame=' + frame; + } + + return imageId; + } else { + return getWADORSImageId(instance, frame, thumbnail); // WADO-RS Retrieve Frame + } +} diff --git a/packages/_core/src/utils/getWADORSImageId.js b/packages/_core/src/utils/getWADORSImageId.js new file mode 100644 index 000000000..cae93abf7 --- /dev/null +++ b/packages/_core/src/utils/getWADORSImageId.js @@ -0,0 +1,31 @@ +function getWADORSImageUrl(instance, frame) { + let wadorsuri = instance.wadorsuri; + + if (!wadorsuri) { + return; + } + + // We need to sum 1 because WADO-RS frame number is 1-based + frame = (frame || 0) + 1; + + // Replaces /frame/1 by /frame/{frame} + wadorsuri = wadorsuri.replace(/(%2Fframes%2F)(\d+)/, `$1${frame}`); + + return wadorsuri; +} + +/** + * Obtain an imageId for Cornerstone based on the WADO-RS scheme + * + * @param {object} instanceMetada metadata object (InstanceMetadata) + * @returns {string} The imageId to be used by Cornerstone + */ +export default function getWADORSImageId(instance, frame) { + const uri = getWADORSImageUrl(instance, frame); + + if (!uri) { + return; + } + + return `wadors:${uri}`; +} diff --git a/packages/_core/src/utils/guid.js b/packages/_core/src/utils/guid.js new file mode 100644 index 000000000..a26f53541 --- /dev/null +++ b/packages/_core/src/utils/guid.js @@ -0,0 +1,26 @@ +/** + * Create a random GUID + * + * @return {string} + */ +export default function guid() { + function s4() { + return Math.floor((1 + Math.random()) * 0x10000) + .toString(16) + .substring(1); + } + return ( + s4() + + s4() + + '-' + + s4() + + '-' + + s4() + + '-' + + s4() + + '-' + + s4() + + s4() + + s4() + ); +} diff --git a/packages/_core/src/utils/index.js b/packages/_core/src/utils/index.js new file mode 100644 index 000000000..5d18a51fa --- /dev/null +++ b/packages/_core/src/utils/index.js @@ -0,0 +1,40 @@ +import { DICOMTagDescriptions } from './DICOMTagDescriptions'; +import ObjectPath from './objectPath'; +import StackManager from './StackManager.js'; +import absoluteUrl from './absoluteUrl'; +import addServers from './addServers'; +import guid from './guid'; +import sortBy from './sortBy.js'; +import studyMetadataManager from './studyMetadataManager'; +import updateMetaDataManager from './updateMetaDataManager.js'; +import writeScript from './writeScript.js'; + +const utils = { + guid, + ObjectPath, + absoluteUrl, + addServers, + sortBy, + writeScript, + StackManager, + studyMetadataManager, + // Updates WADO-RS metaDataManager + updateMetaDataManager, + DICOMTagDescriptions, +}; + +export { + guid, + ObjectPath, + absoluteUrl, + addServers, + sortBy, + writeScript, + StackManager, + studyMetadataManager, + // Updates WADO-RS metaDataManager + updateMetaDataManager, + DICOMTagDescriptions, +}; + +export default utils; diff --git a/packages/_core/src/utils/isImage.js b/packages/_core/src/utils/isImage.js new file mode 100644 index 000000000..fc092f492 --- /dev/null +++ b/packages/_core/src/utils/isImage.js @@ -0,0 +1,76 @@ +import { sopClassDictionary } from './sopClassDictionary'; + +/** + * Checks whether dicom files with specified SOP Class UID have image data + * @param {string} sopClassUid - SOP Class UID to be checked + * @returns {boolean} - true if it has image data + */ +export function isImage(sopClassUid) { + if ( + sopClassUid === sopClassDictionary.ComputedRadiographyImageStorage || + sopClassUid === sopClassDictionary.DigitalXRayImageStorageForPresentation || + sopClassUid === sopClassDictionary.DigitalXRayImageStorageForProcessing || + sopClassUid === + sopClassDictionary.DigitalMammographyXRayImageStorageForPresentation || + sopClassUid === + sopClassDictionary.DigitalMammographyXRayImageStorageForProcessing || + sopClassUid === + sopClassDictionary.DigitalIntraOralXRayImageStorageForPresentation || + sopClassUid === + sopClassDictionary.DigitalIntraOralXRayImageStorageForProcessing || + sopClassUid === sopClassDictionary.CTImageStorage || + sopClassUid === sopClassDictionary.EnhancedCTImageStorage || + sopClassUid === sopClassDictionary.LegacyConvertedEnhancedCTImageStorage || + sopClassUid === sopClassDictionary.UltrasoundMultiframeImageStorage || + sopClassUid === sopClassDictionary.MRImageStorage || + sopClassUid === sopClassDictionary.EnhancedMRImageStorage || + sopClassUid === sopClassDictionary.EnhancedMRColorImageStorage || + sopClassUid === sopClassDictionary.LegacyConvertedEnhancedMRImageStorage || + sopClassUid === sopClassDictionary.UltrasoundImageStorage || + sopClassUid === sopClassDictionary.SecondaryCaptureImageStorage || + sopClassUid === + sopClassDictionary.MultiframeSingleBitSecondaryCaptureImageStorage || + sopClassUid === + sopClassDictionary.MultiframeGrayscaleByteSecondaryCaptureImageStorage || + sopClassUid === + sopClassDictionary.MultiframeGrayscaleWordSecondaryCaptureImageStorage || + sopClassUid === + sopClassDictionary.MultiframeTrueColorSecondaryCaptureImageStorage || + sopClassUid === sopClassDictionary.XRayAngiographicImageStorage || + sopClassUid === sopClassDictionary.EnhancedXAImageStorage || + sopClassUid === sopClassDictionary.XRayRadiofluoroscopicImageStorage || + sopClassUid === sopClassDictionary.EnhancedXRFImageStorage || + sopClassUid === sopClassDictionary.XRay3DAngiographicImageStorage || + sopClassUid === sopClassDictionary.XRay3DCraniofacialImageStorage || + sopClassUid === sopClassDictionary.BreastTomosynthesisImageStorage || + sopClassUid === + sopClassDictionary.BreastProjectionXRayImageStorageForPresentation || + sopClassUid === + sopClassDictionary.BreastProjectionXRayImageStorageForProcessing || + sopClassUid === + sopClassDictionary.IntravascularOpticalCoherenceTomographyImageStorageForPresentation || + sopClassUid === + sopClassDictionary.IntravascularOpticalCoherenceTomographyImageStorageForProcessing || + sopClassUid === sopClassDictionary.NuclearMedicineImageStorage || + sopClassUid === sopClassDictionary.VLEndoscopicImageStorage || + sopClassUid === sopClassDictionary.VideoEndoscopicImageStorage || + sopClassUid === sopClassDictionary.VLMicroscopicImageStorage || + sopClassUid === sopClassDictionary.VideoMicroscopicImageStorage || + sopClassUid === + sopClassDictionary.VLSlideCoordinatesMicroscopicImageStorage || + sopClassUid === sopClassDictionary.VLPhotographicImageStorage || + sopClassUid === sopClassDictionary.VideoPhotographicImageStorage || + sopClassUid === sopClassDictionary.OphthalmicPhotography8BitImageStorage || + sopClassUid === sopClassDictionary.OphthalmicPhotography16BitImageStorage || + sopClassUid === sopClassDictionary.OphthalmicTomographyImageStorage || + sopClassUid === sopClassDictionary.VLWholeSlideMicroscopyImageStorage || + sopClassUid === sopClassDictionary.PositronEmissionTomographyImageStorage || + sopClassUid === sopClassDictionary.EnhancedPETImageStorage || + sopClassUid === sopClassDictionary.LegacyConvertedEnhancedPETImageStorage || + sopClassUid === sopClassDictionary.RTImageStorage + ) { + return true; + } + + return false; +} diff --git a/packages/_core/src/utils/objectPath.js b/packages/_core/src/utils/objectPath.js new file mode 100644 index 000000000..5727267d5 --- /dev/null +++ b/packages/_core/src/utils/objectPath.js @@ -0,0 +1,98 @@ +export class ObjectPath { + /** + * Set an object property based on "path" (namespace) supplied creating + * ... intermediary objects if they do not exist. + * @param object {Object} An object where the properties specified on path should be set. + * @param path {String} A string representing the property to be set, e.g. "user.study.series.timepoint". + * @param value {Any} The value of the property that will be set. + * @return {Boolean} Returns "true" on success, "false" if any intermediate component of the supplied path + * ... is not a valid Object, in which case the property cannot be set. No excpetions are thrown. + */ + static set(object, path, value) { + let components = ObjectPath.getPathComponents(path), + length = components !== null ? components.length : 0, + result = false; + + if (length > 0 && ObjectPath.isValidObject(object)) { + let i = 0, + last = length - 1, + currentObject = object; + + while (i < last) { + let field = components[i]; + + if (field in currentObject) { + if (!ObjectPath.isValidObject(currentObject[field])) { + break; + } + } else { + currentObject[field] = {}; + } + + currentObject = currentObject[field]; + i++; + } + + if (i === last) { + currentObject[components[last]] = value; + result = true; + } + } + + return result; + } + + /** + * Get an object property based on "path" (namespace) supplied traversing the object + * ... tree as necessary. + * @param object {Object} An object where the properties specified might exist. + * @param path {String} A string representing the property to be searched for, e.g. "user.study.series.timepoint". + * @return {Any} The value of the property if found. By default, returns the special type "undefined". + */ + static get(object, path) { + let found, // undefined by default + components = ObjectPath.getPathComponents(path), + length = components !== null ? components.length : 0; + + if (length > 0 && ObjectPath.isValidObject(object)) { + let i = 0, + last = length - 1, + currentObject = object; + + while (i < last) { + let field = components[i]; + + const isValid = ObjectPath.isValidObject(currentObject[field]); + if (field in currentObject && isValid) { + currentObject = currentObject[field]; + i++; + } else { + break; + } + } + + if (i === last && components[last] in currentObject) { + found = currentObject[components[last]]; + } + } + + return found; + } + + /** + * Check if the supplied argument is a real JavaScript Object instance. + * @param object {Any} The subject to be tested. + * @return {Boolean} Returns "true" if the object is a real Object instance and "false" otherwise. + */ + static isValidObject(object) { + return ( + typeof object === 'object' && object !== null && object instanceof Object + ); + } + + static getPathComponents(path) { + return typeof path === 'string' ? path.split('.') : null; + } +} + +export default ObjectPath; diff --git a/packages/_core/src/utils/sopClassDictionary.js b/packages/_core/src/utils/sopClassDictionary.js new file mode 100644 index 000000000..f4a7cb6c7 --- /dev/null +++ b/packages/_core/src/utils/sopClassDictionary.js @@ -0,0 +1,130 @@ +// TODO: Deprecate since we have the same thing in dcmjs? +export const sopClassDictionary = { + ComputedRadiographyImageStorage: '1.2.840.10008.5.1.4.1.1.1', + DigitalXRayImageStorageForPresentation: '1.2.840.10008.5.1.4.1.1.1.1', + DigitalXRayImageStorageForProcessing: '1.2.840.10008.5.1.4.1.1.1.1.1', + DigitalMammographyXRayImageStorageForPresentation: + '1.2.840.10008.5.1.4.1.1.1.2', + DigitalMammographyXRayImageStorageForProcessing: + '1.2.840.10008.5.1.4.1.1.1.2.1', + DigitalIntraOralXRayImageStorageForPresentation: + '1.2.840.10008.5.1.4.1.1.1.3', + DigitalIntraOralXRayImageStorageForProcessing: + '1.2.840.10008.5.1.4.1.1.1.3.1', + CTImageStorage: '1.2.840.10008.5.1.4.1.1.2', + EnhancedCTImageStorage: '1.2.840.10008.5.1.4.1.1.2.1', + LegacyConvertedEnhancedCTImageStorage: '1.2.840.10008.5.1.4.1.1.2.2', + UltrasoundMultiframeImageStorage: '1.2.840.10008.5.1.4.1.1.3.1', + MRImageStorage: '1.2.840.10008.5.1.4.1.1.4', + EnhancedMRImageStorage: '1.2.840.10008.5.1.4.1.1.4.1', + MRSpectroscopyStorage: '1.2.840.10008.5.1.4.1.1.4.2', + EnhancedMRColorImageStorage: '1.2.840.10008.5.1.4.1.1.4.3', + LegacyConvertedEnhancedMRImageStorage: '1.2.840.10008.5.1.4.1.1.4.4', + UltrasoundImageStorage: '1.2.840.10008.5.1.4.1.1.6.1', + EnhancedUSVolumeStorage: '1.2.840.10008.5.1.4.1.1.6.2', + SecondaryCaptureImageStorage: '1.2.840.10008.5.1.4.1.1.7', + MultiframeSingleBitSecondaryCaptureImageStorage: + '1.2.840.10008.5.1.4.1.1.7.1', + MultiframeGrayscaleByteSecondaryCaptureImageStorage: + '1.2.840.10008.5.1.4.1.1.7.2', + MultiframeGrayscaleWordSecondaryCaptureImageStorage: + '1.2.840.10008.5.1.4.1.1.7.3', + MultiframeTrueColorSecondaryCaptureImageStorage: + '1.2.840.10008.5.1.4.1.1.7.4', + Sop12LeadECGWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.1.1', + GeneralECGWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.1.2', + AmbulatoryECGWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.1.3', + HemodynamicWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.2.1', + CardiacElectrophysiologyWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.3.1', + BasicVoiceAudioWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.4.1', + GeneralAudioWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.4.2', + ArterialPulseWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.5.1', + RespiratoryWaveformStorage: '1.2.840.10008.5.1.4.1.1.9.6.1', + GrayscaleSoftcopyPresentationStateStorage: '1.2.840.10008.5.1.4.1.1.11.1', + ColorSoftcopyPresentationStateStorage: '1.2.840.10008.5.1.4.1.1.11.2', + PseudoColorSoftcopyPresentationStateStorage: '1.2.840.10008.5.1.4.1.1.11.3', + BlendingSoftcopyPresentationStateStorage: '1.2.840.10008.5.1.4.1.1.11.4', + XAXRFGrayscaleSoftcopyPresentationStateStorage: + '1.2.840.10008.5.1.4.1.1.11.5', + XRayAngiographicImageStorage: '1.2.840.10008.5.1.4.1.1.12.1', + EnhancedXAImageStorage: '1.2.840.10008.5.1.4.1.1.12.1.1', + XRayRadiofluoroscopicImageStorage: '1.2.840.10008.5.1.4.1.1.12.2', + EnhancedXRFImageStorage: '1.2.840.10008.5.1.4.1.1.12.2.1', + XRay3DAngiographicImageStorage: '1.2.840.10008.5.1.4.1.1.13.1.1', + XRay3DCraniofacialImageStorage: '1.2.840.10008.5.1.4.1.1.13.1.2', + BreastTomosynthesisImageStorage: '1.2.840.10008.5.1.4.1.1.13.1.3', + BreastProjectionXRayImageStorageForPresentation: + '1.2.840.10008.5.1.4.1.1.13.1.4', + BreastProjectionXRayImageStorageForProcessing: + '1.2.840.10008.5.1.4.1.1.13.1.5', + IntravascularOpticalCoherenceTomographyImageStorageForPresentation: + '1.2.840.10008.5.1.4.1.1.14.1', + IntravascularOpticalCoherenceTomographyImageStorageForProcessing: + '1.2.840.10008.5.1.4.1.1.14.2', + NuclearMedicineImageStorage: '1.2.840.10008.5.1.4.1.1.20', + RawDataStorage: '1.2.840.10008.5.1.4.1.1.66', + SpatialRegistrationStorage: '1.2.840.10008.5.1.4.1.1.66.1', + SpatialFiducialsStorage: '1.2.840.10008.5.1.4.1.1.66.2', + DeformableSpatialRegistrationStorage: '1.2.840.10008.5.1.4.1.1.66.3', + SegmentationStorage: '1.2.840.10008.5.1.4.1.1.66.4', + SurfaceSegmentationStorage: '1.2.840.10008.5.1.4.1.1.66.5', + RealWorldValueMappingStorage: '1.2.840.10008.5.1.4.1.1.67', + SurfaceScanMeshStorage: '1.2.840.10008.5.1.4.1.1.68.1', + SurfaceScanPointCloudStorage: '1.2.840.10008.5.1.4.1.1.68.2', + VLEndoscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.1', + VideoEndoscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.1.1', + VLMicroscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.2', + VideoMicroscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.2.1', + VLSlideCoordinatesMicroscopicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.3', + VLPhotographicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.4', + VideoPhotographicImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.4.1', + OphthalmicPhotography8BitImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.5.1', + OphthalmicPhotography16BitImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.5.2', + StereometricRelationshipStorage: '1.2.840.10008.5.1.4.1.1.77.1.5.3', + OphthalmicTomographyImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.5.4', + VLWholeSlideMicroscopyImageStorage: '1.2.840.10008.5.1.4.1.1.77.1.6', + LensometryMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.1', + AutorefractionMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.2', + KeratometryMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.3', + SubjectiveRefractionMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.4', + VisualAcuityMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.5', + SpectaclePrescriptionReportStorage: '1.2.840.10008.5.1.4.1.1.78.6', + OphthalmicAxialMeasurementsStorage: '1.2.840.10008.5.1.4.1.1.78.7', + IntraocularLensCalculationsStorage: '1.2.840.10008.5.1.4.1.1.78.8', + MacularGridThicknessandVolumeReport: '1.2.840.10008.5.1.4.1.1.79.1', + OphthalmicVisualFieldStaticPerimetryMeasurementsStorage: + '1.2.840.10008.5.1.4.1.1.80.1', + OphthalmicThicknessMapStorage: '1.2.840.10008.5.1.4.1.1.81.1', + CornealTopographyMapStorage: '1.2.840.10008.5.1.4.1.1.82.1', + BasicTextSR: '1.2.840.10008.5.1.4.1.1.88.11', + EnhancedSR: '1.2.840.10008.5.1.4.1.1.88.22', + ComprehensiveSR: '1.2.840.10008.5.1.4.1.1.88.33', + Comprehensive3DSR: '1.2.840.10008.5.1.4.1.1.88.34', + ProcedureLog: '1.2.840.10008.5.1.4.1.1.88.40', + MammographyCADSR: '1.2.840.10008.5.1.4.1.1.88.50', + KeyObjectSelection: '1.2.840.10008.5.1.4.1.1.88.59', + ChestCADSR: '1.2.840.10008.5.1.4.1.1.88.65', + XRayRadiationDoseSR: '1.2.840.10008.5.1.4.1.1.88.67', + RadiopharmaceuticalRadiationDoseSR: '1.2.840.10008.5.1.4.1.1.88.68', + ColonCADSR: '1.2.840.10008.5.1.4.1.1.88.69', + ImplantationPlanSRDocumentStorage: '1.2.840.10008.5.1.4.1.1.88.70', + EncapsulatedPDFStorage: '1.2.840.10008.5.1.4.1.1.104.1', + EncapsulatedCDAStorage: '1.2.840.10008.5.1.4.1.1.104.2', + PositronEmissionTomographyImageStorage: '1.2.840.10008.5.1.4.1.1.128', + EnhancedPETImageStorage: '1.2.840.10008.5.1.4.1.1.130', + LegacyConvertedEnhancedPETImageStorage: '1.2.840.10008.5.1.4.1.1.128.1', + BasicStructuredDisplayStorage: '1.2.840.10008.5.1.4.1.1.131', + RTImageStorage: '1.2.840.10008.5.1.4.1.1.481.1', + RTDoseStorage: '1.2.840.10008.5.1.4.1.1.481.2', + RTStructureSetStorage: '1.2.840.10008.5.1.4.1.1.481.3', + RTBeamsTreatmentRecordStorage: '1.2.840.10008.5.1.4.1.1.481.4', + RTPlanStorage: '1.2.840.10008.5.1.4.1.1.481.5', + RTBrachyTreatmentRecordStorage: '1.2.840.10008.5.1.4.1.1.481.6', + RTTreatmentSummaryRecordStorage: '1.2.840.10008.5.1.4.1.1.481.7', + RTIonPlanStorage: '1.2.840.10008.5.1.4.1.1.481.8', + RTIonBeamsTreatmentRecordStorage: '1.2.840.10008.5.1.4.1.1.481.9', + RTBeamsDeliveryInstructionStorage: '1.2.840.10008.5.1.4.34.7', + GenericImplantTemplateStorage: '1.2.840.10008.5.1.4.43.1', + ImplantAssemblyTemplateStorage: '1.2.840.10008.5.1.4.44.1', + ImplantTemplateGroupStorage: '1.2.840.10008.5.1.4.45.1', +}; diff --git a/packages/_core/src/utils/sortBy.js b/packages/_core/src/utils/sortBy.js new file mode 100644 index 000000000..39f21ef24 --- /dev/null +++ b/packages/_core/src/utils/sortBy.js @@ -0,0 +1,40 @@ +// Return the array sorting function for its object's properties +export default function sortBy() { + var fields = [].slice.call(arguments), + n_fields = fields.length; + + return function(A, B) { + var a, b, field, key, reverse, result, i; + + for (i = 0; i < n_fields; i++) { + result = 0; + field = fields[i]; + + key = typeof field === 'string' ? field : field.name; + + a = A[key]; + b = B[key]; + + if (typeof field.primer !== 'undefined') { + a = field.primer(a); + b = field.primer(b); + } + + reverse = field.reverse ? -1 : 1; + + if (a < b) { + result = reverse * -1; + } + + if (a > b) { + result = reverse * 1; + } + + if (result !== 0) { + break; + } + } + + return result; + }; +} diff --git a/packages/_core/src/utils/studyMetadataManager.js b/packages/_core/src/utils/studyMetadataManager.js new file mode 100644 index 000000000..79da42326 --- /dev/null +++ b/packages/_core/src/utils/studyMetadataManager.js @@ -0,0 +1,31 @@ +import { TypeSafeCollection } from '../classes/TypeSafeCollection'; + +const studyMetadataList = new TypeSafeCollection(); + +function add(studyMetadata) { + studyMetadataList.insert(studyMetadata); +} + +function get(studyInstanceUID) { + return studyMetadataList.findBy({ studyInstanceUID }); +} + +function all(options) { + return studyMetadataList.all(options); +} + +function remove(studyInstanceUID) { + studyMetadataList.remove({ studyInstanceUID }); +} + +function purge() { + studyMetadataList.removeAll(); +} + +export default { + add, + get, + all, + remove, + purge, +}; diff --git a/packages/_core/src/utils/updateMetaDataManager.js b/packages/_core/src/utils/updateMetaDataManager.js new file mode 100644 index 000000000..e4e60a40d --- /dev/null +++ b/packages/_core/src/utils/updateMetaDataManager.js @@ -0,0 +1,101 @@ +import { WadoRsMetaDataBuilder } from '../classes/metadata/WadoRsMetaDataBuilder'; +import cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader'; +import getWADORSImageId from './getWADORSImageId'; + +function getRadiopharmaceuticalInfoMetaData(instance) { + const radiopharmaceuticalInfo = instance.radiopharmaceuticalInfo; + + if (instance.modality !== 'PT' || !radiopharmaceuticalInfo) { + return; + } + + return new WadoRsMetaDataBuilder() + .addTag('00181072', radiopharmaceuticalInfo.radiopharmaceuticalStartTime) + .addTag('00181074', radiopharmaceuticalInfo.radionuclideTotalDose) + .addTag('00181075', radiopharmaceuticalInfo.radionuclideHalfLife) + .toJSON(); +} + +const getWadoRsInstanceMetaData = (study, series, instance) => { + return new WadoRsMetaDataBuilder() + .addTag('00080016', instance.sopClassUid) + .addTag('00080018', instance.sopInstanceUid) + .addTag('00080021', series.seriesDate) + .addTag('00080031', series.seriesTime) + .addTag('0008103e', series.seriesDescription) + .addTag('00080060', series.modality) + .addTag('00101010', study.patientAge) + .addTag('00101020', study.patientSize) + .addTag('00101030', study.patientWeight) + .addTag('0020000d', study.studyInstanceUid) + .addTag('00081030', study.studyDescription) + .addTag('00100010', study.patientName) + .addTag('00100020', study.patientId) + .addTag('00080020', study.studyDate) + .addTag('00080030', study.studyTime) + .addTag('00080050', study.accessionNumber) + .addTag('00200013', instance.instanceNumber) + .addTag('00180050', instance.sliceThickness) + .addTag('0020000e', series.seriesInstanceUid) + .addTag('00200011', series.seriesNumber) + .addTag('00200032', instance.imagePositionPatient, true) + .addTag('00200037', instance.imageOrientationPatient, true) + .addTag('00200052', instance.frameOfReferenceUID) + .addTag('00201041', instance.sliceLocation) + .addTag('00280002', instance.samplesPerPixel) + .addTag('00280004', instance.photometricInterpretation) + .addTag('00280006', instance.planarConfiguration) + .addTag('00280010', instance.rows) + .addTag('00280011', instance.columns) + .addTag('00280030', instance.pixelSpacing, true) + .addTag('00280034', instance.pixelAspectRatio, true) + .addTag('00280100', instance.bitsAllocated) + .addTag('00280101', instance.bitsStored) + .addTag('00280102', instance.highBit) + .addTag('00280103', instance.pixelRepresentation) + .addTag('00280106', instance.smallestPixelValue) + .addTag('00280107', instance.largestPixelValue) + .addTag('00281050', instance.windowCenter, true) + .addTag('00281051', instance.windowWidth, true) + .addTag('00281052', instance.rescaleIntercept) + .addTag('00281053', instance.rescaleSlope) + .addTag('00281054', instance.rescaleType) + .addTag('00281101', instance.redPaletteColorLookupTableDescriptor) + .addTag('00281102', instance.greenPaletteColorLookupTableDescriptor) + .addTag('00281103', instance.bluePaletteColorLookupTableDescriptor) + .addTag('00281201', instance.redPaletteColorLookupTableData) + .addTag('00281202', instance.greenPaletteColorLookupTableData) + .addTag('00281203', instance.bluePaletteColorLookupTableData) + .addTag('00540016', getRadiopharmaceuticalInfoMetaData(instance)) + .toJSON(); +}; + +export default function updateMetaDataManager(study) { + study.seriesList.forEach(series => { + series.instances.forEach(instance => { + // Cache just images that are going to be loaded via WADO-RS + if ( + instance.imageRendering !== 'wadors' && + instance.thumbnailRendering !== 'wadors' + ) { + return; + } + + const metaData = getWadoRsInstanceMetaData(study, series, instance); + const numberOfFrames = instance.numberOfFrames || 1; + + // We can share the same metaData with all frames because it doesn't have + // any frame specific data, such as frameNumber, pixelData, offset, etc. + // WADO-RS frame number is 1-based + for (let frameNumber = 0; frameNumber < numberOfFrames; frameNumber++) { + const imageId = getWADORSImageId(instance, frameNumber); + + // TODO Drop dependency on this + cornerstoneWADOImageLoader.wadors.metaDataManager.add( + imageId, + metaData + ); + } + }); + }); +} diff --git a/packages/_core/src/utils/writeScript.js b/packages/_core/src/utils/writeScript.js new file mode 100644 index 000000000..6bd5b0d53 --- /dev/null +++ b/packages/_core/src/utils/writeScript.js @@ -0,0 +1,14 @@ +/* jshint -W060 */ +import absoluteUrl from './absoluteUrl'; + +export default function writeScript(fileName, callback) { + const script = document.createElement('script'); + script.src = absoluteUrl(fileName); + script.onload = () => { + if (typeof callback === 'function') { + callback(script); + } + }; + + document.body.appendChild(script); +} diff --git a/packages/_core/yarn.lock b/packages/_core/yarn.lock new file mode 100644 index 000000000..97e71770f --- /dev/null +++ b/packages/_core/yarn.lock @@ -0,0 +1,10577 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@babel/code-frame@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0.tgz#06e2ab19bdb535385559aabb5ba59729482800f8" + integrity sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA== + dependencies: + "@babel/highlight" "^7.0.0" + +"@babel/core@>=7.1.0", "@babel/core@^7.1.6", "@babel/core@^7.2.0": + version "7.2.2" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.2.2.tgz#07adba6dde27bb5ad8d8672f15fde3e08184a687" + integrity sha512-59vB0RWt09cAct5EIe58+NzGP4TFSD3Bz//2/ELy3ZeTeKF6VTD1AXlH8BGGbCX0PuobZBsIzO7IAI9PH67eKw== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/generator" "^7.2.2" + "@babel/helpers" "^7.2.0" + "@babel/parser" "^7.2.2" + "@babel/template" "^7.2.2" + "@babel/traverse" "^7.2.2" + "@babel/types" "^7.2.2" + convert-source-map "^1.1.0" + debug "^4.1.0" + json5 "^2.1.0" + lodash "^4.17.10" + resolve "^1.3.2" + semver "^5.4.1" + source-map "^0.5.0" + +"@babel/core@^7.1.0": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.4.3.tgz#198d6d3af4567be3989550d97e068de94503074f" + integrity sha512-oDpASqKFlbspQfzAE7yaeTmdljSH2ADIvBlb0RwbStltTuWa0+7CCI1fYVINNv9saHPa1W7oaKeuNuKj+RQCvA== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/generator" "^7.4.0" + "@babel/helpers" "^7.4.3" + "@babel/parser" "^7.4.3" + "@babel/template" "^7.4.0" + "@babel/traverse" "^7.4.3" + "@babel/types" "^7.4.0" + convert-source-map "^1.1.0" + debug "^4.1.0" + json5 "^2.1.0" + lodash "^4.17.11" + resolve "^1.3.2" + semver "^5.4.1" + source-map "^0.5.0" + +"@babel/generator@^7.0.0", "@babel/generator@^7.4.0": + version "7.4.0" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.4.0.tgz#c230e79589ae7a729fd4631b9ded4dc220418196" + integrity sha512-/v5I+a1jhGSKLgZDcmAUZ4K/VePi43eRkUs3yePW1HB1iANOD5tqJXwGSG4BZhSksP8J9ejSlwGeTiiOFZOrXQ== + dependencies: + "@babel/types" "^7.4.0" + jsesc "^2.5.1" + lodash "^4.17.11" + source-map "^0.5.0" + trim-right "^1.0.1" + +"@babel/generator@^7.2.2": + version "7.3.0" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.3.0.tgz#f663838cd7b542366de3aa608a657b8ccb2a99eb" + integrity sha512-dZTwMvTgWfhmibq4V9X+LMf6Bgl7zAodRn9PvcPdhlzFMbvUutx74dbEv7Atz3ToeEpevYEJtAwfxq/bDCzHWg== + dependencies: + "@babel/types" "^7.3.0" + jsesc "^2.5.1" + lodash "^4.17.10" + source-map "^0.5.0" + trim-right "^1.0.1" + +"@babel/helper-annotate-as-pure@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0.tgz#323d39dd0b50e10c7c06ca7d7638e6864d8c5c32" + integrity sha512-3UYcJUj9kvSLbLbUIfQTqzcy5VX7GRZ/CCDrnOaZorFFM01aXp1+GJwuFGV4NDDoAS+mOUyHcO6UD/RfqOks3Q== + dependencies: + "@babel/types" "^7.0.0" + +"@babel/helper-builder-binary-assignment-operator-visitor@^7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.1.0.tgz#6b69628dfe4087798e0c4ed98e3d4a6b2fbd2f5f" + integrity sha512-qNSR4jrmJ8M1VMM9tibvyRAHXQs2PmaksQF7c1CGJNipfe3D8p+wgNwgso/P2A2r2mdgBWAXljNWR0QRZAMW8w== + dependencies: + "@babel/helper-explode-assignable-expression" "^7.1.0" + "@babel/types" "^7.0.0" + +"@babel/helper-builder-react-jsx@^7.3.0": + version "7.3.0" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.3.0.tgz#a1ac95a5d2b3e88ae5e54846bf462eeb81b318a4" + integrity sha512-MjA9KgwCuPEkQd9ncSXvSyJ5y+j2sICHyrI0M3L+6fnS4wMSNDc1ARXsbTfbb2cXHn17VisSnU/sHFTCxVxSMw== + dependencies: + "@babel/types" "^7.3.0" + esutils "^2.0.0" + +"@babel/helper-call-delegate@^7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.1.0.tgz#6a957f105f37755e8645343d3038a22e1449cc4a" + integrity sha512-YEtYZrw3GUK6emQHKthltKNZwszBcHK58Ygcis+gVUrF4/FmTVr5CCqQNSfmvg2y+YDEANyYoaLz/SHsnusCwQ== + dependencies: + "@babel/helper-hoist-variables" "^7.0.0" + "@babel/traverse" "^7.1.0" + "@babel/types" "^7.0.0" + +"@babel/helper-create-class-features-plugin@^7.3.0": + version "7.3.0" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.3.0.tgz#2b01a81b3adc2b1287f9ee193688ef8dc71e718f" + integrity sha512-DUsQNS2CGLZZ7I3W3fvh0YpPDd6BuWJlDl+qmZZpABZHza2ErE3LxtEzLJFHFC1ZwtlAXvHhbFYbtM5o5B0WBw== + dependencies: + "@babel/helper-function-name" "^7.1.0" + "@babel/helper-member-expression-to-functions" "^7.0.0" + "@babel/helper-optimise-call-expression" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-replace-supers" "^7.2.3" + +"@babel/helper-define-map@^7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.1.0.tgz#3b74caec329b3c80c116290887c0dd9ae468c20c" + integrity sha512-yPPcW8dc3gZLN+U1mhYV91QU3n5uTbx7DUdf8NnPbjS0RMwBuHi9Xt2MUgppmNz7CJxTBWsGczTiEp1CSOTPRg== + dependencies: + "@babel/helper-function-name" "^7.1.0" + "@babel/types" "^7.0.0" + lodash "^4.17.10" + +"@babel/helper-explode-assignable-expression@^7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.1.0.tgz#537fa13f6f1674df745b0c00ec8fe4e99681c8f6" + integrity sha512-NRQpfHrJ1msCHtKjbzs9YcMmJZOg6mQMmGRB+hbamEdG5PNpaSm95275VD92DvJKuyl0s2sFiDmMZ+EnnvufqA== + dependencies: + "@babel/traverse" "^7.1.0" + "@babel/types" "^7.0.0" + +"@babel/helper-function-name@^7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz#a0ceb01685f73355d4360c1247f582bfafc8ff53" + integrity sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw== + dependencies: + "@babel/helper-get-function-arity" "^7.0.0" + "@babel/template" "^7.1.0" + "@babel/types" "^7.0.0" + +"@babel/helper-get-function-arity@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz#83572d4320e2a4657263734113c42868b64e49c3" + integrity sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ== + dependencies: + "@babel/types" "^7.0.0" + +"@babel/helper-hoist-variables@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0.tgz#46adc4c5e758645ae7a45deb92bab0918c23bb88" + integrity sha512-Ggv5sldXUeSKsuzLkddtyhyHe2YantsxWKNi7A+7LeD12ExRDWTRk29JCXpaHPAbMaIPZSil7n+lq78WY2VY7w== + dependencies: + "@babel/types" "^7.0.0" + +"@babel/helper-member-expression-to-functions@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0.tgz#8cd14b0a0df7ff00f009e7d7a436945f47c7a16f" + integrity sha512-avo+lm/QmZlv27Zsi0xEor2fKcqWG56D5ae9dzklpIaY7cQMK5N8VSpaNVPPagiqmy7LrEjK1IWdGMOqPu5csg== + dependencies: + "@babel/types" "^7.0.0" + +"@babel/helper-module-imports@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0.tgz#96081b7111e486da4d2cd971ad1a4fe216cc2e3d" + integrity sha512-aP/hlLq01DWNEiDg4Jn23i+CXxW/owM4WpDLFUbpjxe4NS3BhLVZQ5i7E0ZrxuQ/vwekIeciyamgB1UIYxxM6A== + dependencies: + "@babel/types" "^7.0.0" + +"@babel/helper-module-transforms@^7.1.0": + version "7.2.2" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.2.2.tgz#ab2f8e8d231409f8370c883d20c335190284b963" + integrity sha512-YRD7I6Wsv+IHuTPkAmAS4HhY0dkPobgLftHp0cRGZSdrRvmZY8rFvae/GVu3bD00qscuvK3WPHB3YdNpBXUqrA== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-simple-access" "^7.1.0" + "@babel/helper-split-export-declaration" "^7.0.0" + "@babel/template" "^7.2.2" + "@babel/types" "^7.2.2" + lodash "^4.17.10" + +"@babel/helper-optimise-call-expression@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0.tgz#a2920c5702b073c15de51106200aa8cad20497d5" + integrity sha512-u8nd9NQePYNQV8iPWu/pLLYBqZBa4ZaY1YWRFMuxrid94wKI1QNt67NEZ7GAe5Kc/0LLScbim05xZFWkAdrj9g== + dependencies: + "@babel/types" "^7.0.0" + +"@babel/helper-plugin-utils@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz#bbb3fbee98661c569034237cc03967ba99b4f250" + integrity sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA== + +"@babel/helper-regex@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.0.0.tgz#2c1718923b57f9bbe64705ffe5640ac64d9bdb27" + integrity sha512-TR0/N0NDCcUIUEbqV6dCO+LptmmSQFQ7q70lfcEB4URsjD0E1HzicrwUH+ap6BAQ2jhCX9Q4UqZy4wilujWlkg== + dependencies: + lodash "^4.17.10" + +"@babel/helper-remap-async-to-generator@^7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.1.0.tgz#361d80821b6f38da75bd3f0785ece20a88c5fe7f" + integrity sha512-3fOK0L+Fdlg8S5al8u/hWE6vhufGSn0bN09xm2LXMy//REAF8kDCrYoOBKYmA8m5Nom+sV9LyLCwrFynA8/slg== + dependencies: + "@babel/helper-annotate-as-pure" "^7.0.0" + "@babel/helper-wrap-function" "^7.1.0" + "@babel/template" "^7.1.0" + "@babel/traverse" "^7.1.0" + "@babel/types" "^7.0.0" + +"@babel/helper-replace-supers@^7.1.0", "@babel/helper-replace-supers@^7.2.3": + version "7.2.3" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.2.3.tgz#19970020cf22677d62b3a689561dbd9644d8c5e5" + integrity sha512-GyieIznGUfPXPWu0yLS6U55Mz67AZD9cUk0BfirOWlPrXlBcan9Gz+vHGz+cPfuoweZSnPzPIm67VtQM0OWZbA== + dependencies: + "@babel/helper-member-expression-to-functions" "^7.0.0" + "@babel/helper-optimise-call-expression" "^7.0.0" + "@babel/traverse" "^7.2.3" + "@babel/types" "^7.0.0" + +"@babel/helper-simple-access@^7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.1.0.tgz#65eeb954c8c245beaa4e859da6188f39d71e585c" + integrity sha512-Vk+78hNjRbsiu49zAPALxTb+JUQCz1aolpd8osOF16BGnLtseD21nbHgLPGUwrXEurZgiCOUmvs3ExTu4F5x6w== + dependencies: + "@babel/template" "^7.1.0" + "@babel/types" "^7.0.0" + +"@babel/helper-split-export-declaration@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0.tgz#3aae285c0311c2ab095d997b8c9a94cad547d813" + integrity sha512-MXkOJqva62dfC0w85mEf/LucPPS/1+04nmmRMPEBUB++hiiThQ2zPtX/mEWQ3mtzCEjIJvPY8nuwxXtQeQwUag== + dependencies: + "@babel/types" "^7.0.0" + +"@babel/helper-split-export-declaration@^7.4.0": + version "7.4.0" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.4.0.tgz#571bfd52701f492920d63b7f735030e9a3e10b55" + integrity sha512-7Cuc6JZiYShaZnybDmfwhY4UYHzI6rlqhWjaIqbsJGsIqPimEYy5uh3akSRLMg65LSdSEnJ8a8/bWQN6u2oMGw== + dependencies: + "@babel/types" "^7.4.0" + +"@babel/helper-wrap-function@^7.1.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.2.0.tgz#c4e0012445769e2815b55296ead43a958549f6fa" + integrity sha512-o9fP1BZLLSrYlxYEYyl2aS+Flun5gtjTIG8iln+XuEzQTs0PLagAGSXUcqruJwD5fM48jzIEggCKpIfWTcR7pQ== + dependencies: + "@babel/helper-function-name" "^7.1.0" + "@babel/template" "^7.1.0" + "@babel/traverse" "^7.1.0" + "@babel/types" "^7.2.0" + +"@babel/helpers@^7.2.0": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.3.1.tgz#949eec9ea4b45d3210feb7dc1c22db664c9e44b9" + integrity sha512-Q82R3jKsVpUV99mgX50gOPCWwco9Ec5Iln/8Vyu4osNIOQgSrd9RFrQeUvmvddFNoLwMyOUWU+5ckioEKpDoGA== + dependencies: + "@babel/template" "^7.1.2" + "@babel/traverse" "^7.1.5" + "@babel/types" "^7.3.0" + +"@babel/helpers@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.4.3.tgz#7b1d354363494b31cb9a2417ae86af32b7853a3b" + integrity sha512-BMh7X0oZqb36CfyhvtbSmcWc3GXocfxv3yNsAEuM0l+fAqSO22rQrUpijr3oE/10jCTrB6/0b9kzmG4VetCj8Q== + dependencies: + "@babel/template" "^7.4.0" + "@babel/traverse" "^7.4.3" + "@babel/types" "^7.4.0" + +"@babel/highlight@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0.tgz#f710c38c8d458e6dd9a201afb637fcb781ce99e4" + integrity sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw== + dependencies: + chalk "^2.0.0" + esutils "^2.0.2" + js-tokens "^4.0.0" + +"@babel/parser@^7.0.0", "@babel/parser@^7.2.2", "@babel/parser@^7.2.3": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.3.1.tgz#8f4ffd45f779e6132780835ffa7a215fa0b2d181" + integrity sha512-ATz6yX/L8LEnC3dtLQnIx4ydcPxhLcoy9Vl6re00zb2w5lG6itY6Vhnr1KFRPq/FHNsgl/gh2mjNN20f9iJTTA== + +"@babel/parser@^7.1.0", "@babel/parser@^7.4.0", "@babel/parser@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.4.3.tgz#eb3ac80f64aa101c907d4ce5406360fe75b7895b" + integrity sha512-gxpEUhTS1sGA63EGQGuA+WESPR/6tz6ng7tSHFCmaTJK/cGK8y37cBTspX+U2xCAue2IQVvF6Z0oigmjwD8YGQ== + +"@babel/plugin-external-helpers@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-external-helpers/-/plugin-external-helpers-7.2.0.tgz#7f4cb7dee651cd380d2034847d914288467a6be4" + integrity sha512-QFmtcCShFkyAsNtdCM3lJPmRe1iB+vPZymlB4LnDIKEBj2yKQLQKtoxXxJ8ePT5fwMl4QGg303p4mB0UsSI2/g== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-proposal-async-generator-functions@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.2.0.tgz#b289b306669dce4ad20b0252889a15768c9d417e" + integrity sha512-+Dfo/SCQqrwx48ptLVGLdE39YtWRuKc/Y9I5Fy0P1DDBB9lsAHpjcEJQt+4IifuSOSTLBKJObJqMvaO1pIE8LQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-remap-async-to-generator" "^7.1.0" + "@babel/plugin-syntax-async-generators" "^7.2.0" + +"@babel/plugin-proposal-class-properties@^7.2.1": + version "7.3.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.3.0.tgz#272636bc0fa19a0bc46e601ec78136a173ea36cd" + integrity sha512-wNHxLkEKTQ2ay0tnsam2z7fGZUi+05ziDJflEt3AZTP3oXLKHJp9HqhfroB/vdMvt3sda9fAbq7FsG8QPDrZBg== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.3.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-proposal-json-strings@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.2.0.tgz#568ecc446c6148ae6b267f02551130891e29f317" + integrity sha512-MAFV1CA/YVmYwZG0fBQyXhmj0BHCB5egZHCKWIFVv/XCxAeVGIHfos3SwDck4LvCllENIAg7xMKOG5kH0dzyUg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-json-strings" "^7.2.0" + +"@babel/plugin-proposal-object-rest-spread@^7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.3.1.tgz#f69fb6a1ea6a4e1c503994a91d9cf76f3c4b36e8" + integrity sha512-Nmmv1+3LqxJu/V5jU9vJmxR/KIRWFk2qLHmbB56yRRRFhlaSuOVXscX3gUmhaKgUhzA3otOHVubbIEVYsZ0eZg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-object-rest-spread" "^7.2.0" + +"@babel/plugin-proposal-object-rest-spread@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.4.4.tgz#1ef173fcf24b3e2df92a678f027673b55e7e3005" + integrity sha512-dMBG6cSPBbHeEBdFXeQ2QLc5gUpg4Vkaz8octD4aoW/ISO+jBOcsuxYL7bsb5WSu8RLP6boxrBIALEHgoHtO9g== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-object-rest-spread" "^7.2.0" + +"@babel/plugin-proposal-optional-catch-binding@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.2.0.tgz#135d81edb68a081e55e56ec48541ece8065c38f5" + integrity sha512-mgYj3jCcxug6KUcX4OBoOJz3CMrwRfQELPQ5560F70YQUBZB7uac9fqaWamKR1iWUzGiK2t0ygzjTScZnVz75g== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-optional-catch-binding" "^7.2.0" + +"@babel/plugin-proposal-unicode-property-regex@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.2.0.tgz#abe7281fe46c95ddc143a65e5358647792039520" + integrity sha512-LvRVYb7kikuOtIoUeWTkOxQEV1kYvL5B6U3iWEGCzPNRus1MzJweFqORTj+0jkxozkTSYNJozPOddxmqdqsRpw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-regex" "^7.0.0" + regexpu-core "^4.2.0" + +"@babel/plugin-syntax-async-generators@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.2.0.tgz#69e1f0db34c6f5a0cf7e2b3323bf159a76c8cb7f" + integrity sha512-1ZrIRBv2t0GSlcwVoQ6VgSLpLgiN/FVQUzt9znxo7v2Ov4jJrs8RY8tv0wvDmFN3qIdMKWrmMMW6yZ0G19MfGg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-syntax-json-strings@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.2.0.tgz#72bd13f6ffe1d25938129d2a186b11fd62951470" + integrity sha512-5UGYnMSLRE1dqqZwug+1LISpA403HzlSfsg6P9VXU6TBjcSHeNlw4DxDx7LgpF+iKZoOG/+uzqoRHTdcUpiZNg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-syntax-jsx@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.2.0.tgz#0b85a3b4bc7cdf4cc4b8bf236335b907ca22e7c7" + integrity sha512-VyN4QANJkRW6lDBmENzRszvZf3/4AXaj9YR7GwrWeeN9tEBPuXbmDYVU9bYBN0D70zCWVwUy0HWq2553VCb6Hw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.2.0.tgz#3b7a3e733510c57e820b9142a6579ac8b0dfad2e" + integrity sha512-t0JKGgqk2We+9may3t0xDdmneaXmyxq0xieYcKHxIsrJO64n1OiMWNUtc5gQK1PA0NpdCRrtZp4z+IUaKugrSA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-syntax-optional-catch-binding@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.2.0.tgz#a94013d6eda8908dfe6a477e7f9eda85656ecf5c" + integrity sha512-bDe4xKNhb0LI7IvZHiA13kff0KEfaGX/Hv4lMA9+7TEc63hMNvfKo6ZFpXhKuEp+II/q35Gc4NoMeDZyaUbj9w== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-arrow-functions@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.2.0.tgz#9aeafbe4d6ffc6563bf8f8372091628f00779550" + integrity sha512-ER77Cax1+8/8jCB9fo4Ud161OZzWN5qawi4GusDuRLcDbDG+bIGYY20zb2dfAFdTRGzrfq2xZPvF0R64EHnimg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-async-to-generator@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.2.0.tgz#68b8a438663e88519e65b776f8938f3445b1a2ff" + integrity sha512-CEHzg4g5UraReozI9D4fblBYABs7IM6UerAVG7EJVrTLC5keh00aEuLUT+O40+mJCEzaXkYfTCUKIyeDfMOFFQ== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-remap-async-to-generator" "^7.1.0" + +"@babel/plugin-transform-block-scoped-functions@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.2.0.tgz#5d3cc11e8d5ddd752aa64c9148d0db6cb79fd190" + integrity sha512-ntQPR6q1/NKuphly49+QiQiTN0O63uOwjdD6dhIjSWBI5xlrbUFh720TIpzBhpnrLfv2tNH/BXvLIab1+BAI0w== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-block-scoping@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.2.0.tgz#f17c49d91eedbcdf5dd50597d16f5f2f770132d4" + integrity sha512-vDTgf19ZEV6mx35yiPJe4fS02mPQUUcBNwWQSZFXSzTSbsJFQvHt7DqyS3LK8oOWALFOsJ+8bbqBgkirZteD5Q== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + lodash "^4.17.10" + +"@babel/plugin-transform-classes@^7.2.0": + version "7.2.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.2.2.tgz#6c90542f210ee975aa2aa8c8b5af7fa73a126953" + integrity sha512-gEZvgTy1VtcDOaQty1l10T3jQmJKlNVxLDCs+3rCVPr6nMkODLELxViq5X9l+rfxbie3XrfrMCYYY6eX3aOcOQ== + dependencies: + "@babel/helper-annotate-as-pure" "^7.0.0" + "@babel/helper-define-map" "^7.1.0" + "@babel/helper-function-name" "^7.1.0" + "@babel/helper-optimise-call-expression" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-replace-supers" "^7.1.0" + "@babel/helper-split-export-declaration" "^7.0.0" + globals "^11.1.0" + +"@babel/plugin-transform-computed-properties@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.2.0.tgz#83a7df6a658865b1c8f641d510c6f3af220216da" + integrity sha512-kP/drqTxY6Xt3NNpKiMomfgkNn4o7+vKxK2DDKcBG9sHj51vHqMBGy8wbDS/J4lMxnqs153/T3+DmCEAkC5cpA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-destructuring@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.2.0.tgz#e75269b4b7889ec3a332cd0d0c8cff8fed0dc6f3" + integrity sha512-coVO2Ayv7g0qdDbrNiadE4bU7lvCd9H539m2gMknyVjjMdwF/iCOM7R+E8PkntoqLkltO0rk+3axhpp/0v68VQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-dotall-regex@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.2.0.tgz#f0aabb93d120a8ac61e925ea0ba440812dbe0e49" + integrity sha512-sKxnyHfizweTgKZf7XsXu/CNupKhzijptfTM+bozonIuyVrLWVUvYjE2bhuSBML8VQeMxq4Mm63Q9qvcvUcciQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-regex" "^7.0.0" + regexpu-core "^4.1.3" + +"@babel/plugin-transform-duplicate-keys@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.2.0.tgz#d952c4930f312a4dbfff18f0b2914e60c35530b3" + integrity sha512-q+yuxW4DsTjNceUiTzK0L+AfQ0zD9rWaTLiUqHA8p0gxx7lu1EylenfzjeIWNkPy6e/0VG/Wjw9uf9LueQwLOw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-exponentiation-operator@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.2.0.tgz#a63868289e5b4007f7054d46491af51435766008" + integrity sha512-umh4hR6N7mu4Elq9GG8TOu9M0bakvlsREEC+ialrQN6ABS4oDQ69qJv1VtR3uxlKMCQMCvzk7vr17RHKcjx68A== + dependencies: + "@babel/helper-builder-binary-assignment-operator-visitor" "^7.1.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-for-of@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.2.0.tgz#ab7468befa80f764bb03d3cb5eef8cc998e1cad9" + integrity sha512-Kz7Mt0SsV2tQk6jG5bBv5phVbkd0gd27SgYD4hH1aLMJRchM0dzHaXvrWhVZ+WxAlDoAKZ7Uy3jVTW2mKXQ1WQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-function-name@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.2.0.tgz#f7930362829ff99a3174c39f0afcc024ef59731a" + integrity sha512-kWgksow9lHdvBC2Z4mxTsvc7YdY7w/V6B2vy9cTIPtLEE9NhwoWivaxdNM/S37elu5bqlLP/qOY906LukO9lkQ== + dependencies: + "@babel/helper-function-name" "^7.1.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-literals@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.2.0.tgz#690353e81f9267dad4fd8cfd77eafa86aba53ea1" + integrity sha512-2ThDhm4lI4oV7fVQ6pNNK+sx+c/GM5/SaML0w/r4ZB7sAneD/piDJtwdKlNckXeyGK7wlwg2E2w33C/Hh+VFCg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-modules-amd@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.2.0.tgz#82a9bce45b95441f617a24011dc89d12da7f4ee6" + integrity sha512-mK2A8ucqz1qhrdqjS9VMIDfIvvT2thrEsIQzbaTdc5QFzhDjQv2CkJJ5f6BXIkgbmaoax3zBr2RyvV/8zeoUZw== + dependencies: + "@babel/helper-module-transforms" "^7.1.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-modules-commonjs@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.2.0.tgz#c4f1933f5991d5145e9cfad1dfd848ea1727f404" + integrity sha512-V6y0uaUQrQPXUrmj+hgnks8va2L0zcZymeU7TtWEgdRLNkceafKXEduv7QzgQAE4lT+suwooG9dC7LFhdRAbVQ== + dependencies: + "@babel/helper-module-transforms" "^7.1.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-simple-access" "^7.1.0" + +"@babel/plugin-transform-modules-systemjs@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.2.0.tgz#912bfe9e5ff982924c81d0937c92d24994bb9068" + integrity sha512-aYJwpAhoK9a+1+O625WIjvMY11wkB/ok0WClVwmeo3mCjcNRjt+/8gHWrB5i+00mUju0gWsBkQnPpdvQ7PImmQ== + dependencies: + "@babel/helper-hoist-variables" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-modules-umd@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.2.0.tgz#7678ce75169f0877b8eb2235538c074268dd01ae" + integrity sha512-BV3bw6MyUH1iIsGhXlOK6sXhmSarZjtJ/vMiD9dNmpY8QXFFQTj+6v92pcfy1iqa8DeAfJFwoxcrS/TUZda6sw== + dependencies: + "@babel/helper-module-transforms" "^7.1.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-named-capturing-groups-regex@^7.3.0": + version "7.3.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.3.0.tgz#140b52985b2d6ef0cb092ef3b29502b990f9cd50" + integrity sha512-NxIoNVhk9ZxS+9lSoAQ/LM0V2UEvARLttEHUrRDGKFaAxOYQcrkN/nLRE+BbbicCAvZPl7wMP0X60HsHE5DtQw== + dependencies: + regexp-tree "^0.1.0" + +"@babel/plugin-transform-new-target@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.0.0.tgz#ae8fbd89517fa7892d20e6564e641e8770c3aa4a" + integrity sha512-yin069FYjah+LbqfGeTfzIBODex/e++Yfa0rH0fpfam9uTbuEeEOx5GLGr210ggOV77mVRNoeqSYqeuaqSzVSw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-object-super@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.2.0.tgz#b35d4c10f56bab5d650047dad0f1d8e8814b6598" + integrity sha512-VMyhPYZISFZAqAPVkiYb7dUe2AsVi2/wCT5+wZdsNO31FojQJa9ns40hzZ6U9f50Jlq4w6qwzdBB2uwqZ00ebg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-replace-supers" "^7.1.0" + +"@babel/plugin-transform-parameters@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.2.0.tgz#0d5ad15dc805e2ea866df4dd6682bfe76d1408c2" + integrity sha512-kB9+hhUidIgUoBQ0MsxMewhzr8i60nMa2KgeJKQWYrqQpqcBYtnpR+JgkadZVZoaEZ/eKu9mclFaVwhRpLNSzA== + dependencies: + "@babel/helper-call-delegate" "^7.1.0" + "@babel/helper-get-function-arity" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-react-constant-elements@^7.0.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.2.0.tgz#ed602dc2d8bff2f0cb1a5ce29263dbdec40779f7" + integrity sha512-YYQFg6giRFMsZPKUM9v+VcHOdfSQdz9jHCx3akAi3UYgyjndmdYGSXylQ/V+HswQt4fL8IklchD9HTsaOCrWQQ== + dependencies: + "@babel/helper-annotate-as-pure" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-react-display-name@^7.0.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.2.0.tgz#ebfaed87834ce8dc4279609a4f0c324c156e3eb0" + integrity sha512-Htf/tPa5haZvRMiNSQSFifK12gtr/8vwfr+A9y69uF0QcU77AVu4K7MiHEkTxF7lQoHOL0F9ErqgfNEAKgXj7A== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-react-jsx-self@^7.0.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.2.0.tgz#461e21ad9478f1031dd5e276108d027f1b5240ba" + integrity sha512-v6S5L/myicZEy+jr6ielB0OR8h+EH/1QFx/YJ7c7Ua+7lqsjj/vW6fD5FR9hB/6y7mGbfT4vAURn3xqBxsUcdg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-jsx" "^7.2.0" + +"@babel/plugin-transform-react-jsx-source@^7.0.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.2.0.tgz#20c8c60f0140f5dd3cd63418d452801cf3f7180f" + integrity sha512-A32OkKTp4i5U6aE88GwwcuV4HAprUgHcTq0sSafLxjr6AW0QahrCRCjxogkbbcdtpbXkuTOlgpjophCxb6sh5g== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-jsx" "^7.2.0" + +"@babel/plugin-transform-react-jsx@^7.0.0": + version "7.3.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.3.0.tgz#f2cab99026631c767e2745a5368b331cfe8f5290" + integrity sha512-a/+aRb7R06WcKvQLOu4/TpjKOdvVEKRLWFpKcNuHhiREPgGRB4TQJxq07+EZLS8LFVYpfq1a5lDUnuMdcCpBKg== + dependencies: + "@babel/helper-builder-react-jsx" "^7.3.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-jsx" "^7.2.0" + +"@babel/plugin-transform-regenerator@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.0.0.tgz#5b41686b4ed40bef874d7ed6a84bdd849c13e0c1" + integrity sha512-sj2qzsEx8KDVv1QuJc/dEfilkg3RRPvPYx/VnKLtItVQRWt1Wqf5eVCOLZm29CiGFfYYsA3VPjfizTCV0S0Dlw== + dependencies: + regenerator-transform "^0.13.3" + +"@babel/plugin-transform-runtime@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.2.0.tgz#566bc43f7d0aedc880eaddbd29168d0f248966ea" + integrity sha512-jIgkljDdq4RYDnJyQsiWbdvGeei/0MOTtSHKO/rfbd/mXBxNpdlulMx49L0HQ4pug1fXannxoqCI+fYSle9eSw== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + resolve "^1.8.1" + semver "^5.5.1" + +"@babel/plugin-transform-shorthand-properties@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.2.0.tgz#6333aee2f8d6ee7e28615457298934a3b46198f0" + integrity sha512-QP4eUM83ha9zmYtpbnyjTLAGKQritA5XW/iG9cjtuOI8s1RuL/3V6a3DeSHfKutJQ+ayUfeZJPcnCYEQzaPQqg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-spread@^7.2.0": + version "7.2.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.2.2.tgz#3103a9abe22f742b6d406ecd3cd49b774919b406" + integrity sha512-KWfky/58vubwtS0hLqEnrWJjsMGaOeSBn90Ezn5Jeg9Z8KKHmELbP1yGylMlm5N6TPKeY9A2+UaSYLdxahg01w== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-sticky-regex@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.2.0.tgz#a1e454b5995560a9c1e0d537dfc15061fd2687e1" + integrity sha512-KKYCoGaRAf+ckH8gEL3JHUaFVyNHKe3ASNsZ+AlktgHevvxGigoIttrEJb8iKN03Q7Eazlv1s6cx2B2cQ3Jabw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-regex" "^7.0.0" + +"@babel/plugin-transform-template-literals@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.2.0.tgz#d87ed01b8eaac7a92473f608c97c089de2ba1e5b" + integrity sha512-FkPix00J9A/XWXv4VoKJBMeSkyY9x/TqIh76wzcdfl57RJJcf8CehQ08uwfhCDNtRQYtHQKBTwKZDEyjE13Lwg== + dependencies: + "@babel/helper-annotate-as-pure" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-typeof-symbol@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.2.0.tgz#117d2bcec2fbf64b4b59d1f9819894682d29f2b2" + integrity sha512-2LNhETWYxiYysBtrBTqL8+La0jIoQQnIScUJc74OYvUGRmkskNY4EzLCnjHBzdmb38wqtTaixpo1NctEcvMDZw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-unicode-regex@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.2.0.tgz#4eb8db16f972f8abb5062c161b8b115546ade08b" + integrity sha512-m48Y0lMhrbXEJnVUaYly29jRXbQ3ksxPrS1Tg8t+MHqzXhtBYAvI51euOBaoAlZLPHsieY9XPVMf80a5x0cPcA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-regex" "^7.0.0" + regexpu-core "^4.1.3" + +"@babel/preset-env@^7.1.6", "@babel/preset-env@^7.2.0": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.3.1.tgz#389e8ca6b17ae67aaf9a2111665030be923515db" + integrity sha512-FHKrD6Dxf30e8xgHQO0zJZpUPfVZg+Xwgz5/RdSWCbza9QLNk4Qbp40ctRoqDxml3O8RMzB1DU55SXeDG6PqHQ== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-proposal-async-generator-functions" "^7.2.0" + "@babel/plugin-proposal-json-strings" "^7.2.0" + "@babel/plugin-proposal-object-rest-spread" "^7.3.1" + "@babel/plugin-proposal-optional-catch-binding" "^7.2.0" + "@babel/plugin-proposal-unicode-property-regex" "^7.2.0" + "@babel/plugin-syntax-async-generators" "^7.2.0" + "@babel/plugin-syntax-json-strings" "^7.2.0" + "@babel/plugin-syntax-object-rest-spread" "^7.2.0" + "@babel/plugin-syntax-optional-catch-binding" "^7.2.0" + "@babel/plugin-transform-arrow-functions" "^7.2.0" + "@babel/plugin-transform-async-to-generator" "^7.2.0" + "@babel/plugin-transform-block-scoped-functions" "^7.2.0" + "@babel/plugin-transform-block-scoping" "^7.2.0" + "@babel/plugin-transform-classes" "^7.2.0" + "@babel/plugin-transform-computed-properties" "^7.2.0" + "@babel/plugin-transform-destructuring" "^7.2.0" + "@babel/plugin-transform-dotall-regex" "^7.2.0" + "@babel/plugin-transform-duplicate-keys" "^7.2.0" + "@babel/plugin-transform-exponentiation-operator" "^7.2.0" + "@babel/plugin-transform-for-of" "^7.2.0" + "@babel/plugin-transform-function-name" "^7.2.0" + "@babel/plugin-transform-literals" "^7.2.0" + "@babel/plugin-transform-modules-amd" "^7.2.0" + "@babel/plugin-transform-modules-commonjs" "^7.2.0" + "@babel/plugin-transform-modules-systemjs" "^7.2.0" + "@babel/plugin-transform-modules-umd" "^7.2.0" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.3.0" + "@babel/plugin-transform-new-target" "^7.0.0" + "@babel/plugin-transform-object-super" "^7.2.0" + "@babel/plugin-transform-parameters" "^7.2.0" + "@babel/plugin-transform-regenerator" "^7.0.0" + "@babel/plugin-transform-shorthand-properties" "^7.2.0" + "@babel/plugin-transform-spread" "^7.2.0" + "@babel/plugin-transform-sticky-regex" "^7.2.0" + "@babel/plugin-transform-template-literals" "^7.2.0" + "@babel/plugin-transform-typeof-symbol" "^7.2.0" + "@babel/plugin-transform-unicode-regex" "^7.2.0" + browserslist "^4.3.4" + invariant "^2.2.2" + js-levenshtein "^1.1.3" + semver "^5.3.0" + +"@babel/preset-react@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.0.0.tgz#e86b4b3d99433c7b3e9e91747e2653958bc6b3c0" + integrity sha512-oayxyPS4Zj+hF6Et11BwuBkmpgT/zMxyuZgFrMeZID6Hdh3dGlk4sHCAhdBCpuCKW2ppBfl2uCCetlrUIJRY3w== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-transform-react-display-name" "^7.0.0" + "@babel/plugin-transform-react-jsx" "^7.0.0" + "@babel/plugin-transform-react-jsx-self" "^7.0.0" + "@babel/plugin-transform-react-jsx-source" "^7.0.0" + +"@babel/runtime@^7.2.0": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.3.1.tgz#574b03e8e8a9898eaf4a872a92ea20b7846f6f2a" + integrity sha512-7jGW8ppV0ant637pIqAcFfQDDH1orEPGJb8aXfUozuCU3QqX7rX4DA8iwrbPrR1hcH0FTTHz47yQnk+bl5xHQA== + dependencies: + regenerator-runtime "^0.12.0" + +"@babel/template@^7.0.0", "@babel/template@^7.4.0": + version "7.4.0" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.4.0.tgz#12474e9c077bae585c5d835a95c0b0b790c25c8b" + integrity sha512-SOWwxxClTTh5NdbbYZ0BmaBVzxzTh2tO/TeLTbF6MO6EzVhHTnff8CdBXx3mEtazFBoysmEM6GU/wF+SuSx4Fw== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/parser" "^7.4.0" + "@babel/types" "^7.4.0" + +"@babel/template@^7.1.0", "@babel/template@^7.1.2", "@babel/template@^7.2.2": + version "7.2.2" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.2.2.tgz#005b3fdf0ed96e88041330379e0da9a708eb2907" + integrity sha512-zRL0IMM02AUDwghf5LMSSDEz7sBCO2YnNmpg3uWTZj/v1rcG2BmQUvaGU8GhU8BvfMh1k2KIAYZ7Ji9KXPUg7g== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/parser" "^7.2.2" + "@babel/types" "^7.2.2" + +"@babel/traverse@^7.0.0", "@babel/traverse@^7.1.0", "@babel/traverse@^7.1.5", "@babel/traverse@^7.2.2", "@babel/traverse@^7.2.3": + version "7.2.3" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.2.3.tgz#7ff50cefa9c7c0bd2d81231fdac122f3957748d8" + integrity sha512-Z31oUD/fJvEWVR0lNZtfgvVt512ForCTNKYcJBGbPb1QZfve4WGH8Wsy7+Mev33/45fhP/hwQtvgusNdcCMgSw== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/generator" "^7.2.2" + "@babel/helper-function-name" "^7.1.0" + "@babel/helper-split-export-declaration" "^7.0.0" + "@babel/parser" "^7.2.3" + "@babel/types" "^7.2.2" + debug "^4.1.0" + globals "^11.1.0" + lodash "^4.17.10" + +"@babel/traverse@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.4.3.tgz#1a01f078fc575d589ff30c0f71bf3c3d9ccbad84" + integrity sha512-HmA01qrtaCwwJWpSKpA948cBvU5BrmviAief/b3AVw936DtcdsTexlbyzNuDnthwhOQ37xshn7hvQaEQk7ISYQ== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/generator" "^7.4.0" + "@babel/helper-function-name" "^7.1.0" + "@babel/helper-split-export-declaration" "^7.4.0" + "@babel/parser" "^7.4.3" + "@babel/types" "^7.4.0" + debug "^4.1.0" + globals "^11.1.0" + lodash "^4.17.11" + +"@babel/types@^7.0.0", "@babel/types@^7.1.6", "@babel/types@^7.2.0", "@babel/types@^7.2.2", "@babel/types@^7.3.0": + version "7.3.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.3.0.tgz#61dc0b336a93badc02bf5f69c4cd8e1353f2ffc0" + integrity sha512-QkFPw68QqWU1/RVPyBe8SO7lXbPfjtqAxRYQKpFpaB8yMq7X2qAqfwK5LKoQufEkSmO5NQ70O6Kc3Afk03RwXw== + dependencies: + esutils "^2.0.2" + lodash "^4.17.10" + to-fast-properties "^2.0.0" + +"@babel/types@^7.4.0": + version "7.4.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.4.0.tgz#670724f77d24cce6cc7d8cf64599d511d164894c" + integrity sha512-aPvkXyU2SPOnztlgo8n9cEiXW755mgyvueUPcpStqdzoSPm0fjO0vQBjLkt3JKJW7ufikfcnMTTPsN1xaTsBPA== + dependencies: + esutils "^2.0.2" + lodash "^4.17.11" + to-fast-properties "^2.0.0" + +"@cnakazawa/watch@^1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.3.tgz#099139eaec7ebf07a27c1786a3ff64f39464d2ef" + integrity sha512-r5160ogAvGyHsal38Kux7YYtodEKOj89RGb28ht1jh3SJb08VwRwAKKJL0bGb04Zd/3r9FL3BFIc3bBidYffCA== + dependencies: + exec-sh "^0.3.2" + minimist "^1.2.0" + +"@iamstarkov/listr-update-renderer@0.4.1": + version "0.4.1" + resolved "https://registry.yarnpkg.com/@iamstarkov/listr-update-renderer/-/listr-update-renderer-0.4.1.tgz#d7c48092a2dcf90fd672b6c8b458649cb350c77e" + integrity sha512-IJyxQWsYDEkf8C8QthBn5N8tIUR9V9je6j3sMIpAkonaadjbvxmRC6RAhpa3RKxndhNnU2M6iNbtJwd7usQYIA== + dependencies: + chalk "^1.1.3" + cli-truncate "^0.2.1" + elegant-spinner "^1.0.1" + figures "^1.7.0" + indent-string "^3.0.0" + log-symbols "^1.0.2" + log-update "^2.3.0" + strip-ansi "^3.0.1" + +"@jest/console@^24.7.1": + version "24.7.1" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-24.7.1.tgz#32a9e42535a97aedfe037e725bd67e954b459545" + integrity sha512-iNhtIy2M8bXlAOULWVTUxmnelTLFneTNEkHCgPmgd+zNwy9zVddJ6oS5rZ9iwoscNdT5mMwUd0C51v/fSlzItg== + dependencies: + "@jest/source-map" "^24.3.0" + chalk "^2.0.1" + slash "^2.0.0" + +"@jest/core@^24.7.1": + version "24.7.1" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-24.7.1.tgz#6707f50db238d0c5988860680e2e414df0032024" + integrity sha512-ivlZ8HX/FOASfHcb5DJpSPFps8ydfUYzLZfgFFqjkLijYysnIEOieg72YRhO4ZUB32xu40hsSMmaw+IGYeKONA== + dependencies: + "@jest/console" "^24.7.1" + "@jest/reporters" "^24.7.1" + "@jest/test-result" "^24.7.1" + "@jest/transform" "^24.7.1" + "@jest/types" "^24.7.0" + ansi-escapes "^3.0.0" + chalk "^2.0.1" + exit "^0.1.2" + graceful-fs "^4.1.15" + jest-changed-files "^24.7.0" + jest-config "^24.7.1" + jest-haste-map "^24.7.1" + jest-message-util "^24.7.1" + jest-regex-util "^24.3.0" + jest-resolve-dependencies "^24.7.1" + jest-runner "^24.7.1" + jest-runtime "^24.7.1" + jest-snapshot "^24.7.1" + jest-util "^24.7.1" + jest-validate "^24.7.0" + jest-watcher "^24.7.1" + micromatch "^3.1.10" + p-each-series "^1.0.0" + pirates "^4.0.1" + realpath-native "^1.1.0" + rimraf "^2.5.4" + strip-ansi "^5.0.0" + +"@jest/environment@^24.7.1": + version "24.7.1" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-24.7.1.tgz#9b9196bc737561f67ac07817d4c5ece772e33135" + integrity sha512-wmcTTYc4/KqA+U5h1zQd5FXXynfa7VGP2NfF+c6QeGJ7c+2nStgh65RQWNX62SC716dTtqheTRrZl0j+54oGHw== + dependencies: + "@jest/fake-timers" "^24.7.1" + "@jest/transform" "^24.7.1" + "@jest/types" "^24.7.0" + jest-mock "^24.7.0" + +"@jest/fake-timers@^24.7.1": + version "24.7.1" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-24.7.1.tgz#56e5d09bdec09ee81050eaff2794b26c71d19db2" + integrity sha512-4vSQJDKfR2jScOe12L9282uiwuwQv9Lk7mgrCSZHA9evB9efB/qx8i0KJxsAKtp8fgJYBJdYY7ZU6u3F4/pyjA== + dependencies: + "@jest/types" "^24.7.0" + jest-message-util "^24.7.1" + jest-mock "^24.7.0" + +"@jest/reporters@^24.7.1": + version "24.7.1" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-24.7.1.tgz#38ac0b096cd691bbbe3051ddc25988d42e37773a" + integrity sha512-bO+WYNwHLNhrjB9EbPL4kX/mCCG4ZhhfWmO3m4FSpbgr7N83MFejayz30kKjgqr7smLyeaRFCBQMbXpUgnhAJw== + dependencies: + "@jest/environment" "^24.7.1" + "@jest/test-result" "^24.7.1" + "@jest/transform" "^24.7.1" + "@jest/types" "^24.7.0" + chalk "^2.0.1" + exit "^0.1.2" + glob "^7.1.2" + istanbul-api "^2.1.1" + istanbul-lib-coverage "^2.0.2" + istanbul-lib-instrument "^3.0.1" + istanbul-lib-source-maps "^3.0.1" + jest-haste-map "^24.7.1" + jest-resolve "^24.7.1" + jest-runtime "^24.7.1" + jest-util "^24.7.1" + jest-worker "^24.6.0" + node-notifier "^5.2.1" + slash "^2.0.0" + source-map "^0.6.0" + string-length "^2.0.0" + +"@jest/source-map@^24.3.0": + version "24.3.0" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-24.3.0.tgz#563be3aa4d224caf65ff77edc95cd1ca4da67f28" + integrity sha512-zALZt1t2ou8le/crCeeiRYzvdnTzaIlpOWaet45lNSqNJUnXbppUUFR4ZUAlzgDmKee4Q5P/tKXypI1RiHwgag== + dependencies: + callsites "^3.0.0" + graceful-fs "^4.1.15" + source-map "^0.6.0" + +"@jest/test-result@^24.7.1": + version "24.7.1" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-24.7.1.tgz#19eacdb29a114300aed24db651e5d975f08b6bbe" + integrity sha512-3U7wITxstdEc2HMfBX7Yx3JZgiNBubwDqQMh+BXmZXHa3G13YWF3p6cK+5g0hGkN3iufg/vGPl3hLxQXD74Npg== + dependencies: + "@jest/console" "^24.7.1" + "@jest/types" "^24.7.0" + "@types/istanbul-lib-coverage" "^2.0.0" + +"@jest/test-sequencer@^24.7.1": + version "24.7.1" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-24.7.1.tgz#9c18e428e1ad945fa74f6233a9d35745ca0e63e0" + integrity sha512-84HQkCpVZI/G1zq53gHJvSmhUer4aMYp9tTaffW28Ih5OxfCg8hGr3nTSbL1OhVDRrFZwvF+/R9gY6JRkDUpUA== + dependencies: + "@jest/test-result" "^24.7.1" + jest-haste-map "^24.7.1" + jest-runner "^24.7.1" + jest-runtime "^24.7.1" + +"@jest/transform@^24.7.1": + version "24.7.1" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-24.7.1.tgz#872318f125bcfab2de11f53b465ab1aa780789c2" + integrity sha512-EsOUqP9ULuJ66IkZQhI5LufCHlTbi7hrcllRMUEV/tOgqBVQi93+9qEvkX0n8mYpVXQ8VjwmICeRgg58mrtIEw== + dependencies: + "@babel/core" "^7.1.0" + "@jest/types" "^24.7.0" + babel-plugin-istanbul "^5.1.0" + chalk "^2.0.1" + convert-source-map "^1.4.0" + fast-json-stable-stringify "^2.0.0" + graceful-fs "^4.1.15" + jest-haste-map "^24.7.1" + jest-regex-util "^24.3.0" + jest-util "^24.7.1" + micromatch "^3.1.10" + realpath-native "^1.1.0" + slash "^2.0.0" + source-map "^0.6.1" + write-file-atomic "2.4.1" + +"@jest/types@^24.7.0": + version "24.7.0" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-24.7.0.tgz#c4ec8d1828cdf23234d9b4ee31f5482a3f04f48b" + integrity sha512-ipJUa2rFWiKoBqMKP63Myb6h9+iT3FHRTF2M8OR6irxWzItisa8i4dcSg14IbvmXUnBlHBlUQPYUHWyX3UPpYA== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/yargs" "^12.0.9" + +"@mrmlnc/readdir-enhanced@^2.2.1": + version "2.2.1" + resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde" + integrity sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g== + dependencies: + call-me-maybe "^1.0.1" + glob-to-regexp "^0.3.0" + +"@nodelib/fs.stat@^1.1.2": + version "1.1.3" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" + integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== + +"@octokit/endpoint@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-4.0.0.tgz#97032a6690ef1cf9576ab1b1582c0ac837e3b5b6" + integrity sha512-b8sptNUekjREtCTJFpOfSIL4SKh65WaakcyxWzRcSPOk5RxkZJ/S8884NGZFxZ+jCB2rDURU66pSHn14cVgWVg== + dependencies: + deepmerge "3.2.0" + is-plain-object "^2.0.4" + universal-user-agent "^2.0.1" + url-template "^2.0.8" + +"@octokit/request@3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@octokit/request/-/request-3.0.0.tgz#304a279036b2dc89e7fba7cb30c9e6a9b1f4d2df" + integrity sha512-DZqmbm66tq+a9FtcKrn0sjrUpi0UaZ9QPUCxxyk/4CJ2rseTMpAWRf6gCwOSUCzZcx/4XVIsDk+kz5BVdaeenA== + dependencies: + "@octokit/endpoint" "^4.0.0" + deprecation "^1.0.1" + is-plain-object "^2.0.4" + node-fetch "^2.3.0" + once "^1.4.0" + universal-user-agent "^2.0.1" + +"@octokit/rest@^16.13.1": + version "16.25.0" + resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-16.25.0.tgz#1111dc2b2058bc77442fd7fbd295dab3991b62bf" + integrity sha512-QKIzP0gNYjyIGmY3Gpm3beof0WFwxFR+HhRZ+Wi0fYYhkEUvkJiXqKF56Pf5glzzfhEwOrggfluEld5F/ZxsKw== + dependencies: + "@octokit/request" "3.0.0" + atob-lite "^2.0.0" + before-after-hook "^1.4.0" + btoa-lite "^1.0.0" + deprecation "^1.0.1" + lodash.get "^4.4.2" + lodash.set "^4.3.2" + lodash.uniq "^4.5.0" + octokit-pagination-methods "^1.1.0" + once "^1.4.0" + universal-user-agent "^2.0.0" + url-template "^2.0.8" + +"@samverschueren/stream-to-observable@^0.3.0": + version "0.3.0" + resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz#ecdf48d532c58ea477acfcab80348424f8d0662f" + integrity sha512-MI4Xx6LHs4Webyvi6EbspgyAb4D2Q2VtnCQ1blOJcoLS6mVa8lNN2rkIy1CVxfTUpoyIbCTkXES1rLXztFD1lg== + dependencies: + any-observable "^0.3.0" + +"@semantic-release/commit-analyzer@^6.1.0": + version "6.1.0" + resolved "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-6.1.0.tgz#32bbe3c23da86e23edf072fbb276fa2f383fcb17" + integrity sha512-2lb+t6muGenI86mYGpZYOgITx9L3oZYF697tJoqXeQEk0uw0fm+OkkOuDTBA3Oax9ftoNIrCKv9bwgYvxrbM6w== + dependencies: + conventional-changelog-angular "^5.0.0" + conventional-commits-filter "^2.0.0" + conventional-commits-parser "^3.0.0" + debug "^4.0.0" + import-from "^2.1.0" + lodash "^4.17.4" + +"@semantic-release/error@^2.2.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-2.2.0.tgz#ee9d5a09c9969eade1ec864776aeda5c5cddbbf0" + integrity sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg== + +"@semantic-release/github@^5.1.0": + version "5.2.10" + resolved "https://registry.yarnpkg.com/@semantic-release/github/-/github-5.2.10.tgz#bf325f11685d59b864c8946d7d30fcb749d89e37" + integrity sha512-z/UwIxKb+EMiJDIy/57MBzJ80ar5H9GJQRyML/ILQ8dlrPwXs7cTyTvC7AesrF7t1mJZtg3ht9Qf9RdtR/LGzw== + dependencies: + "@octokit/rest" "^16.13.1" + "@semantic-release/error" "^2.2.0" + aggregate-error "^2.0.0" + bottleneck "^2.0.1" + debug "^4.0.0" + dir-glob "^2.0.0" + fs-extra "^7.0.0" + globby "^9.0.0" + http-proxy-agent "^2.1.0" + https-proxy-agent "^2.2.1" + issue-parser "^3.0.0" + lodash "^4.17.4" + mime "^2.0.3" + p-filter "^1.0.0" + p-retry "^3.0.0" + parse-github-url "^1.0.1" + url-join "^4.0.0" + +"@semantic-release/npm@^5.0.5": + version "5.1.4" + resolved "https://registry.yarnpkg.com/@semantic-release/npm/-/npm-5.1.4.tgz#970b62765e6c5d51f94e1c14d3bc1f5a224e2ed0" + integrity sha512-YRl8VTVwnRTl/sVRvTXs1ncYcuvuGrqPEXYy+lUK1YRLq25hkrhIdv3Ju0u1zGLqVCA8qRlF3NzWl7pULJXVog== + dependencies: + "@semantic-release/error" "^2.2.0" + aggregate-error "^2.0.0" + execa "^1.0.0" + fs-extra "^7.0.0" + lodash "^4.17.4" + nerf-dart "^1.0.0" + normalize-url "^4.0.0" + npm "6.5.0" + rc "^1.2.8" + read-pkg "^4.0.0" + registry-auth-token "^3.3.1" + +"@semantic-release/release-notes-generator@^7.1.2": + version "7.1.4" + resolved "https://registry.yarnpkg.com/@semantic-release/release-notes-generator/-/release-notes-generator-7.1.4.tgz#8f4f752c5a8385abdaac1256127cef05988bc2ad" + integrity sha512-pWPouZujddgb6t61t9iA9G3yIfp3TeQ7bPbV1ixYSeP6L7gI1+Du82fY/OHfEwyifpymLUQW0XnIKgKct5IMMw== + dependencies: + conventional-changelog-angular "^5.0.0" + conventional-changelog-writer "^4.0.0" + conventional-commits-filter "^2.0.0" + conventional-commits-parser "^3.0.0" + debug "^4.0.0" + get-stream "^4.0.0" + import-from "^2.1.0" + into-stream "^4.0.0" + lodash "^4.17.4" + +"@svgr/babel-plugin-add-jsx-attribute@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-4.0.0.tgz#5acf239cd2747b1a36ec7e708de05d914cb9b948" + integrity sha512-PDvHV2WhSGCSExp+eIMEKxYd1Q0SBvXLb4gAOXbdh0dswHFFgXWzxGjCmx5aln4qGrhkuN81khzYzR/44DYaMA== + +"@svgr/babel-plugin-remove-jsx-attribute@^4.0.3": + version "4.0.3" + resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-4.0.3.tgz#32564b5c4d761b51e34492b6a4894196c0f75803" + integrity sha512-fpG7AzzJxz1tc8ITYS1jCAt1cq4ydK2R+sx//BMTJgvOjfk91M5GiqFolP8aYTzLcum92IGNAVFS3zEcucOQEA== + +"@svgr/babel-plugin-remove-jsx-empty-expression@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-4.0.0.tgz#0b59338c00671cf8137eb823bd84a3efac686502" + integrity sha512-nBGVl6LzXTdk1c6w3rMWcjq3mYGz+syWc5b3CdqAiEeY/nswYDoW/cnGUKKC8ofD6/LaG+G/IUnfv3jKoHz43A== + +"@svgr/babel-plugin-replace-jsx-attribute-value@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-4.0.0.tgz#91785643540c2300f3d89e515b37af9b5ce4e695" + integrity sha512-ejQqpTfORy6TT5w1x/2IQkscgfbtNFjitcFDu63GRz7qfhVTYhMdiJvJ1+Aw9hmv9bO4tXThGQDr1IF5lIvgew== + +"@svgr/babel-plugin-svg-dynamic-title@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-4.0.0.tgz#eb8d50b80ba0a26f9b27c7268e2a803d90f1bc9e" + integrity sha512-OE6GT9WRKWqd0Dk6NJ5TYXTF5OxAyn74+c/D+gTLbCXnK2A0luEXuwMbe5zR5Px4A/jow2OeEBboTENl4vtuQg== + +"@svgr/babel-plugin-svg-em-dimensions@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-4.0.0.tgz#0de3972c46ff1960bed765646037a3a7f9e1da3d" + integrity sha512-QeDRGHXfjYEBTXxV0TsjWmepsL9Up5BOOlMFD557x2JrSiVGUn2myNxHIrHiVW0+nnWnaDcrkjg/jUvbJ5nKCg== + +"@svgr/babel-plugin-transform-react-native-svg@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-4.0.0.tgz#5e8ecc2a9870ae05fb1e553b1fe9c6b5853a1c66" + integrity sha512-c6eE6ovs14k6dmHKoy26h7iRFhjWNnwYVrDWIPfouVm/gcLIeMw/ME4i91O5LEfaDHs6kTRCcVpbAVbNULZOtw== + +"@svgr/babel-plugin-transform-svg-component@^4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-4.1.0.tgz#257159e28a21ac20988b1eaa5f59d4724f37fdaa" + integrity sha512-uulxdx2p3nrM2BkrtADQHK8IhEzCxdUILfC/ddvFC8tlFWuKiA3ych8C6q0ulyQHq34/3hzz+3rmUbhWF9redg== + +"@svgr/babel-preset@^4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@svgr/babel-preset/-/babel-preset-4.1.0.tgz#f6fa8ad90064b85dd7a3566a70b7006e789e8385" + integrity sha512-Nat5aJ3VO3LE8KfMyIbd3sGWnaWPiFCeWIdEV+lalga0To/tpmzsnPDdnrR9fNYhvSSLJbwhU/lrLYt9wXY0ZQ== + dependencies: + "@svgr/babel-plugin-add-jsx-attribute" "^4.0.0" + "@svgr/babel-plugin-remove-jsx-attribute" "^4.0.3" + "@svgr/babel-plugin-remove-jsx-empty-expression" "^4.0.0" + "@svgr/babel-plugin-replace-jsx-attribute-value" "^4.0.0" + "@svgr/babel-plugin-svg-dynamic-title" "^4.0.0" + "@svgr/babel-plugin-svg-em-dimensions" "^4.0.0" + "@svgr/babel-plugin-transform-react-native-svg" "^4.0.0" + "@svgr/babel-plugin-transform-svg-component" "^4.1.0" + +"@svgr/core@^4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@svgr/core/-/core-4.1.0.tgz#4f8ad24fb4ab25c787c12a6bbb511c6430558f83" + integrity sha512-ahv3lvOKuUAcs0KbQ4Jr5fT5pGHhye4ew8jZVS4lw8IQdWrbG/o3rkpgxCPREBk7PShmEoGQpteeXVwp2yExuQ== + dependencies: + "@svgr/plugin-jsx" "^4.1.0" + camelcase "^5.0.0" + cosmiconfig "^5.0.7" + +"@svgr/hast-util-to-babel-ast@^4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-4.1.0.tgz#a1eb0f47059769896f759f47995b636fce5d9fa4" + integrity sha512-tdkEZHmigYYiVhIEzycAMKN5aUSpddUnjr6v7bPwaNTFuSyqGUrpCg1JlIGi7PUaaJVHbn6whGQMGUpKOwT5nw== + dependencies: + "@babel/types" "^7.1.6" + +"@svgr/plugin-jsx@^4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@svgr/plugin-jsx/-/plugin-jsx-4.1.0.tgz#4045e9cc0589374a6c182a1217c80e6734b5cbec" + integrity sha512-xwu+9TGziuN7cu7p+vhCw2EJIfv8iDNMzn2dR0C7fBYc8q+SRtYTcg4Uyn8ZWh6DM+IZOlVrS02VEMT0FQzXSA== + dependencies: + "@babel/core" "^7.1.6" + "@svgr/babel-preset" "^4.1.0" + "@svgr/hast-util-to-babel-ast" "^4.1.0" + rehype-parse "^6.0.0" + unified "^7.0.2" + vfile "^3.0.1" + +"@svgr/plugin-svgo@^4.0.3": + version "4.0.3" + resolved "https://registry.yarnpkg.com/@svgr/plugin-svgo/-/plugin-svgo-4.0.3.tgz#a07ea0a736c26fa3a5440fe8e222e2e887764cab" + integrity sha512-MgL1CrlxvNe+1tQjPUc2bIJtsdJOIE5arbHlPgW+XVWGjMZTUcyNNP8R7/IjM2Iyrc98UJY+WYiiWHrinnY9ZQ== + dependencies: + cosmiconfig "^5.0.7" + merge-deep "^3.0.2" + svgo "^1.1.1" + +"@svgr/rollup@^4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@svgr/rollup/-/rollup-4.1.0.tgz#fd1be5eef562c31983a58101bf4528084d5094d0" + integrity sha512-7+smsooCaAxqc1CHxtHMxVj0uvn/rwETXj2tRqmo+IOklfS+lSYEKT6Mldsj0vDhM+CX9F6xIiLgIuA2hk+wvQ== + dependencies: + "@babel/core" "^7.1.6" + "@babel/plugin-transform-react-constant-elements" "^7.0.0" + "@babel/preset-env" "^7.1.6" + "@babel/preset-react" "^7.0.0" + "@svgr/core" "^4.1.0" + "@svgr/plugin-jsx" "^4.1.0" + "@svgr/plugin-svgo" "^4.0.3" + rollup-pluginutils "^2.3.3" + +"@types/babel__core@^7.1.0": + version "7.1.1" + resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.1.tgz#ce9a9e5d92b7031421e1d0d74ae59f572ba48be6" + integrity sha512-+hjBtgcFPYyCTo0A15+nxrCVJL7aC6Acg87TXd5OW3QhHswdrOLoles+ldL2Uk8q++7yIfl4tURtztccdeeyOw== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + "@types/babel__generator" "*" + "@types/babel__template" "*" + "@types/babel__traverse" "*" + +"@types/babel__generator@*": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.0.2.tgz#d2112a6b21fad600d7674274293c85dce0cb47fc" + integrity sha512-NHcOfab3Zw4q5sEE2COkpfXjoE7o+PmqD9DQW4koUT3roNxwziUdXGnRndMat/LJNUtePwn1TlP4do3uoe3KZQ== + dependencies: + "@babel/types" "^7.0.0" + +"@types/babel__template@*": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.0.2.tgz#4ff63d6b52eddac1de7b975a5223ed32ecea9307" + integrity sha512-/K6zCpeW7Imzgab2bLkLEbz0+1JlFSrUMdw7KoIIu+IUdu51GWaBZpd3y1VXGVXzynvGa4DaIaxNZHiON3GXUg== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + +"@types/babel__traverse@*", "@types/babel__traverse@^7.0.6": + version "7.0.6" + resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.0.6.tgz#328dd1a8fc4cfe3c8458be9477b219ea158fd7b2" + integrity sha512-XYVgHF2sQ0YblLRMLNPB3CkFMewzFmlDsH/TneZFHUXDlABQgh88uOxuez7ZcXxayLFrqLwtDH1t+FmlFwNZxw== + dependencies: + "@babel/types" "^7.3.0" + +"@types/estree@0.0.39": + version "0.0.39" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" + integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== + +"@types/istanbul-lib-coverage@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.0.tgz#1eb8c033e98cf4e1a4cedcaf8bcafe8cb7591e85" + integrity sha512-eAtOAFZefEnfJiRFQBGw1eYqa5GTLCZ1y86N0XSI/D6EB+E8z6VPV/UL7Gi5UEclFqoQk+6NRqEDsfmDLXn8sg== + +"@types/node@*": + version "10.12.18" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.18.tgz#1d3ca764718915584fcd9f6344621b7672665c67" + integrity sha512-fh+pAqt4xRzPfqA6eh3Z2y6fyZavRIumvjhaCL753+TVkGKGhpPeyrJG2JftD0T9q4GF00KjefsQ+PQNDdWQaQ== + +"@types/q@^1.5.1": + version "1.5.1" + resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.1.tgz#48fd98c1561fe718b61733daed46ff115b496e18" + integrity sha512-eqz8c/0kwNi/OEHQfvIuJVLTst3in0e7uTKeuY+WL/zfKn0xVujOTp42bS/vUUokhK5P2BppLd9JXMOMHcgbjA== + +"@types/stack-utils@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e" + integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw== + +"@types/unist@*", "@types/unist@^2.0.0": + version "2.0.2" + resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.2.tgz#5dc0a7f76809b7518c0df58689cd16a19bd751c6" + integrity sha512-iHI60IbyfQilNubmxsq4zqSjdynlmc2Q/QvH9kjzg9+CCYVVzq1O6tc7VBzSygIwnmOt07w80IG6HDQvjv3Liw== + +"@types/vfile-message@*": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@types/vfile-message/-/vfile-message-1.0.1.tgz#e1e9895cc6b36c462d4244e64e6d0b6eaf65355a" + integrity sha512-mlGER3Aqmq7bqR1tTTIVHq8KSAFFRyGbrxuM8C/H82g6k7r2fS+IMEkIu3D7JHzG10NvPdR8DNx0jr0pwpp4dA== + dependencies: + "@types/node" "*" + "@types/unist" "*" + +"@types/vfile@^3.0.0": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@types/vfile/-/vfile-3.0.2.tgz#19c18cd232df11ce6fa6ad80259bc86c366b09b9" + integrity sha512-b3nLFGaGkJ9rzOcuXRfHkZMdjsawuDD0ENL9fzTophtBg8FJHSGbH7daXkEpcwy3v7Xol3pAvsmlYyFhR4pqJw== + dependencies: + "@types/node" "*" + "@types/unist" "*" + "@types/vfile-message" "*" + +"@types/yargs@^12.0.2", "@types/yargs@^12.0.9": + version "12.0.12" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-12.0.12.tgz#45dd1d0638e8c8f153e87d296907659296873916" + integrity sha512-SOhuU4wNBxhhTHxYaiG5NY4HBhDIDnJF60GU+2LqHAdKKer86//e4yg69aENCtQ04n0ovz+tq2YPME5t5yp4pw== + +JSONStream@^1.0.4, JSONStream@^1.3.4: + version "1.3.5" + resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0" + integrity sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ== + dependencies: + jsonparse "^1.2.0" + through ">=2.2.7 <3" + +abab@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.0.tgz#aba0ab4c5eee2d4c79d3487d85450fb2376ebb0f" + integrity sha512-sY5AXXVZv4Y1VACTtR11UJCPHHudgY5i26Qj5TypE6DKlIApbwb5uqhXcJ5UUGbvZNRh7EeIoW+LrJumBsKp7w== + +abbrev@1, abbrev@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + +acorn-globals@^4.1.0: + version "4.3.1" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.3.1.tgz#deb149c59276657ebd40ba2ba849ddd529763ccf" + integrity sha512-gJSiKY8dBIjV/0jagZIFBdVMtfQyA5QHCvAT48H2q8REQoW8Fs5AOjqBql1LgSXgrMWdevcE+8cdZ33NtVbIBA== + dependencies: + acorn "^6.0.1" + acorn-walk "^6.0.1" + +acorn-jsx@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.0.1.tgz#32a064fd925429216a09b141102bfdd185fae40e" + integrity sha512-HJ7CfNHrfJLlNTzIEUTj43LNWGkqpRLxm3YjAlcD0ACydk9XynzYsCBHxut+iqt+1aBXkx9UP/w/ZqMr13XIzg== + +acorn-walk@^6.0.1: + version "6.1.1" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.1.1.tgz#d363b66f5fac5f018ff9c3a1e7b6f8e310cc3913" + integrity sha512-OtUw6JUTgxA2QoqqmrmQ7F2NYqiBPi/L2jqHyFtllhOUvXYQXf0Z1CYUinIfyT4bTCGmrA7gX9FvHA81uzCoVw== + +acorn@^5.5.3: + version "5.7.3" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz#67aa231bf8812974b85235a96771eb6bd07ea279" + integrity sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw== + +acorn@^6.0.1: + version "6.1.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.1.1.tgz#7d25ae05bb8ad1f9b699108e1094ecd7884adc1f" + integrity sha512-jPTiwtOxaHNaAPg/dmrJ/beuzLRnXtB0kQPQ8JpotKJgTB6rX6c8mlf315941pyjBSaPg8NHXS9fhP4u17DpGA== + +acorn@^6.0.2: + version "6.0.5" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.0.5.tgz#81730c0815f3f3b34d8efa95cb7430965f4d887a" + integrity sha512-i33Zgp3XWtmZBMNvCr4azvOFeWVw1Rk6p3hfi3LUDvIFraOMywb1kAtrbi+med14m4Xfpqm3zRZMT+c0FNE7kg== + +acorn@^6.0.5: + version "6.1.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.1.0.tgz#b0a3be31752c97a0f7013c5f4903b71a05db6818" + integrity sha512-MW/FjM+IvU9CgBzjO3UIPCE2pyEwUsoFl+VGdczOPEdxfGFjuKny/gN54mOuX7Qxmb9Rg9MCn2oKiSUeW+pjrw== + +agent-base@4, agent-base@^4.1.0, agent-base@~4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.2.1.tgz#d89e5999f797875674c07d87f260fc41e83e8ca9" + integrity sha512-JVwXMr9nHYTUXsBFKUqhJwvlcYU/blreOEUkhNR2eXZIvwd+c+o5V4MgDPKWnMS/56awN3TRzIP+KoPn+roQtg== + dependencies: + es6-promisify "^5.0.0" + +agentkeepalive@^3.4.1: + version "3.5.2" + resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-3.5.2.tgz#a113924dd3fa24a0bc3b78108c450c2abee00f67" + integrity sha512-e0L/HNe6qkQ7H19kTlRRqUibEAwDK5AFk6y3PtMsuut2VAH6+Q4xZml1tNDJD7kSAyqmbG/K08K5WEJYtUrSlQ== + dependencies: + humanize-ms "^1.2.1" + +aggregate-error@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-2.2.0.tgz#f54b464db18cc77c907ae084451f39134707134a" + integrity sha512-E5n+IZkhh22/pFdUvHUU/o9z752lc+7tgHt+FXS/g6BjlbE9249dGmuS/SxIWMPhTljZJkFN+7OXE0+O5+WT8w== + dependencies: + clean-stack "^2.0.0" + indent-string "^3.0.0" + +ajv@^6.10.0, ajv@^6.5.5: + version "6.10.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.10.0.tgz#90d0d54439da587cd7e843bfb7045f50bd22bdf1" + integrity sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg== + dependencies: + fast-deep-equal "^2.0.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +ajv@^6.5.3, ajv@^6.6.1: + version "6.7.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.7.0.tgz#e3ce7bb372d6577bb1839f1dfdfcbf5ad2948d96" + integrity sha512-RZXPviBTtfmtka9n9sy1N5M5b82CbxWIR6HIis4s3WQTXDJamc/0gpCWNGz6EWdWp4DOfjzJfhz/AS9zVPjjWg== + dependencies: + fast-deep-equal "^2.0.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +alphanum-sort@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" + integrity sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM= + +amdefine@>=0.0.4: + version "1.0.1" + resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + integrity sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU= + +ansi-align@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-2.0.0.tgz#c36aeccba563b89ceb556f3690f0b1d9e3547f7f" + integrity sha1-w2rsy6VjuJzrVW82kPCx2eNUf38= + dependencies: + string-width "^2.0.0" + +ansi-escapes@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.1.0.tgz#f73207bb81207d75fd6c83f125af26eea378ca30" + integrity sha512-UgAb8H9D41AQnu/PbWlCofQVcnV4Gs2bBJi9eZPxfU/hgglFh3SMDMENRIqdr7H6XFnXdoknctFByVsCOotTVw== + +ansi-escapes@^3.1.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" + integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== + +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8= + +ansi-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" + integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= + +ansi-regex@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.0.0.tgz#70de791edf021404c3fd615aa89118ae0432e5a9" + integrity sha512-iB5Dda8t/UqpPI/IjsejXu5jOGDrzn41wJyljwPH65VCIbk6+1BzFIMJGFwTNrYXT1CrD+B4l19U7awiQ8rk7w== + +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4= + +ansi-styles@^3.2.0, ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + +ansicolors@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/ansicolors/-/ansicolors-0.3.2.tgz#665597de86a9ffe3aa9bfbe6cae5c6ea426b4979" + integrity sha1-ZlWX3oap/+Oqm/vmyuXG6kJrSXk= + +ansistyles@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/ansistyles/-/ansistyles-0.1.3.tgz#5de60415bda071bb37127854c864f41b23254539" + integrity sha1-XeYEFb2gcbs3EnhUyGT0GyMlRTk= + +any-observable@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/any-observable/-/any-observable-0.3.0.tgz#af933475e5806a67d0d7df090dd5e8bef65d119b" + integrity sha512-/FQM1EDkTsf63Ub2C6O7GuYFDsSXUwsaZDurV0np41ocwq0jthUAYCmhBX9f+KwlaCgIuWyr/4WlUQUBfKfZog== + +anymatch@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" + integrity sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw== + dependencies: + micromatch "^3.1.4" + normalize-path "^2.1.1" + +append-transform@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-1.0.0.tgz#046a52ae582a228bd72f58acfbe2967c678759ab" + integrity sha512-P009oYkeHyU742iSZJzZZywj4QRJdnTWffaKuJQLablCZ1uz6/cW4yaRgcDaoQ+uwOxxnt0gRUcwfsNP2ri0gw== + dependencies: + default-require-extensions "^2.0.0" + +aproba@^1.0.3, aproba@^1.1.1, aproba@^1.1.2, aproba@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" + integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== + +"aproba@^1.1.2 || 2": + version "2.0.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc" + integrity sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ== + +archy@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40" + integrity sha1-+cjBN1fMHde8N5rHeyxipcKGjEA= + +are-we-there-yet@~1.1.2: + version "1.1.5" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" + integrity sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w== + dependencies: + delegates "^1.0.0" + readable-stream "^2.0.6" + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + +argv-formatter@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/argv-formatter/-/argv-formatter-1.0.0.tgz#a0ca0cbc29a5b73e836eebe1cbf6c5e0e4eb82f9" + integrity sha1-oMoMvCmltz6Dbuvhy/bF4OTrgvk= + +argv@^0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/argv/-/argv-0.0.2.tgz#ecbd16f8949b157183711b1bda334f37840185ab" + integrity sha1-7L0W+JSbFXGDcRsb2jNPN4QBhas= + +arr-diff@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" + integrity sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8= + dependencies: + arr-flatten "^1.0.1" + +arr-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" + integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= + +arr-flatten@^1.0.1, arr-flatten@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" + integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== + +arr-union@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" + integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= + +array-equal@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" + integrity sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM= + +array-find-index@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" + integrity sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E= + +array-ify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-ify/-/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece" + integrity sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4= + +array-union@^1.0.1, array-union@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" + integrity sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk= + dependencies: + array-uniq "^1.0.1" + +array-uniq@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" + integrity sha1-r2rId6Jcx/dOBYiUdThY39sk/bY= + +array-uniq@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-2.1.0.tgz#46603d5e28e79bfd02b046fcc1d77c6820bd8e98" + integrity sha512-bdHxtev7FN6+MXI1YFW0Q8mQ8dTJc2S8AMfju+ZR77pbg2yAdVyDlwkaUI7Har0LyOMRFPHrJ9lYdyjZZswdlQ== + +array-unique@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" + integrity sha1-odl8yvy8JiXMcPrc6zalDFiwGlM= + +array-unique@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" + integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= + +arrify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= + +asap@^2.0.0: + version "2.0.6" + resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" + integrity sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY= + +asn1@~0.2.3: + version "0.2.4" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" + integrity sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg== + dependencies: + safer-buffer "~2.1.0" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= + +assign-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" + integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= + +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== + +async-limiter@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8" + integrity sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg== + +async@^2.6.1: + version "2.6.2" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.2.tgz#18330ea7e6e313887f5d2f2a904bac6fe4dd5381" + integrity sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg== + dependencies: + lodash "^4.17.11" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + +atob-lite@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/atob-lite/-/atob-lite-2.0.0.tgz#0fef5ad46f1bd7a8502c65727f0367d5ee43d696" + integrity sha1-D+9a1G8b16hQLGVyfwNn1e5D1pY= + +atob@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" + integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== + +autoprefixer@^9.0.0: + version "9.4.6" + resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.4.6.tgz#0ace275e33b37de16b09a5547dbfe73a98c1d446" + integrity sha512-Yp51mevbOEdxDUy5WjiKtpQaecqYq9OqZSL04rSoCiry7Tc5I9FEyo3bfxiTJc1DfHeKwSFCUYbBAiOQ2VGfiw== + dependencies: + browserslist "^4.4.1" + caniuse-lite "^1.0.30000929" + normalize-range "^0.1.2" + num2fraction "^1.2.2" + postcss "^7.0.13" + postcss-value-parser "^3.3.1" + +aws-sign2@~0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" + integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg= + +aws4@^1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" + integrity sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ== + +babel-eslint@10.0.1: + version "10.0.1" + resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.0.1.tgz#919681dc099614cd7d31d45c8908695092a1faed" + integrity sha512-z7OT1iNV+TjOwHNLLyJk+HN+YVWX+CLE6fPD2SymJZOZQBs+QIexFjhm4keGTm8MW9xr4EC9Q0PbaLB24V5GoQ== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/parser" "^7.0.0" + "@babel/traverse" "^7.0.0" + "@babel/types" "^7.0.0" + eslint-scope "3.7.1" + eslint-visitor-keys "^1.0.0" + +babel-jest@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-24.7.1.tgz#73902c9ff15a7dfbdc9994b0b17fcefd96042178" + integrity sha512-GPnLqfk8Mtt0i4OemjWkChi73A3ALs4w2/QbG64uAj8b5mmwzxc7jbJVRZt8NJkxi6FopVHog9S3xX6UJKb2qg== + dependencies: + "@jest/transform" "^24.7.1" + "@jest/types" "^24.7.0" + "@types/babel__core" "^7.1.0" + babel-plugin-istanbul "^5.1.0" + babel-preset-jest "^24.6.0" + chalk "^2.4.2" + slash "^2.0.0" + +babel-plugin-istanbul@^5.1.0: + version "5.1.2" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-5.1.2.tgz#d8c2e2e83f72695d6bfdcd297719c66161d5f0f9" + integrity sha512-U3ZVajC+Z69Gim7ZzmD4Wcsq76i/1hqDamBfowc1tWzWjybRy70iWfngP2ME+1CrgcgZ/+muIbPY/Yi0dxdIkQ== + dependencies: + find-up "^3.0.0" + istanbul-lib-instrument "^3.2.0" + test-exclude "^5.2.2" + +babel-plugin-jest-hoist@^24.6.0: + version "24.6.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-24.6.0.tgz#f7f7f7ad150ee96d7a5e8e2c5da8319579e78019" + integrity sha512-3pKNH6hMt9SbOv0F3WVmy5CWQ4uogS3k0GY5XLyQHJ9EGpAT9XWkFd2ZiXXtkwFHdAHa5j7w7kfxSP5lAIwu7w== + dependencies: + "@types/babel__traverse" "^7.0.6" + +babel-polyfill@^6.8.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" + integrity sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM= + dependencies: + babel-runtime "^6.26.0" + core-js "^2.5.0" + regenerator-runtime "^0.10.5" + +babel-preset-jest@^24.6.0: + version "24.6.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-24.6.0.tgz#66f06136eefce87797539c0d63f1769cc3915984" + integrity sha512-pdZqLEdmy1ZK5kyRUfvBb2IfTPb2BUvIJczlPspS8fWmBQslNNDBqVfh7BW5leOVJMDZKzjD8XEyABTk6gQ5yw== + dependencies: + "@babel/plugin-syntax-object-rest-spread" "^7.0.0" + babel-plugin-jest-hoist "^24.6.0" + +babel-runtime@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" + integrity sha1-llxwWGaOgrVde/4E/yM3vItWR/4= + dependencies: + core-js "^2.4.0" + regenerator-runtime "^0.11.0" + +bail@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/bail/-/bail-1.0.3.tgz#63cfb9ddbac829b02a3128cd53224be78e6c21a3" + integrity sha512-1X8CnjFVQ+a+KW36uBNMTU5s8+v5FzeqrP7hTG5aTb4aPreSbZJlhwPon9VKMuEVgV++JM+SQrALY3kr7eswdg== + +balanced-match@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" + integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= + +base@^0.11.1: + version "0.11.2" + resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" + integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== + dependencies: + cache-base "^1.0.1" + class-utils "^0.3.5" + component-emitter "^1.2.1" + define-property "^1.0.0" + isobject "^3.0.1" + mixin-deep "^1.2.0" + pascalcase "^0.1.1" + +bcrypt-pbkdf@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" + integrity sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4= + dependencies: + tweetnacl "^0.14.3" + +before-after-hook@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-1.4.0.tgz#2b6bf23dca4f32e628fd2747c10a37c74a4b484d" + integrity sha512-l5r9ir56nda3qu14nAXIlyq1MmUSs0meCIaFAh8HwkFwP1F8eToOuS3ah2VAHHcY04jaYD7FpJC5JTXHYRbkzg== + +big.js@^3.1.3: + version "3.2.0" + resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e" + integrity sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q== + +bin-links@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/bin-links/-/bin-links-1.1.2.tgz#fb74bd54bae6b7befc6c6221f25322ac830d9757" + integrity sha512-8eEHVgYP03nILphilltWjeIjMbKyJo3wvp9K816pHbhP301ismzw15mxAAEVQ/USUwcP++1uNrbERbp8lOA6Fg== + dependencies: + bluebird "^3.5.0" + cmd-shim "^2.0.2" + gentle-fs "^2.0.0" + graceful-fs "^4.1.11" + write-file-atomic "^2.3.0" + +block-stream@*: + version "0.0.9" + resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" + integrity sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo= + dependencies: + inherits "~2.0.0" + +bluebird@^3.5.0, bluebird@^3.5.1, bluebird@^3.5.3: + version "3.5.4" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.4.tgz#d6cc661595de30d5b3af5fcedd3c0b3ef6ec5714" + integrity sha512-FG+nFEZChJrbQ9tIccIfZJBz3J7mLrAhxakAbnrJWn8d7aKOC+LWifa0G+p4ZqKp4y13T7juYvdhq9NzKdsrjw== + +boolbase@^1.0.0, boolbase@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" + integrity sha1-aN/1++YMUes3cl6p4+0xDcwed24= + +bottleneck@^2.0.1: + version "2.18.0" + resolved "https://registry.yarnpkg.com/bottleneck/-/bottleneck-2.18.0.tgz#41fa63ae185b65435d789d1700334bc48222dacf" + integrity sha512-U1xiBRaokw4yEguzikOl0VrnZp6uekjpmfrh6rKtr1D+/jFjYCL6J83ZXlGtlBDwVdTmJJ+4Lg5FpB3xmLSiyA== + +boxen@^1.2.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/boxen/-/boxen-1.3.0.tgz#55c6c39a8ba58d9c61ad22cd877532deb665a20b" + integrity sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw== + dependencies: + ansi-align "^2.0.0" + camelcase "^4.0.0" + chalk "^2.0.1" + cli-boxes "^1.0.0" + string-width "^2.0.0" + term-size "^1.2.0" + widest-line "^2.0.0" + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +braces@^1.8.2: + version "1.8.5" + resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" + integrity sha1-uneWLhLf+WnWt2cR6RS3N4V79qc= + dependencies: + expand-range "^1.8.1" + preserve "^0.2.0" + repeat-element "^1.1.2" + +braces@^2.3.1: + version "2.3.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" + integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== + dependencies: + arr-flatten "^1.1.0" + array-unique "^0.3.2" + extend-shallow "^2.0.1" + fill-range "^4.0.0" + isobject "^3.0.1" + repeat-element "^1.1.2" + snapdragon "^0.8.1" + snapdragon-node "^2.0.1" + split-string "^3.0.2" + to-regex "^3.0.1" + +browser-process-hrtime@^0.1.2: + version "0.1.3" + resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-0.1.3.tgz#616f00faef1df7ec1b5bf9cfe2bdc3170f26c7b4" + integrity sha512-bRFnI4NnjO6cnyLmOV/7PVoDEMJChlcfN0z4s1YMBY989/SvlfMI1lgCnkFUs53e9gQF+w7qu7XdllSTiSl8Aw== + +browser-resolve@^1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" + integrity sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ== + dependencies: + resolve "1.1.7" + +browserslist@^4.0.0, browserslist@^4.3.4, browserslist@^4.4.1: + version "4.4.1" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.4.1.tgz#42e828954b6b29a7a53e352277be429478a69062" + integrity sha512-pEBxEXg7JwaakBXjATYw/D1YZh4QUSCX/Mnd/wnqSRPPSi1U39iDhDoKGoBUcraKdxDlrYqJxSI5nNvD+dWP2A== + dependencies: + caniuse-lite "^1.0.30000929" + electron-to-chromium "^1.3.103" + node-releases "^1.1.3" + +bser@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/bser/-/bser-2.0.0.tgz#9ac78d3ed5d915804fd87acb158bc797147a1719" + integrity sha1-mseNPtXZFYBP2HrLFYvHlxR6Fxk= + dependencies: + node-int64 "^0.4.0" + +btoa-lite@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/btoa-lite/-/btoa-lite-1.0.0.tgz#337766da15801210fdd956c22e9c6891ab9d0337" + integrity sha1-M3dm2hWAEhD92VbCLpxokaudAzc= + +buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== + +builtin-modules@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" + integrity sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8= + +builtin-modules@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.0.0.tgz#1e587d44b006620d90286cc7a9238bbc6129cab1" + integrity sha512-hMIeU4K2ilbXV6Uv93ZZ0Avg/M91RaKXucQ+4me2Do1txxBDyDZWCBa5bJSLqoNTRpXTLwEzIk1KmloenDDjhg== + +builtins@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88" + integrity sha1-y5T662HIaWRR2zZTThQi+U8K7og= + +byline@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/byline/-/byline-5.0.0.tgz#741c5216468eadc457b03410118ad77de8c1ddb1" + integrity sha1-dBxSFkaOrcRXsDQQEYrXfejB3bE= + +byte-size@^4.0.3: + version "4.0.4" + resolved "https://registry.yarnpkg.com/byte-size/-/byte-size-4.0.4.tgz#29d381709f41aae0d89c631f1c81aec88cd40b23" + integrity sha512-82RPeneC6nqCdSwCX2hZUz3JPOvN5at/nTEw/CMf05Smu3Hrpo9Psb7LjN+k+XndNArG1EY8L4+BM3aTM4BCvw== + +cacache@^10.0.4: + version "10.0.4" + resolved "https://registry.yarnpkg.com/cacache/-/cacache-10.0.4.tgz#6452367999eff9d4188aefd9a14e9d7c6a263460" + integrity sha512-Dph0MzuH+rTQzGPNT9fAnrPmMmjKfST6trxJeK7NQuHRaVw24VzPRWTmg9MpcwOVQZO0E1FBICUlFeNaKPIfHA== + dependencies: + bluebird "^3.5.1" + chownr "^1.0.1" + glob "^7.1.2" + graceful-fs "^4.1.11" + lru-cache "^4.1.1" + mississippi "^2.0.0" + mkdirp "^0.5.1" + move-concurrently "^1.0.1" + promise-inflight "^1.0.1" + rimraf "^2.6.2" + ssri "^5.2.4" + unique-filename "^1.1.0" + y18n "^4.0.0" + +cacache@^11.0.1, cacache@^11.0.2, cacache@^11.2.0: + version "11.3.2" + resolved "https://registry.yarnpkg.com/cacache/-/cacache-11.3.2.tgz#2d81e308e3d258ca38125b676b98b2ac9ce69bfa" + integrity sha512-E0zP4EPGDOaT2chM08Als91eYnf8Z+eH1awwwVsngUmgppfM5jjJ8l3z5vO5p5w/I3LsiXawb1sW0VY65pQABg== + dependencies: + bluebird "^3.5.3" + chownr "^1.1.1" + figgy-pudding "^3.5.1" + glob "^7.1.3" + graceful-fs "^4.1.15" + lru-cache "^5.1.1" + mississippi "^3.0.0" + mkdirp "^0.5.1" + move-concurrently "^1.0.1" + promise-inflight "^1.0.1" + rimraf "^2.6.2" + ssri "^6.0.1" + unique-filename "^1.1.1" + y18n "^4.0.0" + +cache-base@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" + integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== + dependencies: + collection-visit "^1.0.0" + component-emitter "^1.2.1" + get-value "^2.0.6" + has-value "^1.0.0" + isobject "^3.0.1" + set-value "^2.0.0" + to-object-path "^0.3.0" + union-value "^1.0.0" + unset-value "^1.0.0" + +cachedir@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cachedir/-/cachedir-2.1.0.tgz#b448c32b44cd9c0cd6ce4c419fa5b3c112c02191" + integrity sha512-xGBpPqoBvn3unBW7oxgb8aJn42K0m9m1/wyjmazah10Fq7bROGG3kRAE6OIyr3U3PIJUqGuebhCEdMk9OKJG0A== + +call-limit@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/call-limit/-/call-limit-1.1.0.tgz#6fd61b03f3da42a2cd0ec2b60f02bd0e71991fea" + integrity sha1-b9YbA/PaQqLNDsK2DwK9DnGZH+o= + +call-me-maybe@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.1.tgz#26d208ea89e37b5cbde60250a15f031c16a4d66b" + integrity sha1-JtII6onje1y95gJQoV8DHBak1ms= + +caller-callsite@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" + integrity sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ= + dependencies: + callsites "^2.0.0" + +caller-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4" + integrity sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ= + dependencies: + caller-callsite "^2.0.0" + +callsites@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" + integrity sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA= + +callsites@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.0.0.tgz#fb7eb569b72ad7a45812f93fd9430a3e410b3dd3" + integrity sha512-tWnkwu9YEq2uzlBDI4RcLn8jrFvF9AOi8PxDNU3hZZjJcjkcRAq3vCI+vZcg1SuxISDYe86k9VZFwAxDiJGoAw== + +camelcase-keys@^4.0.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-4.2.0.tgz#a2aa5fb1af688758259c32c141426d78923b9b77" + integrity sha1-oqpfsa9oh1glnDLBQUJteJI7m3c= + dependencies: + camelcase "^4.1.0" + map-obj "^2.0.0" + quick-lru "^1.0.0" + +camelcase@^4.0.0, camelcase@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" + integrity sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0= + +camelcase@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.0.0.tgz#03295527d58bd3cd4aa75363f35b2e8d97be2f42" + integrity sha512-faqwZqnWxbxn+F1d399ygeamQNy3lPp/H9H6rNrqYh4FSVCtcY+3cub1MxA8o9mDd55mM8Aghuu/kuyYA6VTsA== + +caniuse-api@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/caniuse-api/-/caniuse-api-3.0.0.tgz#5e4d90e2274961d46291997df599e3ed008ee4c0" + integrity sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw== + dependencies: + browserslist "^4.0.0" + caniuse-lite "^1.0.0" + lodash.memoize "^4.1.2" + lodash.uniq "^4.5.0" + +caniuse-lite@^1.0.0: + version "1.0.30000936" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000936.tgz#5d33b118763988bf721b9b8ad436d0400e4a116b" + integrity sha512-orX4IdpbFhdNO7bTBhSbahp1EBpqzBc+qrvTRVUFfZgA4zta7TdM6PN5ZxkEUgDnz36m+PfWGcdX7AVfFWItJw== + +caniuse-lite@^1.0.30000929: + version "1.0.30000932" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000932.tgz#d01763e9ce77810962ca7391ff827b5949ce4272" + integrity sha512-4bghJFItvzz8m0T3lLZbacmEY9X1Z2AtIzTr7s7byqZIOumASfr4ynDx7rtm0J85nDmx8vsgR6vnaSoeU8Oh0A== + +capture-exit@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" + integrity sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g== + dependencies: + rsvp "^4.8.4" + +capture-stack-trace@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/capture-stack-trace/-/capture-stack-trace-1.0.1.tgz#a6c0bbe1f38f3aa0b92238ecb6ff42c344d4135d" + integrity sha512-mYQLZnx5Qt1JgB1WEiMCf2647plpGeQ2NMR/5L0HNZzGQo4fuSPnK+wjfPnKZV0aiJDgzmWqqkV/g7JD+DW0qw== + +cardinal@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/cardinal/-/cardinal-2.1.1.tgz#7cc1055d822d212954d07b085dea251cc7bc5505" + integrity sha1-fMEFXYItISlU0HsIXeolHMe8VQU= + dependencies: + ansicolors "~0.3.2" + redeyed "~2.1.0" + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= + +ccount@^1.0.0, ccount@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.0.3.tgz#f1cec43f332e2ea5a569fd46f9f5bde4e6102aff" + integrity sha512-Jt9tIBkRc9POUof7QA/VwWd+58fKkEEfI+/t1/eOlxKM7ZhrczNzMFefge7Ai+39y1pR/pP6cI19guHy3FSLmw== + +chalk@^1.0.0, chalk@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg= + dependencies: + ansi-styles "^2.2.1" + escape-string-regexp "^1.0.2" + has-ansi "^2.0.0" + strip-ansi "^3.0.0" + supports-color "^2.0.0" + +chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.1, chalk@^2.3.2, chalk@^2.4.1, chalk@^2.4.2: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +character-entities-html4@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/character-entities-html4/-/character-entities-html4-1.1.2.tgz#c44fdde3ce66b52e8d321d6c1bf46101f0150610" + integrity sha512-sIrXwyna2+5b0eB9W149izTPJk/KkJTg6mEzDGibwBUkyH1SbDa+nf515Ppdi3MaH35lW0JFJDWeq9Luzes1Iw== + +character-entities-legacy@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.2.tgz#7c6defb81648498222c9855309953d05f4d63a9c" + integrity sha512-9NB2VbXtXYWdXzqrvAHykE/f0QJxzaKIpZ5QzNZrrgQ7Iyxr2vnfS8fCBNVW9nUEZE0lo57nxKRqnzY/dKrwlA== + +character-entities@^1.0.0: + version "1.2.2" + resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-1.2.2.tgz#58c8f371c0774ef0ba9b2aca5f00d8f100e6e363" + integrity sha512-sMoHX6/nBiy3KKfC78dnEalnpn0Az0oSNvqUWYTtYrhRI5iUIYsROU48G+E+kMFQzqXaJ8kHJZ85n7y6/PHgwQ== + +character-reference-invalid@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-1.1.2.tgz#21e421ad3d84055952dab4a43a04e73cd425d3ed" + integrity sha512-7I/xceXfKyUJmSAn/jw8ve/9DyOP7XxufNYLI9Px7CmsKgEUaZLUTax6nZxGQtaoiZCjpu6cHPj20xC/vqRReQ== + +chardet@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" + integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== + +chownr@^1.0.1, chownr@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.1.tgz#54726b8b8fff4df053c42187e801fb4412df1494" + integrity sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g== + +chownr@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181" + integrity sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE= + +ci-info@^1.5.0, ci-info@^1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.6.0.tgz#2ca20dbb9ceb32d4524a683303313f0304b1e497" + integrity sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A== + +ci-info@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" + integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== + +cidr-regex@^2.0.10: + version "2.0.10" + resolved "https://registry.yarnpkg.com/cidr-regex/-/cidr-regex-2.0.10.tgz#af13878bd4ad704de77d6dc800799358b3afa70d" + integrity sha512-sB3ogMQXWvreNPbJUZMRApxuRYd+KoIo4RGQ81VatjmMW6WJPo+IJZ2846FGItr9VzKo5w7DXzijPLGtSd0N3Q== + dependencies: + ip-regex "^2.1.0" + +circular-json@^0.3.1: + version "0.3.3" + resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.3.tgz#815c99ea84f6809529d2f45791bdf82711352d66" + integrity sha512-UZK3NBx2Mca+b5LsG7bY183pHWt5Y1xts4P3Pz7ENTwGVnJOUWbRb3ocjvX7hx9tq/yTAdclXm9sZ38gNuem4A== + +class-utils@^0.3.5: + version "0.3.6" + resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" + integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== + dependencies: + arr-union "^3.1.0" + define-property "^0.2.5" + isobject "^3.0.0" + static-extend "^0.1.1" + +clean-stack@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.1.0.tgz#9e7fec7f3f8340a2ab4f127c80273085e8fbbdd0" + integrity sha512-uQWrpRm+iZZUCAp7ZZJQbd4Za9I3AjR/3YTjmcnAtkauaIm/T5CT6U8zVI6e60T6OANqBFAzuR9/HB3NzuZCRA== + +cli-boxes@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-1.0.0.tgz#4fa917c3e59c94a004cd61f8ee509da651687143" + integrity sha1-T6kXw+WclKAEzWH47lCdplFocUM= + +cli-columns@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/cli-columns/-/cli-columns-3.1.2.tgz#6732d972979efc2ae444a1f08e08fa139c96a18e" + integrity sha1-ZzLZcpee/CrkRKHwjgj6E5yWoY4= + dependencies: + string-width "^2.0.0" + strip-ansi "^3.0.1" + +cli-cursor@^2.0.0, cli-cursor@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" + integrity sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU= + dependencies: + restore-cursor "^2.0.0" + +cli-table3@^0.5.0: + version "0.5.1" + resolved "https://registry.yarnpkg.com/cli-table3/-/cli-table3-0.5.1.tgz#0252372d94dfc40dbd8df06005f48f31f656f202" + integrity sha512-7Qg2Jrep1S/+Q3EceiZtQcDPWxhAvBw+ERf1162v4sikJrvojMHFqXt8QIVha8UlH9rgU0BeWPytZ9/TzYqlUw== + dependencies: + object-assign "^4.1.0" + string-width "^2.1.1" + optionalDependencies: + colors "^1.1.2" + +cli-table@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/cli-table/-/cli-table-0.3.1.tgz#f53b05266a8b1a0b934b3d0821e6e2dc5914ae23" + integrity sha1-9TsFJmqLGguTSz0IIebi3FkUriM= + dependencies: + colors "1.0.3" + +cli-truncate@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-0.2.1.tgz#9f15cfbb0705005369216c626ac7d05ab90dd574" + integrity sha1-nxXPuwcFAFNpIWxiasfQWrkN1XQ= + dependencies: + slice-ansi "0.0.4" + string-width "^1.0.1" + +cli-width@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639" + integrity sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk= + +cliui@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49" + integrity sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ== + dependencies: + string-width "^2.1.1" + strip-ansi "^4.0.0" + wrap-ansi "^2.0.0" + +clone-deep@^0.2.4: + version "0.2.4" + resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-0.2.4.tgz#4e73dd09e9fb971cc38670c5dced9c1896481cc6" + integrity sha1-TnPdCen7lxzDhnDF3O2cGJZIHMY= + dependencies: + for-own "^0.1.3" + is-plain-object "^2.0.1" + kind-of "^3.0.2" + lazy-cache "^1.0.3" + shallow-clone "^0.1.2" + +clone-regexp@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/clone-regexp/-/clone-regexp-1.0.1.tgz#051805cd33173375d82118fc0918606da39fd60f" + integrity sha512-Fcij9IwRW27XedRIJnSOEupS7RVcXtObJXbcUOX93UCLqqOdRpkvzKywOOSizmEK/Is3S/RHX9dLdfo6R1Q1mw== + dependencies: + is-regexp "^1.0.0" + is-supported-regexp-flag "^1.0.0" + +clone@^1.0.2: + version "1.0.4" + resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" + integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4= + +cmd-shim@^2.0.2, cmd-shim@~2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/cmd-shim/-/cmd-shim-2.0.2.tgz#6fcbda99483a8fd15d7d30a196ca69d688a2efdb" + integrity sha1-b8vamUg6j9FdfTChlspp1oii79s= + dependencies: + graceful-fs "^4.1.2" + mkdirp "~0.5.0" + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= + +coa@~2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/coa/-/coa-2.0.2.tgz#43f6c21151b4ef2bf57187db0d73de229e3e7ec3" + integrity sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA== + dependencies: + "@types/q" "^1.5.1" + chalk "^2.4.1" + q "^1.1.2" + +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c= + +codecov@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.3.0.tgz#7bf337b3f7b0474606b5c31c56dd9e44e395e15d" + integrity sha512-S70c3Eg9SixumOvxaKE/yKUxb9ihu/uebD9iPO2IR73IdP4i6ZzjXEULj3d0HeyWPr0DqBfDkjNBWxURjVO5hw== + dependencies: + argv "^0.0.2" + ignore-walk "^3.0.1" + js-yaml "^3.12.0" + teeny-request "^3.7.0" + urlgrey "^0.4.4" + +collapse-white-space@^1.0.2: + version "1.0.4" + resolved "https://registry.yarnpkg.com/collapse-white-space/-/collapse-white-space-1.0.4.tgz#ce05cf49e54c3277ae573036a26851ba430a0091" + integrity sha512-YfQ1tAUZm561vpYD+5eyWN8+UsceQbSrqqlc/6zDY2gtAE+uZLSdkkovhnGpmCThsvKBFakq4EdY/FF93E8XIw== + +collection-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" + integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= + dependencies: + map-visit "^1.0.0" + object-visit "^1.0.0" + +color-convert@^1.9.0, color-convert@^1.9.1: + version "1.9.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= + +color-name@^1.0.0: + version "1.1.4" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +color-string@^1.5.2: + version "1.5.3" + resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.5.3.tgz#c9bbc5f01b58b5492f3d6857459cb6590ce204cc" + integrity sha512-dC2C5qeWoYkxki5UAXapdjqO672AM4vZuPGRQfO8b5HKuKGBbKWpITyDYN7TOFKvRW7kOgAn3746clDBMDJyQw== + dependencies: + color-name "^1.0.0" + simple-swizzle "^0.2.2" + +color@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/color/-/color-3.1.0.tgz#d8e9fb096732875774c84bf922815df0308d0ffc" + integrity sha512-CwyopLkuRYO5ei2EpzpIh6LqJMt6Mt+jZhO5VI5f/wJLZriXQE32/SSqzmrh+QB+AZT81Cj8yv+7zwToW8ahZg== + dependencies: + color-convert "^1.9.1" + color-string "^1.5.2" + +colors@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b" + integrity sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs= + +colors@^1.1.2: + version "1.3.3" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.3.3.tgz#39e005d546afe01e01f9c4ca8fa50f686a01205d" + integrity sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg== + +colors@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63" + integrity sha1-FopHAXVran9RoSzgyXv6KMCE7WM= + +columnify@~1.5.4: + version "1.5.4" + resolved "https://registry.yarnpkg.com/columnify/-/columnify-1.5.4.tgz#4737ddf1c7b69a8a7c340570782e947eec8e78bb" + integrity sha1-Rzfd8ce2mop8NAVweC6UfuyOeLs= + dependencies: + strip-ansi "^3.0.0" + wcwidth "^1.0.0" + +combined-stream@^1.0.6, combined-stream@~1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.7.tgz#2d1d24317afb8abe95d6d2c0b07b57813539d828" + integrity sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w== + dependencies: + delayed-stream "~1.0.0" + +comma-separated-tokens@^1.0.0: + version "1.0.5" + resolved "https://registry.yarnpkg.com/comma-separated-tokens/-/comma-separated-tokens-1.0.5.tgz#b13793131d9ea2d2431cf5b507ddec258f0ce0db" + integrity sha512-Cg90/fcK93n0ecgYTAz1jaA3zvnQ0ExlmKY1rdbyHqAx6BHxwoJc+J7HDu0iuQ7ixEs1qaa+WyQ6oeuBpYP1iA== + dependencies: + trim "0.0.1" + +commander@^2.14.1, commander@^2.9.0: + version "2.19.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a" + integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg== + +commander@~2.20.0: + version "2.20.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422" + integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ== + +commitizen@3.1.x: + version "3.1.1" + resolved "https://registry.yarnpkg.com/commitizen/-/commitizen-3.1.1.tgz#0135c8c68df52ce348d718f79b23eb03b8713918" + integrity sha512-n5pnG8sNM5a3dS3Kkh3rYr+hFdPWZlqV6pfz6KGLmWV/gsIiTqAwhTgFKkcF/paKUpfIMp0x4YZlD0xLBNTW9g== + dependencies: + cachedir "2.1.0" + cz-conventional-changelog "2.1.0" + dedent "0.7.0" + detect-indent "^5.0.0" + find-node-modules "2.0.0" + find-root "1.1.0" + fs-extra "^7.0.0" + glob "7.1.3" + inquirer "6.2.0" + is-utf8 "^0.2.1" + lodash "4.17.11" + minimist "1.2.0" + shelljs "0.7.6" + strip-bom "3.0.0" + strip-json-comments "2.0.1" + +compare-func@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/compare-func/-/compare-func-1.3.2.tgz#99dd0ba457e1f9bc722b12c08ec33eeab31fa648" + integrity sha1-md0LpFfh+bxyKxLAjsM+6rMfpkg= + dependencies: + array-ify "^1.0.0" + dot-prop "^3.0.0" + +compare-versions@^3.2.1: + version "3.4.0" + resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.4.0.tgz#e0747df5c9cb7f054d6d3dc3e1dbc444f9e92b26" + integrity sha512-tK69D7oNXXqUW3ZNo/z7NXTEz22TCF0pTE+YF9cxvaAM9XnkLo1fV621xCLrRR6aevJlKxExkss0vWqUCUpqdg== + +component-emitter@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" + integrity sha1-E3kY1teCg/ffemt8WmPhQOaUJeY= + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + +concat-stream@^1.5.0, concat-stream@^1.5.2: + version "1.6.2" + resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" + integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw== + dependencies: + buffer-from "^1.0.0" + inherits "^2.0.3" + readable-stream "^2.2.2" + typedarray "^0.0.6" + +concat-with-sourcemaps@^1.0.5: + version "1.1.0" + resolved "https://registry.yarnpkg.com/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz#d4ea93f05ae25790951b99e7b3b09e3908a4082e" + integrity sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg== + dependencies: + source-map "^0.6.1" + +config-chain@^1.1.12: + version "1.1.12" + resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.12.tgz#0fde8d091200eb5e808caf25fe618c02f48e4efa" + integrity sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA== + dependencies: + ini "^1.3.4" + proto-list "~1.2.1" + +configstore@^3.0.0: + version "3.1.2" + resolved "https://registry.yarnpkg.com/configstore/-/configstore-3.1.2.tgz#c6f25defaeef26df12dd33414b001fe81a543f8f" + integrity sha512-vtv5HtGjcYUgFrXc6Kx747B83MRRVS5R1VTEQoXvuP+kMI+if6uywV0nDGoiydJRy4yk7h9od5Og0kxx4zUXmw== + dependencies: + dot-prop "^4.1.0" + graceful-fs "^4.1.2" + make-dir "^1.0.0" + unique-string "^1.0.0" + write-file-atomic "^2.0.0" + xdg-basedir "^3.0.0" + +console-control-strings@^1.0.0, console-control-strings@^1.1.0, console-control-strings@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4= + +contains-path@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" + integrity sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo= + +conventional-changelog-angular@^5.0.0: + version "5.0.3" + resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.3.tgz#299fdd43df5a1f095283ac16aeedfb0a682ecab0" + integrity sha512-YD1xzH7r9yXQte/HF9JBuEDfvjxxwDGGwZU1+ndanbY0oFgA+Po1T9JDSpPLdP0pZT6MhCAsdvFKC4TJ4MTJTA== + dependencies: + compare-func "^1.3.1" + q "^1.5.1" + +conventional-changelog-writer@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-4.0.3.tgz#916a2b302d0bb5ef18efd236a034c13fb273cde1" + integrity sha512-bIlpSiQtQZ1+nDVHEEh798Erj2jhN/wEjyw9sfxY9es6h7pREE5BNJjfv0hXGH/FTrAsEpHUq4xzK99eePpwuA== + dependencies: + compare-func "^1.3.1" + conventional-commits-filter "^2.0.1" + dateformat "^3.0.0" + handlebars "^4.1.0" + json-stringify-safe "^5.0.1" + lodash "^4.2.1" + meow "^4.0.0" + semver "^5.5.0" + split "^1.0.0" + through2 "^2.0.0" + +conventional-commit-types@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/conventional-commit-types/-/conventional-commit-types-2.1.1.tgz#352eb53f56fbc7c1a6c1ba059c2b6670c90b2a8a" + integrity sha512-0Ts+fEdmjqYDOQ1yZ+LNgdSPO335XZw9qC10M7CxtLP3nIMGmeMhmkM8Taffa4+MXN13bRPlp0CtH+QfOzKTzw== + +conventional-commits-filter@^2.0.0, conventional-commits-filter@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/conventional-commits-filter/-/conventional-commits-filter-2.0.1.tgz#55a135de1802f6510b6758e0a6aa9e0b28618db3" + integrity sha512-92OU8pz/977udhBjgPEbg3sbYzIxMDFTlQT97w7KdhR9igNqdJvy8smmedAAgn4tPiqseFloKkrVfbXCVd+E7A== + dependencies: + is-subset "^0.1.1" + modify-values "^1.0.0" + +conventional-commits-parser@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.0.1.tgz#fe1c49753df3f98edb2285a5e485e11ffa7f2e4c" + integrity sha512-P6U5UOvDeidUJ8ebHVDIoXzI7gMlQ1OF/id6oUvp8cnZvOXMt1n8nYl74Ey9YMn0uVQtxmCtjPQawpsssBWtGg== + dependencies: + JSONStream "^1.0.4" + is-text-path "^1.0.0" + lodash "^4.2.1" + meow "^4.0.0" + split2 "^2.0.0" + through2 "^2.0.0" + trim-off-newlines "^1.0.0" + +convert-source-map@^1.1.0, convert-source-map@^1.4.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.6.0.tgz#51b537a8c43e0f04dec1993bffcdd504e758ac20" + integrity sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A== + dependencies: + safe-buffer "~5.1.1" + +copy-concurrently@^1.0.0: + version "1.0.5" + resolved "https://registry.yarnpkg.com/copy-concurrently/-/copy-concurrently-1.0.5.tgz#92297398cae34937fcafd6ec8139c18051f0b5e0" + integrity sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A== + dependencies: + aproba "^1.1.1" + fs-write-stream-atomic "^1.0.8" + iferr "^0.1.5" + mkdirp "^0.5.1" + rimraf "^2.5.4" + run-queue "^1.0.0" + +copy-descriptor@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" + integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= + +core-js@^2.4.0, core-js@^2.5.0: + version "2.6.5" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.5.tgz#44bc8d249e7fb2ff5d00e0341a7ffb94fbf67895" + integrity sha512-klh/kDpwX8hryYL14M9w/xei6vrv6sE8gTHDG7/T/+SEovB/G4ejwcfE/CBzO6Edsu+OETZMZ3wcX/EjUkrl5A== + +core-util-is@1.0.2, core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= + +cosmiconfig@5.0.6: + version "5.0.6" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.0.6.tgz#dca6cf680a0bd03589aff684700858c81abeeb39" + integrity sha512-6DWfizHriCrFWURP1/qyhsiFvYdlJzbCzmtFWh744+KyWsJo5+kPzUZZaMRSSItoYc0pxFX7gEO7ZC1/gN/7AQ== + dependencies: + is-directory "^0.3.1" + js-yaml "^3.9.0" + parse-json "^4.0.0" + +cosmiconfig@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-4.0.0.tgz#760391549580bbd2df1e562bc177b13c290972dc" + integrity sha512-6e5vDdrXZD+t5v0L8CrurPeybg4Fmf+FCSYxXKYVAqLUtyCSbuyqE059d0kDthTNRzKVjL7QMgNpEUlsoYH3iQ== + dependencies: + is-directory "^0.3.1" + js-yaml "^3.9.0" + parse-json "^4.0.0" + require-from-string "^2.0.1" + +cosmiconfig@^5.0.0, cosmiconfig@^5.0.7: + version "5.0.7" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.0.7.tgz#39826b292ee0d78eda137dfa3173bd1c21a43b04" + integrity sha512-PcLqxTKiDmNT6pSpy4N6KtuPwb53W+2tzNvwOZw0WH9N6O0vLIBq0x8aj8Oj75ere4YcGi48bDFCL+3fRJdlNA== + dependencies: + import-fresh "^2.0.0" + is-directory "^0.3.1" + js-yaml "^3.9.0" + parse-json "^4.0.0" + +cosmiconfig@^5.0.1: + version "5.2.0" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.0.tgz#45038e4d28a7fe787203aede9c25bca4a08b12c8" + integrity sha512-nxt+Nfc3JAqf4WIWd0jXLjTJZmsPLrA9DDc4nRw2KFJQJK7DNooqSXrNI7tzLG50CF8axczly5UV929tBmh/7g== + dependencies: + import-fresh "^2.0.0" + is-directory "^0.3.1" + js-yaml "^3.13.0" + parse-json "^4.0.0" + +create-error-class@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/create-error-class/-/create-error-class-3.0.2.tgz#06be7abef947a3f14a30fd610671d401bca8b7b6" + integrity sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y= + dependencies: + capture-stack-trace "^1.0.0" + +cross-env@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.2.0.tgz#6ecd4c015d5773e614039ee529076669b9d126f2" + integrity sha512-jtdNFfFW1hB7sMhr/H6rW1Z45LFqyI431m3qU6bFXcQ3Eh7LtBuG3h74o7ohHZ3crrRkkqHlo4jYHFPcjroANg== + dependencies: + cross-spawn "^6.0.5" + is-windows "^1.0.0" + +cross-spawn@^5.0.1: + version "5.1.0" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" + integrity sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk= + dependencies: + lru-cache "^4.0.1" + shebang-command "^1.2.0" + which "^1.2.9" + +cross-spawn@^6.0.0, cross-spawn@^6.0.5: + version "6.0.5" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" + integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== + dependencies: + nice-try "^1.0.4" + path-key "^2.0.1" + semver "^5.5.0" + shebang-command "^1.2.0" + which "^1.2.9" + +crypto-random-string@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e" + integrity sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4= + +css-color-names@0.0.4, css-color-names@^0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0" + integrity sha1-gIrcLnnPhHOAabZGyyDsJ762KeA= + +css-declaration-sorter@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/css-declaration-sorter/-/css-declaration-sorter-4.0.1.tgz#c198940f63a76d7e36c1e71018b001721054cb22" + integrity sha512-BcxQSKTSEEQUftYpBVnsH4SF05NTuBokb19/sBt6asXGKZ/6VP7PLG1CBCkFDYOnhXhPh0jMhO6xZ71oYHXHBA== + dependencies: + postcss "^7.0.1" + timsort "^0.3.0" + +css-modules-loader-core@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/css-modules-loader-core/-/css-modules-loader-core-1.1.0.tgz#5908668294a1becd261ae0a4ce21b0b551f21d16" + integrity sha1-WQhmgpShvs0mGuCkziGwtVHyHRY= + dependencies: + icss-replace-symbols "1.1.0" + postcss "6.0.1" + postcss-modules-extract-imports "1.1.0" + postcss-modules-local-by-default "1.2.0" + postcss-modules-scope "1.1.0" + postcss-modules-values "1.3.0" + +css-parse@1.7.x: + version "1.7.0" + resolved "https://registry.yarnpkg.com/css-parse/-/css-parse-1.7.0.tgz#321f6cf73782a6ff751111390fc05e2c657d8c9b" + integrity sha1-Mh9s9zeCpv91ERE5D8BeLGV9jJs= + +css-select-base-adapter@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz#3b2ff4972cc362ab88561507a95408a1432135d7" + integrity sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w== + +css-select@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/css-select/-/css-select-2.0.2.tgz#ab4386cec9e1f668855564b17c3733b43b2a5ede" + integrity sha512-dSpYaDVoWaELjvZ3mS6IKZM/y2PMPa/XYoEfYNZePL4U/XgyxZNroHEHReDx/d+VgXh9VbCTtFqLkFbmeqeaRQ== + dependencies: + boolbase "^1.0.0" + css-what "^2.1.2" + domutils "^1.7.0" + nth-check "^1.0.2" + +css-selector-tokenizer@^0.7.0: + version "0.7.1" + resolved "https://registry.yarnpkg.com/css-selector-tokenizer/-/css-selector-tokenizer-0.7.1.tgz#a177271a8bca5019172f4f891fc6eed9cbf68d5d" + integrity sha512-xYL0AMZJ4gFzJQsHUKa5jiWWi2vH77WVNg7JYRyewwj6oPh4yb/y6Y9ZCw9dsj/9UauMhtuxR+ogQd//EdEVNA== + dependencies: + cssesc "^0.1.0" + fastparse "^1.1.1" + regexpu-core "^1.0.0" + +css-tree@1.0.0-alpha.28: + version "1.0.0-alpha.28" + resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha.28.tgz#8e8968190d886c9477bc8d61e96f61af3f7ffa7f" + integrity sha512-joNNW1gCp3qFFzj4St6zk+Wh/NBv0vM5YbEreZk0SD4S23S+1xBKb6cLDg2uj4P4k/GUMlIm6cKIDqIG+vdt0w== + dependencies: + mdn-data "~1.1.0" + source-map "^0.5.3" + +css-tree@1.0.0-alpha.29: + version "1.0.0-alpha.29" + resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha.29.tgz#3fa9d4ef3142cbd1c301e7664c1f352bd82f5a39" + integrity sha512-sRNb1XydwkW9IOci6iB2xmy8IGCj6r/fr+JWitvJ2JxQRPzN3T4AGGVWCMlVmVwM1gtgALJRmGIlWv5ppnGGkg== + dependencies: + mdn-data "~1.1.0" + source-map "^0.5.3" + +css-unit-converter@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/css-unit-converter/-/css-unit-converter-1.1.1.tgz#d9b9281adcfd8ced935bdbaba83786897f64e996" + integrity sha1-2bkoGtz9jO2TW9urqDeGiX9k6ZY= + +css-url-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/css-url-regex/-/css-url-regex-1.1.0.tgz#83834230cc9f74c457de59eebd1543feeb83b7ec" + integrity sha1-g4NCMMyfdMRX3lnuvRVD/uuDt+w= + +css-what@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/css-what/-/css-what-2.1.2.tgz#c0876d9d0480927d7d4920dcd72af3595649554d" + integrity sha512-wan8dMWQ0GUeF7DGEPVjhHemVW/vy6xUYmFzRY8RYqgA0JtXC9rJmbScBjqSu6dg9q0lwPQy6ZAmJVr3PPTvqQ== + +cssesc@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-0.1.0.tgz#c814903e45623371a0477b40109aaafbeeaddbb4" + integrity sha1-yBSQPkViM3GgR3tAEJqq++6t27Q= + +cssesc@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-2.0.0.tgz#3b13bd1bb1cb36e1bcb5a4dcd27f54c5dcb35703" + integrity sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg== + +cssnano-preset-default@^4.0.7: + version "4.0.7" + resolved "https://registry.yarnpkg.com/cssnano-preset-default/-/cssnano-preset-default-4.0.7.tgz#51ec662ccfca0f88b396dcd9679cdb931be17f76" + integrity sha512-x0YHHx2h6p0fCl1zY9L9roD7rnlltugGu7zXSKQx6k2rYw0Hi3IqxcoAGF7u9Q5w1nt7vK0ulxV8Lo+EvllGsA== + dependencies: + css-declaration-sorter "^4.0.1" + cssnano-util-raw-cache "^4.0.1" + postcss "^7.0.0" + postcss-calc "^7.0.1" + postcss-colormin "^4.0.3" + postcss-convert-values "^4.0.1" + postcss-discard-comments "^4.0.2" + postcss-discard-duplicates "^4.0.2" + postcss-discard-empty "^4.0.1" + postcss-discard-overridden "^4.0.1" + postcss-merge-longhand "^4.0.11" + postcss-merge-rules "^4.0.3" + postcss-minify-font-values "^4.0.2" + postcss-minify-gradients "^4.0.2" + postcss-minify-params "^4.0.2" + postcss-minify-selectors "^4.0.2" + postcss-normalize-charset "^4.0.1" + postcss-normalize-display-values "^4.0.2" + postcss-normalize-positions "^4.0.2" + postcss-normalize-repeat-style "^4.0.2" + postcss-normalize-string "^4.0.2" + postcss-normalize-timing-functions "^4.0.2" + postcss-normalize-unicode "^4.0.1" + postcss-normalize-url "^4.0.1" + postcss-normalize-whitespace "^4.0.2" + postcss-ordered-values "^4.1.2" + postcss-reduce-initial "^4.0.3" + postcss-reduce-transforms "^4.0.2" + postcss-svgo "^4.0.2" + postcss-unique-selectors "^4.0.1" + +cssnano-util-get-arguments@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/cssnano-util-get-arguments/-/cssnano-util-get-arguments-4.0.0.tgz#ed3a08299f21d75741b20f3b81f194ed49cc150f" + integrity sha1-7ToIKZ8h11dBsg87gfGU7UnMFQ8= + +cssnano-util-get-match@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/cssnano-util-get-match/-/cssnano-util-get-match-4.0.0.tgz#c0e4ca07f5386bb17ec5e52250b4f5961365156d" + integrity sha1-wOTKB/U4a7F+xeUiULT1lhNlFW0= + +cssnano-util-raw-cache@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/cssnano-util-raw-cache/-/cssnano-util-raw-cache-4.0.1.tgz#b26d5fd5f72a11dfe7a7846fb4c67260f96bf282" + integrity sha512-qLuYtWK2b2Dy55I8ZX3ky1Z16WYsx544Q0UWViebptpwn/xDBmog2TLg4f+DBMg1rJ6JDWtn96WHbOKDWt1WQA== + dependencies: + postcss "^7.0.0" + +cssnano-util-same-parent@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/cssnano-util-same-parent/-/cssnano-util-same-parent-4.0.1.tgz#574082fb2859d2db433855835d9a8456ea18bbf3" + integrity sha512-WcKx5OY+KoSIAxBW6UBBRay1U6vkYheCdjyVNDm85zt5K9mHoGOfsOsqIszfAqrQQFIIKgjh2+FDgIj/zsl21Q== + +cssnano@^4.1.8: + version "4.1.9" + resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-4.1.9.tgz#f2ac0f5a8b9396fcb11d25fb3aab1e86303fcbd2" + integrity sha512-osEbYy4kzaNY3nkd92Uf3hy5Jqb5Aztuv+Ze3Z6DjRhyntZDlb3YljiYDdJ05k167U86CZpSR+rbuJYN7N3oBQ== + dependencies: + cosmiconfig "^5.0.0" + cssnano-preset-default "^4.0.7" + is-resolvable "^1.0.0" + postcss "^7.0.0" + +csso@^3.5.0: + version "3.5.1" + resolved "https://registry.yarnpkg.com/csso/-/csso-3.5.1.tgz#7b9eb8be61628973c1b261e169d2f024008e758b" + integrity sha512-vrqULLffYU1Q2tLdJvaCYbONStnfkfimRxXNaGjxMldI0C7JPBC4rB1RyjhfdZ4m1frm8pM9uRPKH3d2knZ8gg== + dependencies: + css-tree "1.0.0-alpha.29" + +cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": + version "0.3.6" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.6.tgz#f85206cee04efa841f3c5982a74ba96ab20d65ad" + integrity sha512-DtUeseGk9/GBW0hl0vVPpU22iHL6YB5BUX7ml1hB+GMpo0NX5G4voX3kdWiMSEguFtcW3Vh3djqNF4aIe6ne0A== + +cssstyle@^1.0.0: + version "1.2.2" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-1.2.2.tgz#427ea4d585b18624f6fdbf9de7a2a1a3ba713077" + integrity sha512-43wY3kl1CVQSvL7wUY1qXkxVGkStjpkDmVjiIKX8R97uhajy8Bybay78uOtqvh7Q5GK75dNPfW0geWjE6qQQow== + dependencies: + cssom "0.3.x" + +currently-unhandled@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" + integrity sha1-mI3zP+qxke95mmE2nddsF635V+o= + dependencies: + array-find-index "^1.0.1" + +cyclist@~0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-0.2.2.tgz#1b33792e11e914a2fd6d6ed6447464444e5fa640" + integrity sha1-GzN5LhHpFKL9bW7WRHRkRE5fpkA= + +cz-conventional-changelog@2.1.0, cz-conventional-changelog@2.1.x: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cz-conventional-changelog/-/cz-conventional-changelog-2.1.0.tgz#2f4bc7390e3244e4df293e6ba351e4c740a7c764" + integrity sha1-L0vHOQ4yROTfKT5ro1Hkx0Cnx2Q= + dependencies: + conventional-commit-types "^2.0.0" + lodash.map "^4.5.1" + longest "^1.0.1" + right-pad "^1.0.1" + word-wrap "^1.0.3" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + integrity sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA= + dependencies: + assert-plus "^1.0.0" + +data-urls@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-1.1.0.tgz#15ee0582baa5e22bb59c77140da8f9c76963bbfe" + integrity sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ== + dependencies: + abab "^2.0.0" + whatwg-mimetype "^2.2.0" + whatwg-url "^7.0.0" + +date-fns@^1.27.2: + version "1.30.1" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.30.1.tgz#2e71bf0b119153dbb4cc4e88d9ea5acfb50dc05c" + integrity sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw== + +dateformat@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" + integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== + +debug@*, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" + integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== + dependencies: + ms "^2.1.1" + +debug@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" + integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g== + dependencies: + ms "2.0.0" + +debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +debug@^3.1.0: + version "3.2.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b" + integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ== + dependencies: + ms "^2.1.1" + +debuglog@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492" + integrity sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI= + +decamelize-keys@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.0.tgz#d171a87933252807eb3cb61dc1c1445d078df2d9" + integrity sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk= + dependencies: + decamelize "^1.1.0" + map-obj "^1.0.0" + +decamelize@^1.1.0, decamelize@^1.1.1, decamelize@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= + +decode-uri-component@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" + integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= + +dedent@0.7.0, dedent@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" + integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw= + +deep-extend@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== + +deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= + +deepmerge@3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-3.2.0.tgz#58ef463a57c08d376547f8869fdc5bcee957f44e" + integrity sha512-6+LuZGU7QCNUnAJyX8cIrlzoEgggTM6B7mm+znKOX4t5ltluT9KLjN6g61ECMS0LTsLW7yDpNoxhix5FZcrIow== + +default-require-extensions@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-2.0.0.tgz#f5f8fbb18a7d6d50b21f641f649ebb522cfe24f7" + integrity sha1-9fj7sYp9bVCyH2QfZJ67Uiz+JPc= + dependencies: + strip-bom "^3.0.0" + +defaults@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d" + integrity sha1-xlYFHpgX2f8I7YgUd/P+QBnz730= + dependencies: + clone "^1.0.2" + +define-properties@^1.1.2, define-properties@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" + integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== + dependencies: + object-keys "^1.0.12" + +define-property@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" + integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= + dependencies: + is-descriptor "^0.1.0" + +define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" + integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= + dependencies: + is-descriptor "^1.0.0" + +define-property@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" + integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== + dependencies: + is-descriptor "^1.0.2" + isobject "^3.0.1" + +del@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/del/-/del-3.0.0.tgz#53ecf699ffcbcb39637691ab13baf160819766e5" + integrity sha1-U+z2mf/LyzljdpGrE7rxYIGXZuU= + dependencies: + globby "^6.1.0" + is-path-cwd "^1.0.0" + is-path-in-cwd "^1.0.0" + p-map "^1.1.1" + pify "^3.0.0" + rimraf "^2.2.8" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + integrity sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o= + +deprecation@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/deprecation/-/deprecation-1.0.1.tgz#2df79b79005752180816b7b6e079cbd80490d711" + integrity sha512-ccVHpE72+tcIKaGMql33x5MAjKQIZrk+3x2GbJ7TeraUCZWHoT+KSZpoC+JQFsUBlSTXUrBaGiF0j6zVTepPLg== + +detect-file@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-1.0.0.tgz#f0d66d03672a825cb1b73bdb3fe62310c8e552b7" + integrity sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc= + +detect-indent@^5.0.0, detect-indent@~5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-5.0.0.tgz#3871cc0a6a002e8c3e5b3cf7f336264675f06b9d" + integrity sha1-OHHMCmoALow+Wzz38zYmRnXwa50= + +detect-libc@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" + integrity sha1-+hN8S9aY7fVc1c0CrFWfkaTEups= + +detect-newline@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" + integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= + +dezalgo@^1.0.0, dezalgo@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/dezalgo/-/dezalgo-1.0.3.tgz#7f742de066fc748bc8db820569dddce49bf0d456" + integrity sha1-f3Qt4Gb8dIvI24IFad3c5Jvw1FY= + dependencies: + asap "^2.0.0" + wrappy "1" + +dicomweb-client@^0.4.2: + version "0.4.2" + resolved "https://registry.yarnpkg.com/dicomweb-client/-/dicomweb-client-0.4.2.tgz#f1f5167d935810423ad2599e5160306bde2458ed" + integrity sha512-Raf2SVjWDrNaVIVt4CmfXWdKVacyEX5ux+pY2Qop0mhluG+OiCkbnESljz4PjglFRnprETEk6C0ELGDru0haew== + +diff-sequences@^24.3.0: + version "24.3.0" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-24.3.0.tgz#0f20e8a1df1abddaf4d9c226680952e64118b975" + integrity sha512-xLqpez+Zj9GKSnPWS0WZw1igGocZ+uua8+y+5dDNTT934N3QuY1sp2LkHzwiaYQGz60hMq0pjAshdeXm5VUOEw== + +dir-glob@^2.0.0, dir-glob@^2.2.1: + version "2.2.2" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-2.2.2.tgz#fa09f0694153c8918b18ba0deafae94769fc50c4" + integrity sha512-f9LBi5QWzIW3I6e//uxZoLBlUt9kcp66qo0sSCxL6YZKc75R1c4MFCoe/LaZiBGmgujvQdxc5Bn3QhfyvK5Hsw== + dependencies: + path-type "^3.0.0" + +doctrine@1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" + integrity sha1-N53Ocw9hZvds76TmcHoVmwLFpvo= + dependencies: + esutils "^2.0.2" + isarray "^1.0.0" + +doctrine@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" + integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== + dependencies: + esutils "^2.0.2" + +dom-serializer@0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.1.0.tgz#073c697546ce0780ce23be4a28e293e40bc30c82" + integrity sha1-BzxpdUbOB4DOI75KKOKT5AvDDII= + dependencies: + domelementtype "~1.1.1" + entities "~1.1.1" + +domelementtype@1, domelementtype@^1.3.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.1.tgz#d048c44b37b0d10a7f2a3d5fee3f4333d790481f" + integrity sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w== + +domelementtype@~1.1.1: + version "1.1.3" + resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.1.3.tgz#bd28773e2642881aec51544924299c5cd822185b" + integrity sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs= + +domexception@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" + integrity sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug== + dependencies: + webidl-conversions "^4.0.2" + +domhandler@^2.3.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-2.4.2.tgz#8805097e933d65e85546f726d60f5eb88b44f803" + integrity sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA== + dependencies: + domelementtype "1" + +domutils@^1.5.1, domutils@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.7.0.tgz#56ea341e834e06e6748af7a1cb25da67ea9f8c2a" + integrity sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg== + dependencies: + dom-serializer "0" + domelementtype "1" + +dot-prop@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-3.0.0.tgz#1b708af094a49c9a0e7dbcad790aba539dac1177" + integrity sha1-G3CK8JSknJoOfbyteQq6U52sEXc= + dependencies: + is-obj "^1.0.0" + +dot-prop@^4.1.0, dot-prop@^4.1.1: + version "4.2.0" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.0.tgz#1f19e0c2e1aa0e32797c49799f2837ac6af69c57" + integrity sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ== + dependencies: + is-obj "^1.0.0" + +dotenv@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-5.0.1.tgz#a5317459bd3d79ab88cff6e44057a6a3fbb1fcef" + integrity sha512-4As8uPrjfwb7VXC+WnLCbXK7y+Ueb2B3zgNCePYfhxS1PYeaO1YTeplffTEcbfLhvFNGLAz90VvJs9yomG7bow== + +duplexer2@~0.1.0: + version "0.1.4" + resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1" + integrity sha1-ixLauHjA1p4+eJEFFmKjL8a93ME= + dependencies: + readable-stream "^2.0.2" + +duplexer3@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" + integrity sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI= + +duplexify@^3.4.2, duplexify@^3.6.0: + version "3.7.1" + resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-3.7.1.tgz#2a4df5317f6ccfd91f86d6fd25d8d8a103b88309" + integrity sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g== + dependencies: + end-of-stream "^1.0.0" + inherits "^2.0.1" + readable-stream "^2.0.0" + stream-shift "^1.0.0" + +ecc-jsbn@~0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" + integrity sha1-OoOpBOVDUyh4dMVkt1SThoSamMk= + dependencies: + jsbn "~0.1.0" + safer-buffer "^2.1.0" + +editor@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/editor/-/editor-1.0.0.tgz#60c7f87bd62bcc6a894fa8ccd6afb7823a24f742" + integrity sha1-YMf4e9YrzGqJT6jM1q+3gjok90I= + +electron-to-chromium@^1.3.103: + version "1.3.108" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.108.tgz#2e79a6fcaa4b3e7c75abf871505bda8e268c910e" + integrity sha512-/QI4hMpAh48a1Sea6PALGv+kuVne9A2EWGd8HrWHMdYhIzGtbhVVHh6heL5fAzGaDnZuPyrlWJRl8WPm4RyiQQ== + +elegant-spinner@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/elegant-spinner/-/elegant-spinner-1.0.1.tgz#db043521c95d7e303fd8f345bedc3349cfb0729e" + integrity sha1-2wQ1IcldfjA/2PNFvtwzSc+wcp4= + +emoji-regex@^7.0.1: + version "7.0.3" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" + integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== + +emojis-list@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" + integrity sha1-TapNnbAPmBmIDHn6RXrlsJof04k= + +encoding@^0.1.11: + version "0.1.12" + resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" + integrity sha1-U4tm8+5izRq1HsMjgp0flIDHS+s= + dependencies: + iconv-lite "~0.4.13" + +end-of-stream@^1.0.0, end-of-stream@^1.1.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.1.tgz#ed29634d19baba463b6ce6b80a37213eab71ec43" + integrity sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q== + dependencies: + once "^1.4.0" + +entities@^1.1.1, entities@~1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56" + integrity sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w== + +env-ci@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/env-ci/-/env-ci-3.2.0.tgz#982f02a0501ca8c43bf0765c5bd3d83ffb28b23a" + integrity sha512-TFjNiDlXrL8/pfHswdvJGEZzJcq3aBPb8Eka83hlGLwuNw9F9BC9S9ETlkfkItLRT9k5JgpGgeP+rL6/3cEbcw== + dependencies: + execa "^1.0.0" + java-properties "^0.2.9" + +err-code@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/err-code/-/err-code-1.1.2.tgz#06e0116d3028f6aef4806849eb0ea6a748ae6960" + integrity sha1-BuARbTAo9q70gGhJ6w6mp0iuaWA= + +errno@~0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618" + integrity sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg== + dependencies: + prr "~1.0.1" + +error-ex@^1.2.0, error-ex@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" + integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + dependencies: + is-arrayish "^0.2.1" + +es-abstract@^1.12.0, es-abstract@^1.5.1: + version "1.13.0" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.13.0.tgz#ac86145fdd5099d8dd49558ccba2eaf9b88e24e9" + integrity sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg== + dependencies: + es-to-primitive "^1.2.0" + function-bind "^1.1.1" + has "^1.0.3" + is-callable "^1.1.4" + is-regex "^1.0.4" + object-keys "^1.0.12" + +es-to-primitive@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.0.tgz#edf72478033456e8dda8ef09e00ad9650707f377" + integrity sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + +es6-promise@^4.0.3: + version "4.2.6" + resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.6.tgz#b685edd8258886365ea62b57d30de28fadcd974f" + integrity sha512-aRVgGdnmW2OiySVPUC9e6m+plolMAJKjZnQlCwNSuK5yQ0JN61DZSO1X1Ufd1foqWRAlig0rhduTCHe7sVtK5Q== + +es6-promisify@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-5.0.0.tgz#5109d62f3e56ea967c4b63505aef08291c8a5203" + integrity sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM= + dependencies: + es6-promise "^4.0.3" + +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.4, escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= + +escodegen@^1.9.1: + version "1.11.1" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.11.1.tgz#c485ff8d6b4cdb89e27f4a856e91f118401ca510" + integrity sha512-JwiqFD9KdGVVpeuRa68yU3zZnBEOcPs0nKW7wZzXky8Z7tffdYUHbe11bPCV5jYlK6DVdKLWLm0f5I/QlL0Kmw== + dependencies: + esprima "^3.1.3" + estraverse "^4.2.0" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.6.1" + +eslint-config-prettier@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-4.3.0.tgz#c55c1fcac8ce4518aeb77906984e134d9eb5a4f0" + integrity sha512-sZwhSTHVVz78+kYD3t5pCWSYEdVSBR0PXnwjDRsUs8ytIrK8PLXw+6FKp8r3Z7rx4ZszdetWlXYKOHoUrrwPlA== + dependencies: + get-stdin "^6.0.0" + +eslint-import-resolver-node@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz#58f15fb839b8d0576ca980413476aab2472db66a" + integrity sha512-sfmTqJfPSizWu4aymbPr4Iidp5yKm8yDkHp+Ir3YiTHiiDfxh69mOUsmiqW6RZ9zRXFaF64GtYmN7e+8GHBv6Q== + dependencies: + debug "^2.6.9" + resolve "^1.5.0" + +eslint-module-utils@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.3.0.tgz#546178dab5e046c8b562bbb50705e2456d7bda49" + integrity sha512-lmDJgeOOjk8hObTysjqH7wyMi+nsHwwvfBykwfhjR1LNdd7C2uFJBvx4OpWYpXOw4df1yE1cDEVd1yLHitk34w== + dependencies: + debug "^2.6.8" + pkg-dir "^2.0.0" + +eslint-plugin-es@^1.3.1: + version "1.4.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-es/-/eslint-plugin-es-1.4.0.tgz#475f65bb20c993fc10e8c8fe77d1d60068072da6" + integrity sha512-XfFmgFdIUDgvaRAlaXUkxrRg5JSADoRC8IkKLc/cISeR3yHVMefFHQZpcyXXEUUPHfy5DwviBcrfqlyqEwlQVw== + dependencies: + eslint-utils "^1.3.0" + regexpp "^2.0.1" + +eslint-plugin-import@^2.14.0: + version "2.15.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.15.0.tgz#d8f3c28b8988ccde5df964706faa7c1e52f0602a" + integrity sha512-LEHqgR+RcnpGqYW7h9WMkPb/tP+ekKxWdQDztfTtZeV43IHF+X8lXU+1HOCcR4oXD24qRgEwNSxIweD5uNKGVg== + dependencies: + contains-path "^0.1.0" + debug "^2.6.9" + doctrine "1.5.0" + eslint-import-resolver-node "^0.3.2" + eslint-module-utils "^2.3.0" + has "^1.0.3" + lodash "^4.17.11" + minimatch "^3.0.4" + read-pkg-up "^2.0.0" + resolve "^1.9.0" + +eslint-plugin-node@^8.0.0: + version "8.0.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-8.0.1.tgz#55ae3560022863d141fa7a11799532340a685964" + integrity sha512-ZjOjbjEi6jd82rIpFSgagv4CHWzG9xsQAVp1ZPlhRnnYxcTgENUVBvhYmkQ7GvT1QFijUSo69RaiOJKhMu6i8w== + dependencies: + eslint-plugin-es "^1.3.1" + eslint-utils "^1.3.1" + ignore "^5.0.2" + minimatch "^3.0.4" + resolve "^1.8.1" + semver "^5.5.0" + +eslint-plugin-prettier@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.0.tgz#8695188f95daa93b0dc54b249347ca3b79c4686d" + integrity sha512-XWX2yVuwVNLOUhQijAkXz+rMPPoCr7WFiAl8ig6I7Xn+pPVhDhzg4DxHpmbeb0iqjO9UronEA3Tb09ChnFVHHA== + dependencies: + prettier-linter-helpers "^1.0.0" + +eslint-plugin-promise@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-4.0.1.tgz#2d074b653f35a23d1ba89d8e976a985117d1c6a2" + integrity sha512-Si16O0+Hqz1gDHsys6RtFRrW7cCTB6P7p3OJmKp3Y3dxpQE2qwOA7d3xnV+0mBmrPoi0RBnxlCKvqu70te6wjg== + +eslint-scope@3.7.1: + version "3.7.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8" + integrity sha1-PWPD7f2gLgbgGkUq2IyqzHzctug= + dependencies: + esrecurse "^4.1.0" + estraverse "^4.1.1" + +eslint-scope@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.0.tgz#50bf3071e9338bcdc43331794a0cb533f0136172" + integrity sha512-1G6UTDi7Jc1ELFwnR58HV4fK9OQK4S6N985f166xqXxpjU6plxFISJa2Ba9KCQuFa8RCnj/lSFJbHo7UFDBnUA== + dependencies: + esrecurse "^4.1.0" + estraverse "^4.1.1" + +eslint-utils@^1.3.0, eslint-utils@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.3.1.tgz#9a851ba89ee7c460346f97cf8939c7298827e512" + integrity sha512-Z7YjnIldX+2XMcjr7ZkgEsOj/bREONV60qYeB/bjMAqqqZ4zxKyWX+BOUkdmRmA9riiIPVvo5x86m5elviOk0Q== + +eslint-visitor-keys@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d" + integrity sha512-qzm/XxIbxm/FHyH341ZrbnMUpe+5Bocte9xkmFMzPMjRaZMcXww+MpBptFvtU+79L362nqiLhekCxCxDPaUMBQ== + +eslint@5.13.0: + version "5.13.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-5.13.0.tgz#ce71cc529c450eed9504530939aa97527861ede9" + integrity sha512-nqD5WQMisciZC5EHZowejLKQjWGuFS5c70fxqSKlnDME+oz9zmE8KTlX+lHSg+/5wsC/kf9Q9eMkC8qS3oM2fg== + dependencies: + "@babel/code-frame" "^7.0.0" + ajv "^6.5.3" + chalk "^2.1.0" + cross-spawn "^6.0.5" + debug "^4.0.1" + doctrine "^2.1.0" + eslint-scope "^4.0.0" + eslint-utils "^1.3.1" + eslint-visitor-keys "^1.0.0" + espree "^5.0.0" + esquery "^1.0.1" + esutils "^2.0.2" + file-entry-cache "^2.0.0" + functional-red-black-tree "^1.0.1" + glob "^7.1.2" + globals "^11.7.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + inquirer "^6.1.0" + js-yaml "^3.12.0" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.3.0" + lodash "^4.17.5" + minimatch "^3.0.4" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + optionator "^0.8.2" + path-is-inside "^1.0.2" + progress "^2.0.0" + regexpp "^2.0.1" + semver "^5.5.1" + strip-ansi "^4.0.0" + strip-json-comments "^2.0.1" + table "^5.0.2" + text-table "^0.2.0" + +espree@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/espree/-/espree-5.0.0.tgz#fc7f984b62b36a0f543b13fb9cd7b9f4a7f5b65c" + integrity sha512-1MpUfwsdS9MMoN7ZXqAr9e9UKdVHDcvrJpyx7mm1WuQlx/ygErEQBzgi5Nh5qBHIoYweprhtMkTCb9GhcAIcsA== + dependencies: + acorn "^6.0.2" + acorn-jsx "^5.0.0" + eslint-visitor-keys "^1.0.0" + +esprima@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" + integrity sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM= + +esprima@^4.0.0, esprima@~4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== + +esquery@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.1.tgz#406c51658b1f5991a5f9b62b1dc25b00e3e5c708" + integrity sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA== + dependencies: + estraverse "^4.0.0" + +esrecurse@^4.1.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.1.tgz#007a3b9fdbc2b3bb87e4879ea19c92fdbd3942cf" + integrity sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ== + dependencies: + estraverse "^4.1.0" + +estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" + integrity sha1-De4/7TH81GlhjOc0IJn8GvoL2xM= + +estree-walker@^0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.5.2.tgz#d3850be7529c9580d815600b53126515e146dd39" + integrity sha512-XpCnW/AE10ws/kDAs37cngSkvgIR8aN3G0MS85m7dUpuK2EREo9VJ00uvw6Dg/hXEpfsE1I1TvJOJr+Z+TL+ig== + +estree-walker@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.6.0.tgz#5d865327c44a618dde5699f763891ae31f257dae" + integrity sha512-peq1RfVAVzr3PU/jL31RaOjUKLoZJpObQWJJ+LgfcxDUifyLZ1RjPQZTl0pzj2uJ45b7A7XpyppXvxdEqzo4rw== + +esutils@^2.0.0, esutils@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" + integrity sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs= + +exec-sh@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.2.tgz#6738de2eb7c8e671d0366aea0b0db8c6f7d7391b" + integrity sha512-9sLAvzhI5nc8TpuQUh4ahMdCrWT00wPWz7j47/emR5+2qEfoZP5zzUXvx+vdx+H6ohhnsYC31iX04QLYJK8zTg== + +execa@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" + integrity sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c= + dependencies: + cross-spawn "^5.0.1" + get-stream "^3.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" + +execa@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8" + integrity sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA== + dependencies: + cross-spawn "^6.0.0" + get-stream "^4.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" + +execall@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/execall/-/execall-1.0.0.tgz#73d0904e395b3cab0658b08d09ec25307f29bb73" + integrity sha1-c9CQTjlbPKsGWLCNCewlMH8pu3M= + dependencies: + clone-regexp "^1.0.0" + +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw= + +expand-brackets@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" + integrity sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s= + dependencies: + is-posix-bracket "^0.1.0" + +expand-brackets@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" + integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= + dependencies: + debug "^2.3.3" + define-property "^0.2.5" + extend-shallow "^2.0.1" + posix-character-classes "^0.1.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +expand-range@^1.8.1: + version "1.8.2" + resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" + integrity sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc= + dependencies: + fill-range "^2.1.0" + +expand-tilde@^2.0.0, expand-tilde@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-2.0.2.tgz#97e801aa052df02454de46b02bf621642cdc8502" + integrity sha1-l+gBqgUt8CRU3kawK/YhZCzchQI= + dependencies: + homedir-polyfill "^1.0.1" + +expect@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/expect/-/expect-24.7.1.tgz#d91defbab4e627470a152feaf35b3c31aa1c7c14" + integrity sha512-mGfvMTPduksV3xoI0xur56pQsg2vJjNf5+a+bXOjqCkiCBbmCayrBbHS/75y9K430cfqyocPr2ZjiNiRx4SRKw== + dependencies: + "@jest/types" "^24.7.0" + ansi-styles "^3.2.0" + jest-get-type "^24.3.0" + jest-matcher-utils "^24.7.0" + jest-message-util "^24.7.1" + jest-regex-util "^24.3.0" + +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" + integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= + dependencies: + is-extendable "^0.1.0" + +extend-shallow@^3.0.0, extend-shallow@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" + integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg= + dependencies: + assign-symbols "^1.0.0" + is-extendable "^1.0.1" + +extend@^3.0.0, extend@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== + +external-editor@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.0.3.tgz#5866db29a97826dbe4bf3afd24070ead9ea43a27" + integrity sha512-bn71H9+qWoOQKyZDo25mOMVpSmXROAsTJVVVYzrrtol3d4y+AsKjf4Iwl2Q+IuT0kFSQ1qo166UuIwqYq7mGnA== + dependencies: + chardet "^0.7.0" + iconv-lite "^0.4.24" + tmp "^0.0.33" + +extglob@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" + integrity sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE= + dependencies: + is-extglob "^1.0.0" + +extglob@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" + integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== + dependencies: + array-unique "^0.3.2" + define-property "^1.0.0" + expand-brackets "^2.1.4" + extend-shallow "^2.0.1" + fragment-cache "^0.2.1" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +extsprintf@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + integrity sha1-lpGEQOMEGnpBT4xS48V06zw+HgU= + +extsprintf@^1.2.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" + integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= + +fast-deep-equal@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" + integrity sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk= + +fast-diff@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" + integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== + +fast-glob@^2.2.6: + version "2.2.6" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-2.2.6.tgz#a5d5b697ec8deda468d85a74035290a025a95295" + integrity sha512-0BvMaZc1k9F+MeWWMe8pL6YltFzZYcJsYU7D4JyDA6PAczaXvxqQQ/z+mDF7/4Mw01DeUc+i3CTKajnkANkV4w== + dependencies: + "@mrmlnc/readdir-enhanced" "^2.2.1" + "@nodelib/fs.stat" "^1.1.2" + glob-parent "^3.1.0" + is-glob "^4.0.0" + merge2 "^1.2.3" + micromatch "^3.1.10" + +fast-json-stable-stringify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" + integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I= + +fast-levenshtein@~2.0.4: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= + +fastparse@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/fastparse/-/fastparse-1.1.2.tgz#91728c5a5942eced8531283c79441ee4122c35a9" + integrity sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ== + +fb-watchman@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" + integrity sha1-VOmr99+i8mzZsWNsWIwa/AXeXVg= + dependencies: + bser "^2.0.0" + +figgy-pudding@^3.0.0, figgy-pudding@^3.1.0, figgy-pudding@^3.4.1, figgy-pudding@^3.5.1: + version "3.5.1" + resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.1.tgz#862470112901c727a0e495a80744bd5baa1d6790" + integrity sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w== + +figures@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e" + integrity sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4= + dependencies: + escape-string-regexp "^1.0.5" + object-assign "^4.1.0" + +figures@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" + integrity sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI= + dependencies: + escape-string-regexp "^1.0.5" + +file-entry-cache@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-2.0.0.tgz#c392990c3e684783d838b8c84a45d8a048458361" + integrity sha1-w5KZDD5oR4PYOLjISkXYoEhFg2E= + dependencies: + flat-cache "^1.2.1" + object-assign "^4.0.1" + +file-entry-cache@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-4.0.0.tgz#633567d15364aefe0b299e1e217735e8f3a9f6e8" + integrity sha512-AVSwsnbV8vH/UVbvgEhf3saVQXORNv0ZzSkvkhQIaia5Tia+JhGTaa/ePUSVoPHQyGayQNmYfkzFi3WZV5zcpA== + dependencies: + flat-cache "^2.0.1" + +filename-regex@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" + integrity sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY= + +fileset@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/fileset/-/fileset-2.0.3.tgz#8e7548a96d3cc2327ee5e674168723a333bba2a0" + integrity sha1-jnVIqW08wjJ+5eZ0FocjozO7oqA= + dependencies: + glob "^7.0.3" + minimatch "^3.0.3" + +fill-range@^2.1.0: + version "2.2.4" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" + integrity sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q== + dependencies: + is-number "^2.1.0" + isobject "^2.0.0" + randomatic "^3.0.0" + repeat-element "^1.1.2" + repeat-string "^1.5.2" + +fill-range@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" + integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc= + dependencies: + extend-shallow "^2.0.1" + is-number "^3.0.0" + repeat-string "^1.6.1" + to-regex-range "^2.1.0" + +find-node-modules@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/find-node-modules/-/find-node-modules-2.0.0.tgz#5db1fb9e668a3d451db3d618cd167cdd59e41b69" + integrity sha512-8MWIBRgJi/WpjjfVXumjPKCtmQ10B+fjx6zmSA+770GMJirLhWIzg8l763rhjl9xaeaHbnxPNRQKq2mgMhr+aw== + dependencies: + findup-sync "^3.0.0" + merge "^1.2.1" + +find-npm-prefix@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/find-npm-prefix/-/find-npm-prefix-1.0.2.tgz#8d8ce2c78b3b4b9e66c8acc6a37c231eb841cfdf" + integrity sha512-KEftzJ+H90x6pcKtdXZEPsQse8/y/UnvzRKrOSQFprnrGaFuJ62fVkP34Iu2IYuMvyauCyoLTNkJZgrrGA2wkA== + +find-parent-dir@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/find-parent-dir/-/find-parent-dir-0.3.0.tgz#33c44b429ab2b2f0646299c5f9f718f376ff8d54" + integrity sha1-M8RLQpqysvBkYpnF+fcY83b/jVQ= + +find-root@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.1.0.tgz#abcfc8ba76f708c42a97b3d685b7e9450bfb9ce4" + integrity sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng== + +find-up@^2.0.0, find-up@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" + integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= + dependencies: + locate-path "^2.0.0" + +find-up@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" + integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== + dependencies: + locate-path "^3.0.0" + +find-versions@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/find-versions/-/find-versions-3.1.0.tgz#10161f29cf3eb4350dec10a29bdde75bff0df32d" + integrity sha512-NCTfNiVzeE/xL+roNDffGuRbrWI6atI18lTJ22vKp7rs2OhYzMK3W1dIdO2TUndH/QMcacM4d1uWwgcZcHK69Q== + dependencies: + array-uniq "^2.1.0" + semver-regex "^2.0.0" + +findup-sync@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-3.0.0.tgz#17b108f9ee512dfb7a5c7f3c8b27ea9e1a9c08d1" + integrity sha512-YbffarhcicEhOrm4CtrwdKBdCuz576RLdhJDsIfvNtxUuhdRet1qZcsMjqbePtAseKdAnDyM/IyXbu7PRPRLYg== + dependencies: + detect-file "^1.0.0" + is-glob "^4.0.0" + micromatch "^3.0.4" + resolve-dir "^1.0.1" + +flat-cache@^1.2.1: + version "1.3.4" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.3.4.tgz#2c2ef77525cc2929007dfffa1dd314aa9c9dee6f" + integrity sha512-VwyB3Lkgacfik2vhqR4uv2rvebqmDvFu4jlN/C1RzWoJEo8I7z4Q404oiqYCkq41mni8EzQnm95emU9seckwtg== + dependencies: + circular-json "^0.3.1" + graceful-fs "^4.1.2" + rimraf "~2.6.2" + write "^0.2.1" + +flat-cache@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0" + integrity sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA== + dependencies: + flatted "^2.0.0" + rimraf "2.6.3" + write "1.0.3" + +flatted@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.0.tgz#55122b6536ea496b4b44893ee2608141d10d9916" + integrity sha512-R+H8IZclI8AAkSBRQJLVOsxwAoHd6WC40b4QTNWIjzAa6BXOBfQcM587MXDTVPeYaopFNWHUFLx7eNmHDSxMWg== + +flush-write-stream@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/flush-write-stream/-/flush-write-stream-1.1.1.tgz#8dd7d873a1babc207d94ead0c2e0e44276ebf2e8" + integrity sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w== + dependencies: + inherits "^2.0.3" + readable-stream "^2.3.6" + +for-in@^0.1.3: + version "0.1.8" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.8.tgz#d8773908e31256109952b1fdb9b3fa867d2775e1" + integrity sha1-2Hc5COMSVhCZUrH9ubP6hn0ndeE= + +for-in@^1.0.1, for-in@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= + +for-own@^0.1.3, for-own@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" + integrity sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4= + dependencies: + for-in "^1.0.1" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= + +form-data@~2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" + integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.6" + mime-types "^2.1.12" + +fragment-cache@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" + integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= + dependencies: + map-cache "^0.2.2" + +from2@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/from2/-/from2-1.3.0.tgz#88413baaa5f9a597cfde9221d86986cd3c061dfd" + integrity sha1-iEE7qqX5pZfP3pIh2GmGzTwGHf0= + dependencies: + inherits "~2.0.1" + readable-stream "~1.1.10" + +from2@^2.1.0, from2@^2.1.1: + version "2.3.0" + resolved "https://registry.yarnpkg.com/from2/-/from2-2.3.0.tgz#8bfb5502bde4a4d36cfdeea007fcca21d7e382af" + integrity sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8= + dependencies: + inherits "^2.0.1" + readable-stream "^2.0.0" + +fs-extra@^7.0.0: + version "7.0.1" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9" + integrity sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw== + dependencies: + graceful-fs "^4.1.2" + jsonfile "^4.0.0" + universalify "^0.1.0" + +fs-minipass@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.5.tgz#06c277218454ec288df77ada54a03b8702aacb9d" + integrity sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ== + dependencies: + minipass "^2.2.1" + +fs-vacuum@^1.2.10, fs-vacuum@~1.2.10: + version "1.2.10" + resolved "https://registry.yarnpkg.com/fs-vacuum/-/fs-vacuum-1.2.10.tgz#b7629bec07a4031a2548fdf99f5ecf1cc8b31e36" + integrity sha1-t2Kb7AekAxolSP35n17PHMizHjY= + dependencies: + graceful-fs "^4.1.2" + path-is-inside "^1.0.1" + rimraf "^2.5.2" + +fs-write-stream-atomic@^1.0.8, fs-write-stream-atomic@~1.0.10: + version "1.0.10" + resolved "https://registry.yarnpkg.com/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz#b47df53493ef911df75731e70a9ded0189db40c9" + integrity sha1-tH31NJPvkR33VzHnCp3tAYnbQMk= + dependencies: + graceful-fs "^4.1.2" + iferr "^0.1.5" + imurmurhash "^0.1.4" + readable-stream "1 || 2" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + +fsevents@^1.2.7: + version "1.2.8" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.8.tgz#57ea5320f762cd4696e5e8e87120eccc8b11cacf" + integrity sha512-tPvHgPGB7m40CZ68xqFGkKuzN+RnpGmSV+hgeKxhRpbxdqKXUFJGC3yonBOLzQBcJyGpdZFDfCsdOC2KFsXzeA== + dependencies: + nan "^2.12.1" + node-pre-gyp "^0.12.0" + +fstream@^1.0.0, fstream@^1.0.2: + version "1.0.12" + resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.12.tgz#4e8ba8ee2d48be4f7d0de505455548eae5932045" + integrity sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg== + dependencies: + graceful-fs "^4.1.2" + inherits "~2.0.0" + mkdirp ">=0.5 0" + rimraf "2" + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== + +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" + integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= + +g-status@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/g-status/-/g-status-2.0.2.tgz#270fd32119e8fc9496f066fe5fe88e0a6bc78b97" + integrity sha512-kQoE9qH+T1AHKgSSD0Hkv98bobE90ILQcXAF4wvGgsr7uFqNvwmh8j+Lq3l0RVt3E3HjSbv2B9biEGcEtpHLCA== + dependencies: + arrify "^1.0.1" + matcher "^1.0.0" + simple-git "^1.85.0" + +gauge@~2.7.3: + version "2.7.4" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" + integrity sha1-LANAXHU4w51+s3sxcCLjJfsBi/c= + dependencies: + aproba "^1.0.3" + console-control-strings "^1.0.0" + has-unicode "^2.0.0" + object-assign "^4.1.0" + signal-exit "^3.0.0" + string-width "^1.0.1" + strip-ansi "^3.0.1" + wide-align "^1.1.0" + +generic-names@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/generic-names/-/generic-names-1.0.3.tgz#2d786a121aee508876796939e8e3bff836c20917" + integrity sha1-LXhqEhruUIh2eWk56OO/+DbCCRc= + dependencies: + loader-utils "^0.2.16" + +genfun@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/genfun/-/genfun-5.0.0.tgz#9dd9710a06900a5c4a5bf57aca5da4e52fe76537" + integrity sha512-KGDOARWVga7+rnB3z9Sd2Letx515owfk0hSxHGuqjANb1M+x2bGZGqHLiozPsYMdM2OubeMni/Hpwmjq6qIUhA== + +gentle-fs@^2.0.0, gentle-fs@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/gentle-fs/-/gentle-fs-2.0.1.tgz#585cfd612bfc5cd52471fdb42537f016a5ce3687" + integrity sha512-cEng5+3fuARewXktTEGbwsktcldA+YsnUEaXZwcK/3pjSE1X9ObnTs+/8rYf8s+RnIcQm2D5x3rwpN7Zom8Bew== + dependencies: + aproba "^1.1.2" + fs-vacuum "^1.2.10" + graceful-fs "^4.1.11" + iferr "^0.1.5" + mkdirp "^0.5.1" + path-is-inside "^1.0.2" + read-cmd-shim "^1.0.1" + slide "^1.1.6" + +get-caller-file@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" + integrity sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w== + +get-own-enumerable-property-symbols@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.0.tgz#b877b49a5c16aefac3655f2ed2ea5b684df8d203" + integrity sha512-CIJYJC4GGF06TakLg8z4GQKvDsx9EMspVxOYih7LerEL/WosUnFIww45CGfxfeKHqlg3twgUrYRT1O3WQqjGCg== + +get-stdin@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" + integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== + +get-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" + integrity sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ= + +get-stream@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" + integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== + dependencies: + pump "^3.0.0" + +get-value@^2.0.3, get-value@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" + integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo= + dependencies: + assert-plus "^1.0.0" + +git-log-parser@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/git-log-parser/-/git-log-parser-1.2.0.tgz#2e6a4c1b13fc00028207ba795a7ac31667b9fd4a" + integrity sha1-LmpMGxP8AAKCB7p5WnrDFme5/Uo= + dependencies: + argv-formatter "~1.0.0" + spawn-error-forwarder "~1.0.0" + split2 "~1.0.0" + stream-combiner2 "~1.1.1" + through2 "~2.0.0" + traverse "~0.6.6" + +glob-base@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" + integrity sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q= + dependencies: + glob-parent "^2.0.0" + is-glob "^2.0.0" + +glob-parent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" + integrity sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg= + dependencies: + is-glob "^2.0.0" + +glob-parent@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" + integrity sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4= + dependencies: + is-glob "^3.1.0" + path-dirname "^1.0.0" + +glob-to-regexp@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" + integrity sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs= + +glob@7.0.x: + version "7.0.6" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.0.6.tgz#211bafaf49e525b8cd93260d14ab136152b3f57a" + integrity sha1-IRuvr0nlJbjNkyYNFKsTYVKz9Xo= + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.2" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@7.1.3, glob@^7.0.0, glob@^7.0.3, glob@^7.1.1, glob@^7.1.2: + version "7.1.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.3.tgz#3960832d3f1574108342dafd3a67b332c0969df1" + integrity sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@^7.1.3: + version "7.1.4" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" + integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +global-dirs@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445" + integrity sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU= + dependencies: + ini "^1.3.4" + +global-modules@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-1.0.0.tgz#6d770f0eb523ac78164d72b5e71a8877265cc3ea" + integrity sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg== + dependencies: + global-prefix "^1.0.1" + is-windows "^1.0.1" + resolve-dir "^1.0.0" + +global-modules@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-2.0.0.tgz#997605ad2345f27f51539bea26574421215c7780" + integrity sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A== + dependencies: + global-prefix "^3.0.0" + +global-prefix@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-1.0.2.tgz#dbf743c6c14992593c655568cb66ed32c0122ebe" + integrity sha1-2/dDxsFJklk8ZVVoy2btMsASLr4= + dependencies: + expand-tilde "^2.0.2" + homedir-polyfill "^1.0.1" + ini "^1.3.4" + is-windows "^1.0.1" + which "^1.2.14" + +global-prefix@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-3.0.0.tgz#fc85f73064df69f50421f47f883fe5b913ba9b97" + integrity sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg== + dependencies: + ini "^1.3.5" + kind-of "^6.0.2" + which "^1.3.1" + +globals@^11.1.0, globals@^11.7.0: + version "11.10.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.10.0.tgz#1e09776dffda5e01816b3bb4077c8b59c24eaa50" + integrity sha512-0GZF1RiPKU97IHUO5TORo9w1PwrH/NBPl+fS7oMLdaTRiYmYbwK4NWoZWrAdd0/abG9R2BU+OiwyQpTpE6pdfQ== + +globby@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c" + integrity sha1-9abXDoOV4hyFj7BInWTfAkJNUGw= + dependencies: + array-union "^1.0.1" + glob "^7.0.3" + object-assign "^4.0.1" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +globby@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-9.0.0.tgz#3800df736dc711266df39b4ce33fe0d481f94c23" + integrity sha512-q0qiO/p1w/yJ0hk8V9x1UXlgsXUxlGd0AHUOXZVXBO6aznDtpx7M8D1kBrCAItoPm+4l8r6ATXV1JpjY2SBQOw== + dependencies: + array-union "^1.0.2" + dir-glob "^2.2.1" + fast-glob "^2.2.6" + glob "^7.1.3" + ignore "^4.0.3" + pify "^4.0.1" + slash "^2.0.0" + +globjoin@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/globjoin/-/globjoin-0.1.4.tgz#2f4494ac8919e3767c5cbb691e9f463324285d43" + integrity sha1-L0SUrIkZ43Z8XLtpHp9GMyQoXUM= + +gonzales-pe@^4.2.3: + version "4.2.3" + resolved "https://registry.yarnpkg.com/gonzales-pe/-/gonzales-pe-4.2.3.tgz#41091703625433285e0aee3aa47829fc1fbeb6f2" + integrity sha512-Kjhohco0esHQnOiqqdJeNz/5fyPkOMD/d6XVjwTAoPGUFh0mCollPUTUTa2OZy4dYNAqlPIQdTiNzJTWdd9Htw== + dependencies: + minimist "1.1.x" + +got@^6.7.1: + version "6.7.1" + resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0" + integrity sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA= + dependencies: + create-error-class "^3.0.0" + duplexer3 "^0.1.4" + get-stream "^3.0.0" + is-redirect "^1.0.0" + is-retry-allowed "^1.0.0" + is-stream "^1.0.0" + lowercase-keys "^1.0.0" + safe-buffer "^5.0.1" + timed-out "^4.0.0" + unzip-response "^2.0.1" + url-parse-lax "^1.0.0" + +graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6: + version "4.1.15" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.15.tgz#ffb703e1066e8a0eeaa4c8b80ba9253eeefbfb00" + integrity sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA== + +growly@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" + integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE= + +handlebars@^4.1.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.1.2.tgz#b6b37c1ced0306b221e094fc7aca3ec23b131b67" + integrity sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw== + dependencies: + neo-async "^2.6.0" + optimist "^0.6.1" + source-map "^0.6.1" + optionalDependencies: + uglify-js "^3.1.4" + +har-schema@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" + integrity sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI= + +har-validator@~5.1.0: + version "5.1.3" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.3.tgz#1ef89ebd3e4996557675eed9893110dc350fa080" + integrity sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g== + dependencies: + ajv "^6.5.5" + har-schema "^2.0.0" + +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + integrity sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE= + dependencies: + ansi-regex "^2.0.0" + +has-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + integrity sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo= + +has-flag@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" + integrity sha1-6CB68cx7MNRGzHC3NLXovhj4jVE= + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= + +has-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44" + integrity sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q= + +has-unicode@^2.0.0, has-unicode@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + integrity sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk= + +has-value@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" + integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= + dependencies: + get-value "^2.0.3" + has-values "^0.1.4" + isobject "^2.0.0" + +has-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" + integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= + dependencies: + get-value "^2.0.6" + has-values "^1.0.0" + isobject "^3.0.0" + +has-values@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" + integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= + +has-values@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" + integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= + dependencies: + is-number "^3.0.0" + kind-of "^4.0.0" + +has@^1.0.0, has@^1.0.1, has@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== + dependencies: + function-bind "^1.1.1" + +hast-util-from-parse5@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/hast-util-from-parse5/-/hast-util-from-parse5-5.0.0.tgz#a505a05766e0f96e389bfb0b1dd809eeefcef47b" + integrity sha512-A7ev5OseS/J15214cvDdcI62uwovJO2PB60Xhnq7kaxvvQRFDEccuqbkrFXU03GPBGopdPqlpQBRqIcDS/Fjbg== + dependencies: + ccount "^1.0.3" + hastscript "^5.0.0" + property-information "^5.0.0" + web-namespaces "^1.1.2" + xtend "^4.0.1" + +hast-util-parse-selector@^2.2.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/hast-util-parse-selector/-/hast-util-parse-selector-2.2.1.tgz#4ddbae1ae12c124e3eb91b581d2556441766f0ab" + integrity sha512-Xyh0v+nHmQvrOqop2Jqd8gOdyQtE8sIP9IQf7mlVDqp924W4w/8Liuguk2L2qei9hARnQSG2m+wAOCxM7npJVw== + +hastscript@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/hastscript/-/hastscript-5.0.0.tgz#fee10382c1bc4ba3f1be311521d368c047d2c43a" + integrity sha512-xJtuJ8D42Xtq5yJrnDg/KAIxl2cXBXKoiIJwmWX9XMf8113qHTGl/Bf7jEsxmENJ4w6q4Tfl8s/Y6mEZo8x8qw== + dependencies: + comma-separated-tokens "^1.0.0" + hast-util-parse-selector "^2.2.0" + property-information "^5.0.1" + space-separated-tokens "^1.0.0" + +hex-color-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e" + integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ== + +homedir-polyfill@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz#743298cef4e5af3e194161fbadcc2151d3a058e8" + integrity sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA== + dependencies: + parse-passwd "^1.0.0" + +hook-std@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/hook-std/-/hook-std-1.2.0.tgz#b37d533ea5f40068fe368cb4d022ee1992588c27" + integrity sha512-yntre2dbOAjgQ5yoRykyON0D9T96BfshR8IuiL/r3celeHD8I/76w4qo8m3z99houR4Z678jakV3uXrQdSvW/w== + +hosted-git-info@^2.1.4, hosted-git-info@^2.6.0, hosted-git-info@^2.7.1: + version "2.7.1" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047" + integrity sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w== + +hsl-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/hsl-regex/-/hsl-regex-1.0.0.tgz#d49330c789ed819e276a4c0d272dffa30b18fe6e" + integrity sha1-1JMwx4ntgZ4nakwNJy3/owsY/m4= + +hsla-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/hsla-regex/-/hsla-regex-1.0.0.tgz#c1ce7a3168c8c6614033a4b5f7877f3b225f9c38" + integrity sha1-wc56MWjIxmFAM6S194d/OyJfnDg= + +html-comment-regex@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/html-comment-regex/-/html-comment-regex-1.1.2.tgz#97d4688aeb5c81886a364faa0cad1dda14d433a7" + integrity sha512-P+M65QY2JQ5Y0G9KKdlDpo0zK+/OHptU5AaBwUfAIDJZk1MYf32Frm84EcOytfJE0t5JvkAnKlmjsXDnWzCJmQ== + +html-encoding-sniffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" + integrity sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw== + dependencies: + whatwg-encoding "^1.0.1" + +html-tags@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-2.0.0.tgz#10b30a386085f43cede353cc8fa7cb0deeea668b" + integrity sha1-ELMKOGCF9Dzt41PMj6fLDe7qZos= + +htmlparser2@^3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.10.0.tgz#5f5e422dcf6119c0d983ed36260ce9ded0bee464" + integrity sha512-J1nEUGv+MkXS0weHNWVKJJ+UrLfePxRWpN3C9bEi9fLxL2+ggW94DQvgYVXsaT30PGwYRIZKNZXuyMhp3Di4bQ== + dependencies: + domelementtype "^1.3.0" + domhandler "^2.3.0" + domutils "^1.5.1" + entities "^1.1.1" + inherits "^2.0.1" + readable-stream "^3.0.6" + +http-cache-semantics@^3.8.1: + version "3.8.1" + resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz#39b0e16add9b605bf0a9ef3d9daaf4843b4cacd2" + integrity sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w== + +http-proxy-agent@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz#e4821beef5b2142a2026bd73926fe537631c5405" + integrity sha512-qwHbBLV7WviBl0rQsOzH6o5lwyOIvwp/BdFnvVxXORldu5TmjFfjzBcWUWS5kWAZhmv+JtiDhSuQCp4sBfbIgg== + dependencies: + agent-base "4" + debug "3.1.0" + +http-signature@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" + integrity sha1-muzZJRFHcvPZW2WmCruPfBj7rOE= + dependencies: + assert-plus "^1.0.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +https-proxy-agent@^2.2.0, https-proxy-agent@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.1.tgz#51552970fa04d723e04c56d04178c3f92592bbc0" + integrity sha512-HPCTS1LW51bcyMYbxUIOO4HEOlQ1/1qRaFWcyxvwaqUS9TY88aoEuHUY33kuAh1YhVVaDQhLZsnPd+XNARWZlQ== + dependencies: + agent-base "^4.1.0" + debug "^3.1.0" + +humanize-ms@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/humanize-ms/-/humanize-ms-1.2.1.tgz#c46e3159a293f6b896da29316d8b6fe8bb79bbed" + integrity sha1-xG4xWaKT9riW2ikxbYtv6Lt5u+0= + dependencies: + ms "^2.0.0" + +husky@^1.2.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/husky/-/husky-1.3.1.tgz#26823e399300388ca2afff11cfa8a86b0033fae0" + integrity sha512-86U6sVVVf4b5NYSZ0yvv88dRgBSSXXmHaiq5pP4KDj5JVzdwKgBjEtUPOm8hcoytezFwbU+7gotXNhpHdystlg== + dependencies: + cosmiconfig "^5.0.7" + execa "^1.0.0" + find-up "^3.0.0" + get-stdin "^6.0.0" + is-ci "^2.0.0" + pkg-dir "^3.0.0" + please-upgrade-node "^3.1.1" + read-pkg "^4.0.1" + run-node "^1.0.0" + slash "^2.0.0" + +iconv-lite@0.4.24, iconv-lite@^0.4.24, iconv-lite@^0.4.4, iconv-lite@~0.4.13: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +icss-replace-symbols@1.1.0, icss-replace-symbols@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz#06ea6f83679a7749e386cfe1fe812ae5db223ded" + integrity sha1-Bupvg2ead0njhs/h/oEq5dsiPe0= + +iferr@^0.1.5: + version "0.1.5" + resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501" + integrity sha1-xg7taebY/bazEEofy8ocGS3FtQE= + +iferr@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/iferr/-/iferr-1.0.2.tgz#e9fde49a9da06dc4a4194c6c9ed6d08305037a6d" + integrity sha512-9AfeLfji44r5TKInjhz3W9DyZI1zR1JAf2hVBMGhddAKPqBsupb89jGfbCTHIGZd6fGZl9WlHdn4AObygyMKwg== + +ignore-walk@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8" + integrity sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ== + dependencies: + minimatch "^3.0.4" + +ignore@^4.0.3, ignore@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" + integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== + +ignore@^5.0.2, ignore@^5.0.4: + version "5.0.4" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.0.4.tgz#33168af4a21e99b00c5d41cbadb6a6cb49903a45" + integrity sha512-WLsTMEhsQuXpCiG173+f3aymI43SXa+fB1rSfbzyP4GkPP+ZFVuO0/3sFUGNBtifisPeDcl/uD/Y2NxZ7xFq4g== + +import-cwd@^2.0.0, import-cwd@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/import-cwd/-/import-cwd-2.1.0.tgz#aa6cf36e722761285cb371ec6519f53e2435b0a9" + integrity sha1-qmzzbnInYShcs3HsZRn1PiQ1sKk= + dependencies: + import-from "^2.1.0" + +import-fresh@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" + integrity sha1-2BNVwVYS04bGH53dOSLUMEgipUY= + dependencies: + caller-path "^2.0.0" + resolve-from "^3.0.0" + +import-fresh@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.0.0.tgz#a3d897f420cab0e671236897f75bc14b4885c390" + integrity sha512-pOnA9tfM3Uwics+SaBLCNyZZZbK+4PTu0OPZtLlMIrv17EdBoC15S9Kn8ckJ9TZTyKb3ywNE5y1yeDxxGA7nTQ== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +import-from@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/import-from/-/import-from-2.1.0.tgz#335db7f2a7affd53aaa471d4b8021dee36b7f3b1" + integrity sha1-M1238qev/VOqpHHUuAId7ja387E= + dependencies: + resolve-from "^3.0.0" + +import-lazy@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" + integrity sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM= + +import-lazy@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-3.1.0.tgz#891279202c8a2280fdbd6674dbd8da1a1dfc67cc" + integrity sha512-8/gvXvX2JMn0F+CDlSC4l6kOmVaLOO3XLkksI7CI3Ud95KDYJuYur2b9P/PUt/i/pDAMd/DulQsNbbbmRRsDIQ== + +import-local@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-2.0.0.tgz#55070be38a5993cf18ef6db7e961f5bee5c5a09d" + integrity sha512-b6s04m3O+s3CGSbqDIyP4R6aAwAeYlVq9+WUWep6iHa8ETRf9yei1U48C5MmfJmV9AiLYYBKPMq/W+/WRpQmCQ== + dependencies: + pkg-dir "^3.0.0" + resolve-cwd "^2.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= + +indent-string@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" + integrity sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok= + +indexes-of@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607" + integrity sha1-8w9xbI4r00bHtn0985FVZqfAVgc= + +inflight@^1.0.4, inflight@~1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.1, inherits@~2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= + +ini@^1.3.4, ini@^1.3.5, ini@~1.3.0: + version "1.3.5" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" + integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw== + +init-package-json@^1.10.3: + version "1.10.3" + resolved "https://registry.yarnpkg.com/init-package-json/-/init-package-json-1.10.3.tgz#45ffe2f610a8ca134f2bd1db5637b235070f6cbe" + integrity sha512-zKSiXKhQveNteyhcj1CoOP8tqp1QuxPIPBl8Bid99DGLFqA1p87M6lNgfjJHSBoWJJlidGOv5rWjyYKEB3g2Jw== + dependencies: + glob "^7.1.1" + npm-package-arg "^4.0.0 || ^5.0.0 || ^6.0.0" + promzard "^0.3.0" + read "~1.0.1" + read-package-json "1 || 2" + semver "2.x || 3.x || 4 || 5" + validate-npm-package-license "^3.0.1" + validate-npm-package-name "^3.0.0" + +inquirer@6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.2.0.tgz#51adcd776f661369dc1e894859c2560a224abdd8" + integrity sha512-QIEQG4YyQ2UYZGDC4srMZ7BjHOmNk1lR2JQj5UknBapklm6WHA+VVH7N+sUdX3A7NeCfGF8o4X1S3Ao7nAcIeg== + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.0" + cli-cursor "^2.1.0" + cli-width "^2.0.0" + external-editor "^3.0.0" + figures "^2.0.0" + lodash "^4.17.10" + mute-stream "0.0.7" + run-async "^2.2.0" + rxjs "^6.1.0" + string-width "^2.1.0" + strip-ansi "^4.0.0" + through "^2.3.6" + +inquirer@^6.1.0: + version "6.2.1" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.2.1.tgz#9943fc4882161bdb0b0c9276769c75b32dbfcd52" + integrity sha512-088kl3DRT2dLU5riVMKKr1DlImd6X7smDhpXUCkJDCKvTEJeRiXh0G132HG9u5a+6Ylw9plFRY7RuTnwohYSpg== + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.0" + cli-cursor "^2.1.0" + cli-width "^2.0.0" + external-editor "^3.0.0" + figures "^2.0.0" + lodash "^4.17.10" + mute-stream "0.0.7" + run-async "^2.2.0" + rxjs "^6.1.0" + string-width "^2.1.0" + strip-ansi "^5.0.0" + through "^2.3.6" + +interpret@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.2.0.tgz#d5061a6224be58e8083985f5014d844359576296" + integrity sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw== + +into-stream@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/into-stream/-/into-stream-4.0.0.tgz#ef10ee2ffb6f78af34c93194bbdc36c35f7d8a9d" + integrity sha512-i29KNyE5r0Y/UQzcQ0IbZO1MYJ53Jn0EcFRZPj5FzWKYH17kDFEOwuA+3jroymOI06SW1dEDnly9A1CAreC5dg== + dependencies: + from2 "^2.1.1" + p-is-promise "^2.0.0" + +invariant@^2.2.2, invariant@^2.2.4: + version "2.2.4" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" + integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== + dependencies: + loose-envify "^1.0.0" + +invert-kv@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" + integrity sha1-EEqOSqym09jNFXqO+L+rLXo//bY= + +invert-kv@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-2.0.0.tgz#7393f5afa59ec9ff5f67a27620d11c226e3eec02" + integrity sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA== + +ip-regex@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9" + integrity sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk= + +ip@^1.1.4, ip@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a" + integrity sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo= + +is-absolute-url@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-2.1.0.tgz#50530dfb84fcc9aa7dbe7852e83a37b93b9f2aa6" + integrity sha1-UFMN+4T8yap9vnhS6Do3uTufKqY= + +is-accessor-descriptor@^0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" + integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= + dependencies: + kind-of "^3.0.2" + +is-accessor-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" + integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== + dependencies: + kind-of "^6.0.0" + +is-alphabetical@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-1.0.2.tgz#1fa6e49213cb7885b75d15862fb3f3d96c884f41" + integrity sha512-V0xN4BYezDHcBSKb1QHUFMlR4as/XEuCZBzMJUU4n7+Cbt33SmUnSol+pnXFvLxSHNq2CemUXNdaXV6Flg7+xg== + +is-alphanumeric@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-alphanumeric/-/is-alphanumeric-1.0.0.tgz#4a9cef71daf4c001c1d81d63d140cf53fd6889f4" + integrity sha1-Spzvcdr0wAHB2B1j0UDPU/1oifQ= + +is-alphanumerical@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-alphanumerical/-/is-alphanumerical-1.0.2.tgz#1138e9ae5040158dc6ff76b820acd6b7a181fd40" + integrity sha512-pyfU/0kHdISIgslFfZN9nfY1Gk3MquQgUm1mJTjdkEPpkAKNWuBTSqFwewOpR7N351VkErCiyV71zX7mlQQqsg== + dependencies: + is-alphabetical "^1.0.0" + is-decimal "^1.0.0" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= + +is-arrayish@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03" + integrity sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ== + +is-buffer@^1.0.2, is-buffer@^1.1.5: + version "1.1.6" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" + integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== + +is-buffer@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.3.tgz#4ecf3fcf749cbd1e472689e109ac66261a25e725" + integrity sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw== + +is-builtin-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" + integrity sha1-VAVy0096wxGfj3bDDLwbHgN6/74= + dependencies: + builtin-modules "^1.0.0" + +is-callable@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" + integrity sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA== + +is-ci@^1.0.10: + version "1.2.1" + resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.2.1.tgz#e3779c8ee17fccf428488f6e281187f2e632841c" + integrity sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg== + dependencies: + ci-info "^1.5.0" + +is-ci@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" + integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== + dependencies: + ci-info "^2.0.0" + +is-cidr@^2.0.6: + version "2.0.7" + resolved "https://registry.yarnpkg.com/is-cidr/-/is-cidr-2.0.7.tgz#0fd4b863c26b2eb2d157ed21060c4f3f8dd356ce" + integrity sha512-YfOm5liUO1RoYfFh+lhiGNYtbLzem7IXzFqvfjXh+zLCEuAiznTBlQ2QcMWxsgYeOFmjzljOxJfmZID4/cRBAQ== + dependencies: + cidr-regex "^2.0.10" + +is-color-stop@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-color-stop/-/is-color-stop-1.1.0.tgz#cfff471aee4dd5c9e158598fbe12967b5cdad345" + integrity sha1-z/9HGu5N1cnhWFmPvhKWe1za00U= + dependencies: + css-color-names "^0.0.4" + hex-color-regex "^1.1.0" + hsl-regex "^1.0.0" + hsla-regex "^1.0.0" + rgb-regex "^1.0.1" + rgba-regex "^1.0.0" + +is-data-descriptor@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" + integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= + dependencies: + kind-of "^3.0.2" + +is-data-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" + integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== + dependencies: + kind-of "^6.0.0" + +is-date-object@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" + integrity sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY= + +is-decimal@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-1.0.2.tgz#894662d6a8709d307f3a276ca4339c8fa5dff0ff" + integrity sha512-TRzl7mOCchnhchN+f3ICUCzYvL9ul7R+TYOsZ8xia++knyZAJfv/uA1FvQXsAnYIl1T3B2X5E/J7Wb1QXiIBXg== + +is-descriptor@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" + integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== + dependencies: + is-accessor-descriptor "^0.1.6" + is-data-descriptor "^0.1.4" + kind-of "^5.0.0" + +is-descriptor@^1.0.0, is-descriptor@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" + integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== + dependencies: + is-accessor-descriptor "^1.0.0" + is-data-descriptor "^1.0.0" + kind-of "^6.0.2" + +is-directory@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" + integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE= + +is-dotfile@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" + integrity sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE= + +is-equal-shallow@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" + integrity sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ= + dependencies: + is-primitive "^2.0.0" + +is-extendable@^0.1.0, is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= + +is-extendable@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" + integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== + dependencies: + is-plain-object "^2.0.4" + +is-extglob@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" + integrity sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA= + +is-extglob@^2.1.0, is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + integrity sha1-754xOG8DGn8NZDr4L95QxFfvAMs= + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= + +is-generator-fn@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" + integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== + +is-glob@^2.0.0, is-glob@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" + integrity sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM= + dependencies: + is-extglob "^1.0.0" + +is-glob@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" + integrity sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo= + dependencies: + is-extglob "^2.1.0" + +is-glob@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.0.tgz#9521c76845cc2610a85203ddf080a958c2ffabc0" + integrity sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A= + dependencies: + is-extglob "^2.1.1" + +is-hexadecimal@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-1.0.2.tgz#b6e710d7d07bb66b98cb8cece5c9b4921deeb835" + integrity sha512-but/G3sapV3MNyqiDBLrOi4x8uCIw0RY3o/Vb5GT0sMFHrVV7731wFSVy41T5FO1og7G0gXLJh0MkgPRouko/A== + +is-installed-globally@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.1.0.tgz#0dfd98f5a9111716dd535dda6492f67bf3d25a80" + integrity sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA= + dependencies: + global-dirs "^0.1.0" + is-path-inside "^1.0.0" + +is-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591" + integrity sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE= + +is-npm@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4" + integrity sha1-8vtjpl5JBbQGyGBydloaTceTufQ= + +is-number@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" + integrity sha1-Afy7s5NGOlSPL0ZszhbezknbkI8= + dependencies: + kind-of "^3.0.2" + +is-number@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" + integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= + dependencies: + kind-of "^3.0.2" + +is-number@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" + integrity sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ== + +is-obj@^1.0.0, is-obj@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" + integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8= + +is-observable@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-observable/-/is-observable-1.1.0.tgz#b3e986c8f44de950867cab5403f5a3465005975e" + integrity sha512-NqCa4Sa2d+u7BWc6CukaObG3Fh+CU9bvixbpcXYhy2VvYS7vVGIdAgnIS5Ks3A/cqk4rebLJ9s8zBstT2aKnIA== + dependencies: + symbol-observable "^1.1.0" + +is-path-cwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" + integrity sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0= + +is-path-in-cwd@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz#5ac48b345ef675339bd6c7a48a912110b241cf52" + integrity sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ== + dependencies: + is-path-inside "^1.0.0" + +is-path-inside@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" + integrity sha1-jvW33lBDej/cprToZe96pVy0gDY= + dependencies: + path-is-inside "^1.0.1" + +is-plain-obj@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" + integrity sha1-caUMhCnfync8kqOQpKA7OfzVHT4= + +is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== + dependencies: + isobject "^3.0.1" + +is-posix-bracket@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" + integrity sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q= + +is-primitive@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" + integrity sha1-IHurkWOEmcB7Kt8kCkGochADRXU= + +is-promise@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" + integrity sha1-eaKp7OfwlugPNtKy87wWwf9L8/o= + +is-redirect@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24" + integrity sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ= + +is-regex@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" + integrity sha1-VRdIm1RwkbCTDglWVM7SXul+lJE= + dependencies: + has "^1.0.1" + +is-regexp@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" + integrity sha1-/S2INUXEa6xaYz57mgnof6LLUGk= + +is-resolvable@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88" + integrity sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg== + +is-retry-allowed@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" + integrity sha1-EaBgVotnM5REAz0BJaYaINVk+zQ= + +is-stream@^1.0.0, is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= + +is-subset@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-subset/-/is-subset-0.1.1.tgz#8a59117d932de1de00f245fcdd39ce43f1e939a6" + integrity sha1-ilkRfZMt4d4A8kX83TnOQ/HpOaY= + +is-supported-regexp-flag@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-supported-regexp-flag/-/is-supported-regexp-flag-1.0.1.tgz#21ee16518d2c1dd3edd3e9a0d57e50207ac364ca" + integrity sha512-3vcJecUUrpgCqc/ca0aWeNu64UGgxcvO60K/Fkr1N6RSvfGCTU60UKN68JDmKokgba0rFFJs12EnzOQa14ubKQ== + +is-svg@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-svg/-/is-svg-3.0.0.tgz#9321dbd29c212e5ca99c4fa9794c714bcafa2f75" + integrity sha512-gi4iHK53LR2ujhLVVj+37Ykh9GLqYHX6JOVXbLAucaG/Cqw9xwdFOjDM2qeifLs1sF1npXXFvDu0r5HNgCMrzQ== + dependencies: + html-comment-regex "^1.1.0" + +is-symbol@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.2.tgz#a055f6ae57192caee329e7a860118b497a950f38" + integrity sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw== + dependencies: + has-symbols "^1.0.0" + +is-text-path@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-text-path/-/is-text-path-1.0.1.tgz#4e1aa0fb51bfbcb3e92688001397202c1775b66e" + integrity sha1-Thqg+1G/vLPpJogAE5cgLBd1tm4= + dependencies: + text-extensions "^1.0.0" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + +is-utf8@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" + integrity sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI= + +is-whitespace-character@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-whitespace-character/-/is-whitespace-character-1.0.2.tgz#ede53b4c6f6fb3874533751ec9280d01928d03ed" + integrity sha512-SzM+T5GKUCtLhlHFKt2SDAX2RFzfS6joT91F2/WSi9LxgFdsnhfPK/UIA+JhRR2xuyLdrCys2PiFDrtn1fU5hQ== + +is-windows@^1.0.0, is-windows@^1.0.1, is-windows@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" + integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== + +is-word-character@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-word-character/-/is-word-character-1.0.2.tgz#46a5dac3f2a1840898b91e576cd40d493f3ae553" + integrity sha512-T3FlsX8rCHAH8e7RE7PfOPZVFQlcV3XRF9eOOBQ1uf70OxO7CjjSOjeImMPCADBdYWcStAbVbYvJ1m2D3tb+EA== + +is-wsl@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" + integrity sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0= + +isarray@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" + integrity sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8= + +isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= + dependencies: + isarray "1.0.0" + +isobject@^3.0.0, isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= + +isomorphic-base64@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/isomorphic-base64/-/isomorphic-base64-1.0.2.tgz#f426aae82569ba8a4ec5ca73ad21a44ab1ee7803" + integrity sha1-9Caq6CVpuopOxcpzrSGkSrHueAM= + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= + +issue-parser@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/issue-parser/-/issue-parser-3.0.1.tgz#ee8dd677fdb5be64541f81fa5e7267baa271a7ee" + integrity sha512-5wdT3EE8Kq38x/hJD8QZCJ9scGoOZ5QnzwXyClkviSWTS+xOCE6hJ0qco3H5n5jCsFqpbofZCcMWqlXJzF72VQ== + dependencies: + lodash.capitalize "^4.2.1" + lodash.escaperegexp "^4.1.2" + lodash.isplainobject "^4.0.6" + lodash.isstring "^4.0.1" + lodash.uniqby "^4.7.0" + +istanbul-api@^2.1.1: + version "2.1.5" + resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-2.1.5.tgz#697b95ec69856c278aacafc0f86ee7392338d5b5" + integrity sha512-meYk1BwDp59Pfse1TvPrkKYgVqAufbdBLEVoqvu/hLLKSaQ054ZTksbNepyc223tMnWdm6AdK2URIJJRqdP87g== + dependencies: + async "^2.6.1" + compare-versions "^3.2.1" + fileset "^2.0.3" + istanbul-lib-coverage "^2.0.4" + istanbul-lib-hook "^2.0.6" + istanbul-lib-instrument "^3.2.0" + istanbul-lib-report "^2.0.7" + istanbul-lib-source-maps "^3.0.5" + istanbul-reports "^2.2.3" + js-yaml "^3.13.0" + make-dir "^2.1.0" + minimatch "^3.0.4" + once "^1.4.0" + +istanbul-lib-coverage@^2.0.2, istanbul-lib-coverage@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#927a354005d99dd43a24607bb8b33fd4e9aca1ad" + integrity sha512-LXTBICkMARVgo579kWDm8SqfB6nvSDKNqIOBEjmJRnL04JvoMHCYGWaMddQnseJYtkEuEvO/sIcOxPLk9gERug== + +istanbul-lib-hook@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-2.0.6.tgz#5baa6067860a38290aef038b389068b225b01b7d" + integrity sha512-829DKONApZ7UCiPXcOYWSgkFXa4+vNYoNOt3F+4uDJLKL1OotAoVwvThoEj1i8jmOj7odbYcR3rnaHu+QroaXg== + dependencies: + append-transform "^1.0.0" + +istanbul-lib-instrument@^3.0.1, istanbul-lib-instrument@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-3.2.0.tgz#c549208da8a793f6622257a2da83e0ea96ae6a93" + integrity sha512-06IM3xShbNW4NgZv5AP4QH0oHqf1/ivFo8eFys0ZjPXHGldHJQWb3riYOKXqmOqfxXBfxu4B+g/iuhOPZH0RJg== + dependencies: + "@babel/generator" "^7.0.0" + "@babel/parser" "^7.0.0" + "@babel/template" "^7.0.0" + "@babel/traverse" "^7.0.0" + "@babel/types" "^7.0.0" + istanbul-lib-coverage "^2.0.4" + semver "^6.0.0" + +istanbul-lib-report@^2.0.7: + version "2.0.7" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-2.0.7.tgz#370d80d433c4dbc7f58de63618f49599c74bd954" + integrity sha512-wLH6beJBFbRBLiTlMOBxmb85cnVM1Vyl36N48e4e/aTKSM3WbOx7zbVIH1SQ537fhhsPbX0/C5JB4qsmyRXXyA== + dependencies: + istanbul-lib-coverage "^2.0.4" + make-dir "^2.1.0" + supports-color "^6.0.0" + +istanbul-lib-source-maps@^3.0.1, istanbul-lib-source-maps@^3.0.5: + version "3.0.5" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-3.0.5.tgz#1d9ee9d94d2633f15611ee7aae28f9cac6d1aeb9" + integrity sha512-eDhZ7r6r1d1zQPVZehLc3D0K14vRba/eBYkz3rw16DLOrrTzve9RmnkcwrrkWVgO1FL3EK5knujVe5S8QHE9xw== + dependencies: + debug "^4.1.1" + istanbul-lib-coverage "^2.0.4" + make-dir "^2.1.0" + rimraf "^2.6.2" + source-map "^0.6.1" + +istanbul-reports@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-2.2.3.tgz#14e0d00ecbfa9387757999cf36599b88e9f2176e" + integrity sha512-T6EbPuc8Cb620LWAYyZ4D8SSn06dY9i1+IgUX2lTH8gbwflMc9Obd33zHTyNX653ybjpamAHS9toKS3E6cGhTw== + dependencies: + handlebars "^4.1.0" + +java-properties@^0.2.9: + version "0.2.10" + resolved "https://registry.yarnpkg.com/java-properties/-/java-properties-0.2.10.tgz#2551560c25fa1ad94d998218178f233ad9b18f60" + integrity sha512-CpKJh9VRNhS+XqZtg1UMejETGEiqwCGDC/uwPEEQwc2nfdbSm73SIE29TplG2gLYuBOOTNDqxzG6A9NtEPLt0w== + +jest-changed-files@^24.7.0: + version "24.7.0" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-24.7.0.tgz#39d723a11b16ed7b373ac83adc76a69464b0c4fa" + integrity sha512-33BgewurnwSfJrW7T5/ZAXGE44o7swLslwh8aUckzq2e17/2Os1V0QU506ZNik3hjs8MgnEMKNkcud442NCDTw== + dependencies: + "@jest/types" "^24.7.0" + execa "^1.0.0" + throat "^4.0.0" + +jest-cli@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-24.7.1.tgz#6093a539073b6f4953145abeeb9709cd621044f1" + integrity sha512-32OBoSCVPzcTslGFl6yVCMzB2SqX3IrWwZCY5mZYkb0D2WsogmU3eV2o8z7+gRQa4o4sZPX/k7GU+II7CxM6WQ== + dependencies: + "@jest/core" "^24.7.1" + "@jest/test-result" "^24.7.1" + "@jest/types" "^24.7.0" + chalk "^2.0.1" + exit "^0.1.2" + import-local "^2.0.0" + is-ci "^2.0.0" + jest-config "^24.7.1" + jest-util "^24.7.1" + jest-validate "^24.7.0" + prompts "^2.0.1" + realpath-native "^1.1.0" + yargs "^12.0.2" + +jest-config@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-24.7.1.tgz#6c1dd4db82a89710a3cf66bdba97827c9a1cf052" + integrity sha512-8FlJNLI+X+MU37j7j8RE4DnJkvAghXmBWdArVzypW6WxfGuxiL/CCkzBg0gHtXhD2rxla3IMOSUAHylSKYJ83g== + dependencies: + "@babel/core" "^7.1.0" + "@jest/test-sequencer" "^24.7.1" + "@jest/types" "^24.7.0" + babel-jest "^24.7.1" + chalk "^2.0.1" + glob "^7.1.1" + jest-environment-jsdom "^24.7.1" + jest-environment-node "^24.7.1" + jest-get-type "^24.3.0" + jest-jasmine2 "^24.7.1" + jest-regex-util "^24.3.0" + jest-resolve "^24.7.1" + jest-util "^24.7.1" + jest-validate "^24.7.0" + micromatch "^3.1.10" + pretty-format "^24.7.0" + realpath-native "^1.1.0" + +jest-diff@^24.7.0: + version "24.7.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-24.7.0.tgz#5d862899be46249754806f66e5729c07fcb3580f" + integrity sha512-ULQZ5B1lWpH70O4xsANC4tf4Ko6RrpwhE3PtG6ERjMg1TiYTC2Wp4IntJVGro6a8HG9luYHhhmF4grF0Pltckg== + dependencies: + chalk "^2.0.1" + diff-sequences "^24.3.0" + jest-get-type "^24.3.0" + pretty-format "^24.7.0" + +jest-docblock@^24.3.0: + version "24.3.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-24.3.0.tgz#b9c32dac70f72e4464520d2ba4aec02ab14db5dd" + integrity sha512-nlANmF9Yq1dufhFlKG9rasfQlrY7wINJbo3q01tu56Jv5eBU5jirylhF2O5ZBnLxzOVBGRDz/9NAwNyBtG4Nyg== + dependencies: + detect-newline "^2.1.0" + +jest-each@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-24.7.1.tgz#fcc7dda4147c28430ad9fb6dc7211cd17ab54e74" + integrity sha512-4fsS8fEfLa3lfnI1Jw6NxjhyRTgfpuOVTeUZZFyVYqeTa4hPhr2YkToUhouuLTrL2eMGOfpbdMyRx0GQ/VooKA== + dependencies: + "@jest/types" "^24.7.0" + chalk "^2.0.1" + jest-get-type "^24.3.0" + jest-util "^24.7.1" + pretty-format "^24.7.0" + +jest-environment-jsdom@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-24.7.1.tgz#a40e004b4458ebeb8a98082df135fd501b9fbbd6" + integrity sha512-Gnhb+RqE2JuQGb3kJsLF8vfqjt3PHKSstq4Xc8ic+ax7QKo4Z0RWGucU3YV+DwKR3T9SYc+3YCUQEJs8r7+Jxg== + dependencies: + "@jest/environment" "^24.7.1" + "@jest/fake-timers" "^24.7.1" + "@jest/types" "^24.7.0" + jest-mock "^24.7.0" + jest-util "^24.7.1" + jsdom "^11.5.1" + +jest-environment-node@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-24.7.1.tgz#fa2c047a31522a48038d26ee4f7c8fd9c1ecfe12" + integrity sha512-GJJQt1p9/C6aj6yNZMvovZuxTUd+BEJprETdvTKSb4kHcw4mFj8777USQV0FJoJ4V3djpOwA5eWyPwfq//PFBA== + dependencies: + "@jest/environment" "^24.7.1" + "@jest/fake-timers" "^24.7.1" + "@jest/types" "^24.7.0" + jest-mock "^24.7.0" + jest-util "^24.7.1" + +jest-get-type@^22.1.0: + version "22.4.3" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-22.4.3.tgz#e3a8504d8479342dd4420236b322869f18900ce4" + integrity sha512-/jsz0Y+V29w1chdXVygEKSz2nBoHoYqNShPe+QgxSNjAuP1i8+k4LbQNrfoliKej0P45sivkSCh7yiD6ubHS3w== + +jest-get-type@^24.3.0: + version "24.3.0" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-24.3.0.tgz#582cfd1a4f91b5cdad1d43d2932f816d543c65da" + integrity sha512-HYF6pry72YUlVcvUx3sEpMRwXEWGEPlJ0bSPVnB3b3n++j4phUEoSPcS6GC0pPJ9rpyPSe4cb5muFo6D39cXow== + +jest-haste-map@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-24.7.1.tgz#772e215cd84080d4bbcb759cfb668ad649a21471" + integrity sha512-g0tWkzjpHD2qa03mTKhlydbmmYiA2KdcJe762SbfFo/7NIMgBWAA0XqQlApPwkWOF7Cxoi/gUqL0i6DIoLpMBw== + dependencies: + "@jest/types" "^24.7.0" + anymatch "^2.0.0" + fb-watchman "^2.0.0" + graceful-fs "^4.1.15" + invariant "^2.2.4" + jest-serializer "^24.4.0" + jest-util "^24.7.1" + jest-worker "^24.6.0" + micromatch "^3.1.10" + sane "^4.0.3" + walker "^1.0.7" + optionalDependencies: + fsevents "^1.2.7" + +jest-jasmine2@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-24.7.1.tgz#01398686dabe46553716303993f3be62e5d9d818" + integrity sha512-Y/9AOJDV1XS44wNwCaThq4Pw3gBPiOv/s6NcbOAkVRRUEPu+36L2xoPsqQXsDrxoBerqeyslpn2TpCI8Zr6J2w== + dependencies: + "@babel/traverse" "^7.1.0" + "@jest/environment" "^24.7.1" + "@jest/test-result" "^24.7.1" + "@jest/types" "^24.7.0" + chalk "^2.0.1" + co "^4.6.0" + expect "^24.7.1" + is-generator-fn "^2.0.0" + jest-each "^24.7.1" + jest-matcher-utils "^24.7.0" + jest-message-util "^24.7.1" + jest-runtime "^24.7.1" + jest-snapshot "^24.7.1" + jest-util "^24.7.1" + pretty-format "^24.7.0" + throat "^4.0.0" + +jest-junit@^6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-6.3.0.tgz#99e64ebc54eddcb21238f0cc49f5820c89a8c785" + integrity sha512-3PH9UkpaomX6CUzqjlnk0m4yBCW/eroxV6v61OM6LkCQFO848P3YUhfIzu8ypZSBKB3vvCbB4WaLTKT0BrIf8A== + dependencies: + jest-validate "^24.0.0" + mkdirp "^0.5.1" + strip-ansi "^4.0.0" + xml "^1.0.1" + +jest-leak-detector@^24.7.0: + version "24.7.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-24.7.0.tgz#323ff93ed69be12e898f5b040952f08a94288ff9" + integrity sha512-zV0qHKZGXtmPVVzT99CVEcHE9XDf+8LwiE0Ob7jjezERiGVljmqKFWpV2IkG+rkFIEUHFEkMiICu7wnoPM/RoQ== + dependencies: + pretty-format "^24.7.0" + +jest-matcher-utils@^24.7.0: + version "24.7.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-24.7.0.tgz#bbee1ff37bc8b2e4afcaabc91617c1526af4bcd4" + integrity sha512-158ieSgk3LNXeUhbVJYRXyTPSCqNgVXOp/GT7O94mYd3pk/8+odKTyR1JLtNOQSPzNi8NFYVONtvSWA/e1RDXg== + dependencies: + chalk "^2.0.1" + jest-diff "^24.7.0" + jest-get-type "^24.3.0" + pretty-format "^24.7.0" + +jest-message-util@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-24.7.1.tgz#f1dc3a6c195647096a99d0f1dadbc447ae547018" + integrity sha512-dk0gqVtyqezCHbcbk60CdIf+8UHgD+lmRHifeH3JRcnAqh4nEyPytSc9/L1+cQyxC+ceaeP696N4ATe7L+omcg== + dependencies: + "@babel/code-frame" "^7.0.0" + "@jest/test-result" "^24.7.1" + "@jest/types" "^24.7.0" + "@types/stack-utils" "^1.0.1" + chalk "^2.0.1" + micromatch "^3.1.10" + slash "^2.0.0" + stack-utils "^1.0.1" + +jest-mock@^24.7.0: + version "24.7.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-24.7.0.tgz#e49ce7262c12d7f5897b0d8af77f6db8e538023b" + integrity sha512-6taW4B4WUcEiT2V9BbOmwyGuwuAFT2G8yghF7nyNW1/2gq5+6aTqSPcS9lS6ArvEkX55vbPAS/Jarx5LSm4Fng== + dependencies: + "@jest/types" "^24.7.0" + +jest-pnp-resolver@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.1.tgz#ecdae604c077a7fbc70defb6d517c3c1c898923a" + integrity sha512-pgFw2tm54fzgYvc/OHrnysABEObZCUNFnhjoRjaVOCN8NYc032/gVjPaHD4Aq6ApkSieWtfKAFQtmDKAmhupnQ== + +jest-regex-util@^24.3.0: + version "24.3.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-24.3.0.tgz#d5a65f60be1ae3e310d5214a0307581995227b36" + integrity sha512-tXQR1NEOyGlfylyEjg1ImtScwMq8Oh3iJbGTjN7p0J23EuVX1MA8rwU69K4sLbCmwzgCUbVkm0FkSF9TdzOhtg== + +jest-resolve-dependencies@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-24.7.1.tgz#cf93bbef26999488a96a2b2012f9fe7375aa378f" + integrity sha512-2Eyh5LJB2liNzfk4eo7bD1ZyBbqEJIyyrFtZG555cSWW9xVHxII2NuOkSl1yUYTAYCAmM2f2aIT5A7HzNmubyg== + dependencies: + "@jest/types" "^24.7.0" + jest-regex-util "^24.3.0" + jest-snapshot "^24.7.1" + +jest-resolve@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-24.7.1.tgz#e4150198299298380a75a9fd55043fa3b9b17fde" + integrity sha512-Bgrc+/UUZpGJ4323sQyj85hV9d+ANyPNu6XfRDUcyFNX1QrZpSoM0kE4Mb2vZMAYTJZsBFzYe8X1UaOkOELSbw== + dependencies: + "@jest/types" "^24.7.0" + browser-resolve "^1.11.3" + chalk "^2.0.1" + jest-pnp-resolver "^1.2.1" + realpath-native "^1.1.0" + +jest-runner@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-24.7.1.tgz#41c8a02a06aa23ea82d8bffd69d7fa98d32f85bf" + integrity sha512-aNFc9liWU/xt+G9pobdKZ4qTeG/wnJrJna3VqunziDNsWT3EBpmxXZRBMKCsNMyfy+A/XHiV+tsMLufdsNdgCw== + dependencies: + "@jest/console" "^24.7.1" + "@jest/environment" "^24.7.1" + "@jest/test-result" "^24.7.1" + "@jest/types" "^24.7.0" + chalk "^2.4.2" + exit "^0.1.2" + graceful-fs "^4.1.15" + jest-config "^24.7.1" + jest-docblock "^24.3.0" + jest-haste-map "^24.7.1" + jest-jasmine2 "^24.7.1" + jest-leak-detector "^24.7.0" + jest-message-util "^24.7.1" + jest-resolve "^24.7.1" + jest-runtime "^24.7.1" + jest-util "^24.7.1" + jest-worker "^24.6.0" + source-map-support "^0.5.6" + throat "^4.0.0" + +jest-runtime@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-24.7.1.tgz#2ffd70b22dd03a5988c0ab9465c85cdf5d25c597" + integrity sha512-0VAbyBy7tll3R+82IPJpf6QZkokzXPIS71aDeqh+WzPRXRCNz6StQ45otFariPdJ4FmXpDiArdhZrzNAC3sj6A== + dependencies: + "@jest/console" "^24.7.1" + "@jest/environment" "^24.7.1" + "@jest/source-map" "^24.3.0" + "@jest/transform" "^24.7.1" + "@jest/types" "^24.7.0" + "@types/yargs" "^12.0.2" + chalk "^2.0.1" + exit "^0.1.2" + glob "^7.1.3" + graceful-fs "^4.1.15" + jest-config "^24.7.1" + jest-haste-map "^24.7.1" + jest-message-util "^24.7.1" + jest-mock "^24.7.0" + jest-regex-util "^24.3.0" + jest-resolve "^24.7.1" + jest-snapshot "^24.7.1" + jest-util "^24.7.1" + jest-validate "^24.7.0" + realpath-native "^1.1.0" + slash "^2.0.0" + strip-bom "^3.0.0" + yargs "^12.0.2" + +jest-serializer@^24.4.0: + version "24.4.0" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-24.4.0.tgz#f70c5918c8ea9235ccb1276d232e459080588db3" + integrity sha512-k//0DtglVstc1fv+GY/VHDIjrtNjdYvYjMlbLUed4kxrE92sIUewOi5Hj3vrpB8CXfkJntRPDRjCrCvUhBdL8Q== + +jest-snapshot@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-24.7.1.tgz#bd5a35f74aedff070975e9e9c90024f082099568" + integrity sha512-8Xk5O4p+JsZZn4RCNUS3pxA+ORKpEKepE+a5ejIKrId9CwrVN0NY+vkqEkXqlstA5NMBkNahXkR/4qEBy0t5yA== + dependencies: + "@babel/types" "^7.0.0" + "@jest/types" "^24.7.0" + chalk "^2.0.1" + expect "^24.7.1" + jest-diff "^24.7.0" + jest-matcher-utils "^24.7.0" + jest-message-util "^24.7.1" + jest-resolve "^24.7.1" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + pretty-format "^24.7.0" + semver "^5.5.0" + +jest-util@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-24.7.1.tgz#b4043df57b32a23be27c75a2763d8faf242038ff" + integrity sha512-/KilOue2n2rZ5AnEBYoxOXkeTu6vi7cjgQ8MXEkih0oeAXT6JkS3fr7/j8+engCjciOU1Nq5loMSKe0A1oeX0A== + dependencies: + "@jest/console" "^24.7.1" + "@jest/fake-timers" "^24.7.1" + "@jest/source-map" "^24.3.0" + "@jest/test-result" "^24.7.1" + "@jest/types" "^24.7.0" + callsites "^3.0.0" + chalk "^2.0.1" + graceful-fs "^4.1.15" + is-ci "^2.0.0" + mkdirp "^0.5.1" + slash "^2.0.0" + source-map "^0.6.0" + +jest-validate@^23.5.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-23.6.0.tgz#36761f99d1ed33fcd425b4e4c5595d62b6597474" + integrity sha512-OFKapYxe72yz7agrDAWi8v2WL8GIfVqcbKRCLbRG9PAxtzF9b1SEDdTpytNDN12z2fJynoBwpMpvj2R39plI2A== + dependencies: + chalk "^2.0.1" + jest-get-type "^22.1.0" + leven "^2.1.0" + pretty-format "^23.6.0" + +jest-validate@^24.0.0, jest-validate@^24.7.0: + version "24.7.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-24.7.0.tgz#70007076f338528ee1b1c8a8258b1b0bb982508d" + integrity sha512-cgai/gts9B2chz1rqVdmLhzYxQbgQurh1PEQSvSgPZ8KGa1AqXsqC45W5wKEwzxKrWqypuQrQxnF4+G9VejJJA== + dependencies: + "@jest/types" "^24.7.0" + camelcase "^5.0.0" + chalk "^2.0.1" + jest-get-type "^24.3.0" + leven "^2.1.0" + pretty-format "^24.7.0" + +jest-watcher@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-24.7.1.tgz#e161363d7f3f4e1ef3d389b7b3a0aad247b673f5" + integrity sha512-Wd6TepHLRHVKLNPacEsBwlp9raeBIO+01xrN24Dek4ggTS8HHnOzYSFnvp+6MtkkJ3KfMzy220KTi95e2rRkrw== + dependencies: + "@jest/test-result" "^24.7.1" + "@jest/types" "^24.7.0" + "@types/yargs" "^12.0.9" + ansi-escapes "^3.0.0" + chalk "^2.0.1" + jest-util "^24.7.1" + string-length "^2.0.0" + +jest-worker@^24.6.0: + version "24.6.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-24.6.0.tgz#7f81ceae34b7cde0c9827a6980c35b7cdc0161b3" + integrity sha512-jDwgW5W9qGNvpI1tNnvajh0a5IE/PuGLFmHk6aR/BZFz8tSgGw17GsDPXAJ6p91IvYDjOw8GpFbvvZGAK+DPQQ== + dependencies: + merge-stream "^1.0.1" + supports-color "^6.1.0" + +jest@^24.7.1: + version "24.7.1" + resolved "https://registry.yarnpkg.com/jest/-/jest-24.7.1.tgz#0d94331cf510c75893ee32f87d7321d5bf8f2501" + integrity sha512-AbvRar5r++izmqo5gdbAjTeA6uNRGoNRuj5vHB0OnDXo2DXWZJVuaObiGgtlvhKb+cWy2oYbQSfxv7Q7GjnAtA== + dependencies: + import-local "^2.0.0" + jest-cli "^24.7.1" + +js-levenshtein@^1.1.3: + version "1.1.6" + resolved "https://registry.yarnpkg.com/js-levenshtein/-/js-levenshtein-1.1.6.tgz#c6cee58eb3550372df8deb85fad5ce66ce01d59d" + integrity sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g== + +"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-yaml@^3.12.0, js-yaml@^3.9.0: + version "3.12.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.1.tgz#295c8632a18a23e054cf5c9d3cecafe678167600" + integrity sha512-um46hB9wNOKlwkHgiuyEVAybXBjwFUV0Z/RaHJblRd9DXltue9FTYvzCr9ErQrK9Adz5MU4gHWVaNUfdmrC8qA== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +js-yaml@^3.13.0: + version "3.13.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" + integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= + +jsdom@^11.5.1: + version "11.12.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-11.12.0.tgz#1a80d40ddd378a1de59656e9e6dc5a3ba8657bc8" + integrity sha512-y8Px43oyiBM13Zc1z780FrfNLJCXTL40EWlty/LXUtcjykRBNgLlCjWXpfSPBl2iv+N7koQN+dvqszHZgT/Fjw== + dependencies: + abab "^2.0.0" + acorn "^5.5.3" + acorn-globals "^4.1.0" + array-equal "^1.0.0" + cssom ">= 0.3.2 < 0.4.0" + cssstyle "^1.0.0" + data-urls "^1.0.0" + domexception "^1.0.1" + escodegen "^1.9.1" + html-encoding-sniffer "^1.0.2" + left-pad "^1.3.0" + nwsapi "^2.0.7" + parse5 "4.0.0" + pn "^1.1.0" + request "^2.87.0" + request-promise-native "^1.0.5" + sax "^1.2.4" + symbol-tree "^3.2.2" + tough-cookie "^2.3.4" + w3c-hr-time "^1.0.1" + webidl-conversions "^4.0.2" + whatwg-encoding "^1.0.3" + whatwg-mimetype "^2.1.0" + whatwg-url "^6.4.1" + ws "^5.2.0" + xml-name-validator "^3.0.0" + +jsesc@^2.5.1: + version "2.5.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" + integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== + +jsesc@~0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" + integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0= + +json-parse-better-errors@^1.0.0, json-parse-better-errors@^1.0.1, json-parse-better-errors@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" + integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + integrity sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= + +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= + +json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= + +json5@^0.5.0: + version "0.5.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" + integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE= + +json5@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.0.tgz#e7a0c62c48285c628d20a10b85c89bb807c32850" + integrity sha512-8Mh9h6xViijj36g7Dxi+Y4S6hNGV96vcJZr/SrlHh1LR/pEn/8j/+qIBbs44YKl69Lrfctp4QD+AdWLTMqEZAQ== + dependencies: + minimist "^1.2.0" + +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss= + optionalDependencies: + graceful-fs "^4.1.6" + +jsonparse@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" + integrity sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA= + +jsprim@^1.2.2: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" + integrity sha1-MT5mvB5cwG5Di8G3SZwuXFastqI= + dependencies: + assert-plus "1.0.0" + extsprintf "1.3.0" + json-schema "0.2.3" + verror "1.10.0" + +kind-of@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-2.0.1.tgz#018ec7a4ce7e3a86cb9141be519d24c8faa981b5" + integrity sha1-AY7HpM5+OobLkUG+UZ0kyPqpgbU= + dependencies: + is-buffer "^1.0.2" + +kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" + integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= + dependencies: + is-buffer "^1.1.5" + +kind-of@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" + integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= + dependencies: + is-buffer "^1.1.5" + +kind-of@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" + integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== + +kind-of@^6.0.0, kind-of@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" + integrity sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA== + +kleur@^3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" + integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== + +known-css-properties@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/known-css-properties/-/known-css-properties-0.11.0.tgz#0da784f115ea77c76b81536d7052e90ee6c86a8a" + integrity sha512-bEZlJzXo5V/ApNNa5z375mJC6Nrz4vG43UgcSCrg2OHC+yuB6j0iDSrY7RQ/+PRofFB03wNIIt9iXIVLr4wc7w== + +latest-version@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-3.1.0.tgz#a205383fea322b33b5ae3b18abee0dc2f356ee15" + integrity sha1-ogU4P+oyKzO1rjsYq+4NwvNW7hU= + dependencies: + package-json "^4.0.0" + +lazy-cache@^0.2.3: + version "0.2.7" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-0.2.7.tgz#7feddf2dcb6edb77d11ef1d117ab5ffdf0ab1b65" + integrity sha1-f+3fLctu23fRHvHRF6tf/fCrG2U= + +lazy-cache@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" + integrity sha1-odePw6UEdMuAhF07O24dpJpEbo4= + +lazy-property@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lazy-property/-/lazy-property-1.0.0.tgz#84ddc4b370679ba8bd4cdcfa4c06b43d57111147" + integrity sha1-hN3Es3Bnm6i9TNz6TAa0PVcREUc= + +lcid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" + integrity sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU= + dependencies: + invert-kv "^1.0.0" + +lcid@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-2.0.0.tgz#6ef5d2df60e52f82eb228a4c373e8d1f397253cf" + integrity sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA== + dependencies: + invert-kv "^2.0.0" + +left-pad@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e" + integrity sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA== + +leven@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" + integrity sha1-wuep93IJTe6dNCAq6KzORoeHVYA= + +levn@^0.3.0, levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +libcipm@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/libcipm/-/libcipm-2.0.2.tgz#4f38c2b37acf2ec156936cef1cbf74636568fc7b" + integrity sha512-9uZ6/LAflVEijksTRq/RX0e+pGA4mr8tND9Cmk2JMg7j2fFUBrs8PpFX2DOAJR/XoxPzz+5h8bkWmtIYLunKAg== + dependencies: + bin-links "^1.1.2" + bluebird "^3.5.1" + find-npm-prefix "^1.0.2" + graceful-fs "^4.1.11" + lock-verify "^2.0.2" + mkdirp "^0.5.1" + npm-lifecycle "^2.0.3" + npm-logical-tree "^1.2.1" + npm-package-arg "^6.1.0" + pacote "^8.1.6" + protoduck "^5.0.0" + read-package-json "^2.0.13" + rimraf "^2.6.2" + worker-farm "^1.6.0" + +libnpmhook@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/libnpmhook/-/libnpmhook-4.0.1.tgz#63641654de772cbeb96a88527a7fd5456ec3c2d7" + integrity sha512-3qqpfqvBD1712WA6iGe0stkG40WwAeoWcujA6BlC0Be1JArQbqwabnEnZ0CRcD05Tf1fPYJYdCbSfcfedEJCOg== + dependencies: + figgy-pudding "^3.1.0" + npm-registry-fetch "^3.0.0" + +libnpx@^10.2.0: + version "10.2.0" + resolved "https://registry.yarnpkg.com/libnpx/-/libnpx-10.2.0.tgz#1bf4a1c9f36081f64935eb014041da10855e3102" + integrity sha512-X28coei8/XRCt15cYStbLBph+KGhFra4VQhRBPuH/HHMkC5dxM8v24RVgUsvODKCrUZ0eTgiTqJp6zbl0sskQQ== + dependencies: + dotenv "^5.0.1" + npm-package-arg "^6.0.0" + rimraf "^2.6.2" + safe-buffer "^5.1.0" + update-notifier "^2.3.0" + which "^1.3.0" + y18n "^4.0.0" + yargs "^11.0.0" + +lint-staged@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-8.1.0.tgz#dbc3ae2565366d8f20efb9f9799d076da64863f2" + integrity sha512-yfSkyJy7EuVsaoxtUSEhrD81spdJOe/gMTGea3XaV7HyoRhTb9Gdlp6/JppRZERvKSEYXP9bjcmq6CA5oL2lYQ== + dependencies: + "@iamstarkov/listr-update-renderer" "0.4.1" + chalk "^2.3.1" + commander "^2.14.1" + cosmiconfig "5.0.6" + debug "^3.1.0" + dedent "^0.7.0" + del "^3.0.0" + execa "^1.0.0" + find-parent-dir "^0.3.0" + g-status "^2.0.2" + is-glob "^4.0.0" + is-windows "^1.0.2" + jest-validate "^23.5.0" + listr "^0.14.2" + lodash "^4.17.5" + log-symbols "^2.2.0" + micromatch "^3.1.8" + npm-which "^3.0.1" + p-map "^1.1.1" + path-is-inside "^1.0.2" + pify "^3.0.0" + please-upgrade-node "^3.0.2" + staged-git-files "1.1.2" + string-argv "^0.0.2" + stringify-object "^3.2.2" + +listr-silent-renderer@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/listr-silent-renderer/-/listr-silent-renderer-1.1.1.tgz#924b5a3757153770bf1a8e3fbf74b8bbf3f9242e" + integrity sha1-kktaN1cVN3C/Go4/v3S4u/P5JC4= + +listr-update-renderer@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/listr-update-renderer/-/listr-update-renderer-0.5.0.tgz#4ea8368548a7b8aecb7e06d8c95cb45ae2ede6a2" + integrity sha512-tKRsZpKz8GSGqoI/+caPmfrypiaq+OQCbd+CovEC24uk1h952lVj5sC7SqyFUm+OaJ5HN/a1YLt5cit2FMNsFA== + dependencies: + chalk "^1.1.3" + cli-truncate "^0.2.1" + elegant-spinner "^1.0.1" + figures "^1.7.0" + indent-string "^3.0.0" + log-symbols "^1.0.2" + log-update "^2.3.0" + strip-ansi "^3.0.1" + +listr-verbose-renderer@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/listr-verbose-renderer/-/listr-verbose-renderer-0.5.0.tgz#f1132167535ea4c1261102b9f28dac7cba1e03db" + integrity sha512-04PDPqSlsqIOaaaGZ+41vq5FejI9auqTInicFRndCBgE3bXG8D6W1I+mWhk+1nqbHmyhla/6BUrd5OSiHwKRXw== + dependencies: + chalk "^2.4.1" + cli-cursor "^2.1.0" + date-fns "^1.27.2" + figures "^2.0.0" + +listr@^0.14.2: + version "0.14.3" + resolved "https://registry.yarnpkg.com/listr/-/listr-0.14.3.tgz#2fea909604e434be464c50bddba0d496928fa586" + integrity sha512-RmAl7su35BFd/xoMamRjpIE4j3v+L28o8CT5YhAXQJm1fD+1l9ngXY8JAQRJ+tFK2i5njvi0iRUKV09vPwA0iA== + dependencies: + "@samverschueren/stream-to-observable" "^0.3.0" + is-observable "^1.1.0" + is-promise "^2.1.0" + is-stream "^1.1.0" + listr-silent-renderer "^1.1.1" + listr-update-renderer "^0.5.0" + listr-verbose-renderer "^0.5.0" + p-map "^2.0.0" + rxjs "^6.3.3" + +load-json-file@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" + integrity sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg= + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + strip-bom "^3.0.0" + +load-json-file@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b" + integrity sha1-L19Fq5HjMhYjT9U62rZo607AmTs= + dependencies: + graceful-fs "^4.1.2" + parse-json "^4.0.0" + pify "^3.0.0" + strip-bom "^3.0.0" + +loader-utils@^0.2.16: + version "0.2.17" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-0.2.17.tgz#f86e6374d43205a6e6c60e9196f17c0299bfb348" + integrity sha1-+G5jdNQyBabmxg6RlvF8Apm/s0g= + dependencies: + big.js "^3.1.3" + emojis-list "^2.0.0" + json5 "^0.5.0" + object-assign "^4.0.1" + +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + +locate-path@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" + integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== + dependencies: + p-locate "^3.0.0" + path-exists "^3.0.0" + +lock-verify@^2.0.2: + version "2.1.0" + resolved "https://registry.yarnpkg.com/lock-verify/-/lock-verify-2.1.0.tgz#fff4c918b8db9497af0c5fa7f6d71555de3ceb47" + integrity sha512-vcLpxnGvrqisKvLQ2C2v0/u7LVly17ak2YSgoK4PrdsYBXQIax19vhKiLfvKNFx7FRrpTnitrpzF/uuCMuorIg== + dependencies: + npm-package-arg "^6.1.0" + semver "^5.4.1" + +lockfile@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/lockfile/-/lockfile-1.0.4.tgz#07f819d25ae48f87e538e6578b6964a4981a5609" + integrity sha512-cvbTwETRfsFh4nHsL1eGWapU1XFi5Ot9E85sWAwia7Y7EgB7vfqcZhTKZ+l7hCGxSPoushMv5GKhT5PdLv03WA== + dependencies: + signal-exit "^3.0.2" + +lodash._baseuniq@~4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash._baseuniq/-/lodash._baseuniq-4.6.0.tgz#0ebb44e456814af7905c6212fa2c9b2d51b841e8" + integrity sha1-DrtE5FaBSveQXGIS+iybLVG4Qeg= + dependencies: + lodash._createset "~4.0.0" + lodash._root "~3.0.0" + +lodash._createset@~4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/lodash._createset/-/lodash._createset-4.0.3.tgz#0f4659fbb09d75194fa9e2b88a6644d363c9fe26" + integrity sha1-D0ZZ+7CddRlPqeK4imZE02PJ/iY= + +lodash._root@~3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/lodash._root/-/lodash._root-3.0.1.tgz#fba1c4524c19ee9a5f8136b4609f017cf4ded692" + integrity sha1-+6HEUkwZ7ppfgTa0YJ8BfPTe1pI= + +lodash.camelcase@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" + integrity sha1-soqmKIorn8ZRA1x3EfZathkDMaY= + +lodash.capitalize@^4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/lodash.capitalize/-/lodash.capitalize-4.2.1.tgz#f826c9b4e2a8511d84e3aca29db05e1a4f3b72a9" + integrity sha1-+CbJtOKoUR2E46yinbBeGk87cqk= + +lodash.clonedeep@^4.5.0, lodash.clonedeep@~4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" + integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8= + +lodash.escaperegexp@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz#64762c48618082518ac3df4ccf5d5886dae20347" + integrity sha1-ZHYsSGGAglGKw99Mz11YhtriA0c= + +lodash.get@^4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" + integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk= + +lodash.isplainobject@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" + integrity sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs= + +lodash.isstring@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451" + integrity sha1-1SfftUVuynzJu5XV2ur4i6VKVFE= + +lodash.map@^4.5.1: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.map/-/lodash.map-4.6.0.tgz#771ec7839e3473d9c4cde28b19394c3562f4f6d3" + integrity sha1-dx7Hg540c9nEzeKLGTlMNWL09tM= + +lodash.memoize@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" + integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= + +lodash.merge@^4.6.1: + version "4.6.1" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.1.tgz#adc25d9cb99b9391c59624f379fbba60d7111d54" + integrity sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ== + +lodash.set@^4.3.2: + version "4.3.2" + resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23" + integrity sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM= + +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" + integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg= + +lodash.toarray@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.toarray/-/lodash.toarray-4.4.0.tgz#24c4bfcd6b2fba38bfd0594db1179d8e9b656561" + integrity sha1-JMS/zWsvuji/0FlNsRedjptlZWE= + +lodash.union@~4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.union/-/lodash.union-4.6.0.tgz#48bb5088409f16f1821666641c44dd1aaae3cd88" + integrity sha1-SLtQiECfFvGCFmZkHETdGqrjzYg= + +lodash.uniq@^4.5.0, lodash.uniq@~4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" + integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= + +lodash.uniqby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz#d99c07a669e9e6d24e1362dfe266c67616af1302" + integrity sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI= + +lodash.without@~4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.without/-/lodash.without-4.4.0.tgz#3cd4574a00b67bae373a94b748772640507b7aac" + integrity sha1-PNRXSgC2e643OpS3SHcmQFB7eqw= + +lodash@4.17.11, lodash@^4.0.0, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.1: + version "4.17.11" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" + integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg== + +log-symbols@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18" + integrity sha1-N2/3tY6jCGoPCfrMdGF+ylAeGhg= + dependencies: + chalk "^1.0.0" + +log-symbols@^2.0.0, log-symbols@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" + integrity sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg== + dependencies: + chalk "^2.0.1" + +log-update@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/log-update/-/log-update-2.3.0.tgz#88328fd7d1ce7938b29283746f0b1bc126b24708" + integrity sha1-iDKP19HOeTiykoN0bwsbwSayRwg= + dependencies: + ansi-escapes "^3.0.0" + cli-cursor "^2.0.0" + wrap-ansi "^3.0.1" + +longest-streak@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-2.0.2.tgz#2421b6ba939a443bb9ffebf596585a50b4c38e2e" + integrity sha512-TmYTeEYxiAmSVdpbnQDXGtvYOIRsCMg89CVZzwzc2o7GFL1CjoiRPjH5ec0NFAVlAx3fVof9dX/t6KKRAo2OWA== + +longest@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" + integrity sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc= + +loose-envify@^1.0.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" + integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== + dependencies: + js-tokens "^3.0.0 || ^4.0.0" + +loud-rejection@^1.0.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f" + integrity sha1-W0b4AUft7leIcPCG0Eghz5mOVR8= + dependencies: + currently-unhandled "^0.4.1" + signal-exit "^3.0.0" + +lowercase-keys@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" + integrity sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA== + +lru-cache@^4.0.1, lru-cache@^4.1.1, lru-cache@^4.1.2, lru-cache@^4.1.3: + version "4.1.5" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" + integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== + dependencies: + pseudomap "^1.0.2" + yallist "^2.1.2" + +lru-cache@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== + dependencies: + yallist "^3.0.2" + +macos-release@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/macos-release/-/macos-release-2.2.0.tgz#ab58d55dd4714f0a05ad4b0e90f4370fef5cdea8" + integrity sha512-iV2IDxZaX8dIcM7fG6cI46uNmHUxHE4yN+Z8tKHAW1TBPMZDIKHf/3L+YnOuj/FK9il14UaVdHmiQ1tsi90ltA== + +magic-string@^0.25.1: + version "0.25.1" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.1.tgz#b1c248b399cd7485da0fe7385c2fc7011843266e" + integrity sha512-sCuTz6pYom8Rlt4ISPFn6wuFodbKMIHUMv4Qko9P17dpxb7s52KJTmRuZZqHdGmLCK9AOcDare039nRIcfdkEg== + dependencies: + sourcemap-codec "^1.4.1" + +make-dir@^1.0.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" + integrity sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ== + dependencies: + pify "^3.0.0" + +make-dir@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" + integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== + dependencies: + pify "^4.0.1" + semver "^5.6.0" + +"make-fetch-happen@^2.5.0 || 3 || 4", make-fetch-happen@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-4.0.1.tgz#141497cb878f243ba93136c83d8aba12c216c083" + integrity sha512-7R5ivfy9ilRJ1EMKIOziwrns9fGeAD4bAha8EB7BIiBBLHm2KeTUGCrICFt2rbHfzheTLynv50GnNTK1zDTrcQ== + dependencies: + agentkeepalive "^3.4.1" + cacache "^11.0.1" + http-cache-semantics "^3.8.1" + http-proxy-agent "^2.1.0" + https-proxy-agent "^2.2.1" + lru-cache "^4.1.2" + mississippi "^3.0.0" + node-fetch-npm "^2.0.2" + promise-retry "^1.1.1" + socks-proxy-agent "^4.0.0" + ssri "^6.0.0" + +make-fetch-happen@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-3.0.0.tgz#7b661d2372fc4710ab5cc8e1fa3c290eea69a961" + integrity sha512-FmWY7gC0mL6Z4N86vE14+m719JKE4H0A+pyiOH18B025gF/C113pyfb4gHDDYP5cqnRMHOz06JGdmffC/SES+w== + dependencies: + agentkeepalive "^3.4.1" + cacache "^10.0.4" + http-cache-semantics "^3.8.1" + http-proxy-agent "^2.1.0" + https-proxy-agent "^2.2.0" + lru-cache "^4.1.2" + mississippi "^3.0.0" + node-fetch-npm "^2.0.2" + promise-retry "^1.1.1" + socks-proxy-agent "^3.0.1" + ssri "^5.2.4" + +makeerror@1.0.x: + version "1.0.11" + resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" + integrity sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw= + dependencies: + tmpl "1.0.x" + +map-age-cleaner@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz#7d583a7306434c055fe474b0f45078e6e1b4b92a" + integrity sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w== + dependencies: + p-defer "^1.0.0" + +map-cache@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" + integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= + +map-obj@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" + integrity sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0= + +map-obj@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-2.0.0.tgz#a65cd29087a92598b8791257a523e021222ac1f9" + integrity sha1-plzSkIepJZi4eRJXpSPgISIqwfk= + +map-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" + integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= + dependencies: + object-visit "^1.0.0" + +markdown-escapes@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/markdown-escapes/-/markdown-escapes-1.0.2.tgz#e639cbde7b99c841c0bacc8a07982873b46d2122" + integrity sha512-lbRZ2mE3Q9RtLjxZBZ9+IMl68DKIXaVAhwvwn9pmjnPLS0h/6kyBMgNhqi1xFJ/2yv6cSyv0jbiZavZv93JkkA== + +markdown-table@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-1.1.2.tgz#c78db948fa879903a41bce522e3b96f801c63786" + integrity sha512-NcWuJFHDA8V3wkDgR/j4+gZx+YQwstPgfQDV8ndUeWWzta3dnDTBxpVzqS9lkmJAuV5YX35lmyojl6HO5JXAgw== + +marked-terminal@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/marked-terminal/-/marked-terminal-3.2.0.tgz#3fc91d54569332bcf096292af178d82219000474" + integrity sha512-Yr1yVS0BbDG55vx7be1D0mdv+jGs9AW563o/Tt/7FTsId2J0yqhrTeXAqq/Q0DyyXltIn6CSxzesQuFqXgafjQ== + dependencies: + ansi-escapes "^3.1.0" + cardinal "^2.1.1" + chalk "^2.4.1" + cli-table "^0.3.1" + node-emoji "^1.4.1" + supports-hyperlinks "^1.0.1" + +marked@^0.6.0: + version "0.6.2" + resolved "https://registry.yarnpkg.com/marked/-/marked-0.6.2.tgz#c574be8b545a8b48641456ca1dbe0e37b6dccc1a" + integrity sha512-LqxwVH3P/rqKX4EKGz7+c2G9r98WeM/SW34ybhgNGhUQNKtf1GmmSkJ6cDGJ/t6tiyae49qRkpyTw2B9HOrgUA== + +matcher@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/matcher/-/matcher-1.1.1.tgz#51d8301e138f840982b338b116bb0c09af62c1c2" + integrity sha512-+BmqxWIubKTRKNWx/ahnCkk3mG8m7OturVlqq6HiojGJTd5hVYbgZm6WzcYPCoB+KBT4Vd6R7WSRG2OADNaCjg== + dependencies: + escape-string-regexp "^1.0.4" + +math-random@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.4.tgz#5dd6943c938548267016d4e34f057583080c514c" + integrity sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A== + +mathml-tag-names@^2.0.1: + version "2.1.0" + resolved "https://registry.yarnpkg.com/mathml-tag-names/-/mathml-tag-names-2.1.0.tgz#490b70e062ee24636536e3d9481e333733d00f2c" + integrity sha512-3Zs9P/0zzwTob2pdgT0CHZuMbnSUSp8MB1bddfm+HDmnFWHGT4jvEZRf+2RuPoa+cjdn/z25SEt5gFTqdhvJAg== + +mdast-util-compact@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/mdast-util-compact/-/mdast-util-compact-1.0.2.tgz#c12ebe16fffc84573d3e19767726de226e95f649" + integrity sha512-d2WS98JSDVbpSsBfVvD9TaDMlqPRz7ohM/11G0rp5jOBb5q96RJ6YLszQ/09AAixyzh23FeIpCGqfaamEADtWg== + dependencies: + unist-util-visit "^1.1.0" + +mdn-data@~1.1.0: + version "1.1.4" + resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-1.1.4.tgz#50b5d4ffc4575276573c4eedb8780812a8419f01" + integrity sha512-FSYbp3lyKjyj3E7fMl6rYvUdX0FBXaluGqlFoYESWQlyUTq8R+wp0rkFxoYFqZlHCvsUXGjyJmLQSnXToYhOSA== + +meant@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/meant/-/meant-1.0.1.tgz#66044fea2f23230ec806fb515efea29c44d2115d" + integrity sha512-UakVLFjKkbbUwNWJ2frVLnnAtbb7D7DsloxRd3s/gDpI8rdv8W5Hp3NaDb+POBI1fQdeussER6NB8vpcRURvlg== + +mem@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" + integrity sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y= + dependencies: + mimic-fn "^1.0.0" + +mem@^4.0.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/mem/-/mem-4.3.0.tgz#461af497bc4ae09608cdb2e60eefb69bff744178" + integrity sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w== + dependencies: + map-age-cleaner "^0.1.1" + mimic-fn "^2.0.0" + p-is-promise "^2.0.0" + +meow@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/meow/-/meow-4.0.1.tgz#d48598f6f4b1472f35bf6317a95945ace347f975" + integrity sha512-xcSBHD5Z86zaOc+781KrupuHAzeGXSLtiAOmBsiLDiPSaYSB6hdew2ng9EBAnZ62jagG9MHAOdxpDi/lWBFJ/A== + dependencies: + camelcase-keys "^4.0.0" + decamelize-keys "^1.0.0" + loud-rejection "^1.0.0" + minimist "^1.1.3" + minimist-options "^3.0.1" + normalize-package-data "^2.3.4" + read-pkg-up "^3.0.0" + redent "^2.0.0" + trim-newlines "^2.0.0" + +meow@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/meow/-/meow-5.0.0.tgz#dfc73d63a9afc714a5e371760eb5c88b91078aa4" + integrity sha512-CbTqYU17ABaLefO8vCU153ZZlprKYWDljcndKKDCFcYQITzWCXZAVk4QMFZPgvzrnUQ3uItnIE/LoUOwrT15Ig== + dependencies: + camelcase-keys "^4.0.0" + decamelize-keys "^1.0.0" + loud-rejection "^1.0.0" + minimist-options "^3.0.1" + normalize-package-data "^2.3.4" + read-pkg-up "^3.0.0" + redent "^2.0.0" + trim-newlines "^2.0.0" + yargs-parser "^10.0.0" + +merge-deep@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/merge-deep/-/merge-deep-3.0.2.tgz#f39fa100a4f1bd34ff29f7d2bf4508fbb8d83ad2" + integrity sha512-T7qC8kg4Zoti1cFd8Cr0M+qaZfOwjlPDEdZIIPPB2JZctjaPM4fX+i7HOId69tAti2fvO6X5ldfYUONDODsrkA== + dependencies: + arr-union "^3.1.0" + clone-deep "^0.2.4" + kind-of "^3.0.2" + +merge-stream@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-1.0.1.tgz#4041202d508a342ba00174008df0c251b8c135e1" + integrity sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE= + dependencies: + readable-stream "^2.0.1" + +merge2@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.2.3.tgz#7ee99dbd69bb6481689253f018488a1b902b0ed5" + integrity sha512-gdUU1Fwj5ep4kplwcmftruWofEFt6lfpkkr3h860CXbAB9c3hGb55EOL2ali0Td5oebvW0E1+3Sr+Ur7XfKpRA== + +merge@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.1.tgz#38bebf80c3220a8a487b6fcfb3941bb11720c145" + integrity sha512-VjFo4P5Whtj4vsLzsYBu5ayHhoHJ0UqNm7ibvShmbmoz7tGi0vXaoJbGdB+GmDMLUdg8DpQXEIeVDAe8MaABvQ== + +micromatch@^2.3.11: + version "2.3.11" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" + integrity sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU= + dependencies: + arr-diff "^2.0.0" + array-unique "^0.2.1" + braces "^1.8.2" + expand-brackets "^0.1.4" + extglob "^0.3.1" + filename-regex "^2.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.1" + kind-of "^3.0.2" + normalize-path "^2.0.1" + object.omit "^2.0.0" + parse-glob "^3.0.4" + regex-cache "^0.4.2" + +micromatch@^3.0.4, micromatch@^3.1.10, micromatch@^3.1.4, micromatch@^3.1.8: + version "3.1.10" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" + integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + braces "^2.3.1" + define-property "^2.0.2" + extend-shallow "^3.0.2" + extglob "^2.0.4" + fragment-cache "^0.2.1" + kind-of "^6.0.2" + nanomatch "^1.2.9" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.2" + +mime-db@~1.39.0: + version "1.39.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.39.0.tgz#f95a20275742f7d2ad0429acfe40f4233543780e" + integrity sha512-DTsrw/iWVvwHH+9Otxccdyy0Tgiil6TWK/xhfARJZF/QFhwOgZgOIvA2/VIGpM8U7Q8z5nDmdDWC6tuVMJNibw== + +mime-types@^2.1.12, mime-types@~2.1.19: + version "2.1.23" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.23.tgz#d4eacd87de99348a6858fe1e479aad877388d977" + integrity sha512-ROk/m+gMVSrRxTkMlaQOvFmFmYDc7sZgrjjM76abqmd2Cc5fCV7jAMA5XUccEtJ3cYiYdgixUVI+fApc2LkXlw== + dependencies: + mime-db "~1.39.0" + +mime@^2.0.3: + version "2.4.2" + resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.2.tgz#ce5229a5e99ffc313abac806b482c10e7ba6ac78" + integrity sha512-zJBfZDkwRu+j3Pdd2aHsR5GfH2jIWhmL1ZzBoc+X+3JEti2hbArWcyJ+1laC1D2/U/W1a/+Cegj0/OnEU2ybjg== + +mime@^2.3.1: + version "2.4.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.0.tgz#e051fd881358585f3279df333fe694da0bcffdd6" + integrity sha512-ikBcWwyqXQSHKtciCcctu9YfPbFYZ4+gbHEmE0Q8jzcTYQg5dHCr3g2wwAZjPoJfQVXZq6KXAjpXOTf5/cjT7w== + +mimic-fn@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" + integrity sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ== + +mimic-fn@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + +minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== + dependencies: + brace-expansion "^1.1.7" + +minimist-options@^3.0.1: + version "3.0.2" + resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-3.0.2.tgz#fba4c8191339e13ecf4d61beb03f070103f3d954" + integrity sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ== + dependencies: + arrify "^1.0.1" + is-plain-obj "^1.1.0" + +minimist@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= + +minimist@1.1.x: + version "1.1.3" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.1.3.tgz#3bedfd91a92d39016fcfaa1c681e8faa1a1efda8" + integrity sha1-O+39kaktOQFvz6ocaB6Pqhoe/ag= + +minimist@1.2.0, minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ= + +minimist@~0.0.1: + version "0.0.10" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" + integrity sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8= + +minipass@^2.2.1, minipass@^2.3.3, minipass@^2.3.4: + version "2.3.5" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.5.tgz#cacebe492022497f656b0f0f51e2682a9ed2d848" + integrity sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA== + dependencies: + safe-buffer "^5.1.2" + yallist "^3.0.0" + +minizlib@^1.1.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.2.1.tgz#dd27ea6136243c7c880684e8672bb3a45fd9b614" + integrity sha512-7+4oTUOWKg7AuL3vloEWekXY2/D20cevzsrNT2kGWm+39J9hGTCBv8VI5Pm5lXZ/o3/mdR4f8rflAPhnQb8mPA== + dependencies: + minipass "^2.2.1" + +mississippi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-2.0.0.tgz#3442a508fafc28500486feea99409676e4ee5a6f" + integrity sha512-zHo8v+otD1J10j/tC+VNoGK9keCuByhKovAvdn74dmxJl9+mWHnx6EMsDN4lgRoMI/eYo2nchAxniIbUPb5onw== + dependencies: + concat-stream "^1.5.0" + duplexify "^3.4.2" + end-of-stream "^1.1.0" + flush-write-stream "^1.0.0" + from2 "^2.1.0" + parallel-transform "^1.1.0" + pump "^2.0.1" + pumpify "^1.3.3" + stream-each "^1.1.0" + through2 "^2.0.0" + +mississippi@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-3.0.0.tgz#ea0a3291f97e0b5e8776b363d5f0a12d94c67022" + integrity sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA== + dependencies: + concat-stream "^1.5.0" + duplexify "^3.4.2" + end-of-stream "^1.1.0" + flush-write-stream "^1.0.0" + from2 "^2.1.0" + parallel-transform "^1.1.0" + pump "^3.0.0" + pumpify "^1.3.3" + stream-each "^1.1.0" + through2 "^2.0.0" + +mixin-deep@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" + integrity sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ== + dependencies: + for-in "^1.0.2" + is-extendable "^1.0.1" + +mixin-object@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/mixin-object/-/mixin-object-2.0.1.tgz#4fb949441dab182540f1fe035ba60e1947a5e57e" + integrity sha1-T7lJRB2rGCVA8f4DW6YOGUel5X4= + dependencies: + for-in "^0.1.3" + is-extendable "^0.1.1" + +mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= + dependencies: + minimist "0.0.8" + +mkpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/mkpath/-/mkpath-1.0.0.tgz#ebb3a977e7af1c683ae6fda12b545a6ba6c5853d" + integrity sha1-67Opd+evHGg65v2hK1Raa6bFhT0= + +modify-values@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022" + integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw== + +mousetrap@^1.6.3: + version "1.6.3" + resolved "https://registry.yarnpkg.com/mousetrap/-/mousetrap-1.6.3.tgz#80fee49665fd478bccf072c9d46bdf1bfed3558a" + integrity sha512-bd+nzwhhs9ifsUrC2tWaSgm24/oo2c83zaRyZQF06hYA6sANfsXHtnZ19AbbbDXCDzeH5nZBSQ4NvCjgD62tJA== + +move-concurrently@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/move-concurrently/-/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92" + integrity sha1-viwAX9oy4LKa8fBdfEszIUxwH5I= + dependencies: + aproba "^1.1.1" + copy-concurrently "^1.0.0" + fs-write-stream-atomic "^1.0.8" + mkdirp "^0.5.1" + rimraf "^2.5.4" + run-queue "^1.0.3" + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + +ms@^2.0.0, ms@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" + integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== + +mute-stream@0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" + integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= + +mute-stream@~0.0.4: + version "0.0.8" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" + integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== + +nan@^2.12.1: + version "2.13.2" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.13.2.tgz#f51dc7ae66ba7d5d55e1e6d4d8092e802c9aefe7" + integrity sha512-TghvYc72wlMGMVMluVo9WRJc0mB8KxxF/gZ4YYFy7V2ZQX9l7rgbPg7vjS9mt6U5HXODVFVI2bOduCzwOMv/lw== + +nanomatch@^1.2.9: + version "1.2.13" + resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" + integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + define-property "^2.0.2" + extend-shallow "^3.0.2" + fragment-cache "^0.2.1" + is-windows "^1.0.2" + kind-of "^6.0.2" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= + +needle@^2.2.1: + version "2.3.0" + resolved "https://registry.yarnpkg.com/needle/-/needle-2.3.0.tgz#ce3fea21197267bacb310705a7bbe24f2a3a3492" + integrity sha512-QBZu7aAFR0522EyaXZM0FZ9GLpq6lvQ3uq8gteiDUp7wKdy0lSd2hPlgFwVuW1CBkfEs9PfDQsQzZghLs/psdg== + dependencies: + debug "^4.1.0" + iconv-lite "^0.4.4" + sax "^1.2.4" + +neo-async@^2.6.0: + version "2.6.0" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.0.tgz#b9d15e4d71c6762908654b5183ed38b753340835" + integrity sha512-MFh0d/Wa7vkKO3Y3LlacqAEeHK0mckVqzDieUKTT+KGxi+zIpeVsFxymkIiRpbpDziHc290Xr9A1O4Om7otoRA== + +nerf-dart@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/nerf-dart/-/nerf-dart-1.0.0.tgz#e6dab7febf5ad816ea81cf5c629c5a0ebde72c1a" + integrity sha1-5tq3/r9a2Bbqgc9cYpxaDr3nLBo= + +nice-try@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" + integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== + +node-emoji@^1.4.1: + version "1.10.0" + resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.10.0.tgz#8886abd25d9c7bb61802a658523d1f8d2a89b2da" + integrity sha512-Yt3384If5H6BYGVHiHwTL+99OzJKHhgp82S8/dktEK73T26BazdgZ4JZh92xSVtGNJvz9UbXdNAc5hcrXV42vw== + dependencies: + lodash.toarray "^4.4.0" + +node-fetch-npm@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/node-fetch-npm/-/node-fetch-npm-2.0.2.tgz#7258c9046182dca345b4208eda918daf33697ff7" + integrity sha512-nJIxm1QmAj4v3nfCvEeCrYSoVwXyxLnaPBK5W1W5DGEJwjlKuC2VEUycGw5oxk+4zZahRrB84PUJJgEmhFTDFw== + dependencies: + encoding "^0.1.11" + json-parse-better-errors "^1.0.0" + safe-buffer "^5.1.1" + +node-fetch@^2.2.0, node-fetch@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.3.0.tgz#1a1d940bbfb916a1d3e0219f037e89e71f8c5fa5" + integrity sha512-MOd8pV3fxENbryESLgVIeaGKrdl+uaYhCSSVkjeOb/31/njTpcis5aWfdqgNlHIrKOLRbMnfPINPOML2CIFeXA== + +node-gyp@^3.8.0: + version "3.8.0" + resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-3.8.0.tgz#540304261c330e80d0d5edce253a68cb3964218c" + integrity sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA== + dependencies: + fstream "^1.0.0" + glob "^7.0.3" + graceful-fs "^4.1.2" + mkdirp "^0.5.0" + nopt "2 || 3" + npmlog "0 || 1 || 2 || 3 || 4" + osenv "0" + request "^2.87.0" + rimraf "2" + semver "~5.3.0" + tar "^2.0.0" + which "1" + +node-int64@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" + integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= + +node-modules-regexp@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz#8d9dbe28964a4ac5712e9131642107c71e90ec40" + integrity sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA= + +node-notifier@^5.2.1: + version "5.4.0" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.4.0.tgz#7b455fdce9f7de0c63538297354f3db468426e6a" + integrity sha512-SUDEb+o71XR5lXSTyivXd9J7fCloE3SyP4lSgt3lU2oSANiox+SxlNRGPjDKrwU1YN3ix2KN/VGGCg0t01rttQ== + dependencies: + growly "^1.3.0" + is-wsl "^1.1.0" + semver "^5.5.0" + shellwords "^0.1.1" + which "^1.3.0" + +node-pre-gyp@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.12.0.tgz#39ba4bb1439da030295f899e3b520b7785766149" + integrity sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A== + dependencies: + detect-libc "^1.0.2" + mkdirp "^0.5.1" + needle "^2.2.1" + nopt "^4.0.1" + npm-packlist "^1.1.6" + npmlog "^4.0.2" + rc "^1.2.7" + rimraf "^2.6.1" + semver "^5.3.0" + tar "^4" + +node-releases@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.3.tgz#aad9ce0dcb98129c753f772c0aa01360fb90fbd2" + integrity sha512-6VrvH7z6jqqNFY200kdB6HdzkgM96Oaj9v3dqGfgp6mF+cHmU4wyQKZ2/WPDRVoR0Jz9KqbamaBN0ZhdUaysUQ== + dependencies: + semver "^5.3.0" + +"nopt@2 || 3": + version "3.0.6" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" + integrity sha1-xkZdvwirzU2zWTF/eaxopkayj/k= + dependencies: + abbrev "1" + +nopt@^4.0.1, nopt@~4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" + integrity sha1-0NRoWv1UFRk8jHUFYC0NF81kR00= + dependencies: + abbrev "1" + osenv "^0.1.4" + +normalize-package-data@^2.0.0, normalize-package-data@^2.4.0, "normalize-package-data@~1.0.1 || ^2.0.0": + version "2.5.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" + integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== + dependencies: + hosted-git-info "^2.1.4" + resolve "^1.10.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +normalize-package-data@^2.3.2, normalize-package-data@^2.3.4: + version "2.4.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" + integrity sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw== + dependencies: + hosted-git-info "^2.1.4" + is-builtin-module "^1.0.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +normalize-package-data@~2.4.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.2.tgz#6b2abd85774e51f7936f1395e45acb905dc849b2" + integrity sha512-YcMnjqeoUckXTPKZSAsPjUPLxH85XotbpqK3w4RyCwdFQSU5FxxBys8buehkSfg0j9fKvV1hn7O0+8reEgkAiw== + dependencies: + hosted-git-info "^2.1.4" + is-builtin-module "^1.0.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +normalize-path@^2.0.1, normalize-path@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" + integrity sha1-GrKLVW4Zg2Oowab35vogE3/mrtk= + dependencies: + remove-trailing-separator "^1.0.1" + +normalize-range@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" + integrity sha1-LRDAa9/TEuqXd2laTShDlFa3WUI= + +normalize-selector@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/normalize-selector/-/normalize-selector-0.2.0.tgz#d0b145eb691189c63a78d201dc4fdb1293ef0c03" + integrity sha1-0LFF62kRicY6eNIB3E/bEpPvDAM= + +normalize-url@^3.0.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559" + integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg== + +normalize-url@^4.0.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.3.0.tgz#9c49e10fc1876aeb76dba88bf1b2b5d9fa57b2ee" + integrity sha512-0NLtR71o4k6GLP+mr6Ty34c5GA6CMoEsncKJxvQd8NzPxaHRJNnb5gZE8R1XF4CPIS7QPHLJ74IFszwtNVAHVQ== + +npm-audit-report@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/npm-audit-report/-/npm-audit-report-1.3.2.tgz#303bc78cd9e4c226415076a4f7e528c89fc77018" + integrity sha512-abeqS5ONyXNaZJPGAf6TOUMNdSe1Y6cpc9MLBRn+CuUoYbfdca6AxOyXVlfIv9OgKX+cacblbG5w7A6ccwoTPw== + dependencies: + cli-table3 "^0.5.0" + console-control-strings "^1.1.0" + +npm-bundled@^1.0.1: + version "1.0.6" + resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.6.tgz#e7ba9aadcef962bb61248f91721cd932b3fe6bdd" + integrity sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g== + +npm-cache-filename@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/npm-cache-filename/-/npm-cache-filename-1.0.2.tgz#ded306c5b0bfc870a9e9faf823bc5f283e05ae11" + integrity sha1-3tMGxbC/yHCp6fr4I7xfKD4FrhE= + +npm-install-checks@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/npm-install-checks/-/npm-install-checks-3.0.0.tgz#d4aecdfd51a53e3723b7b2f93b2ee28e307bc0d7" + integrity sha1-1K7N/VGlPjcjt7L5Oy7ijjB7wNc= + dependencies: + semver "^2.3.0 || 3.x || 4 || 5" + +npm-lifecycle@^2.0.3, npm-lifecycle@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/npm-lifecycle/-/npm-lifecycle-2.1.0.tgz#1eda2eedb82db929e3a0c50341ab0aad140ed569" + integrity sha512-QbBfLlGBKsktwBZLj6AviHC6Q9Y3R/AY4a2PYSIRhSKSS0/CxRyD/PfxEX6tPeOCXQgMSNdwGeECacstgptc+g== + dependencies: + byline "^5.0.0" + graceful-fs "^4.1.11" + node-gyp "^3.8.0" + resolve-from "^4.0.0" + slide "^1.1.6" + uid-number "0.0.6" + umask "^1.1.0" + which "^1.3.1" + +npm-logical-tree@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/npm-logical-tree/-/npm-logical-tree-1.2.1.tgz#44610141ca24664cad35d1e607176193fd8f5b88" + integrity sha512-AJI/qxDB2PWI4LG1CYN579AY1vCiNyWfkiquCsJWqntRu/WwimVrC8yXeILBFHDwxfOejxewlmnvW9XXjMlYIg== + +"npm-package-arg@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0", "npm-package-arg@^4.0.0 || ^5.0.0 || ^6.0.0", npm-package-arg@^6.0.0, npm-package-arg@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-6.1.0.tgz#15ae1e2758a5027efb4c250554b85a737db7fcc1" + integrity sha512-zYbhP2k9DbJhA0Z3HKUePUgdB1x7MfIfKssC+WLPFMKTBZKpZh5m13PgexJjCq6KW7j17r0jHWcCpxEqnnncSA== + dependencies: + hosted-git-info "^2.6.0" + osenv "^0.1.5" + semver "^5.5.0" + validate-npm-package-name "^3.0.0" + +npm-packlist@^1.1.10, npm-packlist@^1.1.12, npm-packlist@^1.1.6: + version "1.4.1" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.1.tgz#19064cdf988da80ea3cee45533879d90192bbfbc" + integrity sha512-+TcdO7HJJ8peiiYhvPxsEDhF3PJFGUGRcFsGve3vxvxdcpO2Z4Z7rkosRM0kWj6LfbK/P0gu3dzk5RU1ffvFcw== + dependencies: + ignore-walk "^3.0.1" + npm-bundled "^1.0.1" + +npm-path@^2.0.2: + version "2.0.4" + resolved "https://registry.yarnpkg.com/npm-path/-/npm-path-2.0.4.tgz#c641347a5ff9d6a09e4d9bce5580c4f505278e64" + integrity sha512-IFsj0R9C7ZdR5cP+ET342q77uSRdtWOlWpih5eC+lu29tIDbNEgDbzgVJ5UFvYHWhxDZ5TFkJafFioO0pPQjCw== + dependencies: + which "^1.2.10" + +npm-pick-manifest@^2.1.0: + version "2.2.3" + resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-2.2.3.tgz#32111d2a9562638bb2c8f2bf27f7f3092c8fae40" + integrity sha512-+IluBC5K201+gRU85vFlUwX3PFShZAbAgDNp2ewJdWMVSppdo/Zih0ul2Ecky/X7b51J7LrrUAP+XOmOCvYZqA== + dependencies: + figgy-pudding "^3.5.1" + npm-package-arg "^6.0.0" + semver "^5.4.1" + +npm-profile@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/npm-profile/-/npm-profile-3.0.2.tgz#58d568f1b56ef769602fd0aed8c43fa0e0de0f57" + integrity sha512-rEJOFR6PbwOvvhGa2YTNOJQKNuc6RovJ6T50xPU7pS9h/zKPNCJ+VHZY2OFXyZvEi+UQYtHRTp8O/YM3tUD20A== + dependencies: + aproba "^1.1.2 || 2" + make-fetch-happen "^2.5.0 || 3 || 4" + +npm-registry-client@^8.6.0: + version "8.6.0" + resolved "https://registry.yarnpkg.com/npm-registry-client/-/npm-registry-client-8.6.0.tgz#7f1529f91450732e89f8518e0f21459deea3e4c4" + integrity sha512-Qs6P6nnopig+Y8gbzpeN/dkt+n7IyVd8f45NTMotGk6Qo7GfBmzwYx6jRLoOOgKiMnaQfYxsuyQlD8Mc3guBhg== + dependencies: + concat-stream "^1.5.2" + graceful-fs "^4.1.6" + normalize-package-data "~1.0.1 || ^2.0.0" + npm-package-arg "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" + once "^1.3.3" + request "^2.74.0" + retry "^0.10.0" + safe-buffer "^5.1.1" + semver "2 >=2.2.1 || 3.x || 4 || 5" + slide "^1.1.3" + ssri "^5.2.4" + optionalDependencies: + npmlog "2 || ^3.1.0 || ^4.0.0" + +npm-registry-fetch@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-1.1.1.tgz#710bc5947d9ee2c549375072dab6d5d17baf2eb2" + integrity sha512-ev+zxOXsgAqRsR8Rk+ErjgWOlbrXcqGdme94/VNdjDo1q8TSy10Pp8xgDv/ZmMk2jG/KvGtXUNG4GS3+l6xbDw== + dependencies: + bluebird "^3.5.1" + figgy-pudding "^3.0.0" + lru-cache "^4.1.2" + make-fetch-happen "^3.0.0" + npm-package-arg "^6.0.0" + safe-buffer "^5.1.1" + +npm-registry-fetch@^3.0.0: + version "3.9.0" + resolved "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-3.9.0.tgz#44d841780e2833f06accb34488f8c7450d1a6856" + integrity sha512-srwmt8YhNajAoSAaDWndmZgx89lJwIZ1GWxOuckH4Coek4uHv5S+o/l9FLQe/awA+JwTnj4FJHldxhlXdZEBmw== + dependencies: + JSONStream "^1.3.4" + bluebird "^3.5.1" + figgy-pudding "^3.4.1" + lru-cache "^4.1.3" + make-fetch-happen "^4.0.1" + npm-package-arg "^6.1.0" + +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" + integrity sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8= + dependencies: + path-key "^2.0.0" + +npm-user-validate@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/npm-user-validate/-/npm-user-validate-1.0.0.tgz#8ceca0f5cea04d4e93519ef72d0557a75122e951" + integrity sha1-jOyg9c6gTU6TUZ73LQVXp1Ei6VE= + +npm-which@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/npm-which/-/npm-which-3.0.1.tgz#9225f26ec3a285c209cae67c3b11a6b4ab7140aa" + integrity sha1-kiXybsOihcIJyuZ8OxGmtKtxQKo= + dependencies: + commander "^2.9.0" + npm-path "^2.0.2" + which "^1.2.10" + +npm@6.5.0: + version "6.5.0" + resolved "https://registry.yarnpkg.com/npm/-/npm-6.5.0.tgz#30ed48d4cd4d17d68ee04a5fcf9fa2ca9167d819" + integrity sha512-SPq8zG2Kto+Xrq55E97O14Jla13PmQT5kSnvwBj88BmJZ5Nvw++OmlWfhjkB67pcgP5UEXljEtnGFKZtOgt6MQ== + dependencies: + JSONStream "^1.3.4" + abbrev "~1.1.1" + ansicolors "~0.3.2" + ansistyles "~0.1.3" + aproba "~1.2.0" + archy "~1.0.0" + bin-links "^1.1.2" + bluebird "^3.5.3" + byte-size "^4.0.3" + cacache "^11.2.0" + call-limit "~1.1.0" + chownr "~1.0.1" + ci-info "^1.6.0" + cli-columns "^3.1.2" + cli-table3 "^0.5.0" + cmd-shim "~2.0.2" + columnify "~1.5.4" + config-chain "^1.1.12" + detect-indent "~5.0.0" + detect-newline "^2.1.0" + dezalgo "~1.0.3" + editor "~1.0.0" + figgy-pudding "^3.5.1" + find-npm-prefix "^1.0.2" + fs-vacuum "~1.2.10" + fs-write-stream-atomic "~1.0.10" + gentle-fs "^2.0.1" + glob "^7.1.3" + graceful-fs "^4.1.15" + has-unicode "~2.0.1" + hosted-git-info "^2.7.1" + iferr "^1.0.2" + inflight "~1.0.6" + inherits "~2.0.3" + ini "^1.3.5" + init-package-json "^1.10.3" + is-cidr "^2.0.6" + json-parse-better-errors "^1.0.2" + lazy-property "~1.0.0" + libcipm "^2.0.2" + libnpmhook "^4.0.1" + libnpx "^10.2.0" + lock-verify "^2.0.2" + lockfile "^1.0.4" + lodash._baseuniq "~4.6.0" + lodash.clonedeep "~4.5.0" + lodash.union "~4.6.0" + lodash.uniq "~4.5.0" + lodash.without "~4.4.0" + lru-cache "^4.1.3" + meant "~1.0.1" + mississippi "^3.0.0" + mkdirp "~0.5.1" + move-concurrently "^1.0.1" + node-gyp "^3.8.0" + nopt "~4.0.1" + normalize-package-data "~2.4.0" + npm-audit-report "^1.3.1" + npm-cache-filename "~1.0.2" + npm-install-checks "~3.0.0" + npm-lifecycle "^2.1.0" + npm-package-arg "^6.1.0" + npm-packlist "^1.1.12" + npm-pick-manifest "^2.1.0" + npm-profile "^3.0.2" + npm-registry-client "^8.6.0" + npm-registry-fetch "^1.1.0" + npm-user-validate "~1.0.0" + npmlog "~4.1.2" + once "~1.4.0" + opener "^1.5.1" + osenv "^0.1.5" + pacote "^8.1.6" + path-is-inside "~1.0.2" + promise-inflight "~1.0.1" + qrcode-terminal "^0.12.0" + query-string "^6.1.0" + qw "~1.0.1" + read "~1.0.7" + read-cmd-shim "~1.0.1" + read-installed "~4.0.3" + read-package-json "^2.0.13" + read-package-tree "^5.2.1" + readable-stream "^2.3.6" + request "^2.88.0" + retry "^0.12.0" + rimraf "~2.6.2" + safe-buffer "^5.1.2" + semver "^5.5.1" + sha "~2.0.1" + slide "~1.1.6" + sorted-object "~2.0.1" + sorted-union-stream "~2.1.3" + ssri "^6.0.1" + stringify-package "^1.0.0" + tar "^4.4.8" + text-table "~0.2.0" + tiny-relative-date "^1.3.0" + uid-number "0.0.6" + umask "~1.1.0" + unique-filename "~1.1.0" + unpipe "~1.0.0" + update-notifier "^2.5.0" + uuid "^3.3.2" + validate-npm-package-license "^3.0.4" + validate-npm-package-name "~3.0.0" + which "^1.3.1" + worker-farm "^1.6.0" + write-file-atomic "^2.3.0" + +"npmlog@0 || 1 || 2 || 3 || 4", "npmlog@2 || ^3.1.0 || ^4.0.0", npmlog@^4.0.2, npmlog@~4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" + integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg== + dependencies: + are-we-there-yet "~1.1.2" + console-control-strings "~1.1.0" + gauge "~2.7.3" + set-blocking "~2.0.0" + +nth-check@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.2.tgz#b2bd295c37e3dd58a3bf0700376663ba4d9cf05c" + integrity sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg== + dependencies: + boolbase "~1.0.0" + +num2fraction@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede" + integrity sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4= + +number-is-nan@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0= + +nwsapi@^2.0.7: + version "2.1.3" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.1.3.tgz#25f3a5cec26c654f7376df6659cdf84b99df9558" + integrity sha512-RowAaJGEgYXEZfQ7tvvdtAQUKPyTR6T6wNu0fwlNsGQYr/h3yQc6oI8WnVZh3Y/Sylwc+dtAlvPqfFZjhTyk3A== + +oauth-sign@~0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" + integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== + +object-assign@^4.0.1, object-assign@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= + +object-copy@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" + integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= + dependencies: + copy-descriptor "^0.1.0" + define-property "^0.2.5" + kind-of "^3.0.3" + +object-keys@^1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.12.tgz#09c53855377575310cca62f55bb334abff7b3ed2" + integrity sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag== + +object-visit@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" + integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= + dependencies: + isobject "^3.0.0" + +object.getownpropertydescriptors@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16" + integrity sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY= + dependencies: + define-properties "^1.1.2" + es-abstract "^1.5.1" + +object.omit@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" + integrity sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo= + dependencies: + for-own "^0.1.4" + is-extendable "^0.1.1" + +object.pick@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" + integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= + dependencies: + isobject "^3.0.1" + +object.values@^1.0.4: + version "1.1.0" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.0.tgz#bf6810ef5da3e5325790eaaa2be213ea84624da9" + integrity sha512-8mf0nKLAoFX6VlNVdhGj31SVYpaNFtUnuoOXWyFEstsWRgU837AK+JYM0iAxwkSzGRbwn8cbFmgbyxj1j4VbXg== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.12.0" + function-bind "^1.1.1" + has "^1.0.3" + +octokit-pagination-methods@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz#cf472edc9d551055f9ef73f6e42b4dbb4c80bea4" + integrity sha512-fZ4qZdQ2nxJvtcasX7Ghl+WlWS/d9IgnBIwFZXVNNZUmzpno91SX5bc5vuxiuKoCtK78XxGGNuSCrDC7xYB3OQ== + +once@^1.3.0, once@^1.3.1, once@^1.3.3, once@^1.4.0, once@~1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + dependencies: + wrappy "1" + +onetime@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" + integrity sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ= + dependencies: + mimic-fn "^1.0.0" + +opener@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.1.tgz#6d2f0e77f1a0af0032aca716c2c1fbb8e7e8abed" + integrity sha512-goYSy5c2UXE4Ra1xixabeVh1guIX/ZV/YokJksb6q2lubWu6UbvPQ20p542/sFIll1nl8JnCyK9oBaOcCWXwvA== + +optimist@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" + integrity sha1-2j6nRob6IaGaERwybpDrFaAZZoY= + dependencies: + minimist "~0.0.1" + wordwrap "~0.0.2" + +optionator@^0.8.1, optionator@^0.8.2: + version "0.8.2" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" + integrity sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q= + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.4" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + wordwrap "~1.0.0" + +os-homedir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= + +os-locale@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" + integrity sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA== + dependencies: + execa "^0.7.0" + lcid "^1.0.0" + mem "^1.1.0" + +os-locale@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-3.1.0.tgz#a802a6ee17f24c10483ab9935719cef4ed16bf1a" + integrity sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q== + dependencies: + execa "^1.0.0" + lcid "^2.0.0" + mem "^4.0.0" + +os-name@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/os-name/-/os-name-3.1.0.tgz#dec19d966296e1cd62d701a5a66ee1ddeae70801" + integrity sha512-h8L+8aNjNcMpo/mAIBPn5PXCM16iyPGjHNWo6U1YO8sJTMHtEtyczI6QJnLoplswm6goopQkqc7OAnjhWcugVg== + dependencies: + macos-release "^2.2.0" + windows-release "^3.1.0" + +os-tmpdir@^1.0.0, os-tmpdir@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= + +osenv@0, osenv@^0.1.4, osenv@^0.1.5: + version "0.1.5" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" + integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + +p-defer@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c" + integrity sha1-n26xgvbJqozXQwBKfU+WsZaw+ww= + +p-each-series@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-each-series/-/p-each-series-1.0.0.tgz#930f3d12dd1f50e7434457a22cd6f04ac6ad7f71" + integrity sha1-kw89Et0fUOdDRFeiLNbwSsatf3E= + dependencies: + p-reduce "^1.0.0" + +p-filter@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-filter/-/p-filter-1.0.0.tgz#629d317150209c8fd508ba137713ef4bb920e9db" + integrity sha1-Yp0xcVAgnI/VCLoTdxPvS7kg6ds= + dependencies: + p-map "^1.0.0" + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4= + +p-is-promise@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-2.1.0.tgz#918cebaea248a62cf7ffab8e3bca8c5f882fc42e" + integrity sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg== + +p-limit@^1.1.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" + integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== + dependencies: + p-try "^1.0.0" + +p-limit@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.1.0.tgz#1d5a0d20fb12707c758a655f6bbc4386b5930d68" + integrity sha512-NhURkNcrVB+8hNfLuysU8enY5xn2KXphsHBaC2YmRNTZRc7RWusw6apSpdEj3jo4CMb6W9nrF6tTnsJsJeyu6g== + dependencies: + p-try "^2.0.0" + +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" + integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= + dependencies: + p-limit "^1.1.0" + +p-locate@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" + integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== + dependencies: + p-limit "^2.0.0" + +p-map@^1.0.0, p-map@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/p-map/-/p-map-1.2.0.tgz#e4e94f311eabbc8633a1e79908165fca26241b6b" + integrity sha512-r6zKACMNhjPJMTl8KcFH4li//gkrXWfbD6feV8l6doRHlzljFWGJ2AP6iKaCJXyZmAUMOPtvbW7EXkbWO/pLEA== + +p-map@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-map/-/p-map-2.0.0.tgz#be18c5a5adeb8e156460651421aceca56c213a50" + integrity sha512-GO107XdrSUmtHxVoi60qc9tUl/KkNKm+X2CF4P9amalpGxv5YqVPJNfSb0wcA+syCopkZvYYIzW8OVTQW59x/w== + +p-queue@^2.4.2: + version "2.4.2" + resolved "https://registry.yarnpkg.com/p-queue/-/p-queue-2.4.2.tgz#03609826682b743be9a22dba25051bd46724fc34" + integrity sha512-n8/y+yDJwBjoLQe1GSJbbaYQLTI7QHNZI2+rpmCDbe++WLf9HC3gf6iqj5yfPAV71W4UF3ql5W1+UBPXoXTxng== + +p-reduce@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-reduce/-/p-reduce-1.0.0.tgz#18c2b0dd936a4690a529f8231f58a0fdb6a47dfa" + integrity sha1-GMKw3ZNqRpClKfgjH1ig/bakffo= + +p-retry@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/p-retry/-/p-retry-3.0.1.tgz#316b4c8893e2c8dc1cfa891f406c4b422bebf328" + integrity sha512-XE6G4+YTTkT2a0UWb2kjZe8xNwf8bIbnqpc/IS/idOBVhyves0mK5OJgeocjx7q5pvX/6m23xuzVPYT1uGM73w== + dependencies: + retry "^0.12.0" + +p-try@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" + integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= + +p-try@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.0.0.tgz#85080bb87c64688fa47996fe8f7dfbe8211760b1" + integrity sha512-hMp0onDKIajHfIkdRk3P4CdCmErkYAxxDtP3Wx/4nZ3aGlau2VKh3mZpcuFkH27WQkL/3WBCPOktzA9ZOAnMQQ== + +package-json@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/package-json/-/package-json-4.0.1.tgz#8869a0401253661c4c4ca3da6c2121ed555f5eed" + integrity sha1-iGmgQBJTZhxMTKPabCEh7VVfXu0= + dependencies: + got "^6.7.1" + registry-auth-token "^3.0.1" + registry-url "^3.0.3" + semver "^5.1.0" + +pacote@^8.1.6: + version "8.1.6" + resolved "https://registry.yarnpkg.com/pacote/-/pacote-8.1.6.tgz#8e647564d38156367e7a9dc47a79ca1ab278d46e" + integrity sha512-wTOOfpaAQNEQNtPEx92x9Y9kRWVu45v583XT8x2oEV2xRB74+xdqMZIeGW4uFvAyZdmSBtye+wKdyyLaT8pcmw== + dependencies: + bluebird "^3.5.1" + cacache "^11.0.2" + get-stream "^3.0.0" + glob "^7.1.2" + lru-cache "^4.1.3" + make-fetch-happen "^4.0.1" + minimatch "^3.0.4" + minipass "^2.3.3" + mississippi "^3.0.0" + mkdirp "^0.5.1" + normalize-package-data "^2.4.0" + npm-package-arg "^6.1.0" + npm-packlist "^1.1.10" + npm-pick-manifest "^2.1.0" + osenv "^0.1.5" + promise-inflight "^1.0.1" + promise-retry "^1.1.1" + protoduck "^5.0.0" + rimraf "^2.6.2" + safe-buffer "^5.1.2" + semver "^5.5.0" + ssri "^6.0.0" + tar "^4.4.3" + unique-filename "^1.1.0" + which "^1.3.0" + +parallel-transform@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/parallel-transform/-/parallel-transform-1.1.0.tgz#d410f065b05da23081fcd10f28854c29bda33b06" + integrity sha1-1BDwZbBdojCB/NEPKIVMKb2jOwY= + dependencies: + cyclist "~0.2.2" + inherits "^2.0.3" + readable-stream "^2.1.5" + +parent-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.0.tgz#df250bdc5391f4a085fb589dad761f5ad6b865b5" + integrity sha512-8Mf5juOMmiE4FcmzYc4IaiS9L3+9paz2KOiXzkRviCP6aDmN49Hz6EMWz0lGNp9pX80GvvAuLADtyGfW/Em3TA== + dependencies: + callsites "^3.0.0" + +parse-entities@^1.0.2, parse-entities@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-1.2.0.tgz#9deac087661b2e36814153cb78d7e54a4c5fd6f4" + integrity sha512-XXtDdOPLSB0sHecbEapQi6/58U/ODj/KWfIXmmMCJF/eRn8laX6LZbOyioMoETOOJoWRW8/qTSl5VQkUIfKM5g== + dependencies: + character-entities "^1.0.0" + character-entities-legacy "^1.0.0" + character-reference-invalid "^1.0.0" + is-alphanumerical "^1.0.0" + is-decimal "^1.0.0" + is-hexadecimal "^1.0.0" + +parse-github-url@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/parse-github-url/-/parse-github-url-1.0.2.tgz#242d3b65cbcdda14bb50439e3242acf6971db395" + integrity sha512-kgBf6avCbO3Cn6+RnzRGLkUsv4ZVqv/VfAYkRsyBcgkshNvVBkRn1FEZcW0Jb+npXQWm2vHPnnOqFteZxRRGNw== + +parse-glob@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" + integrity sha1-ssN2z7EfNVE7rdFz7wu246OIORw= + dependencies: + glob-base "^0.3.0" + is-dotfile "^1.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.0" + +parse-json@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" + integrity sha1-9ID0BDTvgHQfhGkJn43qGPVaTck= + dependencies: + error-ex "^1.2.0" + +parse-json@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" + integrity sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA= + dependencies: + error-ex "^1.3.1" + json-parse-better-errors "^1.0.1" + +parse-passwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" + integrity sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY= + +parse5@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-4.0.0.tgz#6d78656e3da8d78b4ec0b906f7c08ef1dfe3f608" + integrity sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA== + +parse5@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-5.1.0.tgz#c59341c9723f414c452975564c7c00a68d58acd2" + integrity sha512-fxNG2sQjHvlVAYmzBZS9YlDp6PTSSDwa98vkD4QgVDDCAo84z5X1t5XyJQ62ImdLXx5NdIIfihey6xpum9/gRQ== + +pascalcase@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" + integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= + +path-dirname@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" + integrity sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA= + +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + +path-is-inside@^1.0.1, path-is-inside@^1.0.2, path-is-inside@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" + integrity sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM= + +path-key@^2.0.0, path-key@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= + +path-parse@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" + integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== + +path-type@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" + integrity sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM= + dependencies: + pify "^2.0.0" + +path-type@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" + integrity sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg== + dependencies: + pify "^3.0.0" + +performance-now@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" + integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= + +pify@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + integrity sha1-7RQaasBDqEnqWISY59yosVMw6Qw= + +pify@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" + integrity sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY= + +pify@^4.0.0, pify@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" + integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + integrity sha1-ITXW36ejWMBprJsXh3YogihFD/o= + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA= + +pirates@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87" + integrity sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA== + dependencies: + node-modules-regexp "^1.0.0" + +pkg-conf@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/pkg-conf/-/pkg-conf-2.1.0.tgz#2126514ca6f2abfebd168596df18ba57867f0058" + integrity sha1-ISZRTKbyq/69FoWW3xi6V4Z/AFg= + dependencies: + find-up "^2.0.0" + load-json-file "^4.0.0" + +pkg-dir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" + integrity sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s= + dependencies: + find-up "^2.1.0" + +pkg-dir@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3" + integrity sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw== + dependencies: + find-up "^3.0.0" + +please-upgrade-node@^3.0.2, please-upgrade-node@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/please-upgrade-node/-/please-upgrade-node-3.1.1.tgz#ed320051dfcc5024fae696712c8288993595e8ac" + integrity sha512-KY1uHnQ2NlQHqIJQpnh/i54rKkuxCEBx+voJIS/Mvb+L2iYd2NMotwduhKTMjfC1uKoX3VXOxLjIYG66dfJTVQ== + dependencies: + semver-compare "^1.0.0" + +pn@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb" + integrity sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA== + +posix-character-classes@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" + integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= + +postcss-calc@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-7.0.1.tgz#36d77bab023b0ecbb9789d84dcb23c4941145436" + integrity sha512-oXqx0m6tb4N3JGdmeMSc/i91KppbYsFZKdH0xMOqK8V1rJlzrKlTdokz8ozUXLVejydRN6u2IddxpcijRj2FqQ== + dependencies: + css-unit-converter "^1.1.1" + postcss "^7.0.5" + postcss-selector-parser "^5.0.0-rc.4" + postcss-value-parser "^3.3.1" + +postcss-colormin@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/postcss-colormin/-/postcss-colormin-4.0.3.tgz#ae060bce93ed794ac71264f08132d550956bd381" + integrity sha512-WyQFAdDZpExQh32j0U0feWisZ0dmOtPl44qYmJKkq9xFWY3p+4qnRzCHeNrkeRhwPHz9bQ3mo0/yVkaply0MNw== + dependencies: + browserslist "^4.0.0" + color "^3.0.0" + has "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-convert-values@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-convert-values/-/postcss-convert-values-4.0.1.tgz#ca3813ed4da0f812f9d43703584e449ebe189a7f" + integrity sha512-Kisdo1y77KUC0Jmn0OXU/COOJbzM8cImvw1ZFsBgBgMgb1iL23Zs/LXRe3r+EZqM3vGYKdQ2YJVQ5VkJI+zEJQ== + dependencies: + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-discard-comments@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-4.0.2.tgz#1fbabd2c246bff6aaad7997b2b0918f4d7af4033" + integrity sha512-RJutN259iuRf3IW7GZyLM5Sw4GLTOH8FmsXBnv8Ab/Tc2k4SR4qbV4DNbyyY4+Sjo362SyDmW2DQ7lBSChrpkg== + dependencies: + postcss "^7.0.0" + +postcss-discard-duplicates@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-4.0.2.tgz#3fe133cd3c82282e550fc9b239176a9207b784eb" + integrity sha512-ZNQfR1gPNAiXZhgENFfEglF93pciw0WxMkJeVmw8eF+JZBbMD7jp6C67GqJAXVZP2BWbOztKfbsdmMp/k8c6oQ== + dependencies: + postcss "^7.0.0" + +postcss-discard-empty@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-discard-empty/-/postcss-discard-empty-4.0.1.tgz#c8c951e9f73ed9428019458444a02ad90bb9f765" + integrity sha512-B9miTzbznhDjTfjvipfHoqbWKwd0Mj+/fL5s1QOz06wufguil+Xheo4XpOnc4NqKYBCNqqEzgPv2aPBIJLox0w== + dependencies: + postcss "^7.0.0" + +postcss-discard-overridden@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-discard-overridden/-/postcss-discard-overridden-4.0.1.tgz#652aef8a96726f029f5e3e00146ee7a4e755ff57" + integrity sha512-IYY2bEDD7g1XM1IDEsUT4//iEYCxAmP5oDSFMVU/JVvT7gh+l4fmjciLqGgwjdWpQIdb0Che2VX00QObS5+cTg== + dependencies: + postcss "^7.0.0" + +postcss-html@^0.36.0: + version "0.36.0" + resolved "https://registry.yarnpkg.com/postcss-html/-/postcss-html-0.36.0.tgz#b40913f94eaacc2453fd30a1327ad6ee1f88b204" + integrity sha512-HeiOxGcuwID0AFsNAL0ox3mW6MHH5cstWN1Z3Y+n6H+g12ih7LHdYxWwEA/QmrebctLjo79xz9ouK3MroHwOJw== + dependencies: + htmlparser2 "^3.10.0" + +postcss-jsx@^0.36.0: + version "0.36.0" + resolved "https://registry.yarnpkg.com/postcss-jsx/-/postcss-jsx-0.36.0.tgz#b7685ed3d070a175ef0aa48f83d9015bd772c82d" + integrity sha512-/lWOSXSX5jlITCKFkuYU2WLFdrncZmjSVyNpHAunEgirZXLwI8RjU556e3Uz4mv0WVHnJA9d3JWb36lK9Yx99g== + dependencies: + "@babel/core" ">=7.1.0" + +postcss-less@^3.1.0: + version "3.1.2" + resolved "https://registry.yarnpkg.com/postcss-less/-/postcss-less-3.1.2.tgz#fb67e7ba351dbdf69de3c52eebd1184c52bfaea6" + integrity sha512-66ZBVo1JGkQ7r13M97xcHcyarWpgg21RaqIZWZXHE3XOtb5+ywK1uZWeY1DYkYRkIX/l8Hvxnx9iSKB68nFr+w== + dependencies: + postcss "^7.0.14" + +postcss-load-config@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-2.0.0.tgz#f1312ddbf5912cd747177083c5ef7a19d62ee484" + integrity sha512-V5JBLzw406BB8UIfsAWSK2KSwIJ5yoEIVFb4gVkXci0QdKgA24jLmHZ/ghe/GgX0lJ0/D1uUK1ejhzEY94MChQ== + dependencies: + cosmiconfig "^4.0.0" + import-cwd "^2.0.0" + +postcss-markdown@^0.36.0: + version "0.36.0" + resolved "https://registry.yarnpkg.com/postcss-markdown/-/postcss-markdown-0.36.0.tgz#7f22849ae0e3db18820b7b0d5e7833f13a447560" + integrity sha512-rl7fs1r/LNSB2bWRhyZ+lM/0bwKv9fhl38/06gF6mKMo/NPnp55+K1dSTosSVjFZc0e1ppBlu+WT91ba0PMBfQ== + dependencies: + remark "^10.0.1" + unist-util-find-all-after "^1.0.2" + +postcss-media-query-parser@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz#27b39c6f4d94f81b1a73b8f76351c609e5cef244" + integrity sha1-J7Ocb02U+Bsac7j3Y1HGCeXO8kQ= + +postcss-merge-longhand@^4.0.11: + version "4.0.11" + resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-4.0.11.tgz#62f49a13e4a0ee04e7b98f42bb16062ca2549e24" + integrity sha512-alx/zmoeXvJjp7L4mxEMjh8lxVlDFX1gqWHzaaQewwMZiVhLo42TEClKaeHbRf6J7j82ZOdTJ808RtN0ZOZwvw== + dependencies: + css-color-names "0.0.4" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + stylehacks "^4.0.0" + +postcss-merge-rules@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/postcss-merge-rules/-/postcss-merge-rules-4.0.3.tgz#362bea4ff5a1f98e4075a713c6cb25aefef9a650" + integrity sha512-U7e3r1SbvYzO0Jr3UT/zKBVgYYyhAz0aitvGIYOYK5CPmkNih+WDSsS5tvPrJ8YMQYlEMvsZIiqmn7HdFUaeEQ== + dependencies: + browserslist "^4.0.0" + caniuse-api "^3.0.0" + cssnano-util-same-parent "^4.0.0" + postcss "^7.0.0" + postcss-selector-parser "^3.0.0" + vendors "^1.0.0" + +postcss-minify-font-values@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-minify-font-values/-/postcss-minify-font-values-4.0.2.tgz#cd4c344cce474343fac5d82206ab2cbcb8afd5a6" + integrity sha512-j85oO6OnRU9zPf04+PZv1LYIYOprWm6IA6zkXkrJXyRveDEuQggG6tvoy8ir8ZwjLxLuGfNkCZEQG7zan+Hbtg== + dependencies: + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-minify-gradients@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-minify-gradients/-/postcss-minify-gradients-4.0.2.tgz#93b29c2ff5099c535eecda56c4aa6e665a663471" + integrity sha512-qKPfwlONdcf/AndP1U8SJ/uzIJtowHlMaSioKzebAXSG4iJthlWC9iSWznQcX4f66gIWX44RSA841HTHj3wK+Q== + dependencies: + cssnano-util-get-arguments "^4.0.0" + is-color-stop "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-minify-params@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-minify-params/-/postcss-minify-params-4.0.2.tgz#6b9cef030c11e35261f95f618c90036d680db874" + integrity sha512-G7eWyzEx0xL4/wiBBJxJOz48zAKV2WG3iZOqVhPet/9geefm/Px5uo1fzlHu+DOjT+m0Mmiz3jkQzVHe6wxAWg== + dependencies: + alphanum-sort "^1.0.0" + browserslist "^4.0.0" + cssnano-util-get-arguments "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + uniqs "^2.0.0" + +postcss-minify-selectors@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-minify-selectors/-/postcss-minify-selectors-4.0.2.tgz#e2e5eb40bfee500d0cd9243500f5f8ea4262fbd8" + integrity sha512-D5S1iViljXBj9kflQo4YutWnJmwm8VvIsU1GeXJGiG9j8CIg9zs4voPMdQDUmIxetUOh60VilsNzCiAFTOqu3g== + dependencies: + alphanum-sort "^1.0.0" + has "^1.0.0" + postcss "^7.0.0" + postcss-selector-parser "^3.0.0" + +postcss-modules-extract-imports@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.1.0.tgz#b614c9720be6816eaee35fb3a5faa1dba6a05ddb" + integrity sha1-thTJcgvmgW6u41+zpfqh26agXds= + dependencies: + postcss "^6.0.1" + +postcss-modules-local-by-default@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/postcss-modules-local-by-default/-/postcss-modules-local-by-default-1.2.0.tgz#f7d80c398c5a393fa7964466bd19500a7d61c069" + integrity sha1-99gMOYxaOT+nlkRmvRlQCn1hwGk= + dependencies: + css-selector-tokenizer "^0.7.0" + postcss "^6.0.1" + +postcss-modules-scope@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-1.1.0.tgz#d6ea64994c79f97b62a72b426fbe6056a194bb90" + integrity sha1-1upkmUx5+XtipytCb75gVqGUu5A= + dependencies: + css-selector-tokenizer "^0.7.0" + postcss "^6.0.1" + +postcss-modules-values@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/postcss-modules-values/-/postcss-modules-values-1.3.0.tgz#ecffa9d7e192518389f42ad0e83f72aec456ea20" + integrity sha1-7P+p1+GSUYOJ9CrQ6D9yrsRW6iA= + dependencies: + icss-replace-symbols "^1.1.0" + postcss "^6.0.1" + +postcss-modules@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/postcss-modules/-/postcss-modules-1.4.1.tgz#8aa35bd3461db67e27377a7ce770d77b654a84ef" + integrity sha512-btTrbK+Xc3NBuYF8TPBjCMRSp5h6NoQ1iVZ6WiDQENIze6KIYCSf0+UFQuV3yJ7gRHA+4AAtF8i2jRvUpbBMMg== + dependencies: + css-modules-loader-core "^1.1.0" + generic-names "^1.0.3" + lodash.camelcase "^4.3.0" + postcss "^7.0.1" + string-hash "^1.1.1" + +postcss-normalize-charset@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-4.0.1.tgz#8b35add3aee83a136b0471e0d59be58a50285dd4" + integrity sha512-gMXCrrlWh6G27U0hF3vNvR3w8I1s2wOBILvA87iNXaPvSNo5uZAMYsZG7XjCUf1eVxuPfyL4TJ7++SGZLc9A3g== + dependencies: + postcss "^7.0.0" + +postcss-normalize-display-values@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-normalize-display-values/-/postcss-normalize-display-values-4.0.2.tgz#0dbe04a4ce9063d4667ed2be476bb830c825935a" + integrity sha512-3F2jcsaMW7+VtRMAqf/3m4cPFhPD3EFRgNs18u+k3lTJJlVe7d0YPO+bnwqo2xg8YiRpDXJI2u8A0wqJxMsQuQ== + dependencies: + cssnano-util-get-match "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-positions@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-normalize-positions/-/postcss-normalize-positions-4.0.2.tgz#05f757f84f260437378368a91f8932d4b102917f" + integrity sha512-Dlf3/9AxpxE+NF1fJxYDeggi5WwV35MXGFnnoccP/9qDtFrTArZ0D0R+iKcg5WsUd8nUYMIl8yXDCtcrT8JrdA== + dependencies: + cssnano-util-get-arguments "^4.0.0" + has "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-repeat-style@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-4.0.2.tgz#c4ebbc289f3991a028d44751cbdd11918b17910c" + integrity sha512-qvigdYYMpSuoFs3Is/f5nHdRLJN/ITA7huIoCyqqENJe9PvPmLhNLMu7QTjPdtnVf6OcYYO5SHonx4+fbJE1+Q== + dependencies: + cssnano-util-get-arguments "^4.0.0" + cssnano-util-get-match "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-string@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-normalize-string/-/postcss-normalize-string-4.0.2.tgz#cd44c40ab07a0c7a36dc5e99aace1eca4ec2690c" + integrity sha512-RrERod97Dnwqq49WNz8qo66ps0swYZDSb6rM57kN2J+aoyEAJfZ6bMx0sx/F9TIEX0xthPGCmeyiam/jXif0eA== + dependencies: + has "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-timing-functions@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-4.0.2.tgz#8e009ca2a3949cdaf8ad23e6b6ab99cb5e7d28d9" + integrity sha512-acwJY95edP762e++00Ehq9L4sZCEcOPyaHwoaFOhIwWCDfik6YvqsYNxckee65JHLKzuNSSmAdxwD2Cud1Z54A== + dependencies: + cssnano-util-get-match "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-unicode@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-normalize-unicode/-/postcss-normalize-unicode-4.0.1.tgz#841bd48fdcf3019ad4baa7493a3d363b52ae1cfb" + integrity sha512-od18Uq2wCYn+vZ/qCOeutvHjB5jm57ToxRaMeNuf0nWVHaP9Hua56QyMF6fs/4FSUnVIw0CBPsU0K4LnBPwYwg== + dependencies: + browserslist "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-url@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-normalize-url/-/postcss-normalize-url-4.0.1.tgz#10e437f86bc7c7e58f7b9652ed878daaa95faae1" + integrity sha512-p5oVaF4+IHwu7VpMan/SSpmpYxcJMtkGppYf0VbdH5B6hN8YNmVyJLuY9FmLQTzY3fag5ESUUHDqM+heid0UVA== + dependencies: + is-absolute-url "^2.0.0" + normalize-url "^3.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-whitespace@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-normalize-whitespace/-/postcss-normalize-whitespace-4.0.2.tgz#bf1d4070fe4fcea87d1348e825d8cc0c5faa7d82" + integrity sha512-tO8QIgrsI3p95r8fyqKV+ufKlSHh9hMJqACqbv2XknufqEDhDvbguXGBBqxw9nsQoXWf0qOqppziKJKHMD4GtA== + dependencies: + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-ordered-values@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/postcss-ordered-values/-/postcss-ordered-values-4.1.2.tgz#0cf75c820ec7d5c4d280189559e0b571ebac0eee" + integrity sha512-2fCObh5UanxvSxeXrtLtlwVThBvHn6MQcu4ksNT2tsaV2Fg76R2CV98W7wNSlX+5/pFwEyaDwKLLoEV7uRybAw== + dependencies: + cssnano-util-get-arguments "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-reduce-initial@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/postcss-reduce-initial/-/postcss-reduce-initial-4.0.3.tgz#7fd42ebea5e9c814609639e2c2e84ae270ba48df" + integrity sha512-gKWmR5aUulSjbzOfD9AlJiHCGH6AEVLaM0AV+aSioxUDd16qXP1PCh8d1/BGVvpdWn8k/HiK7n6TjeoXN1F7DA== + dependencies: + browserslist "^4.0.0" + caniuse-api "^3.0.0" + has "^1.0.0" + postcss "^7.0.0" + +postcss-reduce-transforms@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-reduce-transforms/-/postcss-reduce-transforms-4.0.2.tgz#17efa405eacc6e07be3414a5ca2d1074681d4e29" + integrity sha512-EEVig1Q2QJ4ELpJXMZR8Vt5DQx8/mo+dGWSR7vWXqcob2gQLyQGsionYcGKATXvQzMPn6DSN1vTN7yFximdIAg== + dependencies: + cssnano-util-get-match "^4.0.0" + has "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-reporter@^6.0.0: + version "6.0.1" + resolved "https://registry.yarnpkg.com/postcss-reporter/-/postcss-reporter-6.0.1.tgz#7c055120060a97c8837b4e48215661aafb74245f" + integrity sha512-LpmQjfRWyabc+fRygxZjpRxfhRf9u/fdlKf4VHG4TSPbV2XNsuISzYW1KL+1aQzx53CAppa1bKG4APIB/DOXXw== + dependencies: + chalk "^2.4.1" + lodash "^4.17.11" + log-symbols "^2.2.0" + postcss "^7.0.7" + +postcss-resolve-nested-selector@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.1.tgz#29ccbc7c37dedfac304e9fff0bf1596b3f6a0e4e" + integrity sha1-Kcy8fDfe36wwTp//C/FZaz9qDk4= + +postcss-safe-parser@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-safe-parser/-/postcss-safe-parser-4.0.1.tgz#8756d9e4c36fdce2c72b091bbc8ca176ab1fcdea" + integrity sha512-xZsFA3uX8MO3yAda03QrG3/Eg1LN3EPfjjf07vke/46HERLZyHrTsQ9E1r1w1W//fWEhtYNndo2hQplN2cVpCQ== + dependencies: + postcss "^7.0.0" + +postcss-sass@^0.3.5: + version "0.3.5" + resolved "https://registry.yarnpkg.com/postcss-sass/-/postcss-sass-0.3.5.tgz#6d3e39f101a53d2efa091f953493116d32beb68c" + integrity sha512-B5z2Kob4xBxFjcufFnhQ2HqJQ2y/Zs/ic5EZbCywCkxKd756Q40cIQ/veRDwSrw1BF6+4wUgmpm0sBASqVi65A== + dependencies: + gonzales-pe "^4.2.3" + postcss "^7.0.1" + +postcss-scss@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-scss/-/postcss-scss-2.0.0.tgz#248b0a28af77ea7b32b1011aba0f738bda27dea1" + integrity sha512-um9zdGKaDZirMm+kZFKKVsnKPF7zF7qBAtIfTSnZXD1jZ0JNZIxdB6TxQOjCnlSzLRInVl2v3YdBh/M881C4ug== + dependencies: + postcss "^7.0.0" + +postcss-selector-parser@^3.0.0, postcss-selector-parser@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-3.1.1.tgz#4f875f4afb0c96573d5cf4d74011aee250a7e865" + integrity sha1-T4dfSvsMllc9XPTXQBGu4lCn6GU= + dependencies: + dot-prop "^4.1.1" + indexes-of "^1.0.1" + uniq "^1.0.1" + +postcss-selector-parser@^5.0.0-rc.4: + version "5.0.0" + resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz#249044356697b33b64f1a8f7c80922dddee7195c" + integrity sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ== + dependencies: + cssesc "^2.0.0" + indexes-of "^1.0.1" + uniq "^1.0.1" + +postcss-svgo@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-4.0.2.tgz#17b997bc711b333bab143aaed3b8d3d6e3d38258" + integrity sha512-C6wyjo3VwFm0QgBy+Fu7gCYOkCmgmClghO+pjcxvrcBKtiKt0uCF+hvbMO1fyv5BMImRK90SMb+dwUnfbGd+jw== + dependencies: + is-svg "^3.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + svgo "^1.0.0" + +postcss-syntax@^0.36.2: + version "0.36.2" + resolved "https://registry.yarnpkg.com/postcss-syntax/-/postcss-syntax-0.36.2.tgz#f08578c7d95834574e5593a82dfbfa8afae3b51c" + integrity sha512-nBRg/i7E3SOHWxF3PpF5WnJM/jQ1YpY9000OaVXlAQj6Zp/kIqJxEDWIZ67tAd7NLuk7zqN4yqe9nc0oNAOs1w== + +postcss-unique-selectors@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-unique-selectors/-/postcss-unique-selectors-4.0.1.tgz#9446911f3289bfd64c6d680f073c03b1f9ee4bac" + integrity sha512-+JanVaryLo9QwZjKrmJgkI4Fn8SBgRO6WXQBJi7KiAVPlmxikB5Jzc4EvXMT2H0/m0RjrVVm9rGNhZddm/8Spg== + dependencies: + alphanum-sort "^1.0.0" + postcss "^7.0.0" + uniqs "^2.0.0" + +postcss-value-parser@^3.0.0, postcss-value-parser@^3.3.0, postcss-value-parser@^3.3.1: + version "3.3.1" + resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz#9ff822547e2893213cf1c30efa51ac5fd1ba8281" + integrity sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ== + +postcss@6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.1.tgz#000dbd1f8eef217aa368b9a212c5fc40b2a8f3f2" + integrity sha1-AA29H47vIXqjaLmiEsX8QLKo8/I= + dependencies: + chalk "^1.1.3" + source-map "^0.5.6" + supports-color "^3.2.3" + +postcss@^6.0.1: + version "6.0.23" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.23.tgz#61c82cc328ac60e677645f979054eb98bc0e3324" + integrity sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag== + dependencies: + chalk "^2.4.1" + source-map "^0.6.1" + supports-color "^5.4.0" + +postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.13, postcss@^7.0.14, postcss@^7.0.2, postcss@^7.0.5, postcss@^7.0.7: + version "7.0.14" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.14.tgz#4527ed6b1ca0d82c53ce5ec1a2041c2346bbd6e5" + integrity sha512-NsbD6XUUMZvBxtQAJuWDJeeC4QFsmWsfozWxCJPWf3M55K9iu2iMDaKqyoOdTJ1R4usBXuxlVFAIo8rZPQD4Bg== + dependencies: + chalk "^2.4.2" + source-map "^0.6.1" + supports-color "^6.1.0" + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= + +prepend-http@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" + integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw= + +preserve@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" + integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks= + +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== + dependencies: + fast-diff "^1.1.2" + +prettier@^1.15.3: + version "1.16.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.1.tgz#534c2c9d7853f8845e5e078384e71973bd74089f" + integrity sha512-XXUITwIkGb3CPJ2hforHah/zTINRyie5006Jd2HKy2qz7snEJXl0KLfsJZW/wst9g6R2rFvqba3VpNYdu1hDcA== + +pretty-format@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-23.6.0.tgz#5eaac8eeb6b33b987b7fe6097ea6a8a146ab5760" + integrity sha512-zf9NV1NSlDLDjycnwm6hpFATCGl/K1lt0R/GdkAK2O5LN/rwJoB+Mh93gGJjut4YbmecbfgLWVGSTCr0Ewvvbw== + dependencies: + ansi-regex "^3.0.0" + ansi-styles "^3.2.0" + +pretty-format@^24.7.0: + version "24.7.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.7.0.tgz#d23106bc2edcd776079c2daa5da02bcb12ed0c10" + integrity sha512-apen5cjf/U4dj7tHetpC7UEFCvtAgnNZnBDkfPv3fokzIqyOJckAG9OlAPC1BlFALnqT/lGB2tl9EJjlK6eCsA== + dependencies: + "@jest/types" "^24.7.0" + ansi-regex "^4.0.0" + ansi-styles "^3.2.0" + react-is "^16.8.4" + +private@^0.1.6: + version "0.1.8" + resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" + integrity sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg== + +process-nextick-args@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" + integrity sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw== + +progress@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" + integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== + +promise-inflight@^1.0.1, promise-inflight@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3" + integrity sha1-mEcocL8igTL8vdhoEputEsPAKeM= + +promise-retry@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/promise-retry/-/promise-retry-1.1.1.tgz#6739e968e3051da20ce6497fb2b50f6911df3d6d" + integrity sha1-ZznpaOMFHaIM5kl/srUPaRHfPW0= + dependencies: + err-code "^1.0.0" + retry "^0.10.0" + +promise.series@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/promise.series/-/promise.series-0.2.0.tgz#2cc7ebe959fc3a6619c04ab4dbdc9e452d864bbd" + integrity sha1-LMfr6Vn8OmYZwEq029yeRS2GS70= + +prompts@^2.0.1: + version "2.0.4" + resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.0.4.tgz#179f9d4db3128b9933aa35f93a800d8fce76a682" + integrity sha512-HTzM3UWp/99A0gk51gAegwo1QRYA7xjcZufMNe33rCclFszUYAuHe1fIN/3ZmiHeGPkUsNaRyQm1hHOfM0PKxA== + dependencies: + kleur "^3.0.2" + sisteransi "^1.0.0" + +promzard@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/promzard/-/promzard-0.3.0.tgz#26a5d6ee8c7dee4cb12208305acfb93ba382a9ee" + integrity sha1-JqXW7ox97kyxIggwWs+5O6OCqe4= + dependencies: + read "1" + +property-information@^5.0.0, property-information@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/property-information/-/property-information-5.0.1.tgz#c3b09f4f5750b1634c0b24205adbf78f18bdf94f" + integrity sha512-nAtBDVeSwFM3Ot/YxT7s4NqZmqXI7lLzf46BThvotEtYf2uk2yH0ACYuWQkJ7gxKs49PPtKVY0UlDGkyN9aJlw== + dependencies: + xtend "^4.0.1" + +proto-list@~1.2.1: + version "1.2.4" + resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849" + integrity sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk= + +protoduck@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/protoduck/-/protoduck-5.0.1.tgz#03c3659ca18007b69a50fd82a7ebcc516261151f" + integrity sha512-WxoCeDCoCBY55BMvj4cAEjdVUFGRWed9ZxPlqTKYyw1nDDTQ4pqmnIMAGfJlg7Dx35uB/M+PHJPTmGOvaCaPTg== + dependencies: + genfun "^5.0.0" + +prr@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" + integrity sha1-0/wRS6BplaRexok/SEzrHXj19HY= + +pseudomap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM= + +psl@^1.1.24, psl@^1.1.28: + version "1.1.31" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.31.tgz#e9aa86d0101b5b105cbe93ac6b784cd547276184" + integrity sha512-/6pt4+C+T+wZUieKR620OpzN/LlnNKuWjy1iFLQ/UG35JqHlR/89MP1d96dUfkf6Dne3TuLQzOYEYshJ+Hx8mw== + +pump@^2.0.0, pump@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909" + integrity sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +pump@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" + integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +pumpify@^1.3.3: + version "1.5.1" + resolved "https://registry.yarnpkg.com/pumpify/-/pumpify-1.5.1.tgz#36513be246ab27570b1a374a5ce278bfd74370ce" + integrity sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ== + dependencies: + duplexify "^3.6.0" + inherits "^2.0.3" + pump "^2.0.0" + +punycode@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + integrity sha1-wNWmOycYgArY4esPpSachN1BhF4= + +punycode@^2.1.0, punycode@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + +q@^1.1.2, q@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" + integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc= + +qrcode-terminal@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/qrcode-terminal/-/qrcode-terminal-0.12.0.tgz#bb5b699ef7f9f0505092a3748be4464fe71b5819" + integrity sha512-EXtzRZmC+YGmGlDFbXKxQiMZNwCLEO6BANKXG4iCtSIM0yqc/pappSx3RIKr4r0uh5JsBckOXeKrB3Iz7mdQpQ== + +qs@~6.5.2: + version "6.5.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" + integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== + +query-string@^6.1.0: + version "6.4.2" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.4.2.tgz#8be1dbd105306aebf86022144f575a29d516b713" + integrity sha512-DfJqAen17LfLA3rQ+H5S4uXphrF+ANU1lT2ijds4V/Tj4gZxA3gx5/tg1bz7kYCmwna7LyJNCYqO7jNRzo3aLw== + dependencies: + decode-uri-component "^0.2.0" + split-on-first "^1.0.0" + strict-uri-encode "^2.0.0" + +quick-lru@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-1.1.0.tgz#4360b17c61136ad38078397ff11416e186dcfbb8" + integrity sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g= + +qw@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/qw/-/qw-1.0.1.tgz#efbfdc740f9ad054304426acb183412cc8b996d4" + integrity sha1-77/cdA+a0FQwRCassYNBLMi5ltQ= + +randomatic@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.1.tgz#b776efc59375984e36c537b2f51a1f0aff0da1ed" + integrity sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw== + dependencies: + is-number "^4.0.0" + kind-of "^6.0.0" + math-random "^1.0.1" + +rc@^1.0.1, rc@^1.1.6, rc@^1.2.7, rc@^1.2.8: + version "1.2.8" + resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" + integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== + dependencies: + deep-extend "^0.6.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + +react-is@^16.8.4: + version "16.8.6" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16" + integrity sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA== + +read-cmd-shim@^1.0.1, read-cmd-shim@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/read-cmd-shim/-/read-cmd-shim-1.0.1.tgz#2d5d157786a37c055d22077c32c53f8329e91c7b" + integrity sha1-LV0Vd4ajfAVdIgd8MsU/gynpHHs= + dependencies: + graceful-fs "^4.1.2" + +read-installed@~4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/read-installed/-/read-installed-4.0.3.tgz#ff9b8b67f187d1e4c29b9feb31f6b223acd19067" + integrity sha1-/5uLZ/GH0eTCm5/rMfayI6zRkGc= + dependencies: + debuglog "^1.0.1" + read-package-json "^2.0.0" + readdir-scoped-modules "^1.0.0" + semver "2 || 3 || 4 || 5" + slide "~1.1.3" + util-extend "^1.0.1" + optionalDependencies: + graceful-fs "^4.1.2" + +"read-package-json@1 || 2", read-package-json@^2.0.0, read-package-json@^2.0.13: + version "2.0.13" + resolved "https://registry.yarnpkg.com/read-package-json/-/read-package-json-2.0.13.tgz#2e82ebd9f613baa6d2ebe3aa72cefe3f68e41f4a" + integrity sha512-/1dZ7TRZvGrYqE0UAfN6qQb5GYBsNcqS1C0tNK601CFOJmtHI7NIGXwetEPU/OtoFHZL3hDxm4rolFFVE9Bnmg== + dependencies: + glob "^7.1.1" + json-parse-better-errors "^1.0.1" + normalize-package-data "^2.0.0" + slash "^1.0.0" + optionalDependencies: + graceful-fs "^4.1.2" + +read-package-tree@^5.2.1: + version "5.2.2" + resolved "https://registry.yarnpkg.com/read-package-tree/-/read-package-tree-5.2.2.tgz#4b6a0ef2d943c1ea36a578214c9a7f6b7424f7a8" + integrity sha512-rW3XWUUkhdKmN2JKB4FL563YAgtINifso5KShykufR03nJ5loGFlkUMe1g/yxmqX073SoYYTsgXu7XdDinKZuA== + dependencies: + debuglog "^1.0.1" + dezalgo "^1.0.0" + once "^1.3.0" + read-package-json "^2.0.0" + readdir-scoped-modules "^1.0.0" + +read-pkg-up@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" + integrity sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4= + dependencies: + find-up "^2.0.0" + read-pkg "^2.0.0" + +read-pkg-up@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07" + integrity sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc= + dependencies: + find-up "^2.0.0" + read-pkg "^3.0.0" + +read-pkg-up@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-4.0.0.tgz#1b221c6088ba7799601c808f91161c66e58f8978" + integrity sha512-6etQSH7nJGsK0RbG/2TeDzZFa8shjQ1um+SwQQ5cwKy0dhSXdOncEhb1CPpvQG4h7FyOV6EB6YlV0yJvZQNAkA== + dependencies: + find-up "^3.0.0" + read-pkg "^3.0.0" + +read-pkg@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" + integrity sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg= + dependencies: + load-json-file "^2.0.0" + normalize-package-data "^2.3.2" + path-type "^2.0.0" + +read-pkg@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389" + integrity sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k= + dependencies: + load-json-file "^4.0.0" + normalize-package-data "^2.3.2" + path-type "^3.0.0" + +read-pkg@^4.0.0, read-pkg@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-4.0.1.tgz#963625378f3e1c4d48c85872b5a6ec7d5d093237" + integrity sha1-ljYlN48+HE1IyFhytabsfV0JMjc= + dependencies: + normalize-package-data "^2.3.2" + parse-json "^4.0.0" + pify "^3.0.0" + +read@1, read@~1.0.1, read@~1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/read/-/read-1.0.7.tgz#b3da19bd052431a97671d44a42634adf710b40c4" + integrity sha1-s9oZvQUkMal2cdRKQmNK33ELQMQ= + dependencies: + mute-stream "~0.0.4" + +"readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.6, readable-stream@~2.3.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" + integrity sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" + util-deprecate "~1.0.1" + +readable-stream@^3.0.6: + version "3.1.1" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.1.1.tgz#ed6bbc6c5ba58b090039ff18ce670515795aeb06" + integrity sha512-DkN66hPyqDhnIQ6Jcsvx9bFjhw214O4poMBcIMgPVpQvNy9a0e0Uhg5SqySyDKAmUlwt8LonTBz1ezOnM8pUdA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readable-stream@~1.1.10: + version "1.1.14" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.1.14.tgz#7cf4c54ef648e3813084c636dd2079e166c081d9" + integrity sha1-fPTFTvZI44EwhMY23SB54WbAgdk= + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "0.0.1" + string_decoder "~0.10.x" + +readdir-scoped-modules@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/readdir-scoped-modules/-/readdir-scoped-modules-1.0.2.tgz#9fafa37d286be5d92cbaebdee030dc9b5f406747" + integrity sha1-n6+jfShr5dksuuve4DDcm19AZ0c= + dependencies: + debuglog "^1.0.1" + dezalgo "^1.0.0" + graceful-fs "^4.1.2" + once "^1.3.0" + +realpath-native@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/realpath-native/-/realpath-native-1.1.0.tgz#2003294fea23fb0672f2476ebe22fcf498a2d65c" + integrity sha512-wlgPA6cCIIg9gKz0fgAPjnzh4yR/LnXovwuo9hvyGvx3h8nX4+/iLZplfUWasXpqD8BdnGnP5njOFjkUwPzvjA== + dependencies: + util.promisify "^1.0.0" + +rechoir@^0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" + integrity sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q= + dependencies: + resolve "^1.1.6" + +redent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/redent/-/redent-2.0.0.tgz#c1b2007b42d57eb1389079b3c8333639d5e1ccaa" + integrity sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo= + dependencies: + indent-string "^3.0.0" + strip-indent "^2.0.0" + +redeyed@~2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/redeyed/-/redeyed-2.1.1.tgz#8984b5815d99cb220469c99eeeffe38913e6cc0b" + integrity sha1-iYS1gV2ZyyIEacme7v/jiRPmzAs= + dependencies: + esprima "~4.0.0" + +redux-testkit@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/redux-testkit/-/redux-testkit-1.0.6.tgz#58b2b389455be927a4eff796060a17eee89d9393" + integrity sha1-WLKziUVb6Sek7/eWBgoX7uidk5M= + dependencies: + babel-polyfill "^6.8.0" + lodash "^4.0.0" + +regenerate-unicode-properties@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-7.0.0.tgz#107405afcc4a190ec5ed450ecaa00ed0cafa7a4c" + integrity sha512-s5NGghCE4itSlUS+0WUj88G6cfMVMmH8boTPNvABf8od+2dhT9WDlWu8n01raQAJZMOK8Ch6jSexaRO7swd6aw== + dependencies: + regenerate "^1.4.0" + +regenerate@^1.2.1, regenerate@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11" + integrity sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg== + +regenerator-runtime@^0.10.5: + version "0.10.5" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" + integrity sha1-M2w+/BIgrc7dosn6tntaeVWjNlg= + +regenerator-runtime@^0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" + integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== + +regenerator-runtime@^0.12.0: + version "0.12.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz#fa1a71544764c036f8c49b13a08b2594c9f8a0de" + integrity sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg== + +regenerator-transform@^0.13.3: + version "0.13.3" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.13.3.tgz#264bd9ff38a8ce24b06e0636496b2c856b57bcbb" + integrity sha512-5ipTrZFSq5vU2YoGoww4uaRVAK4wyYC4TSICibbfEPOruUu8FFP7ErV0BjmbIOEpn3O/k9na9UEdYR/3m7N6uA== + dependencies: + private "^0.1.6" + +regex-cache@^0.4.2: + version "0.4.4" + resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" + integrity sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ== + dependencies: + is-equal-shallow "^0.1.3" + +regex-not@^1.0.0, regex-not@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" + integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== + dependencies: + extend-shallow "^3.0.2" + safe-regex "^1.1.0" + +regexp-tree@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/regexp-tree/-/regexp-tree-0.1.0.tgz#a56ad7746097888ea16457479029ec9345b96ab0" + integrity sha512-rHQv+tzu+0l3KS/ERabas1yK49ahNVxuH40WcPg53CzP5p8TgmmyBgHELLyJcvjhTD0e5ahSY6C76LbEVtr7cg== + dependencies: + cli-table3 "^0.5.0" + colors "^1.1.2" + yargs "^10.0.3" + +regexpp@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f" + integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw== + +regexpu-core@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-1.0.0.tgz#86a763f58ee4d7c2f6b102e4764050de7ed90c6b" + integrity sha1-hqdj9Y7k18L2sQLkdkBQ3n7ZDGs= + dependencies: + regenerate "^1.2.1" + regjsgen "^0.2.0" + regjsparser "^0.1.4" + +regexpu-core@^4.1.3, regexpu-core@^4.2.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.4.0.tgz#8d43e0d1266883969720345e70c275ee0aec0d32" + integrity sha512-eDDWElbwwI3K0Lo6CqbQbA6FwgtCz4kYTarrri1okfkRLZAqstU+B3voZBCjg8Fl6iq0gXrJG6MvRgLthfvgOA== + dependencies: + regenerate "^1.4.0" + regenerate-unicode-properties "^7.0.0" + regjsgen "^0.5.0" + regjsparser "^0.6.0" + unicode-match-property-ecmascript "^1.0.4" + unicode-match-property-value-ecmascript "^1.0.2" + +registry-auth-token@^3.0.1, registry-auth-token@^3.3.1: + version "3.4.0" + resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-3.4.0.tgz#d7446815433f5d5ed6431cd5dca21048f66b397e" + integrity sha512-4LM6Fw8eBQdwMYcES4yTnn2TqIasbXuwDx3um+QRs7S55aMKCBKBxvPXl2RiUjHwuJLTyYfxSpmfSAjQpcuP+A== + dependencies: + rc "^1.1.6" + safe-buffer "^5.0.1" + +registry-url@^3.0.3: + version "3.1.0" + resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-3.1.0.tgz#3d4ef870f73dde1d77f0cf9a381432444e174942" + integrity sha1-PU74cPc93h138M+aOBQyRE4XSUI= + dependencies: + rc "^1.0.1" + +regjsgen@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" + integrity sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc= + +regjsgen@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.5.0.tgz#a7634dc08f89209c2049adda3525711fb97265dd" + integrity sha512-RnIrLhrXCX5ow/E5/Mh2O4e/oa1/jW0eaBKTSy3LaCj+M3Bqvm97GWDp2yUtzIs4LEn65zR2yiYGFqb2ApnzDA== + +regjsparser@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" + integrity sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw= + dependencies: + jsesc "~0.5.0" + +regjsparser@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.6.0.tgz#f1e6ae8b7da2bae96c99399b868cd6c933a2ba9c" + integrity sha512-RQ7YyokLiQBomUJuUG8iGVvkgOLxwyZM8k6d3q5SAXpg4r5TZJZigKFvC6PpD+qQ98bCDC5YelPeA3EucDoNeQ== + dependencies: + jsesc "~0.5.0" + +rehype-parse@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/rehype-parse/-/rehype-parse-6.0.0.tgz#f681555f2598165bee2c778b39f9073d17b16bca" + integrity sha512-V2OjMD0xcSt39G4uRdMTqDXXm6HwkUbLMDayYKA/d037j8/OtVSQ+tqKwYWOuyBeoCs/3clXRe30VUjeMDTBSA== + dependencies: + hast-util-from-parse5 "^5.0.0" + parse5 "^5.0.0" + xtend "^4.0.1" + +remark-parse@^6.0.0: + version "6.0.3" + resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-6.0.3.tgz#c99131052809da482108413f87b0ee7f52180a3a" + integrity sha512-QbDXWN4HfKTUC0hHa4teU463KclLAnwpn/FBn87j9cKYJWWawbiLgMfP2Q4XwhxxuuuOxHlw+pSN0OKuJwyVvg== + dependencies: + collapse-white-space "^1.0.2" + is-alphabetical "^1.0.0" + is-decimal "^1.0.0" + is-whitespace-character "^1.0.0" + is-word-character "^1.0.0" + markdown-escapes "^1.0.0" + parse-entities "^1.1.0" + repeat-string "^1.5.4" + state-toggle "^1.0.0" + trim "0.0.1" + trim-trailing-lines "^1.0.0" + unherit "^1.0.4" + unist-util-remove-position "^1.0.0" + vfile-location "^2.0.0" + xtend "^4.0.1" + +remark-stringify@^6.0.0: + version "6.0.4" + resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-6.0.4.tgz#16ac229d4d1593249018663c7bddf28aafc4e088" + integrity sha512-eRWGdEPMVudijE/psbIDNcnJLRVx3xhfuEsTDGgH4GsFF91dVhw5nhmnBppafJ7+NWINW6C7ZwWbi30ImJzqWg== + dependencies: + ccount "^1.0.0" + is-alphanumeric "^1.0.0" + is-decimal "^1.0.0" + is-whitespace-character "^1.0.0" + longest-streak "^2.0.1" + markdown-escapes "^1.0.0" + markdown-table "^1.1.0" + mdast-util-compact "^1.0.0" + parse-entities "^1.0.2" + repeat-string "^1.5.4" + state-toggle "^1.0.0" + stringify-entities "^1.0.1" + unherit "^1.0.4" + xtend "^4.0.1" + +remark@^10.0.1: + version "10.0.1" + resolved "https://registry.yarnpkg.com/remark/-/remark-10.0.1.tgz#3058076dc41781bf505d8978c291485fe47667df" + integrity sha512-E6lMuoLIy2TyiokHprMjcWNJ5UxfGQjaMSMhV+f4idM625UjjK4j798+gPs5mfjzDE6vL0oFKVeZM6gZVSVrzQ== + dependencies: + remark-parse "^6.0.0" + remark-stringify "^6.0.0" + unified "^7.0.0" + +remove-trailing-separator@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" + integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8= + +repeat-element@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" + integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== + +repeat-string@^1.5.2, repeat-string@^1.5.4, repeat-string@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= + +replace-ext@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.0.tgz#de63128373fcbf7c3ccfa4de5a480c45a67958eb" + integrity sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs= + +request-promise-core@1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.2.tgz#339f6aababcafdb31c799ff158700336301d3346" + integrity sha512-UHYyq1MO8GsefGEt7EprS8UrXsm1TxEvFUX1IMTuSLU2Rh7fTIdFtl8xD7JiEYiWU2dl+NYAjCTksTehQUxPag== + dependencies: + lodash "^4.17.11" + +request-promise-native@^1.0.5: + version "1.0.7" + resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.7.tgz#a49868a624bdea5069f1251d0a836e0d89aa2c59" + integrity sha512-rIMnbBdgNViL37nZ1b3L/VfPOpSi0TqVDQPAvO6U14lMzOLrt5nilxCQqtDKhZeDiW0/hkCXGoQjhgJd/tCh6w== + dependencies: + request-promise-core "1.1.2" + stealthy-require "^1.1.1" + tough-cookie "^2.3.3" + +request@^2.74.0, request@^2.87.0, request@^2.88.0: + version "2.88.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef" + integrity sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg== + dependencies: + aws-sign2 "~0.7.0" + aws4 "^1.8.0" + caseless "~0.12.0" + combined-stream "~1.0.6" + extend "~3.0.2" + forever-agent "~0.6.1" + form-data "~2.3.2" + har-validator "~5.1.0" + http-signature "~1.2.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.19" + oauth-sign "~0.9.0" + performance-now "^2.1.0" + qs "~6.5.2" + safe-buffer "^5.1.2" + tough-cookie "~2.4.3" + tunnel-agent "^0.6.0" + uuid "^3.3.2" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + +require-from-string@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + +require-main-filename@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" + integrity sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE= + +require-main-filename@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" + integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== + +reserved-words@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/reserved-words/-/reserved-words-0.1.2.tgz#00a0940f98cd501aeaaac316411d9adc52b31ab1" + integrity sha1-AKCUD5jNUBrqqsMWQR2a3FKzGrE= + +resolve-cwd@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" + integrity sha1-AKn3OHVW4nA46uIyyqNypqWbZlo= + dependencies: + resolve-from "^3.0.0" + +resolve-dir@^1.0.0, resolve-dir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/resolve-dir/-/resolve-dir-1.0.1.tgz#79a40644c362be82f26effe739c9bb5382046f43" + integrity sha1-eaQGRMNivoLybv/nOcm7U4IEb0M= + dependencies: + expand-tilde "^2.0.0" + global-modules "^1.0.0" + +resolve-from@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" + integrity sha1-six699nWiBvItuZTM17rywoYh0g= + +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + +resolve-url@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" + integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= + +resolve@1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" + integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs= + +resolve@^1.1.6, resolve@^1.10.0, resolve@^1.3.2, resolve@^1.5.0, resolve@^1.8.1, resolve@^1.9.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.10.0.tgz#3bdaaeaf45cc07f375656dfd2e54ed0810b101ba" + integrity sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg== + dependencies: + path-parse "^1.0.6" + +restore-cursor@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" + integrity sha1-n37ih/gv0ybU/RYpI9YhKe7g368= + dependencies: + onetime "^2.0.0" + signal-exit "^3.0.2" + +ret@~0.1.10: + version "0.1.15" + resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" + integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== + +retry@^0.10.0: + version "0.10.1" + resolved "https://registry.yarnpkg.com/retry/-/retry-0.10.1.tgz#e76388d217992c252750241d3d3956fed98d8ff4" + integrity sha1-52OI0heZLCUnUCQdPTlW/tmNj/Q= + +retry@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/retry/-/retry-0.12.0.tgz#1b42a6266a21f07421d1b0b54b7dc167b01c013b" + integrity sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs= + +rgb-regex@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/rgb-regex/-/rgb-regex-1.0.1.tgz#c0e0d6882df0e23be254a475e8edd41915feaeb1" + integrity sha1-wODWiC3w4jviVKR16O3UGRX+rrE= + +rgba-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/rgba-regex/-/rgba-regex-1.0.0.tgz#43374e2e2ca0968b0ef1523460b7d730ff22eeb3" + integrity sha1-QzdOLiyglosO8VI0YLfXMP8i7rM= + +right-pad@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/right-pad/-/right-pad-1.0.1.tgz#8ca08c2cbb5b55e74dafa96bf7fd1a27d568c8d0" + integrity sha1-jKCMLLtbVedNr6lr9/0aJ9VoyNA= + +rimraf@2, rimraf@2.6.3, rimraf@^2.2.8, rimraf@^2.5.2, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2, rimraf@~2.6.2: + version "2.6.3" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" + integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== + dependencies: + glob "^7.1.3" + +rollup-plugin-babel@^4.1.0: + version "4.3.2" + resolved "https://registry.yarnpkg.com/rollup-plugin-babel/-/rollup-plugin-babel-4.3.2.tgz#8c0e1bd7aa9826e90769cf76895007098ffd1413" + integrity sha512-KfnizE258L/4enADKX61ozfwGHoqYauvoofghFJBhFnpH9Sb9dNPpWg8QHOaAfVASUYV8w0mCx430i9z0LJoJg== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + rollup-pluginutils "^2.3.0" + +rollup-plugin-commonjs@^9.2.0: + version "9.2.0" + resolved "https://registry.yarnpkg.com/rollup-plugin-commonjs/-/rollup-plugin-commonjs-9.2.0.tgz#4604e25069e0c78a09e08faa95dc32dec27f7c89" + integrity sha512-0RM5U4Vd6iHjL6rLvr3lKBwnPsaVml+qxOGaaNUWN1lSq6S33KhITOfHmvxV3z2vy9Mk4t0g4rNlVaJJsNQPWA== + dependencies: + estree-walker "^0.5.2" + magic-string "^0.25.1" + resolve "^1.8.1" + rollup-pluginutils "^2.3.3" + +rollup-plugin-json@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/rollup-plugin-json/-/rollup-plugin-json-4.0.0.tgz#a18da0a4b30bf5ca1ee76ddb1422afbb84ae2b9e" + integrity sha512-hgb8N7Cgfw5SZAkb3jf0QXii6QX/FOkiIq2M7BAQIEydjHvTyxXHQiIzZaTFgx1GK0cRCHOCBHIyEkkLdWKxow== + dependencies: + rollup-pluginutils "^2.5.0" + +rollup-plugin-node-resolve@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-4.0.0.tgz#9bc6b8205e9936cc0e26bba2415f1ecf1e64d9b2" + integrity sha512-7Ni+/M5RPSUBfUaP9alwYQiIKnKeXCOHiqBpKUl9kwp3jX5ZJtgXAait1cne6pGEVUUztPD6skIKH9Kq9sNtfw== + dependencies: + builtin-modules "^3.0.0" + is-module "^1.0.0" + resolve "^1.8.1" + +rollup-plugin-peer-deps-external@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/rollup-plugin-peer-deps-external/-/rollup-plugin-peer-deps-external-2.2.0.tgz#99ef9231aa01736f3e9605b7c3084a0d627f665b" + integrity sha512-BmJMHUWQcvjS2dQMwJ7dzvdbwpRChnq4AYk2sTU/4aySt9Kumk8y8W3HhTHss31wxzKb0AC/wsiX1AqDcOBIEA== + +rollup-plugin-postcss@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/rollup-plugin-postcss/-/rollup-plugin-postcss-2.0.3.tgz#1fd5b7e1fc7545cb0084d9c99d11b259e41a05e6" + integrity sha512-d12oKl6za/GGXmlytzVPzzTdPCKgti/Kq2kNhtfm5vv9hkNbyrTvizMBm6zZ5rRWX/sIWl3znjIJ8xy6Hofoeg== + dependencies: + chalk "^2.4.2" + concat-with-sourcemaps "^1.0.5" + cssnano "^4.1.8" + import-cwd "^2.1.0" + p-queue "^2.4.2" + pify "^3.0.0" + postcss "^7.0.14" + postcss-load-config "^2.0.0" + postcss-modules "^1.4.1" + promise.series "^0.2.0" + reserved-words "^0.1.2" + resolve "^1.5.0" + rollup-pluginutils "^2.0.1" + style-inject "^0.3.0" + +rollup-plugin-url@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/rollup-plugin-url/-/rollup-plugin-url-2.1.0.tgz#c06be791dfee1b9f5e0854a94cc6bb3dc2743bc0" + integrity sha512-qANv7Yf9JiUcOmlUS5j0Woo1tiyyCiBVX7UFZAFImu+1eHrVlkc1LSk+zetOvZ4e8cwhGUIrtGe7wP/dNOCASw== + dependencies: + mime "^2.3.1" + mkpath "^1.0.0" + rollup-pluginutils "^2.3.3" + +rollup-pluginutils@^2.0.1, rollup-pluginutils@^2.3.0, rollup-pluginutils@^2.3.3: + version "2.3.3" + resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.3.3.tgz#3aad9b1eb3e7fe8262820818840bf091e5ae6794" + integrity sha512-2XZwja7b6P5q4RZ5FhyX1+f46xi1Z3qBKigLRZ6VTZjwbN0K1IFGMlwm06Uu0Emcre2Z63l77nq/pzn+KxIEoA== + dependencies: + estree-walker "^0.5.2" + micromatch "^2.3.11" + +rollup-pluginutils@^2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.5.0.tgz#23be0f05ac3972ea7b08fc7870cb91fde5b23a09" + integrity sha512-9Muh1H+XB5f5ONmKMayUoTYR1EZwHbwJJ9oZLrKT5yuTf/RLIQ5mYIGsrERquVucJmjmaAW0Y7+6Qo1Ep+5w3Q== + dependencies: + estree-walker "^0.6.0" + micromatch "^3.1.10" + +rollup@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.1.2.tgz#8d094b85683b810d0c05a16bd7618cf70d48eba7" + integrity sha512-OkdMxqMl8pWoQc5D8y1cIinYQPPLV8ZkfLgCzL6SytXeNA2P7UHynEQXI9tYxuAjAMsSyvRaWnyJDLHMxq0XAg== + dependencies: + "@types/estree" "0.0.39" + "@types/node" "*" + acorn "^6.0.5" + +rsvp@^4.8.4: + version "4.8.4" + resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.4.tgz#b50e6b34583f3dd89329a2f23a8a2be072845911" + integrity sha512-6FomvYPfs+Jy9TfXmBpBuMWNH94SgCsZmJKcanySzgNNP6LjWxBvyLTa9KaMfDDM5oxRfrKDB0r/qeRsLwnBfA== + +run-async@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0" + integrity sha1-A3GrSuC91yDUFm19/aZP96RFpsA= + dependencies: + is-promise "^2.1.0" + +run-node@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/run-node/-/run-node-1.0.0.tgz#46b50b946a2aa2d4947ae1d886e9856fd9cabe5e" + integrity sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A== + +run-queue@^1.0.0, run-queue@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/run-queue/-/run-queue-1.0.3.tgz#e848396f057d223f24386924618e25694161ec47" + integrity sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec= + dependencies: + aproba "^1.1.1" + +rxjs@^6.1.0, rxjs@^6.3.3: + version "6.3.3" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.3.3.tgz#3c6a7fa420e844a81390fb1158a9ec614f4bad55" + integrity sha512-JTWmoY9tWCs7zvIk/CvRjhjGaOd+OVBM987mxFo+OW66cGpdKjZcpmc74ES1sB//7Kl/PAe8+wEakuhG4pcgOw== + dependencies: + tslib "^1.9.0" + +safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +safe-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" + integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= + dependencies: + ret "~0.1.10" + +"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +sane@^4.0.3: + version "4.1.0" + resolved "https://registry.yarnpkg.com/sane/-/sane-4.1.0.tgz#ed881fd922733a6c461bc189dc2b6c006f3ffded" + integrity sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA== + dependencies: + "@cnakazawa/watch" "^1.0.3" + anymatch "^2.0.0" + capture-exit "^2.0.0" + exec-sh "^0.3.2" + execa "^1.0.0" + fb-watchman "^2.0.0" + micromatch "^3.1.4" + minimist "^1.1.1" + walker "~1.0.5" + +sax@0.5.x: + version "0.5.8" + resolved "https://registry.yarnpkg.com/sax/-/sax-0.5.8.tgz#d472db228eb331c2506b0e8c15524adb939d12c1" + integrity sha1-1HLbIo6zMcJQaw6MFVJK25OdEsE= + +sax@^1.2.4, sax@~1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" + integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== + +semantic-release@15.13.x: + version "15.13.3" + resolved "https://registry.yarnpkg.com/semantic-release/-/semantic-release-15.13.3.tgz#412720b9c09f39f04df67478fa409a914107e05b" + integrity sha512-cax0xPPTtsxHlrty2HxhPql2TTvS74Ni2O8BzwFHxNY/mviVKEhI4OxHzBYJkpVxx1fMVj36+oH7IlP+SJtPNA== + dependencies: + "@semantic-release/commit-analyzer" "^6.1.0" + "@semantic-release/error" "^2.2.0" + "@semantic-release/github" "^5.1.0" + "@semantic-release/npm" "^5.0.5" + "@semantic-release/release-notes-generator" "^7.1.2" + aggregate-error "^2.0.0" + cosmiconfig "^5.0.1" + debug "^4.0.0" + env-ci "^3.0.0" + execa "^1.0.0" + figures "^2.0.0" + find-versions "^3.0.0" + get-stream "^4.0.0" + git-log-parser "^1.2.0" + hook-std "^1.1.0" + hosted-git-info "^2.7.1" + lodash "^4.17.4" + marked "^0.6.0" + marked-terminal "^3.2.0" + p-locate "^3.0.0" + p-reduce "^1.0.0" + read-pkg-up "^4.0.0" + resolve-from "^4.0.0" + semver "^5.4.1" + signale "^1.2.1" + yargs "^12.0.0" + +semver-compare@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc" + integrity sha1-De4hahyUGrN+nvsXiPavxf9VN/w= + +semver-diff@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36" + integrity sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY= + dependencies: + semver "^5.0.3" + +semver-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/semver-regex/-/semver-regex-2.0.0.tgz#a93c2c5844539a770233379107b38c7b4ac9d338" + integrity sha512-mUdIBBvdn0PLOeP3TEkMH7HHeUP3GjsXCwKarjv/kGmUFOYg1VqEemKhoQpWMu6X2I8kHeuVdGibLGkVK+/5Qw== + +"semver@2 >=2.2.1 || 3.x || 4 || 5", "semver@2.x || 3.x || 4 || 5", "semver@^2.3.0 || 3.x || 4 || 5", semver@^5.0.3, semver@^5.1.0, semver@^5.6.0: + version "5.7.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.0.tgz#790a7cf6fea5459bac96110b29b60412dc8ff96b" + integrity sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA== + +"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0, semver@^5.5.1: + version "5.6.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004" + integrity sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg== + +semver@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.0.0.tgz#05e359ee571e5ad7ed641a6eec1e547ba52dea65" + integrity sha512-0UewU+9rFapKFnlbirLi3byoOuhrSsli/z/ihNnvM24vgF+8sNBiI1LZPBSH9wJKUwaUbw+s3hToDLCXkrghrQ== + +semver@~5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" + integrity sha1-myzl094C0XxgEq0yaqa00M9U+U8= + +set-blocking@^2.0.0, set-blocking@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= + +set-value@^0.4.3: + version "0.4.3" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1" + integrity sha1-fbCPnT0i3H945Trzw79GZuzfzPE= + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.1" + to-object-path "^0.3.0" + +set-value@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274" + integrity sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg== + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.3" + split-string "^3.0.1" + +sha@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/sha/-/sha-2.0.1.tgz#6030822fbd2c9823949f8f72ed6411ee5cf25aae" + integrity sha1-YDCCL70smCOUn49y7WQR7lzyWq4= + dependencies: + graceful-fs "^4.1.2" + readable-stream "^2.0.2" + +shallow-clone@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-0.1.2.tgz#5909e874ba77106d73ac414cfec1ffca87d97060" + integrity sha1-WQnodLp3EG1zrEFM/sH/yofZcGA= + dependencies: + is-extendable "^0.1.1" + kind-of "^2.0.1" + lazy-cache "^0.2.3" + mixin-object "^2.0.1" + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + integrity sha1-RKrGW2lbAzmJaMOfNj/uXer98eo= + dependencies: + shebang-regex "^1.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= + +shelljs@0.7.6: + version "0.7.6" + resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.6.tgz#379cccfb56b91c8601e4793356eb5382924de9ad" + integrity sha1-N5zM+1a5HIYB5HkzVutTgpJN6a0= + dependencies: + glob "^7.0.0" + interpret "^1.0.0" + rechoir "^0.6.2" + +shellwords@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" + integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww== + +signal-exit@^3.0.0, signal-exit@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= + +signale@^1.2.1: + version "1.4.0" + resolved "https://registry.yarnpkg.com/signale/-/signale-1.4.0.tgz#c4be58302fb0262ac00fc3d886a7c113759042f1" + integrity sha512-iuh+gPf28RkltuJC7W5MRi6XAjTDCAPC/prJUpQoG4vIP3MJZ+GTydVnodXA7pwvTKb2cA0m9OFZW/cdWy/I/w== + dependencies: + chalk "^2.3.2" + figures "^2.0.0" + pkg-conf "^2.1.0" + +simple-git@^1.85.0: + version "1.107.0" + resolved "https://registry.yarnpkg.com/simple-git/-/simple-git-1.107.0.tgz#12cffaf261c14d6f450f7fdb86c21ccee968b383" + integrity sha512-t4OK1JRlp4ayKRfcW6owrWcRVLyHRUlhGd0uN6ZZTqfDq8a5XpcUdOKiGRNobHEuMtNqzp0vcJNvhYWwh5PsQA== + dependencies: + debug "^4.0.1" + +simple-swizzle@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a" + integrity sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo= + dependencies: + is-arrayish "^0.3.1" + +sisteransi@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.0.tgz#77d9622ff909080f1c19e5f4a1df0c1b0a27b88c" + integrity sha512-N+z4pHB4AmUv0SjveWRd6q1Nj5w62m5jodv+GD8lvmbY/83T/rpbJGZOnK5T149OldDj4Db07BSv9xY4K6NTPQ== + +slash@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" + integrity sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU= + +slash@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44" + integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A== + +slice-ansi@0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35" + integrity sha1-7b+JA/ZvfOL46v1s7tZeJkyDGzU= + +slice-ansi@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.0.0.tgz#5373bdb8559b45676e8541c66916cdd6251612e7" + integrity sha512-4j2WTWjp3GsZ+AOagyzVbzp4vWGtZ0hEZ/gDY/uTvm6MTxUfTUIsnMIFb1bn8o0RuXiqUw15H1bue8f22Vw2oQ== + dependencies: + ansi-styles "^3.2.0" + astral-regex "^1.0.0" + is-fullwidth-code-point "^2.0.0" + +slide@^1.1.3, slide@^1.1.6, slide@~1.1.3, slide@~1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/slide/-/slide-1.1.6.tgz#56eb027d65b4d2dce6cb2e2d32c4d4afc9e1d707" + integrity sha1-VusCfWW00tzmyy4tMsTUr8nh1wc= + +smart-buffer@4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.0.2.tgz#5207858c3815cc69110703c6b94e46c15634395d" + integrity sha512-JDhEpTKzXusOqXZ0BUIdH+CjFdO/CR3tLlf5CN34IypI+xMmXW1uB16OOY8z3cICbJlDAVJzNbwBhNO0wt9OAw== + +smart-buffer@^1.0.13: + version "1.1.15" + resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-1.1.15.tgz#7f114b5b65fab3e2a35aa775bb12f0d1c649bf16" + integrity sha1-fxFLW2X6s+KjWqd1uxLw0cZJvxY= + +snapdragon-node@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" + integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== + dependencies: + define-property "^1.0.0" + isobject "^3.0.0" + snapdragon-util "^3.0.1" + +snapdragon-util@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" + integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== + dependencies: + kind-of "^3.2.0" + +snapdragon@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" + integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== + dependencies: + base "^0.11.1" + debug "^2.2.0" + define-property "^0.2.5" + extend-shallow "^2.0.1" + map-cache "^0.2.2" + source-map "^0.5.6" + source-map-resolve "^0.5.0" + use "^3.1.0" + +socks-proxy-agent@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-3.0.1.tgz#2eae7cf8e2a82d34565761539a7f9718c5617659" + integrity sha512-ZwEDymm204mTzvdqyUqOdovVr2YRd2NYskrYrF2LXyZ9qDiMAoFESGK8CRphiO7rtbo2Y757k2Nia3x2hGtalA== + dependencies: + agent-base "^4.1.0" + socks "^1.1.10" + +socks-proxy-agent@^4.0.0: + version "4.0.2" + resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-4.0.2.tgz#3c8991f3145b2799e70e11bd5fbc8b1963116386" + integrity sha512-NT6syHhI9LmuEMSK6Kd2V7gNv5KFZoLE7V5udWmn0de+3Mkj3UMA/AJPLyeNUVmElCurSHtUdM3ETpR3z770Wg== + dependencies: + agent-base "~4.2.1" + socks "~2.3.2" + +socks@^1.1.10: + version "1.1.10" + resolved "https://registry.yarnpkg.com/socks/-/socks-1.1.10.tgz#5b8b7fc7c8f341c53ed056e929b7bf4de8ba7b5a" + integrity sha1-W4t/x8jzQcU+0FbpKbe/Tei6e1o= + dependencies: + ip "^1.1.4" + smart-buffer "^1.0.13" + +socks@~2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/socks/-/socks-2.3.2.tgz#ade388e9e6d87fdb11649c15746c578922a5883e" + integrity sha512-pCpjxQgOByDHLlNqlnh/mNSAxIUkyBBuwwhTcV+enZGbDaClPvHdvm6uvOwZfFJkam7cGhBNbb4JxiP8UZkRvQ== + dependencies: + ip "^1.1.5" + smart-buffer "4.0.2" + +sorted-object@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/sorted-object/-/sorted-object-2.0.1.tgz#7d631f4bd3a798a24af1dffcfbfe83337a5df5fc" + integrity sha1-fWMfS9OnmKJK8d/8+/6DM3pd9fw= + +sorted-union-stream@~2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/sorted-union-stream/-/sorted-union-stream-2.1.3.tgz#c7794c7e077880052ff71a8d4a2dbb4a9a638ac7" + integrity sha1-x3lMfgd4gAUv9xqNSi27Sppjisc= + dependencies: + from2 "^1.3.0" + stream-iterate "^1.1.0" + +source-map-resolve@^0.5.0: + version "0.5.2" + resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259" + integrity sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA== + dependencies: + atob "^2.1.1" + decode-uri-component "^0.2.0" + resolve-url "^0.2.1" + source-map-url "^0.4.0" + urix "^0.1.0" + +source-map-support@^0.5.6: + version "0.5.12" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.12.tgz#b4f3b10d51857a5af0138d3ce8003b201613d599" + integrity sha512-4h2Pbvyy15EE02G+JOZpUCmqWJuqrs+sEkzewTm++BPi7Hvn/HwcqLAcNxYAyI0x13CpPPn+kMjl+hplXMHITQ== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map-url@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" + integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= + +source-map@0.1.x: + version "0.1.43" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz#c24bc146ca517c1471f5dacbe2571b2b7f9e3346" + integrity sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y= + dependencies: + amdefine ">=0.0.4" + +source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= + +source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +sourcemap-codec@^1.4.1: + version "1.4.4" + resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.4.tgz#c63ea927c029dd6bd9a2b7fa03b3fec02ad56e9f" + integrity sha512-CYAPYdBu34781kLHkaW3m6b/uUSyMOC2R61gcYMWooeuaGtjof86ZA/8T+qVPPt7np1085CR9hmMGrySwEc8Xg== + +space-separated-tokens@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-1.1.2.tgz#e95ab9d19ae841e200808cd96bc7bd0adbbb3412" + integrity sha512-G3jprCEw+xFEs0ORweLmblJ3XLymGGr6hxZYTYZjIlvDti9vOBUjRQa1Rzjt012aRrocKstHwdNi+F7HguPsEA== + dependencies: + trim "0.0.1" + +spawn-error-forwarder@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/spawn-error-forwarder/-/spawn-error-forwarder-1.0.0.tgz#1afd94738e999b0346d7b9fc373be55e07577029" + integrity sha1-Gv2Uc46ZmwNG17n8NzvlXgdXcCk= + +spdx-correct@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.0.tgz#fb83e504445268f154b074e218c87c003cd31df4" + integrity sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q== + dependencies: + spdx-expression-parse "^3.0.0" + spdx-license-ids "^3.0.0" + +spdx-exceptions@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz#2ea450aee74f2a89bfb94519c07fcd6f41322977" + integrity sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA== + +spdx-expression-parse@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" + integrity sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg== + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-license-ids@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.3.tgz#81c0ce8f21474756148bbb5f3bfc0f36bf15d76e" + integrity sha512-uBIcIl3Ih6Phe3XHK1NqboJLdGfwr1UN3k6wSD1dZpmPsIkb8AGNbZYJ1fOBk834+Gxy8rpfDxrS6XLEMZMY2g== + +specificity@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/specificity/-/specificity-0.4.1.tgz#aab5e645012db08ba182e151165738d00887b019" + integrity sha512-1klA3Gi5PD1Wv9Q0wUoOQN1IWAuPu0D1U03ThXTr0cJ20+/iq2tHSDnK7Kk/0LXJ1ztUB2/1Os0wKmfyNgUQfg== + +split-on-first@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/split-on-first/-/split-on-first-1.0.0.tgz#648af4ce9a28fbcaadd43274455f298b55025fc6" + integrity sha512-mjA57TQtdWztVZ9THAjGNpgbuIrNfsNrGa5IyK94NoPaT4N14M+GI4jD7t4arLjFkYRQWdETC5RxFzLWouoB3A== + +split-string@^3.0.1, split-string@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" + integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== + dependencies: + extend-shallow "^3.0.0" + +split2@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/split2/-/split2-2.2.0.tgz#186b2575bcf83e85b7d18465756238ee4ee42493" + integrity sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw== + dependencies: + through2 "^2.0.2" + +split2@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/split2/-/split2-1.0.0.tgz#52e2e221d88c75f9a73f90556e263ff96772b314" + integrity sha1-UuLiIdiMdfmnP5BVbiY/+WdysxQ= + dependencies: + through2 "~2.0.0" + +split@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/split/-/split-1.0.1.tgz#605bd9be303aa59fb35f9229fbea0ddec9ea07d9" + integrity sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg== + dependencies: + through "2" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + +sshpk@^1.7.0: + version "1.16.1" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877" + integrity sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg== + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + bcrypt-pbkdf "^1.0.0" + dashdash "^1.12.0" + ecc-jsbn "~0.1.1" + getpass "^0.1.1" + jsbn "~0.1.0" + safer-buffer "^2.0.2" + tweetnacl "~0.14.0" + +ssri@^5.2.4: + version "5.3.0" + resolved "https://registry.yarnpkg.com/ssri/-/ssri-5.3.0.tgz#ba3872c9c6d33a0704a7d71ff045e5ec48999d06" + integrity sha512-XRSIPqLij52MtgoQavH/x/dU1qVKtWUAAZeOHsR9c2Ddi4XerFy3mc1alf+dLJKl9EUIm/Ht+EowFkTUOA6GAQ== + dependencies: + safe-buffer "^5.1.1" + +ssri@^6.0.0, ssri@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.1.tgz#2a3c41b28dd45b62b63676ecb74001265ae9edd8" + integrity sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA== + dependencies: + figgy-pudding "^3.5.1" + +stable@~0.1.6: + version "0.1.8" + resolved "https://registry.yarnpkg.com/stable/-/stable-0.1.8.tgz#836eb3c8382fe2936feaf544631017ce7d47a3cf" + integrity sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w== + +stack-utils@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.2.tgz#33eba3897788558bebfc2db059dc158ec36cebb8" + integrity sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA== + +staged-git-files@1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/staged-git-files/-/staged-git-files-1.1.2.tgz#4326d33886dc9ecfa29a6193bf511ba90a46454b" + integrity sha512-0Eyrk6uXW6tg9PYkhi/V/J4zHp33aNyi2hOCmhFLqLTIhbgqWn5jlSzI+IU0VqrZq6+DbHcabQl/WP6P3BG0QA== + +state-toggle@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/state-toggle/-/state-toggle-1.0.1.tgz#c3cb0974f40a6a0f8e905b96789eb41afa1cde3a" + integrity sha512-Qe8QntFrrpWTnHwvwj2FZTgv+PKIsp0B9VxLzLLbSpPXWOgRgc5LVj/aTiSfK1RqIeF9jeC1UeOH8Q8y60A7og== + +static-extend@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" + integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= + dependencies: + define-property "^0.2.5" + object-copy "^0.1.0" + +stealthy-require@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" + integrity sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks= + +stream-combiner2@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stream-combiner2/-/stream-combiner2-1.1.1.tgz#fb4d8a1420ea362764e21ad4780397bebcb41cbe" + integrity sha1-+02KFCDqNidk4hrUeAOXvry0HL4= + dependencies: + duplexer2 "~0.1.0" + readable-stream "^2.0.2" + +stream-each@^1.1.0: + version "1.2.3" + resolved "https://registry.yarnpkg.com/stream-each/-/stream-each-1.2.3.tgz#ebe27a0c389b04fbcc233642952e10731afa9bae" + integrity sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw== + dependencies: + end-of-stream "^1.1.0" + stream-shift "^1.0.0" + +stream-iterate@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/stream-iterate/-/stream-iterate-1.2.0.tgz#2bd7c77296c1702a46488b8ad41f79865eecd4e1" + integrity sha1-K9fHcpbBcCpGSIuK1B95hl7s1OE= + dependencies: + readable-stream "^2.1.5" + stream-shift "^1.0.0" + +stream-shift@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.0.tgz#d5c752825e5367e786f78e18e445ea223a155952" + integrity sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI= + +strict-uri-encode@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" + integrity sha1-ucczDHBChi9rFC3CdLvMWGbONUY= + +string-argv@^0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.0.2.tgz#dac30408690c21f3c3630a3ff3a05877bdcbd736" + integrity sha1-2sMECGkMIfPDYwo/86BYd73L1zY= + +string-hash@^1.1.1: + version "1.1.3" + resolved "https://registry.yarnpkg.com/string-hash/-/string-hash-1.1.3.tgz#e8aafc0ac1855b4666929ed7dd1275df5d6c811b" + integrity sha1-6Kr8CsGFW0Zmkp7X3RJ1311sgRs= + +string-length@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed" + integrity sha1-1A27aGo6zpYMHP/KVivyxF+DY+0= + dependencies: + astral-regex "^1.0.0" + strip-ansi "^4.0.0" + +string-width@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + integrity sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M= + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + +"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" + integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^4.0.0" + +string-width@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.0.0.tgz#5a1690a57cc78211fffd9bf24bbe24d090604eb1" + integrity sha512-rr8CUxBbvOZDUvc5lNIJ+OC1nPVpz+Siw9VBtUjB9b6jZehZLFt0JMCZzShFHIsI8cbhm0EsNIfWJMFV3cu3Ew== + dependencies: + emoji-regex "^7.0.1" + is-fullwidth-code-point "^2.0.0" + strip-ansi "^5.0.0" + +string_decoder@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.2.0.tgz#fe86e738b19544afe70469243b2a1ee9240eae8d" + integrity sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w== + dependencies: + safe-buffer "~5.1.0" + +string_decoder@~0.10.x: + version "0.10.31" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + integrity sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ= + +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + +stringify-entities@^1.0.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/stringify-entities/-/stringify-entities-1.3.2.tgz#a98417e5471fd227b3e45d3db1861c11caf668f7" + integrity sha512-nrBAQClJAPN2p+uGCVJRPIPakKeKWZ9GtBCmormE7pWOSlHat7+x5A8gx85M7HM5Dt0BP3pP5RhVW77WdbJJ3A== + dependencies: + character-entities-html4 "^1.0.0" + character-entities-legacy "^1.0.0" + is-alphanumerical "^1.0.0" + is-hexadecimal "^1.0.0" + +stringify-object@^3.2.2: + version "3.3.0" + resolved "https://registry.yarnpkg.com/stringify-object/-/stringify-object-3.3.0.tgz#703065aefca19300d3ce88af4f5b3956d7556629" + integrity sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw== + dependencies: + get-own-enumerable-property-symbols "^3.0.0" + is-obj "^1.0.1" + is-regexp "^1.0.0" + +stringify-package@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/stringify-package/-/stringify-package-1.0.0.tgz#e02828089333d7d45cd8c287c30aa9a13375081b" + integrity sha512-JIQqiWmLiEozOC0b0BtxZ/AOUtdUZHCBPgqIZ2kSJJqGwgb9neo44XdTHUC4HZSGqi03hOeB7W/E8rAlKnGe9g== + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8= + dependencies: + ansi-regex "^2.0.0" + +strip-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" + integrity sha1-qEeQIusaw2iocTibY1JixQXuNo8= + dependencies: + ansi-regex "^3.0.0" + +strip-ansi@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.0.0.tgz#f78f68b5d0866c20b2c9b8c61b5298508dc8756f" + integrity sha512-Uu7gQyZI7J7gn5qLn1Np3G9vcYGTVqB+lFTytnDJv83dd8T22aGH451P3jueT2/QemInJDfxHB5Tde5OzgG1Ow== + dependencies: + ansi-regex "^4.0.0" + +strip-bom@3.0.0, strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= + +strip-eof@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" + integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= + +strip-indent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68" + integrity sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g= + +strip-json-comments@2.0.1, strip-json-comments@^2.0.1, strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= + +style-inject@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/style-inject/-/style-inject-0.3.0.tgz#d21c477affec91811cc82355832a700d22bf8dd3" + integrity sha512-IezA2qp+vcdlhJaVm5SOdPPTUu0FCEqfNSli2vRuSIBbu5Nq5UvygTk/VzeCqfLz2Atj3dVII5QBKGZRZ0edzw== + +style-search@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/style-search/-/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902" + integrity sha1-eVjHk+R+MuB9K1yv5cC/jhLneQI= + +stylehacks@^4.0.0: + version "4.0.2" + resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-4.0.2.tgz#d22eb2767598b1a704341290b42aeafb7945ce38" + integrity sha512-AZwvn2b3aNKK1yp+VgNPOuC2jIJOvh9PAiCq2gjDBW1WkQxQUksR1RugOJRIOhMYTGHZeoMcMQKp3/qaS3evNg== + dependencies: + browserslist "^4.0.0" + postcss "^7.0.0" + postcss-selector-parser "^3.0.0" + +stylelint-config-recommended@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-2.1.0.tgz#f526d5c771c6811186d9eaedbed02195fee30858" + integrity sha512-ajMbivOD7JxdsnlS5945KYhvt7L/HwN6YeYF2BH6kE4UCLJR0YvXMf+2j7nQpJyYLZx9uZzU5G1ZOSBiWAc6yA== + +stylelint@^9.9.0: + version "9.10.1" + resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-9.10.1.tgz#5f0ee3701461dff1d68284e1386efe8f0677a75d" + integrity sha512-9UiHxZhOAHEgeQ7oLGwrwoDR8vclBKlSX7r4fH0iuu0SfPwFaLkb1c7Q2j1cqg9P7IDXeAV2TvQML/fRQzGBBQ== + dependencies: + autoprefixer "^9.0.0" + balanced-match "^1.0.0" + chalk "^2.4.1" + cosmiconfig "^5.0.0" + debug "^4.0.0" + execall "^1.0.0" + file-entry-cache "^4.0.0" + get-stdin "^6.0.0" + global-modules "^2.0.0" + globby "^9.0.0" + globjoin "^0.1.4" + html-tags "^2.0.0" + ignore "^5.0.4" + import-lazy "^3.1.0" + imurmurhash "^0.1.4" + known-css-properties "^0.11.0" + leven "^2.1.0" + lodash "^4.17.4" + log-symbols "^2.0.0" + mathml-tag-names "^2.0.1" + meow "^5.0.0" + micromatch "^3.1.10" + normalize-selector "^0.2.0" + pify "^4.0.0" + postcss "^7.0.13" + postcss-html "^0.36.0" + postcss-jsx "^0.36.0" + postcss-less "^3.1.0" + postcss-markdown "^0.36.0" + postcss-media-query-parser "^0.2.3" + postcss-reporter "^6.0.0" + postcss-resolve-nested-selector "^0.1.1" + postcss-safe-parser "^4.0.0" + postcss-sass "^0.3.5" + postcss-scss "^2.0.0" + postcss-selector-parser "^3.1.0" + postcss-syntax "^0.36.2" + postcss-value-parser "^3.3.0" + resolve-from "^4.0.0" + signal-exit "^3.0.2" + slash "^2.0.0" + specificity "^0.4.1" + string-width "^3.0.0" + style-search "^0.1.0" + sugarss "^2.0.0" + svg-tags "^1.0.0" + table "^5.0.0" + +stylus@^0.54.5: + version "0.54.5" + resolved "https://registry.yarnpkg.com/stylus/-/stylus-0.54.5.tgz#42b9560931ca7090ce8515a798ba9e6aa3d6dc79" + integrity sha1-QrlWCTHKcJDOhRWnmLqeaqPW3Hk= + dependencies: + css-parse "1.7.x" + debug "*" + glob "7.0.x" + mkdirp "0.5.x" + sax "0.5.x" + source-map "0.1.x" + +sugarss@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/sugarss/-/sugarss-2.0.0.tgz#ddd76e0124b297d40bf3cca31c8b22ecb43bc61d" + integrity sha512-WfxjozUk0UVA4jm+U1d736AUpzSrNsQcIbyOkoE364GrtWmIrFdk5lksEupgWMD4VaT/0kVx1dobpiDumSgmJQ== + dependencies: + postcss "^7.0.2" + +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc= + +supports-color@^3.2.3: + version "3.2.3" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" + integrity sha1-ZawFBLOVQXHYpklGsq48u4pfVPY= + dependencies: + has-flag "^1.0.0" + +supports-color@^5.0.0, supports-color@^5.3.0, supports-color@^5.4.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" + +supports-color@^6.0.0, supports-color@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3" + integrity sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ== + dependencies: + has-flag "^3.0.0" + +supports-hyperlinks@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-1.0.1.tgz#71daedf36cc1060ac5100c351bb3da48c29c0ef7" + integrity sha512-HHi5kVSefKaJkGYXbDuKbUGRVxqnWGn3J2e39CYcNJEfWciGq2zYtOhXLTlvrOZW1QU7VX67w7fMmWafHX9Pfw== + dependencies: + has-flag "^2.0.0" + supports-color "^5.0.0" + +svg-tags@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/svg-tags/-/svg-tags-1.0.0.tgz#58f71cee3bd519b59d4b2a843b6c7de64ac04764" + integrity sha1-WPcc7jvVGbWdSyqEO2x95krAR2Q= + +svgo@^1.0.0, svgo@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/svgo/-/svgo-1.1.1.tgz#12384b03335bcecd85cfa5f4e3375fed671cb985" + integrity sha512-GBkJbnTuFpM4jFbiERHDWhZc/S/kpHToqmZag3aEBjPYK44JAN2QBjvrGIxLOoCyMZjuFQIfTO2eJd8uwLY/9g== + dependencies: + coa "~2.0.1" + colors "~1.1.2" + css-select "^2.0.0" + css-select-base-adapter "~0.1.0" + css-tree "1.0.0-alpha.28" + css-url-regex "^1.1.0" + csso "^3.5.0" + js-yaml "^3.12.0" + mkdirp "~0.5.1" + object.values "^1.0.4" + sax "~1.2.4" + stable "~0.1.6" + unquote "~1.1.1" + util.promisify "~1.0.0" + +symbol-observable@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804" + integrity sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ== + +symbol-tree@^3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" + integrity sha1-rifbOPZgp64uHDt9G8KQgZuFGeY= + +table@^5.0.0, table@^5.0.2: + version "5.2.1" + resolved "https://registry.yarnpkg.com/table/-/table-5.2.1.tgz#e78463702b1be9f7131c39860bcfb1b81114c2a1" + integrity sha512-qmhNs2GEHNqY5fd2Mo+8N1r2sw/rvTAAvBZTaTx+Y7PHLypqyrxr1MdIu0pLw6Xvl/Gi4ONu/sdceP8vvUjkyA== + dependencies: + ajv "^6.6.1" + lodash "^4.17.11" + slice-ansi "2.0.0" + string-width "^2.1.1" + +tar@^2.0.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" + integrity sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE= + dependencies: + block-stream "*" + fstream "^1.0.2" + inherits "2" + +tar@^4, tar@^4.4.3, tar@^4.4.8: + version "4.4.8" + resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.8.tgz#b19eec3fde2a96e64666df9fdb40c5ca1bc3747d" + integrity sha512-LzHF64s5chPQQS0IYBn9IN5h3i98c12bo4NCO7e0sGM2llXQ3p2FGC5sdENN4cTW48O915Sh+x+EXx7XW96xYQ== + dependencies: + chownr "^1.1.1" + fs-minipass "^1.2.5" + minipass "^2.3.4" + minizlib "^1.1.1" + mkdirp "^0.5.0" + safe-buffer "^5.1.2" + yallist "^3.0.2" + +teeny-request@^3.7.0: + version "3.11.3" + resolved "https://registry.yarnpkg.com/teeny-request/-/teeny-request-3.11.3.tgz#335c629f7645e5d6599362df2f3230c4cbc23a55" + integrity sha512-CKncqSF7sH6p4rzCgkb/z/Pcos5efl0DmolzvlqRQUNcpRIruOhY9+T1FsIlyEbfWd7MsFpodROOwHYh2BaXzw== + dependencies: + https-proxy-agent "^2.2.1" + node-fetch "^2.2.0" + uuid "^3.3.2" + +term-size@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69" + integrity sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk= + dependencies: + execa "^0.7.0" + +test-exclude@^5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-5.2.2.tgz#7322f8ab037b0b93ad2aab35fe9068baf997a4c4" + integrity sha512-N2pvaLpT8guUpb5Fe1GJlmvmzH3x+DAKmmyEQmFP792QcLYoGE1syxztSvPD1V8yPe6VrcCt6YGQVjSRjCASsA== + dependencies: + glob "^7.1.3" + minimatch "^3.0.4" + read-pkg-up "^4.0.0" + require-main-filename "^2.0.0" + +text-extensions@^1.0.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-1.9.0.tgz#1853e45fee39c945ce6f6c36b2d659b5aabc2a26" + integrity sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ== + +text-table@^0.2.0, text-table@~0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= + +throat@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" + integrity sha1-iQN8vJLFarGJJua6TLsgDhVnKmo= + +through2@^2.0.0, through2@^2.0.2, through2@~2.0.0: + version "2.0.5" + resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" + integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== + dependencies: + readable-stream "~2.3.6" + xtend "~4.0.1" + +through@2, "through@>=2.2.7 <3", through@^2.3.6: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= + +timed-out@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" + integrity sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8= + +timsort@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4" + integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q= + +tiny-relative-date@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/tiny-relative-date/-/tiny-relative-date-1.3.0.tgz#fa08aad501ed730f31cc043181d995c39a935e07" + integrity sha512-MOQHpzllWxDCHHaDno30hhLfbouoYlOI8YlMNtvKe1zXbjEVhbcEovQxvZrPvtiYW630GQDoMMarCnjfyfHA+A== + +tmp@^0.0.33: + version "0.0.33" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + +tmpl@1.0.x: + version "1.0.4" + resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" + integrity sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE= + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= + +to-object-path@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" + integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= + dependencies: + kind-of "^3.0.2" + +to-regex-range@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" + integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg= + dependencies: + is-number "^3.0.0" + repeat-string "^1.6.1" + +to-regex@^3.0.1, to-regex@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" + integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== + dependencies: + define-property "^2.0.2" + extend-shallow "^3.0.2" + regex-not "^1.0.2" + safe-regex "^1.1.0" + +tough-cookie@^2.3.3, tough-cookie@^2.3.4: + version "2.5.0" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" + integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== + dependencies: + psl "^1.1.28" + punycode "^2.1.1" + +tough-cookie@~2.4.3: + version "2.4.3" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" + integrity sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ== + dependencies: + psl "^1.1.24" + punycode "^1.4.1" + +tr46@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" + integrity sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk= + dependencies: + punycode "^2.1.0" + +traverse@~0.6.6: + version "0.6.6" + resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137" + integrity sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc= + +trim-newlines@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-2.0.0.tgz#b403d0b91be50c331dfc4b82eeceb22c3de16d20" + integrity sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA= + +trim-off-newlines@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3" + integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM= + +trim-right@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" + integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM= + +trim-trailing-lines@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/trim-trailing-lines/-/trim-trailing-lines-1.1.1.tgz#e0ec0810fd3c3f1730516b45f49083caaf2774d9" + integrity sha512-bWLv9BbWbbd7mlqqs2oQYnLD/U/ZqeJeJwbO0FG2zA1aTq+HTvxfHNKFa/HGCVyJpDiioUYaBhfiT6rgk+l4mg== + +trim@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/trim/-/trim-0.0.1.tgz#5858547f6b290757ee95cccc666fb50084c460dd" + integrity sha1-WFhUf2spB1fulczMZm+1AITEYN0= + +trough@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/trough/-/trough-1.0.3.tgz#e29bd1614c6458d44869fc28b255ab7857ef7c24" + integrity sha512-fwkLWH+DimvA4YCy+/nvJd61nWQQ2liO/nF/RjkTpiOGi+zxZzVkhb1mvbHIIW4b/8nDsYI8uTmAlc0nNkRMOw== + +tslib@^1.9.0: + version "1.9.3" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" + integrity sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ== + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + integrity sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0= + dependencies: + safe-buffer "^5.0.1" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= + dependencies: + prelude-ls "~1.1.2" + +typedarray@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" + integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= + +uglify-js@^3.1.4: + version "3.5.5" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.5.5.tgz#9c5aaaf3a7586fbf559df31fa6d3bca1b3ba7e9b" + integrity sha512-e58FqZzPwaLODQetDQKlvErZaGkh1UmzP8YwU0aG65NLourKNtwVyDG8tkIyUU0vqWzxaikSvTaxrCSscmvqvQ== + dependencies: + commander "~2.20.0" + source-map "~0.6.1" + +uid-number@0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" + integrity sha1-DqEOgDXo61uOREnwbaHHMGY7qoE= + +umask@^1.1.0, umask@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/umask/-/umask-1.1.0.tgz#f29cebf01df517912bb58ff9c4e50fde8e33320d" + integrity sha1-8pzr8B31F5ErtY/5xOUP3o4zMg0= + +unherit@^1.0.4: + version "1.1.1" + resolved "https://registry.yarnpkg.com/unherit/-/unherit-1.1.1.tgz#132748da3e88eab767e08fabfbb89c5e9d28628c" + integrity sha512-+XZuV691Cn4zHsK0vkKYwBEwB74T3IZIcxrgn2E4rKwTfFyI1zCh7X7grwh9Re08fdPlarIdyWgI8aVB3F5A5g== + dependencies: + inherits "^2.0.1" + xtend "^4.0.1" + +unicode-canonical-property-names-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818" + integrity sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ== + +unicode-match-property-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz#8ed2a32569961bce9227d09cd3ffbb8fed5f020c" + integrity sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg== + dependencies: + unicode-canonical-property-names-ecmascript "^1.0.4" + unicode-property-aliases-ecmascript "^1.0.4" + +unicode-match-property-value-ecmascript@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.0.2.tgz#9f1dc76926d6ccf452310564fd834ace059663d4" + integrity sha512-Rx7yODZC1L/T8XKo/2kNzVAQaRE88AaMvI1EF/Xnj3GW2wzN6fop9DDWuFAKUVFH7vozkz26DzP0qyWLKLIVPQ== + +unicode-property-aliases-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.4.tgz#5a533f31b4317ea76f17d807fa0d116546111dd0" + integrity sha512-2WSLa6OdYd2ng8oqiGIWnJqyFArvhn+5vgx5GTxMbUYjCYKUcuKS62YLFF0R/BDGlB1yzXjQOLtPAfHsgirEpg== + +unified@^7.0.0, unified@^7.0.2: + version "7.1.0" + resolved "https://registry.yarnpkg.com/unified/-/unified-7.1.0.tgz#5032f1c1ee3364bd09da12e27fdd4a7553c7be13" + integrity sha512-lbk82UOIGuCEsZhPj8rNAkXSDXd6p0QLzIuSsCdxrqnqU56St4eyOB+AlXsVgVeRmetPTYydIuvFfpDIed8mqw== + dependencies: + "@types/unist" "^2.0.0" + "@types/vfile" "^3.0.0" + bail "^1.0.0" + extend "^3.0.0" + is-plain-obj "^1.1.0" + trough "^1.0.0" + vfile "^3.0.0" + x-is-string "^0.1.0" + +union-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" + integrity sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ= + dependencies: + arr-union "^3.1.0" + get-value "^2.0.6" + is-extendable "^0.1.1" + set-value "^0.4.3" + +uniq@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff" + integrity sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8= + +uniqs@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/uniqs/-/uniqs-2.0.0.tgz#ffede4b36b25290696e6e165d4a59edb998e6b02" + integrity sha1-/+3ks2slKQaW5uFl1KWe25mOawI= + +unique-filename@^1.1.0, unique-filename@^1.1.1, unique-filename@~1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-1.1.1.tgz#1d69769369ada0583103a1e6ae87681b56573230" + integrity sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ== + dependencies: + unique-slug "^2.0.0" + +unique-slug@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-2.0.1.tgz#5e9edc6d1ce8fb264db18a507ef9bd8544451ca6" + integrity sha512-n9cU6+gITaVu7VGj1Z8feKMmfAjEAQGhwD9fE3zvpRRa0wEIx8ODYkVGfSc94M2OX00tUFV8wH3zYbm1I8mxFg== + dependencies: + imurmurhash "^0.1.4" + +unique-string@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-1.0.0.tgz#9e1057cca851abb93398f8b33ae187b99caec11a" + integrity sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo= + dependencies: + crypto-random-string "^1.0.0" + +unist-util-find-all-after@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/unist-util-find-all-after/-/unist-util-find-all-after-1.0.2.tgz#9be49cfbae5ca1566b27536670a92836bf2f8d6d" + integrity sha512-nDl79mKpffXojLpCimVXnxhlH/jjaTnDuScznU9J4jjsaUtBdDbxmlc109XtcqxY4SDO0SwzngsxxW8DIISt1w== + dependencies: + unist-util-is "^2.0.0" + +unist-util-is@^2.0.0, unist-util-is@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-2.1.2.tgz#1193fa8f2bfbbb82150633f3a8d2eb9a1c1d55db" + integrity sha512-YkXBK/H9raAmG7KXck+UUpnKiNmUdB+aBGrknfQ4EreE1banuzrKABx3jP6Z5Z3fMSPMQQmeXBlKpCbMwBkxVw== + +unist-util-remove-position@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/unist-util-remove-position/-/unist-util-remove-position-1.1.2.tgz#86b5dad104d0bbfbeb1db5f5c92f3570575c12cb" + integrity sha512-XxoNOBvq1WXRKXxgnSYbtCF76TJrRoe5++pD4cCBsssSiWSnPEktyFrFLE8LTk3JW5mt9hB0Sk5zn4x/JeWY7Q== + dependencies: + unist-util-visit "^1.1.0" + +unist-util-stringify-position@^1.0.0, unist-util-stringify-position@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-1.1.2.tgz#3f37fcf351279dcbca7480ab5889bb8a832ee1c6" + integrity sha512-pNCVrk64LZv1kElr0N1wPiHEUoXNVFERp+mlTg/s9R5Lwg87f9bM/3sQB99w+N9D/qnM9ar3+AKDBwo/gm/iQQ== + +unist-util-visit-parents@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-2.0.1.tgz#63fffc8929027bee04bfef7d2cce474f71cb6217" + integrity sha512-6B0UTiMfdWql4cQ03gDTCSns+64Zkfo2OCbK31Ov0uMizEz+CJeAp0cgZVb5Fhmcd7Bct2iRNywejT0orpbqUA== + dependencies: + unist-util-is "^2.1.2" + +unist-util-visit@^1.1.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-1.4.0.tgz#1cb763647186dc26f5e1df5db6bd1e48b3cc2fb1" + integrity sha512-FiGu34ziNsZA3ZUteZxSFaczIjGmksfSgdKqBfOejrrfzyUy5b7YrlzT1Bcvi+djkYDituJDy2XB7tGTeBieKw== + dependencies: + unist-util-visit-parents "^2.0.0" + +universal-user-agent@^2.0.0, universal-user-agent@^2.0.1: + version "2.0.3" + resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-2.0.3.tgz#9f6f09f9cc33de867bb720d84c08069b14937c6c" + integrity sha512-eRHEHhChCBHrZsA4WEhdgiOKgdvgrMIHwnwnqD0r5C6AO8kwKcG7qSku3iXdhvHL3YvsS9ZkSGN8h/hIpoFC8g== + dependencies: + os-name "^3.0.0" + +universalify@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + +unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= + +unquote@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/unquote/-/unquote-1.1.1.tgz#8fded7324ec6e88a0ff8b905e7c098cdc086d544" + integrity sha1-j97XMk7G6IoP+LkF58CYzcCG1UQ= + +unset-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" + integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= + dependencies: + has-value "^0.3.1" + isobject "^3.0.0" + +unzip-response@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97" + integrity sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c= + +update-notifier@^2.3.0, update-notifier@^2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.5.0.tgz#d0744593e13f161e406acb1d9408b72cad08aff6" + integrity sha512-gwMdhgJHGuj/+wHJJs9e6PcCszpxR1b236igrOkUofGhqJuG+amlIKwApH1IW1WWl7ovZxsX49lMBWLxSdm5Dw== + dependencies: + boxen "^1.2.1" + chalk "^2.0.1" + configstore "^3.0.0" + import-lazy "^2.1.0" + is-ci "^1.0.10" + is-installed-globally "^0.1.0" + is-npm "^1.0.0" + latest-version "^3.0.0" + semver-diff "^2.0.0" + xdg-basedir "^3.0.0" + +uri-js@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" + integrity sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== + dependencies: + punycode "^2.1.0" + +urix@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" + integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= + +url-join@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/url-join/-/url-join-4.0.0.tgz#4d3340e807d3773bda9991f8305acdcc2a665d2a" + integrity sha1-TTNA6AfTdzvamZH4MFrNzCpmXSo= + +url-parse-lax@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73" + integrity sha1-evjzA2Rem9eaJy56FKxovAYJ2nM= + dependencies: + prepend-http "^1.0.1" + +url-template@^2.0.8: + version "2.0.8" + resolved "https://registry.yarnpkg.com/url-template/-/url-template-2.0.8.tgz#fc565a3cccbff7730c775f5641f9555791439f21" + integrity sha1-/FZaPMy/93MMd19WQflVV5FDnyE= + +urlgrey@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/urlgrey/-/urlgrey-0.4.4.tgz#892fe95960805e85519f1cd4389f2cb4cbb7652f" + integrity sha1-iS/pWWCAXoVRnxzUOJ8stMu3ZS8= + +use@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" + integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== + +util-deprecate@^1.0.1, util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + +util-extend@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/util-extend/-/util-extend-1.0.3.tgz#a7c216d267545169637b3b6edc6ca9119e2ff93f" + integrity sha1-p8IW0mdUUWljeztu3GypEZ4v+T8= + +util.promisify@^1.0.0, util.promisify@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030" + integrity sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA== + dependencies: + define-properties "^1.1.2" + object.getownpropertydescriptors "^2.0.3" + +uuid@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" + integrity sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA== + +validate-npm-package-license@^3.0.1, validate-npm-package-license@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" + integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== + dependencies: + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" + +validate-npm-package-name@^3.0.0, validate-npm-package-name@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/validate-npm-package-name/-/validate-npm-package-name-3.0.0.tgz#5fa912d81eb7d0c74afc140de7317f0ca7df437e" + integrity sha1-X6kS2B630MdK/BQN5zF/DKffQ34= + dependencies: + builtins "^1.0.3" + +validate.js@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/validate.js/-/validate.js-0.12.0.tgz#17f989e37c192ea2f826bbf19bf4e97e6e4be68f" + integrity sha512-/x2RJSvbqEyxKj0RPN4xaRquK+EggjeVXiDDEyrJzsJogjtiZ9ov7lj/svVb4DM5Q5braQF4cooAryQbUwOxlA== + +vendors@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/vendors/-/vendors-1.0.2.tgz#7fcb5eef9f5623b156bcea89ec37d63676f21801" + integrity sha512-w/hry/368nO21AN9QljsaIhb9ZiZtZARoVH5f3CsFbawdLdayCgKRPup7CggujvySMxx0I91NOyxdVENohprLQ== + +verror@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" + integrity sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA= + dependencies: + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" + +vfile-location@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/vfile-location/-/vfile-location-2.0.4.tgz#2a5e7297dd0d9e2da4381464d04acc6b834d3e55" + integrity sha512-KRL5uXQPoUKu+NGvQVL4XLORw45W62v4U4gxJ3vRlDfI9QsT4ZN1PNXn/zQpKUulqGDpYuT0XDfp5q9O87/y/w== + +vfile-message@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-1.1.1.tgz#5833ae078a1dfa2d96e9647886cd32993ab313e1" + integrity sha512-1WmsopSGhWt5laNir+633LszXvZ+Z/lxveBf6yhGsqnQIhlhzooZae7zV6YVM1Sdkw68dtAW3ow0pOdPANugvA== + dependencies: + unist-util-stringify-position "^1.1.1" + +vfile@^3.0.0, vfile@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/vfile/-/vfile-3.0.1.tgz#47331d2abe3282424f4a4bb6acd20a44c4121803" + integrity sha512-y7Y3gH9BsUSdD4KzHsuMaCzRjglXN0W2EcMf0gpvu6+SbsGhMje7xDc8AEoeXy6mIwCKMI6BkjMsRjzQbhMEjQ== + dependencies: + is-buffer "^2.0.0" + replace-ext "1.0.0" + unist-util-stringify-position "^1.0.0" + vfile-message "^1.0.0" + +w3c-hr-time@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045" + integrity sha1-gqwr/2PZUOqeMYmlimViX+3xkEU= + dependencies: + browser-process-hrtime "^0.1.2" + +walker@^1.0.7, walker@~1.0.5: + version "1.0.7" + resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" + integrity sha1-L3+bj9ENZ3JisYqITijRlhjgKPs= + dependencies: + makeerror "1.0.x" + +wcwidth@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" + integrity sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g= + dependencies: + defaults "^1.0.3" + +web-namespaces@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/web-namespaces/-/web-namespaces-1.1.2.tgz#c8dc267ab639505276bae19e129dbd6ae72b22b4" + integrity sha512-II+n2ms4mPxK+RnIxRPOw3zwF2jRscdJIUE9BfkKHm4FYEg9+biIoTMnaZF5MpemE3T+VhMLrhbyD4ilkPCSbg== + +webidl-conversions@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" + integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg== + +whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.3: + version "1.0.5" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" + integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== + dependencies: + iconv-lite "0.4.24" + +whatwg-mimetype@^2.1.0, whatwg-mimetype@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" + integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== + +whatwg-url@^6.4.1: + version "6.5.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-6.5.0.tgz#f2df02bff176fd65070df74ad5ccbb5a199965a8" + integrity sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ== + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +whatwg-url@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.0.0.tgz#fde926fa54a599f3adf82dff25a9f7be02dc6edd" + integrity sha512-37GeVSIJ3kn1JgKyjiYNmSLP1yzbpb29jdmwBSgkD9h40/hyrR/OifpVUndji3tmwGgD8qpw7iQu3RSbCrBpsQ== + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +which-module@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" + integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= + +which@1, which@^1.2.10, which@^1.2.14, which@^1.2.9, which@^1.3.0, which@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + +wide-align@^1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" + integrity sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA== + dependencies: + string-width "^1.0.2 || 2" + +widest-line@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-2.0.1.tgz#7438764730ec7ef4381ce4df82fb98a53142a3fc" + integrity sha512-Ba5m9/Fa4Xt9eb2ELXt77JxVDV8w7qQrH0zS/TWSJdLyAwQjWoOzpzj5lwVftDz6n/EOu3tNACS84v509qwnJA== + dependencies: + string-width "^2.1.1" + +windows-release@^3.1.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/windows-release/-/windows-release-3.2.0.tgz#8122dad5afc303d833422380680a79cdfa91785f" + integrity sha512-QTlz2hKLrdqukrsapKsINzqMgOUpQW268eJ0OaOpJN32h272waxR9fkB9VoWRtK7uKHG5EHJcTXQBD8XZVJkFA== + dependencies: + execa "^1.0.0" + +word-wrap@^1.0.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" + integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== + +wordwrap@~0.0.2: + version "0.0.3" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" + integrity sha1-o9XabNXAvAAI03I0u68b7WMFkQc= + +wordwrap@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= + +worker-farm@^1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.6.0.tgz#aecc405976fab5a95526180846f0dba288f3a4a0" + integrity sha512-6w+3tHbM87WnSWnENBUvA2pxJPLhQUg5LKwUQHq3r+XPhIM+Gh2R5ycbwPCyuGbNg+lPgdcnQUhuC02kJCvffQ== + dependencies: + errno "~0.1.7" + +wrap-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" + integrity sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU= + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + +wrap-ansi@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-3.0.1.tgz#288a04d87eda5c286e060dfe8f135ce8d007f8ba" + integrity sha1-KIoE2H7aXChuBg3+jxNc6NAH+Lo= + dependencies: + string-width "^2.1.1" + strip-ansi "^4.0.0" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + +write-file-atomic@2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.1.tgz#d0b05463c188ae804396fd5ab2a370062af87529" + integrity sha512-TGHFeZEZMnv+gBFRfjAcxL5bPHrsGKtnb4qsFAws7/vlh+QfwAaySIw4AXP9ZskTTh5GWu3FLuJhsWVdiJPGvg== + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + signal-exit "^3.0.2" + +write-file-atomic@^2.0.0, write-file-atomic@^2.3.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.2.tgz#a7181706dfba17855d221140a9c06e15fcdd87b9" + integrity sha512-s0b6vB3xIVRLWywa6X9TOMA7k9zio0TMOsl9ZnDkliA/cfJlpHXAscj0gbHVJiTdIuAYpIyqS5GW91fqm6gG5g== + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + signal-exit "^3.0.2" + +write@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz#0800e14523b923a387e415123c865616aae0f5c3" + integrity sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig== + dependencies: + mkdirp "^0.5.1" + +write@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757" + integrity sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c= + dependencies: + mkdirp "^0.5.1" + +ws@^5.2.0: + version "5.2.2" + resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.2.tgz#dffef14866b8e8dc9133582514d1befaf96e980f" + integrity sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA== + dependencies: + async-limiter "~1.0.0" + +x-is-string@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/x-is-string/-/x-is-string-0.1.0.tgz#474b50865af3a49a9c4657f05acd145458f77d82" + integrity sha1-R0tQhlrzpJqcRlfwWs0UVFj3fYI= + +xdg-basedir@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-3.0.0.tgz#496b2cc109eca8dbacfe2dc72b603c17c5870ad4" + integrity sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ= + +xml-name-validator@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" + integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== + +xml@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" + integrity sha1-eLpyAgApxbyHuKgaPPzXS0ovweU= + +xtend@^4.0.1, xtend@~4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" + integrity sha1-pcbVMr5lbiPbgg77lDofBJmNY68= + +y18n@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" + integrity sha1-bRX7qITAhnnA136I53WegR4H+kE= + +"y18n@^3.2.1 || ^4.0.0", y18n@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b" + integrity sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w== + +yallist@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= + +yallist@^3.0.0, yallist@^3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.3.tgz#b4b049e314be545e3ce802236d6cd22cd91c3de9" + integrity sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A== + +yargs-parser@^10.0.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-10.1.0.tgz#7202265b89f7e9e9f2e5765e0fe735a905edbaa8" + integrity sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ== + dependencies: + camelcase "^4.1.0" + +yargs-parser@^11.1.1: + version "11.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-11.1.1.tgz#879a0865973bca9f6bab5cbdf3b1c67ec7d3bcf4" + integrity sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + +yargs-parser@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-8.1.0.tgz#f1376a33b6629a5d063782944da732631e966950" + integrity sha512-yP+6QqN8BmrgW2ggLtTbdrOyBNSI7zBa4IykmiV5R1wl1JWNxQvWhMfMdmzIYtKU7oP3OOInY/tl2ov3BDjnJQ== + dependencies: + camelcase "^4.1.0" + +yargs-parser@^9.0.2: + version "9.0.2" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-9.0.2.tgz#9ccf6a43460fe4ed40a9bb68f48d43b8a68cc077" + integrity sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc= + dependencies: + camelcase "^4.1.0" + +yargs@^10.0.3: + version "10.1.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-10.1.2.tgz#454d074c2b16a51a43e2fb7807e4f9de69ccb5c5" + integrity sha512-ivSoxqBGYOqQVruxD35+EyCFDYNEFL/Uo6FcOnz+9xZdZzK0Zzw4r4KhbrME1Oo2gOggwJod2MnsdamSG7H9ig== + dependencies: + cliui "^4.0.0" + decamelize "^1.1.1" + find-up "^2.1.0" + get-caller-file "^1.0.1" + os-locale "^2.0.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1" + yargs-parser "^8.1.0" + +yargs@^11.0.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-11.1.0.tgz#90b869934ed6e871115ea2ff58b03f4724ed2d77" + integrity sha512-NwW69J42EsCSanF8kyn5upxvjp5ds+t3+udGBeTbFnERA+lF541DDpMawzo4z6W/QrzNM18D+BPMiOBibnFV5A== + dependencies: + cliui "^4.0.0" + decamelize "^1.1.1" + find-up "^2.1.0" + get-caller-file "^1.0.1" + os-locale "^2.0.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1" + yargs-parser "^9.0.2" + +yargs@^12.0.0, yargs@^12.0.2: + version "12.0.5" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-12.0.5.tgz#05f5997b609647b64f66b81e3b4b10a368e7ad13" + integrity sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw== + dependencies: + cliui "^4.0.0" + decamelize "^1.2.0" + find-up "^3.0.0" + get-caller-file "^1.0.1" + os-locale "^3.0.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1 || ^4.0.0" + yargs-parser "^11.1.1" diff --git a/.all-contributorsrc b/packages/_viewer/.all-contributorsrc similarity index 100% rename from .all-contributorsrc rename to packages/_viewer/.all-contributorsrc diff --git a/.babelrc b/packages/_viewer/.babelrc similarity index 100% rename from .babelrc rename to packages/_viewer/.babelrc diff --git a/.codecov.yml b/packages/_viewer/.codecov.yml similarity index 100% rename from .codecov.yml rename to packages/_viewer/.codecov.yml diff --git a/.dockerignore b/packages/_viewer/.dockerignore similarity index 100% rename from .dockerignore rename to packages/_viewer/.dockerignore diff --git a/.env b/packages/_viewer/.env similarity index 100% rename from .env rename to packages/_viewer/.env diff --git a/.env.example b/packages/_viewer/.env.example similarity index 100% rename from .env.example rename to packages/_viewer/.env.example diff --git a/.eslintignore b/packages/_viewer/.eslintignore similarity index 100% rename from .eslintignore rename to packages/_viewer/.eslintignore diff --git a/.eslintrc b/packages/_viewer/.eslintrc similarity index 100% rename from .eslintrc rename to packages/_viewer/.eslintrc diff --git a/.gitattributes b/packages/_viewer/.gitattributes similarity index 100% rename from .gitattributes rename to packages/_viewer/.gitattributes diff --git a/.jscsrc b/packages/_viewer/.jscsrc similarity index 100% rename from .jscsrc rename to packages/_viewer/.jscsrc diff --git a/packages/_viewer/.jshintrc b/packages/_viewer/.jshintrc new file mode 100644 index 000000000..28d7e6edd --- /dev/null +++ b/packages/_viewer/.jshintrc @@ -0,0 +1,93 @@ +{ + // JSHint Default Configuration File (as on JSHint website) + // See http://jshint.com/docs/ for more details + + "maxerr": 50, // {int} Maximum error before stopping + + // Enforcing + "bitwise": true, // true: Prohibit bitwise operators (&, |, ^, etc.) + "camelcase": false, // true: Identifiers must be in camelCase + "curly": false, // true: Require {} for every new block or scope + "eqeqeq": true, // true: Require triple equals (===) for comparison + "forin": true, // true: Require filtering for..in loops with obj.hasOwnProperty() + "freeze": true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc. + "immed": false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());` + "latedef": false, // true: Require variables/functions to be defined before being used + "newcap": false, // true: Require capitalization of all constructor functions e.g. `new F()` + "noarg": true, // true: Prohibit use of `arguments.caller` and `arguments.callee` + "noempty": true, // true: Prohibit use of empty blocks + "nonbsp": true, // true: Prohibit "non-breaking whitespace" characters. + "nonew": false, // true: Prohibit use of constructors for side-effects (without assignment) + "plusplus": false, // true: Prohibit use of `++` and `--` + "quotmark": false, // Quotation mark consistency: + // false : do nothing (default) + // true : ensure whatever is used is consistent + // "single" : require single quotes + // "double" : require double quotes + "undef": true, // true: Require all non-global variables to be declared (prevents global leaks) + "unused": "vars", // Unused variables: + // true : all variables, last function parameter + // "vars" : all variables only + // "strict" : all variables, all function parameters + "strict": false, // true: Requires all functions run in ES5 Strict Mode + "maxparams": false, // {int} Max number of formal params allowed per function + "maxdepth": false, // {int} Max depth of nested blocks (within functions) + "maxstatements": false, // {int} Max number statements per function + "maxcomplexity": false, // {int} Max cyclomatic complexity per function + "maxlen": false, // {int} Max number of characters per line + "varstmt": false, // true: Disallow any var statements. Only `let` and `const` are allowed. + + // Relaxing + "asi": false, // true: Tolerate Automatic Semicolon Insertion (no semicolons) + "boss": false, // true: Tolerate assignments where comparisons would be expected + "debug": false, // true: Allow debugger statements e.g. browser breakpoints. + "eqnull": false, // true: Tolerate use of `== null` + "es5": true, // true: Allow ES5 syntax (ex: getters and setters) + "esnext": true, // true: Allow ES.next (ES6) syntax (ex: `const`) + "moz": false, // true: Allow Mozilla specific syntax (extends and overrides esnext features) + // (ex: `for each`, multiple try/catch, function expression…) + "evil": false, // true: Tolerate use of `eval` and `new Function()` + "expr": false, // true: Tolerate `ExpressionStatement` as Programs + "funcscope": false, // true: Tolerate defining variables inside control statements + "globalstrict": false, // true: Allow global "use strict" (also enables 'strict') + "iterator": false, // true: Tolerate using the `__iterator__` property + "lastsemic": false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block + "laxbreak": false, // true: Tolerate possibly unsafe line breakings + "laxcomma": false, // true: Tolerate comma-first style coding + "loopfunc": false, // true: Tolerate functions being defined in loops + "multistr": false, // true: Tolerate multi-line strings + "noyield": false, // true: Tolerate generator functions with no yield statement in them. + "notypeof": false, // true: Tolerate invalid typeof operator values + "proto": false, // true: Tolerate using the `__proto__` property + "scripturl": false, // true: Tolerate script-targeted URLs + "shadow": false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;` + "sub": false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation + "supernew": false, // true: Tolerate `new function () { ... };` and `new Object;` + "validthis": false, // true: Tolerate using this in a non-constructor function + + // Environments + "browser": true, // Web Browser (window, document, etc) + "browserify": false, // Browserify (node.js code in the browser) + "couch": false, // CouchDB + "devel": false, // Development/debugging (alert, confirm, etc) + "dojo": false, // Dojo Toolkit + "jasmine": false, // Jasmine + "jquery": true, // jQuery + "mocha": false, // Mocha + "mootools": false, // MooTools + "node": false, // Node.js + "nonstandard": false, // Widely adopted globals (escape, unescape, etc) + "phantom": false, // PhantomJS + "prototypejs": false, // Prototype and Scriptaculous + "qunit": false, // QUnit + "rhino": false, // Rhino + "shelljs": false, // ShellJS + "typed": false, // Globals for typed array constructions + "worker": false, // Web Workers + "wsh": false, // Windows Scripting Host + "yui": false, // Yahoo User Interface + "globals": { + "require": true, + "Package": true // Meteor Package definition + } +} diff --git a/extensions/ohif-cornerstone-extension/.prettierrc b/packages/_viewer/.prettierrc similarity index 100% rename from extensions/ohif-cornerstone-extension/.prettierrc rename to packages/_viewer/.prettierrc diff --git a/.releaserc b/packages/_viewer/.releaserc similarity index 100% rename from .releaserc rename to packages/_viewer/.releaserc diff --git a/LICENSE b/packages/_viewer/LICENSE similarity index 100% rename from LICENSE rename to packages/_viewer/LICENSE diff --git a/packages/_viewer/README.md b/packages/_viewer/README.md new file mode 100644 index 000000000..a48fa4fa1 --- /dev/null +++ b/packages/_viewer/README.md @@ -0,0 +1,295 @@ + + +
+

ohif-viewer

+

ohif-viewer is a zero-footprint medical image viewer provided by the Open Health Imaging Foundation (OHIF). It is a configurable and extensible progressive web application with out-of-the-box support for image archives which support DICOMweb.

+
+ + + + + + +
+ +[![CircleCI][circleci-image]][circleci-url] +[![codecov][codecov-image]][codecov-url] +[![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors) +[![code style: prettier][prettier-image]][prettier-url] +[![semantic-release][semantic-image]][semantic-url] + +[![NPM version][npm-version-image]][npm-url] +[![NPM downloads][npm-downloads-image]][npm-url] +[![Pulls][docker-pulls-img]][docker-image-url] +[![MIT License][license-image]][license-url] + + + +> ATTENTION: If you are looking for Version 1 (the Meteor Version) of this +> repository, it lives on +> [the `v1.x` branch](https://github.com/OHIF/Viewers/tree/v1.x) + +## Why? + +Building a web based medical imaging viewer from scratch is time intensive, hard +to get right, and expensive. Instead of re-inventing the wheel, you can use the +OHIF Viewer as a rock solid platform to build on top of. The Viewer is a +[React][react-url] [Progressive Web Application][pwa-url] that can be embedded +in existing applications via it's [packaged source +(ohif-viewer)][ohif-viewer-url] or hosted stand-alone. The Viewer exposes +[configuration][configuration-url] and [extensions][extensions-url] to support +workflow customization and advanced functionality at common integration points. + +If you're interested in using the OHIF Viewer, but you're not sure it supports +your use case [check out our docs](https://docs.ohif.org/). Still not sure, or +you would like to propose new features? Don't hesitate to +[create an issue](https://github.com/OHIF/Viewers/issues) or open a pull +request. + +## Getting Started + +This readme is specific to testing and developing locally. If you're more +interested in production deployment strategies, +[you can check out our documentation on publishing](https://docs.ohif.org/). + +Want to play around before you dig in? +[Check out our LIVE Demo](https://viewer.ohif.org/) + +### Setup + +_Requirements:_ + +- [NodeJS & NPM](https://nodejs.org/en/download/) +- [Yarn](https://yarnpkg.com/lang/en/docs/install/) + +_Steps:_ + +1. Fork this repository +2. Clone your forked repository (your `origin`) + +- `git clone git@github.com:YOUR_GITHUB_USERNAME/Viewers.git` + +3. Add `OHIF/Viewers` as a `remote` repository (the `upstream`) + +- `git remote add upstream git@github.com:OHIF/Viewers.git` + +### Developing Locally + +In your cloned repository's root folder, run: + +```js +// Restore dependencies +yarn install + +// Stands up local server to host Viewer. +// Viewer connects to our public cloud PACS by default +yarn start +``` + +For more advanced local development scenarios, like using your own locally +hosted PACS and test data, +[check out our Essential: Getting Started](https://docs.ohif.org/essentials/getting-started.html) +guide. + +### E2E Tests + +Using [Cypress](https://www.cypress.io/) to create End-to-End tests and check whether the application flow is performing correctly, ensuring that the integrated components are working as expected. + +#### Why Cypress? + +Cypress is a next generation front end testing tool built for the modern web. +With Cypress is easy to set up, write, run and debug tests + +It allow us to write different types of tests: + +- End-to-End tests +- Integration tests +- Unit tets + +All tests must be in `./cypress/integration` folder. + +Commands to run the tests: + +```js +// Open Cypress Dashboard that provides insight into what happened when your tests ran +yarn run cy + +// Run all tests using Electron browser headless +yarn run cy:run + +// Run all tests in CI mode +yarn run cy:run:ci +``` + +### Contributing + +> Large portions of the Viewer's functionality are maintained in other +> repositories. To get a better understanding of the Viewer's architecture and +> "where things live", read +> [our docs on the Viewer's architecture](https://docs.ohif.org/advanced/architecture.html#diagram) + +It is notoriously difficult to setup multiple dependent repositories for +end-to-end testing and development. That's why we recommend writing and running +unit tests when adding and modifying features. This allows us to program in +isolation without a complex setup, and has the added benefit of producing +well-tested business logic. + +1. Clone this repository +2. Navigate to the project directory, and `yarn install` +3. To begin making changes, `yarn run dev` +4. To commit changes, run `yarn run cm` + +When creating tests, place the test file "next to" the file you're testing. +[For example](https://github.com/OHIF/Viewers/blob/master/src/utils/index.test.js): + +```js +// File +index.js + +// Test for file +index.test.js +``` + +As you add and modify code, `jest` will watch for uncommitted changes and run +your tests, reporting the results to your terminal. Make a pull request with +your changes to `master`, and a core team member will review your work. If you +have any questions, please don't hesitate to reach out via a GitHub issue. + +## Issues + +_Looking to contribute? Look for the [Good First Issue][good-first-issue] +label._ + +### 🐛 Bugs + +Please file an issue for bugs, missing documentation, or unexpected behavior. + +[**See Bugs**][bugs] + +### 💡 Feature Requests + +Please file an issue to suggest new features. Vote on feature requests by adding +a 👍. This helps maintainers prioritize what to work on. + +[**See Feature Requests**][requests-feature] + +### ❓ Questions + +For questions related to using the library, please visit our support community, +or file an issue on GitHub. + +[Google Group][google-group] + +## Roadmap + +If you want to know what's planned for the very near future, +[check out our roadmap](https://ohif.canny.io/). The best way to influence when +and what is worked on is to contribute to the conversation by creating GitHub +issues, and contributing code through pull requests. OHIF's high level +priorities for the near future are: + +- Feature parity with version 1 +- Extension and configuration improvements with key integration partners +- Continued Developer Experience Improvements +- Segmentation Tools, and improved VTK.js support + +More granular information will make it's way to the backlog as these items +become scoped for development by core maintainers. + +> Don't hesitate to ask questions, propose features, or create pull requests. +> We're here, we're listening, and we're ready to build the best open source +> medical imaging viewer on the web. + +#### Roadmap Generously Powered by Canny.io + + + + + +## Contributors + +Thanks goes to these wonderful people +([emoji key](https://allcontributors.org/docs/en/emoji-key)): + + + +
Erik Ziegler
Erik Ziegler

💻 🚇
Evren Ozkan
Evren Ozkan

💻
Gustavo André Lelis
Gustavo André Lelis

💻
Danny Brown
Danny Brown

💻 🚇
allcontributors[bot]
allcontributors[bot]

📖
Esref Durna
Esref Durna

💬
diego0020
diego0020

💻
David Wire
David Wire

💻
João Felipe de Medeiros Moreira
João Felipe de Medeiros Moreira

⚠️
+ + + +This project follows the +[all-contributors](https://github.com/all-contributors/all-contributors) +specification. Contributions of any kind welcome! + +## License + +MIT © [OHIF](https://github.com/OHIF) + +## Acknowledgments + +To acknowledge the OHIF Viewer in an academic publication, please cite + +> _LesionTracker: Extensible Open-Source Zero-Footprint Web Viewer for Cancer +> Imaging Research and Clinical Trials_ +> +> Trinity Urban, Erik Ziegler, Rob Lewis, Chris Hafey, Cheryl Sadow, Annick D. +> Van den Abbeele and Gordon J. Harris +> +> _Cancer Research_, November 1 2017 (77) (21) e119-e122 DOI: +> [10.1158/0008-5472.CAN-17-0334](https://www.doi.org/10.1158/0008-5472.CAN-17-0334) + +**Note:** If you use or find this repository helpful, please take the time to +star this repository on Github. This is an easy way for us to assess adoption +and it can help us obtain future funding for the project. + +This work is supported primarily by the National Institutes of Health, National +Cancer Institute, Informatics Technology for Cancer Research (ITCR) program, +under a +[grant to Dr. Gordon Harris at Massachusetts General Hospital (U24 CA199460)](https://projectreporter.nih.gov/project_info_description.cfm?aid=8971104). + + + + + +[all-contributors-image]: https://img.shields.io/badge/all_contributors-0-orange.svg?style=flat-square +[contributing-url]: https://github.com/OHIF/Viewers/blob/react/CONTRIBUTING.md +[circleci-image]: https://circleci.com/gh/OHIF/Viewers.svg?style=svg +[circleci-url]: https://circleci.com/gh/OHIF/Viewers +[codecov-image]: https://codecov.io/gh/OHIF/Viewers/branch/react/graph/badge.svg +[codecov-url]: https://codecov.io/gh/OHIF/Viewers/branch/react +[prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square +[prettier-url]: https://github.com/prettier/prettier +[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg +[semantic-url]: https://github.com/semantic-release/semantic-release + +[npm-url]: https://npmjs.org/package/ohif-viewer +[npm-downloads-image]: https://img.shields.io/npm/dm/ohif-viewer.svg?style=flat-square +[npm-version-image]: https://img.shields.io/npm/v/ohif-viewer.svg?style=flat-square +[docker-pulls-img]: https://img.shields.io/docker/pulls/ohif/viewer.svg?style=flat-square +[docker-image-url]: https://hub.docker.com/r/ohif/viewer +[license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square +[license-url]: LICENSE + +[react-url]: https://reactjs.org/ +[pwa-url]: https://developers.google.com/web/progressive-web-apps/ +[ohif-viewer-url]: https://www.npmjs.com/package/ohif-viewer +[configuration-url]: https://docs.ohif.org/essentials/configuration.html +[extensions-url]: https://docs.ohif.org/advanced/extensions.html + +[react-viewer]: https://github.com/OHIF/Viewers/tree/react + +[bugs]: https://github.com/OHIF/Viewers/labels/bug +[requests-feature]: https://github.com/OHIF/Viewers/labels/enhancement +[good-first-issue]: https://github.com/OHIF/Viewers/labels/good%20first%20issue +[google-group]: https://groups.google.com/forum/#!forum/cornerstone-platform + + diff --git a/cypress.json b/packages/_viewer/cypress.json similarity index 100% rename from cypress.json rename to packages/_viewer/cypress.json diff --git a/cypress/fixtures/example.json b/packages/_viewer/cypress/fixtures/example.json similarity index 100% rename from cypress/fixtures/example.json rename to packages/_viewer/cypress/fixtures/example.json diff --git a/cypress/integration/OHIFStandaloneViewer.spec.js b/packages/_viewer/cypress/integration/OHIFStandaloneViewer.spec.js similarity index 100% rename from cypress/integration/OHIFStandaloneViewer.spec.js rename to packages/_viewer/cypress/integration/OHIFStandaloneViewer.spec.js diff --git a/cypress/integration/ViewerRouting.spec.js b/packages/_viewer/cypress/integration/ViewerRouting.spec.js similarity index 100% rename from cypress/integration/ViewerRouting.spec.js rename to packages/_viewer/cypress/integration/ViewerRouting.spec.js diff --git a/cypress/plugins/index.js b/packages/_viewer/cypress/plugins/index.js similarity index 100% rename from cypress/plugins/index.js rename to packages/_viewer/cypress/plugins/index.js diff --git a/cypress/support/commands.js b/packages/_viewer/cypress/support/commands.js similarity index 100% rename from cypress/support/commands.js rename to packages/_viewer/cypress/support/commands.js diff --git a/cypress/support/index.js b/packages/_viewer/cypress/support/index.js similarity index 100% rename from cypress/support/index.js rename to packages/_viewer/cypress/support/index.js diff --git a/packages/_viewer/cypress/videos/OHIFStandaloneViewer.spec.js.mp4 b/packages/_viewer/cypress/videos/OHIFStandaloneViewer.spec.js.mp4 new file mode 100644 index 000000000..75a5f5d4d Binary files /dev/null and b/packages/_viewer/cypress/videos/OHIFStandaloneViewer.spec.js.mp4 differ diff --git a/packages/_viewer/cypress/videos/ViewerRouting.spec.js.mp4 b/packages/_viewer/cypress/videos/ViewerRouting.spec.js.mp4 new file mode 100644 index 000000000..9243d38fd Binary files /dev/null and b/packages/_viewer/cypress/videos/ViewerRouting.spec.js.mp4 differ diff --git a/docker/Nginx-Dcm4che/docker-compose-dcm4che.env b/packages/_viewer/docker/Nginx-Dcm4che/docker-compose-dcm4che.env similarity index 100% rename from docker/Nginx-Dcm4che/docker-compose-dcm4che.env rename to packages/_viewer/docker/Nginx-Dcm4che/docker-compose-dcm4che.env diff --git a/docker/Nginx-Dcm4che/docker-compose-dcm4che.yml b/packages/_viewer/docker/Nginx-Dcm4che/docker-compose-dcm4che.yml similarity index 100% rename from docker/Nginx-Dcm4che/docker-compose-dcm4che.yml rename to packages/_viewer/docker/Nginx-Dcm4che/docker-compose-dcm4che.yml diff --git a/docker/Nginx-Dcm4che/etc/localtime b/packages/_viewer/docker/Nginx-Dcm4che/etc/localtime similarity index 100% rename from docker/Nginx-Dcm4che/etc/localtime rename to packages/_viewer/docker/Nginx-Dcm4che/etc/localtime diff --git a/docker/Nginx-Dcm4che/etc/timezone b/packages/_viewer/docker/Nginx-Dcm4che/etc/timezone similarity index 100% rename from docker/Nginx-Dcm4che/etc/timezone rename to packages/_viewer/docker/Nginx-Dcm4che/etc/timezone diff --git a/docker/Nginx-Dcm4che/nginx-proxy/conf/nginx.conf b/packages/_viewer/docker/Nginx-Dcm4che/nginx-proxy/conf/nginx.conf similarity index 100% rename from docker/Nginx-Dcm4che/nginx-proxy/conf/nginx.conf rename to packages/_viewer/docker/Nginx-Dcm4che/nginx-proxy/conf/nginx.conf diff --git a/docker/Nginx-Orthanc/config/nginx.conf b/packages/_viewer/docker/Nginx-Orthanc/config/nginx.conf similarity index 100% rename from docker/Nginx-Orthanc/config/nginx.conf rename to packages/_viewer/docker/Nginx-Orthanc/config/nginx.conf diff --git a/docker/Nginx-Orthanc/config/orthanc.json b/packages/_viewer/docker/Nginx-Orthanc/config/orthanc.json similarity index 100% rename from docker/Nginx-Orthanc/config/orthanc.json rename to packages/_viewer/docker/Nginx-Orthanc/config/orthanc.json diff --git a/docker/Nginx-Orthanc/docker-compose.yml b/packages/_viewer/docker/Nginx-Orthanc/docker-compose.yml similarity index 100% rename from docker/Nginx-Orthanc/docker-compose.yml rename to packages/_viewer/docker/Nginx-Orthanc/docker-compose.yml diff --git a/docker/Nginx-Orthanc/volumes/orthanc-db/.gitignore b/packages/_viewer/docker/Nginx-Orthanc/volumes/orthanc-db/.gitignore similarity index 100% rename from docker/Nginx-Orthanc/volumes/orthanc-db/.gitignore rename to packages/_viewer/docker/Nginx-Orthanc/volumes/orthanc-db/.gitignore diff --git a/docker/OpenResty-Orthanc-Keycloak/.dockerignore b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/.dockerignore similarity index 100% rename from docker/OpenResty-Orthanc-Keycloak/.dockerignore rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/.dockerignore diff --git a/docker/OpenResty-Orthanc-Keycloak/.env b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/.env similarity index 100% rename from docker/OpenResty-Orthanc-Keycloak/.env rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/.env diff --git a/docker/OpenResty-Orthanc-Keycloak/config/nginx.conf b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/config/nginx.conf similarity index 100% rename from docker/OpenResty-Orthanc-Keycloak/config/nginx.conf rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/config/nginx.conf diff --git a/docker/OpenResty-Orthanc-Keycloak/config/ohif-keycloak-realm.json b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/config/ohif-keycloak-realm.json similarity index 100% rename from docker/OpenResty-Orthanc-Keycloak/config/ohif-keycloak-realm.json rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/config/ohif-keycloak-realm.json diff --git a/docker/OpenResty-Orthanc-Keycloak/config/orthanc.json b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/config/orthanc.json similarity index 100% rename from docker/OpenResty-Orthanc-Keycloak/config/orthanc.json rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/config/orthanc.json diff --git a/docker/OpenResty-Orthanc-Keycloak/docker-compose.yml b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/docker-compose.yml similarity index 100% rename from docker/OpenResty-Orthanc-Keycloak/docker-compose.yml rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/docker-compose.yml diff --git a/docker/OpenResty-Orthanc-Keycloak/dockerfile b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/dockerfile similarity index 100% rename from docker/OpenResty-Orthanc-Keycloak/dockerfile rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/dockerfile diff --git a/docker/Nginx-Orthanc/volumes/orthanc-db/.githold b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/account/.githold similarity index 100% rename from docker/Nginx-Orthanc/volumes/orthanc-db/.githold rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/account/.githold diff --git a/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/account/.githold b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/admin/.githold similarity index 100% rename from docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/account/.githold rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/admin/.githold diff --git a/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/admin/.githold b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/email/.githold similarity index 100% rename from docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/admin/.githold rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/email/.githold diff --git a/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/login/resources/css/styles.css b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/login/resources/css/styles.css similarity index 100% rename from docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/login/resources/css/styles.css rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/login/resources/css/styles.css diff --git a/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/login/resources/img/background.jpg b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/login/resources/img/background.jpg similarity index 100% rename from docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/login/resources/img/background.jpg rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/login/resources/img/background.jpg diff --git a/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/login/theme.properties b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/login/theme.properties similarity index 100% rename from docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/login/theme.properties rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/login/theme.properties diff --git a/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/email/.githold b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/welcome/.githold similarity index 100% rename from docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/email/.githold rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/keycloak-themes/ohif/welcome/.githold diff --git a/docker/OpenResty-Orthanc-Keycloak/volumes/orthanc-db/.gitignore b/packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/orthanc-db/.gitignore similarity index 100% rename from docker/OpenResty-Orthanc-Keycloak/volumes/orthanc-db/.gitignore rename to packages/_viewer/docker/OpenResty-Orthanc-Keycloak/volumes/orthanc-db/.gitignore diff --git a/docker/OpenResty-Orthanc/.dockerignore b/packages/_viewer/docker/OpenResty-Orthanc/.dockerignore similarity index 100% rename from docker/OpenResty-Orthanc/.dockerignore rename to packages/_viewer/docker/OpenResty-Orthanc/.dockerignore diff --git a/docker/OpenResty-Orthanc/.env b/packages/_viewer/docker/OpenResty-Orthanc/.env similarity index 100% rename from docker/OpenResty-Orthanc/.env rename to packages/_viewer/docker/OpenResty-Orthanc/.env diff --git a/docker/OpenResty-Orthanc/config/nginx.conf b/packages/_viewer/docker/OpenResty-Orthanc/config/nginx.conf similarity index 100% rename from docker/OpenResty-Orthanc/config/nginx.conf rename to packages/_viewer/docker/OpenResty-Orthanc/config/nginx.conf diff --git a/docker/OpenResty-Orthanc/config/orthanc.json b/packages/_viewer/docker/OpenResty-Orthanc/config/orthanc.json similarity index 100% rename from docker/OpenResty-Orthanc/config/orthanc.json rename to packages/_viewer/docker/OpenResty-Orthanc/config/orthanc.json diff --git a/docker/OpenResty-Orthanc/docker-compose.yml b/packages/_viewer/docker/OpenResty-Orthanc/docker-compose.yml similarity index 100% rename from docker/OpenResty-Orthanc/docker-compose.yml rename to packages/_viewer/docker/OpenResty-Orthanc/docker-compose.yml diff --git a/docker/OpenResty-Orthanc/dockerfile b/packages/_viewer/docker/OpenResty-Orthanc/dockerfile similarity index 100% rename from docker/OpenResty-Orthanc/dockerfile rename to packages/_viewer/docker/OpenResty-Orthanc/dockerfile diff --git a/docker/OpenResty-Orthanc/volumes/orthanc-db/.gitignore b/packages/_viewer/docker/OpenResty-Orthanc/volumes/orthanc-db/.gitignore similarity index 100% rename from docker/OpenResty-Orthanc/volumes/orthanc-db/.gitignore rename to packages/_viewer/docker/OpenResty-Orthanc/volumes/orthanc-db/.gitignore diff --git a/docker/README.md b/packages/_viewer/docker/README.md similarity index 100% rename from docker/README.md rename to packages/_viewer/docker/README.md diff --git a/docker/Viewer-v2.x/default.conf b/packages/_viewer/docker/Viewer-v2.x/default.conf similarity index 100% rename from docker/Viewer-v2.x/default.conf rename to packages/_viewer/docker/Viewer-v2.x/default.conf diff --git a/dockerfile b/packages/_viewer/dockerfile similarity index 100% rename from dockerfile rename to packages/_viewer/dockerfile diff --git a/docs/.gitignore b/packages/_viewer/docs/.gitignore similarity index 100% rename from docs/.gitignore rename to packages/_viewer/docs/.gitignore diff --git a/docs/CNAME b/packages/_viewer/docs/CNAME similarity index 100% rename from docs/CNAME rename to packages/_viewer/docs/CNAME diff --git a/docs/README.md b/packages/_viewer/docs/README.md similarity index 100% rename from docs/README.md rename to packages/_viewer/docs/README.md diff --git a/docs/latest/.nojekyll b/packages/_viewer/docs/latest/.nojekyll similarity index 100% rename from docs/latest/.nojekyll rename to packages/_viewer/docs/latest/.nojekyll diff --git a/docs/latest/README.md b/packages/_viewer/docs/latest/README.md similarity index 100% rename from docs/latest/README.md rename to packages/_viewer/docs/latest/README.md diff --git a/docs/latest/SUMMARY.md b/packages/_viewer/docs/latest/SUMMARY.md similarity index 100% rename from docs/latest/SUMMARY.md rename to packages/_viewer/docs/latest/SUMMARY.md diff --git a/docs/latest/advanced/_maintained-extensions-table.md b/packages/_viewer/docs/latest/advanced/_maintained-extensions-table.md similarity index 100% rename from docs/latest/advanced/_maintained-extensions-table.md rename to packages/_viewer/docs/latest/advanced/_maintained-extensions-table.md diff --git a/docs/latest/advanced/architecture.md b/packages/_viewer/docs/latest/advanced/architecture.md similarity index 100% rename from docs/latest/advanced/architecture.md rename to packages/_viewer/docs/latest/advanced/architecture.md diff --git a/docs/latest/advanced/custom-tools.md b/packages/_viewer/docs/latest/advanced/custom-tools.md similarity index 100% rename from docs/latest/advanced/custom-tools.md rename to packages/_viewer/docs/latest/advanced/custom-tools.md diff --git a/docs/latest/advanced/extensions.md b/packages/_viewer/docs/latest/advanced/extensions.md similarity index 100% rename from docs/latest/advanced/extensions.md rename to packages/_viewer/docs/latest/advanced/extensions.md diff --git a/docs/latest/advanced/index.md b/packages/_viewer/docs/latest/advanced/index.md similarity index 100% rename from docs/latest/advanced/index.md rename to packages/_viewer/docs/latest/advanced/index.md diff --git a/docs/latest/assets/designs/architecture-diagram b/packages/_viewer/docs/latest/assets/designs/architecture-diagram similarity index 100% rename from docs/latest/assets/designs/architecture-diagram rename to packages/_viewer/docs/latest/assets/designs/architecture-diagram diff --git a/docs/latest/assets/designs/canny-full.fig b/packages/_viewer/docs/latest/assets/designs/canny-full.fig similarity index 99% rename from docs/latest/assets/designs/canny-full.fig rename to packages/_viewer/docs/latest/assets/designs/canny-full.fig index cb8d0ee27..8756e9f79 100644 Binary files a/docs/latest/assets/designs/canny-full.fig and b/packages/_viewer/docs/latest/assets/designs/canny-full.fig differ diff --git a/docs/latest/assets/designs/cloud.svg b/packages/_viewer/docs/latest/assets/designs/cloud.svg similarity index 100% rename from docs/latest/assets/designs/cloud.svg rename to packages/_viewer/docs/latest/assets/designs/cloud.svg diff --git a/docs/latest/assets/designs/embedded-viewer-diagram b/packages/_viewer/docs/latest/assets/designs/embedded-viewer-diagram similarity index 100% rename from docs/latest/assets/designs/embedded-viewer-diagram rename to packages/_viewer/docs/latest/assets/designs/embedded-viewer-diagram diff --git a/docs/latest/assets/designs/nginx-image-archive.fig b/packages/_viewer/docs/latest/assets/designs/nginx-image-archive.fig similarity index 99% rename from docs/latest/assets/designs/nginx-image-archive.fig rename to packages/_viewer/docs/latest/assets/designs/nginx-image-archive.fig index 625066aa9..460ae95dd 100644 Binary files a/docs/latest/assets/designs/nginx-image-archive.fig and b/packages/_viewer/docs/latest/assets/designs/nginx-image-archive.fig differ diff --git a/docs/latest/assets/designs/npm-logo-red.svg b/packages/_viewer/docs/latest/assets/designs/npm-logo-red.svg similarity index 100% rename from docs/latest/assets/designs/npm-logo-red.svg rename to packages/_viewer/docs/latest/assets/designs/npm-logo-red.svg diff --git a/docs/latest/assets/designs/scope-of-project.fig b/packages/_viewer/docs/latest/assets/designs/scope-of-project.fig similarity index 99% rename from docs/latest/assets/designs/scope-of-project.fig rename to packages/_viewer/docs/latest/assets/designs/scope-of-project.fig index 1a3c9033d..5eb82e561 100644 Binary files a/docs/latest/assets/designs/scope-of-project.fig and b/packages/_viewer/docs/latest/assets/designs/scope-of-project.fig differ diff --git a/docs/latest/assets/designs/user-access-control-request-flow.fig b/packages/_viewer/docs/latest/assets/designs/user-access-control-request-flow.fig similarity index 99% rename from docs/latest/assets/designs/user-access-control-request-flow.fig rename to packages/_viewer/docs/latest/assets/designs/user-access-control-request-flow.fig index 17d278d90..8982a8fed 100644 Binary files a/docs/latest/assets/designs/user-access-control-request-flow.fig and b/packages/_viewer/docs/latest/assets/designs/user-access-control-request-flow.fig differ diff --git a/docs/latest/assets/img/architecture-diagram.png b/packages/_viewer/docs/latest/assets/img/architecture-diagram.png similarity index 100% rename from docs/latest/assets/img/architecture-diagram.png rename to packages/_viewer/docs/latest/assets/img/architecture-diagram.png diff --git a/docs/latest/assets/img/canny-full.png b/packages/_viewer/docs/latest/assets/img/canny-full.png similarity index 100% rename from docs/latest/assets/img/canny-full.png rename to packages/_viewer/docs/latest/assets/img/canny-full.png diff --git a/docs/latest/assets/img/canny-logo-name.svg b/packages/_viewer/docs/latest/assets/img/canny-logo-name.svg similarity index 100% rename from docs/latest/assets/img/canny-logo-name.svg rename to packages/_viewer/docs/latest/assets/img/canny-logo-name.svg diff --git a/docs/latest/assets/img/canny-logo.svg b/packages/_viewer/docs/latest/assets/img/canny-logo.svg similarity index 100% rename from docs/latest/assets/img/canny-logo.svg rename to packages/_viewer/docs/latest/assets/img/canny-logo.svg diff --git a/docs/latest/assets/img/embedded-viewer-diagram.png b/packages/_viewer/docs/latest/assets/img/embedded-viewer-diagram.png similarity index 100% rename from docs/latest/assets/img/embedded-viewer-diagram.png rename to packages/_viewer/docs/latest/assets/img/embedded-viewer-diagram.png diff --git a/docs/latest/assets/img/extensions-toolbar.gif b/packages/_viewer/docs/latest/assets/img/extensions-toolbar.gif similarity index 100% rename from docs/latest/assets/img/extensions-toolbar.gif rename to packages/_viewer/docs/latest/assets/img/extensions-toolbar.gif diff --git a/docs/latest/assets/img/extensions-viewport.png b/packages/_viewer/docs/latest/assets/img/extensions-viewport.png similarity index 100% rename from docs/latest/assets/img/extensions-viewport.png rename to packages/_viewer/docs/latest/assets/img/extensions-viewport.png diff --git a/docs/latest/assets/img/homePage.png b/packages/_viewer/docs/latest/assets/img/homePage.png similarity index 100% rename from docs/latest/assets/img/homePage.png rename to packages/_viewer/docs/latest/assets/img/homePage.png diff --git a/docs/latest/assets/img/jwt-explained.png b/packages/_viewer/docs/latest/assets/img/jwt-explained.png similarity index 100% rename from docs/latest/assets/img/jwt-explained.png rename to packages/_viewer/docs/latest/assets/img/jwt-explained.png diff --git a/docs/latest/assets/img/keycloak-default-theme.png b/packages/_viewer/docs/latest/assets/img/keycloak-default-theme.png similarity index 100% rename from docs/latest/assets/img/keycloak-default-theme.png rename to packages/_viewer/docs/latest/assets/img/keycloak-default-theme.png diff --git a/docs/latest/assets/img/keycloak-ohif-theme.png b/packages/_viewer/docs/latest/assets/img/keycloak-ohif-theme.png similarity index 100% rename from docs/latest/assets/img/keycloak-ohif-theme.png rename to packages/_viewer/docs/latest/assets/img/keycloak-ohif-theme.png diff --git a/docs/latest/assets/img/lesionTracker.png b/packages/_viewer/docs/latest/assets/img/lesionTracker.png similarity index 100% rename from docs/latest/assets/img/lesionTracker.png rename to packages/_viewer/docs/latest/assets/img/lesionTracker.png diff --git a/docs/latest/assets/img/loading-study.gif b/packages/_viewer/docs/latest/assets/img/loading-study.gif similarity index 100% rename from docs/latest/assets/img/loading-study.gif rename to packages/_viewer/docs/latest/assets/img/loading-study.gif diff --git a/docs/latest/assets/img/locizeSponsor.svg b/packages/_viewer/docs/latest/assets/img/locizeSponsor.svg similarity index 100% rename from docs/latest/assets/img/locizeSponsor.svg rename to packages/_viewer/docs/latest/assets/img/locizeSponsor.svg diff --git a/docs/latest/assets/img/netlify-drop.gif b/packages/_viewer/docs/latest/assets/img/netlify-drop.gif similarity index 100% rename from docs/latest/assets/img/netlify-drop.gif rename to packages/_viewer/docs/latest/assets/img/netlify-drop.gif diff --git a/docs/latest/assets/img/nginx-image-archive.png b/packages/_viewer/docs/latest/assets/img/nginx-image-archive.png similarity index 100% rename from docs/latest/assets/img/nginx-image-archive.png rename to packages/_viewer/docs/latest/assets/img/nginx-image-archive.png diff --git a/docs/latest/assets/img/open-graph.png b/packages/_viewer/docs/latest/assets/img/open-graph.png similarity index 100% rename from docs/latest/assets/img/open-graph.png rename to packages/_viewer/docs/latest/assets/img/open-graph.png diff --git a/docs/latest/assets/img/scope-of-project.png b/packages/_viewer/docs/latest/assets/img/scope-of-project.png similarity index 100% rename from docs/latest/assets/img/scope-of-project.png rename to packages/_viewer/docs/latest/assets/img/scope-of-project.png diff --git a/docs/latest/assets/img/surge-deploy.gif b/packages/_viewer/docs/latest/assets/img/surge-deploy.gif similarity index 100% rename from docs/latest/assets/img/surge-deploy.gif rename to packages/_viewer/docs/latest/assets/img/surge-deploy.gif diff --git a/docs/latest/assets/img/user-access-control-request-flow.png b/packages/_viewer/docs/latest/assets/img/user-access-control-request-flow.png similarity index 100% rename from docs/latest/assets/img/user-access-control-request-flow.png rename to packages/_viewer/docs/latest/assets/img/user-access-control-request-flow.png diff --git a/docs/latest/assets/img/viewer.png b/packages/_viewer/docs/latest/assets/img/viewer.png similarity index 100% rename from docs/latest/assets/img/viewer.png rename to packages/_viewer/docs/latest/assets/img/viewer.png diff --git a/docs/latest/assets/img/worklist.png b/packages/_viewer/docs/latest/assets/img/worklist.png similarity index 100% rename from docs/latest/assets/img/worklist.png rename to packages/_viewer/docs/latest/assets/img/worklist.png diff --git a/docs/latest/book.json b/packages/_viewer/docs/latest/book.json similarity index 100% rename from docs/latest/book.json rename to packages/_viewer/docs/latest/book.json diff --git a/docs/latest/connecting-to-image-archives/google-cloud-healthcare.md b/packages/_viewer/docs/latest/connecting-to-image-archives/google-cloud-healthcare.md similarity index 100% rename from docs/latest/connecting-to-image-archives/google-cloud-healthcare.md rename to packages/_viewer/docs/latest/connecting-to-image-archives/google-cloud-healthcare.md diff --git a/docs/latest/contributing.md b/packages/_viewer/docs/latest/contributing.md similarity index 100% rename from docs/latest/contributing.md rename to packages/_viewer/docs/latest/contributing.md diff --git a/docs/latest/deployment/_embedded-viewer-diagram.md b/packages/_viewer/docs/latest/deployment/_embedded-viewer-diagram.md similarity index 100% rename from docs/latest/deployment/_embedded-viewer-diagram.md rename to packages/_viewer/docs/latest/deployment/_embedded-viewer-diagram.md diff --git a/docs/latest/deployment/_nginx-image-archive-diagram.md b/packages/_viewer/docs/latest/deployment/_nginx-image-archive-diagram.md similarity index 100% rename from docs/latest/deployment/_nginx-image-archive-diagram.md rename to packages/_viewer/docs/latest/deployment/_nginx-image-archive-diagram.md diff --git a/docs/latest/deployment/_user-account-control-flow-diagram.md b/packages/_viewer/docs/latest/deployment/_user-account-control-flow-diagram.md similarity index 100% rename from docs/latest/deployment/_user-account-control-flow-diagram.md rename to packages/_viewer/docs/latest/deployment/_user-account-control-flow-diagram.md diff --git a/docs/latest/deployment/index.md b/packages/_viewer/docs/latest/deployment/index.md similarity index 100% rename from docs/latest/deployment/index.md rename to packages/_viewer/docs/latest/deployment/index.md diff --git a/docs/latest/deployment/recipes/build-for-production.md b/packages/_viewer/docs/latest/deployment/recipes/build-for-production.md similarity index 100% rename from docs/latest/deployment/recipes/build-for-production.md rename to packages/_viewer/docs/latest/deployment/recipes/build-for-production.md diff --git a/docs/latest/deployment/recipes/embedded-viewer.md b/packages/_viewer/docs/latest/deployment/recipes/embedded-viewer.md similarity index 100% rename from docs/latest/deployment/recipes/embedded-viewer.md rename to packages/_viewer/docs/latest/deployment/recipes/embedded-viewer.md diff --git a/docs/latest/deployment/recipes/nginx--image-archive.md b/packages/_viewer/docs/latest/deployment/recipes/nginx--image-archive.md similarity index 100% rename from docs/latest/deployment/recipes/nginx--image-archive.md rename to packages/_viewer/docs/latest/deployment/recipes/nginx--image-archive.md diff --git a/docs/latest/deployment/recipes/static-assets.md b/packages/_viewer/docs/latest/deployment/recipes/static-assets.md similarity index 100% rename from docs/latest/deployment/recipes/static-assets.md rename to packages/_viewer/docs/latest/deployment/recipes/static-assets.md diff --git a/docs/latest/deployment/recipes/user-account-control.md b/packages/_viewer/docs/latest/deployment/recipes/user-account-control.md similarity index 100% rename from docs/latest/deployment/recipes/user-account-control.md rename to packages/_viewer/docs/latest/deployment/recipes/user-account-control.md diff --git a/docs/latest/essentials/configuration.md b/packages/_viewer/docs/latest/essentials/configuration.md similarity index 100% rename from docs/latest/essentials/configuration.md rename to packages/_viewer/docs/latest/essentials/configuration.md diff --git a/docs/latest/essentials/data-source.md b/packages/_viewer/docs/latest/essentials/data-source.md similarity index 100% rename from docs/latest/essentials/data-source.md rename to packages/_viewer/docs/latest/essentials/data-source.md diff --git a/docs/latest/essentials/getting-started.md b/packages/_viewer/docs/latest/essentials/getting-started.md similarity index 100% rename from docs/latest/essentials/getting-started.md rename to packages/_viewer/docs/latest/essentials/getting-started.md diff --git a/docs/latest/essentials/installation.md b/packages/_viewer/docs/latest/essentials/installation.md similarity index 100% rename from docs/latest/essentials/installation.md rename to packages/_viewer/docs/latest/essentials/installation.md diff --git a/docs/latest/essentials/scope-of-project.md b/packages/_viewer/docs/latest/essentials/scope-of-project.md similarity index 100% rename from docs/latest/essentials/scope-of-project.md rename to packages/_viewer/docs/latest/essentials/scope-of-project.md diff --git a/docs/latest/essentials/themeing.md b/packages/_viewer/docs/latest/essentials/themeing.md similarity index 100% rename from docs/latest/essentials/themeing.md rename to packages/_viewer/docs/latest/essentials/themeing.md diff --git a/docs/latest/essentials/translating.md b/packages/_viewer/docs/latest/essentials/translating.md similarity index 100% rename from docs/latest/essentials/translating.md rename to packages/_viewer/docs/latest/essentials/translating.md diff --git a/docs/latest/essentials/troubleshooting.md b/packages/_viewer/docs/latest/essentials/troubleshooting.md similarity index 100% rename from docs/latest/essentials/troubleshooting.md rename to packages/_viewer/docs/latest/essentials/troubleshooting.md diff --git a/docs/latest/frequently-asked-questions.md b/packages/_viewer/docs/latest/frequently-asked-questions.md similarity index 100% rename from docs/latest/frequently-asked-questions.md rename to packages/_viewer/docs/latest/frequently-asked-questions.md diff --git a/docs/latest/help.md b/packages/_viewer/docs/latest/help.md similarity index 100% rename from docs/latest/help.md rename to packages/_viewer/docs/latest/help.md diff --git a/docs/latest/package.json b/packages/_viewer/docs/latest/package.json similarity index 100% rename from docs/latest/package.json rename to packages/_viewer/docs/latest/package.json diff --git a/docs/latest/packages/measurements.md b/packages/_viewer/docs/latest/packages/measurements.md similarity index 100% rename from docs/latest/packages/measurements.md rename to packages/_viewer/docs/latest/packages/measurements.md diff --git a/docs/latest/roadmap.md b/packages/_viewer/docs/latest/roadmap.md similarity index 100% rename from docs/latest/roadmap.md rename to packages/_viewer/docs/latest/roadmap.md diff --git a/docs/latest/yarn.lock b/packages/_viewer/docs/latest/yarn.lock similarity index 100% rename from docs/latest/yarn.lock rename to packages/_viewer/docs/latest/yarn.lock diff --git a/docs/v1/I-want-to/add-a-logo-to-the-viewer.md b/packages/_viewer/docs/v1/I-want-to/add-a-logo-to-the-viewer.md similarity index 100% rename from docs/v1/I-want-to/add-a-logo-to-the-viewer.md rename to packages/_viewer/docs/v1/I-want-to/add-a-logo-to-the-viewer.md diff --git a/docs/v1/I-want-to/add-a-tool-to-the-viewer.md b/packages/_viewer/docs/v1/I-want-to/add-a-tool-to-the-viewer.md similarity index 100% rename from docs/v1/I-want-to/add-a-tool-to-the-viewer.md rename to packages/_viewer/docs/v1/I-want-to/add-a-tool-to-the-viewer.md diff --git a/docs/v1/OHIF-Viewer/Installation-Instructions/README.md b/packages/_viewer/docs/v1/OHIF-Viewer/Installation-Instructions/README.md similarity index 100% rename from docs/v1/OHIF-Viewer/Installation-Instructions/README.md rename to packages/_viewer/docs/v1/OHIF-Viewer/Installation-Instructions/README.md diff --git a/docs/v1/OHIF-Viewer/Installation-Instructions/Windows/README.md b/packages/_viewer/docs/v1/OHIF-Viewer/Installation-Instructions/Windows/README.md similarity index 100% rename from docs/v1/OHIF-Viewer/Installation-Instructions/Windows/README.md rename to packages/_viewer/docs/v1/OHIF-Viewer/Installation-Instructions/Windows/README.md diff --git a/docs/v1/OHIF-Viewer/Installation-Instructions/Windows/Windows-Server-2016/Standalone-Installation-Instructions.md b/packages/_viewer/docs/v1/OHIF-Viewer/Installation-Instructions/Windows/Windows-Server-2016/Standalone-Installation-Instructions.md similarity index 100% rename from docs/v1/OHIF-Viewer/Installation-Instructions/Windows/Windows-Server-2016/Standalone-Installation-Instructions.md rename to packages/_viewer/docs/v1/OHIF-Viewer/Installation-Instructions/Windows/Windows-Server-2016/Standalone-Installation-Instructions.md diff --git a/docs/v1/OHIF-Viewer/README.MD b/packages/_viewer/docs/v1/OHIF-Viewer/README.MD similarity index 100% rename from docs/v1/OHIF-Viewer/README.MD rename to packages/_viewer/docs/v1/OHIF-Viewer/README.MD diff --git a/docs/v1/OHIF-Viewer/environment-installations.md b/packages/_viewer/docs/v1/OHIF-Viewer/environment-installations.md similarity index 100% rename from docs/v1/OHIF-Viewer/environment-installations.md rename to packages/_viewer/docs/v1/OHIF-Viewer/environment-installations.md diff --git a/docs/v1/README.md b/packages/_viewer/docs/v1/README.md similarity index 100% rename from docs/v1/README.md rename to packages/_viewer/docs/v1/README.md diff --git a/docs/v1/SUMMARY.md b/packages/_viewer/docs/v1/SUMMARY.md similarity index 100% rename from docs/v1/SUMMARY.md rename to packages/_viewer/docs/v1/SUMMARY.md diff --git a/docs/v1/assets/CNAME b/packages/_viewer/docs/v1/assets/CNAME similarity index 100% rename from docs/v1/assets/CNAME rename to packages/_viewer/docs/v1/assets/CNAME diff --git a/docs/v1/assets/img/LesionTracker/LT_Assessment_Progress.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Assessment_Progress.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Assessment_Progress.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Assessment_Progress.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Association_Dialog.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Association_Dialog.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Association_Dialog.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Association_Dialog.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Audit_Trails.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Audit_Trails.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Audit_Trails.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Audit_Trails.png diff --git a/docs/v1/assets/img/LesionTracker/LT_CINE.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_CINE.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_CINE.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_CINE.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Change_Password.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Change_Password.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Change_Password.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Change_Password.png diff --git a/docs/v1/assets/img/LesionTracker/LT_CompareMode.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_CompareMode.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_CompareMode.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_CompareMode.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Comparison.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Comparison.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Comparison.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Comparison.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Configuration_Menu.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Configuration_Menu.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Configuration_Menu.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Configuration_Menu.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Conformance_Check.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Conformance_Check.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Conformance_Check.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Conformance_Check.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Download.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Download.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Download.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Download.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Ellipse.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Ellipse.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Ellipse.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Ellipse.png diff --git a/docs/v1/assets/img/LesionTracker/LT_FlipH.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_FlipH.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_FlipH.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_FlipH.png diff --git a/docs/v1/assets/img/LesionTracker/LT_FlipV.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_FlipV.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_FlipV.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_FlipV.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Forgot_Password.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Forgot_Password.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Forgot_Password.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Forgot_Password.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Generate_Report.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Generate_Report.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Generate_Report.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Generate_Report.png diff --git a/docs/v1/assets/img/LesionTracker/LT_HUD_Panel.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_HUD_Panel.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_HUD_Panel.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_HUD_Panel.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Image_Viewer.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Image_Viewer.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Image_Viewer.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Image_Viewer.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Installer_After_Prerequisites.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_After_Prerequisites.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Installer_After_Prerequisites.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_After_Prerequisites.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Installer_Desktop_Shortcuts.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Desktop_Shortcuts.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Installer_Desktop_Shortcuts.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Desktop_Shortcuts.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Installer_Final.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Final.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Installer_Final.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Final.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Installer_Finish.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Finish.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Installer_Finish.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Finish.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Installer_Initial.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Initial.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Installer_Initial.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Initial.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Installer_Launch_Installation.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Launch_Installation.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Installer_Launch_Installation.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Launch_Installation.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Installer_Launch_Uninstall.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Launch_Uninstall.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Installer_Launch_Uninstall.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Launch_Uninstall.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Installer_License_Aggrement.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_License_Aggrement.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Installer_License_Aggrement.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_License_Aggrement.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Installer_Prerequisites.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Prerequisites.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Installer_Prerequisites.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Prerequisites.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Installer_Select_Location.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Select_Location.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Installer_Select_Location.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Select_Location.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Installer_Services.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Services.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Installer_Services.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Services.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Installer_Successful.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Successful.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Installer_Successful.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Successful.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Installer_Uninstall.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Uninstall.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Installer_Uninstall.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Installer_Uninstall.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Invert.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Invert.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Invert.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Invert.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Key_Timepoints.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Key_Timepoints.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Key_Timepoints.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Key_Timepoints.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Keyboard_Shortcuts.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Keyboard_Shortcuts.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Keyboard_Shortcuts.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Keyboard_Shortcuts.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Login.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Login.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Login.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Login.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Logout.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Logout.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Logout.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Logout.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Magnify.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Magnify.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Magnify.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Magnify.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Measurements.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Measurements.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Measurements.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Measurements.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Need_Account.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Need_Account.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Need_Account.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Need_Account.png diff --git a/docs/v1/assets/img/LesionTracker/LT_NonTarget_Select_Location.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_NonTarget_Select_Location.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_NonTarget_Select_Location.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_NonTarget_Select_Location.png diff --git a/docs/v1/assets/img/LesionTracker/LT_NonTarget_Tool.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_NonTarget_Tool.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_NonTarget_Tool.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_NonTarget_Tool.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Orthanc_Delete_Select_Patient.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Orthanc_Delete_Select_Patient.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Orthanc_Delete_Select_Patient.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Orthanc_Delete_Select_Patient.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Orthanc_Delete_Select_Study.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Orthanc_Delete_Select_Study.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Orthanc_Delete_Select_Study.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Orthanc_Delete_Select_Study.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Orthanc_Delete_Study.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Orthanc_Delete_Study.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Orthanc_Delete_Study.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Orthanc_Delete_Study.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Orthanc_Drag_and_Drop.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Orthanc_Drag_and_Drop.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Orthanc_Drag_and_Drop.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Orthanc_Drag_and_Drop.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Orthanc_Start_Upload.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Orthanc_Start_Upload.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Orthanc_Start_Upload.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Orthanc_Start_Upload.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Orthanc_Upload.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Orthanc_Upload.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Orthanc_Upload.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Orthanc_Upload.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Orthanc_Upload_Result.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Orthanc_Upload_Result.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Orthanc_Upload_Result.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Orthanc_Upload_Result.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Pan.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Pan.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Pan.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Pan.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Quick_Switch_Tool.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Quick_Switch_Tool.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Quick_Switch_Tool.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Quick_Switch_Tool.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Remove_Associate.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Remove_Associate.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Remove_Associate.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Remove_Associate.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Report_PDF.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Report_PDF.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Report_PDF.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Report_PDF.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Reset.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Reset.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Reset.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Reset.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Response_Criteria.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Response_Criteria.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Response_Criteria.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Response_Criteria.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Rotate_Right.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Rotate_Right.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Rotate_Right.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Rotate_Right.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Save1.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Save1.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Save1.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Save1.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Save2.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Save2.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Save2.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Save2.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Scroll.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Scroll.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Scroll.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Scroll.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Select_Associate.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Select_Associate.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Select_Associate.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Select_Associate.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Server_Info.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Server_Info.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Server_Info.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Server_Info.png diff --git a/docs/v1/assets/img/LesionTracker/LT_StackScroll_Multiple.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_StackScroll_Multiple.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_StackScroll_Multiple.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_StackScroll_Multiple.png diff --git a/docs/v1/assets/img/LesionTracker/LT_StackScroll_Single.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_StackScroll_Single.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_StackScroll_Single.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_StackScroll_Single.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Studies_Panel.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Studies_Panel.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Studies_Panel.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Studies_Panel.png diff --git a/docs/v1/assets/img/LesionTracker/LT_StudyList.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_StudyList.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_StudyList.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_StudyList.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Target.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Target.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Target.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Target.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Target_CR.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Target_CR.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Target_CR.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Target_CR.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Target_Delete.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Target_Delete.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Target_Delete.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Target_Delete.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Target_Label.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Target_Label.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Target_Label.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Target_Label.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Target_Rename.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Target_Rename.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Target_Rename.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Target_Rename.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Target_UN.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Target_UN.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Target_UN.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Target_UN.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Temp_Tool.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Temp_Tool.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Temp_Tool.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Temp_Tool.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Themes.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Themes.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Themes.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Themes.png diff --git a/docs/v1/assets/img/LesionTracker/LT_View_Lesion.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_View_Lesion.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_View_Lesion.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_View_Lesion.png diff --git a/docs/v1/assets/img/LesionTracker/LT_View_Series_Details.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_View_Series_Details.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_View_Series_Details.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_View_Series_Details.png diff --git a/docs/v1/assets/img/LesionTracker/LT_View_Study.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_View_Study.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_View_Study.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_View_Study.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Viewer.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Viewer.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Viewer.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Viewer.png diff --git a/docs/v1/assets/img/LesionTracker/LT_WL.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_WL.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_WL.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_WL.png diff --git a/docs/v1/assets/img/LesionTracker/LT_WL_Presets.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_WL_Presets.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_WL_Presets.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_WL_Presets.png diff --git a/docs/v1/assets/img/LesionTracker/LT_Zoom.png b/packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Zoom.png similarity index 100% rename from docs/v1/assets/img/LesionTracker/LT_Zoom.png rename to packages/_viewer/docs/v1/assets/img/LesionTracker/LT_Zoom.png diff --git a/docs/v1/assets/img/lesionTracker.png b/packages/_viewer/docs/v1/assets/img/lesionTracker.png similarity index 100% rename from docs/v1/assets/img/lesionTracker.png rename to packages/_viewer/docs/v1/assets/img/lesionTracker.png diff --git a/docs/v1/assets/img/viewer.png b/packages/_viewer/docs/v1/assets/img/viewer.png similarity index 100% rename from docs/v1/assets/img/viewer.png rename to packages/_viewer/docs/v1/assets/img/viewer.png diff --git a/docs/v1/assets/img/worklist.png b/packages/_viewer/docs/v1/assets/img/worklist.png similarity index 100% rename from docs/v1/assets/img/worklist.png rename to packages/_viewer/docs/v1/assets/img/worklist.png diff --git a/docs/v1/book.json b/packages/_viewer/docs/v1/book.json similarity index 100% rename from docs/v1/book.json rename to packages/_viewer/docs/v1/book.json diff --git a/docs/v1/connecting-to-image-archives/dcm4chee-with-docker.md b/packages/_viewer/docs/v1/connecting-to-image-archives/dcm4chee-with-docker.md similarity index 100% rename from docs/v1/connecting-to-image-archives/dcm4chee-with-docker.md rename to packages/_viewer/docs/v1/connecting-to-image-archives/dcm4chee-with-docker.md diff --git a/docs/v1/connecting-to-image-archives/dicomweb.md b/packages/_viewer/docs/v1/connecting-to-image-archives/dicomweb.md similarity index 100% rename from docs/v1/connecting-to-image-archives/dicomweb.md rename to packages/_viewer/docs/v1/connecting-to-image-archives/dicomweb.md diff --git a/docs/v1/connecting-to-image-archives/dimse.md b/packages/_viewer/docs/v1/connecting-to-image-archives/dimse.md similarity index 100% rename from docs/v1/connecting-to-image-archives/dimse.md rename to packages/_viewer/docs/v1/connecting-to-image-archives/dimse.md diff --git a/docs/v1/connecting-to-image-archives/google-cloud-healthcare.md b/packages/_viewer/docs/v1/connecting-to-image-archives/google-cloud-healthcare.md similarity index 100% rename from docs/v1/connecting-to-image-archives/google-cloud-healthcare.md rename to packages/_viewer/docs/v1/connecting-to-image-archives/google-cloud-healthcare.md diff --git a/docs/v1/connecting-to-image-archives/options.md b/packages/_viewer/docs/v1/connecting-to-image-archives/options.md similarity index 100% rename from docs/v1/connecting-to-image-archives/options.md rename to packages/_viewer/docs/v1/connecting-to-image-archives/options.md diff --git a/docs/v1/connecting-to-image-archives/orthanc-with-docker.md b/packages/_viewer/docs/v1/connecting-to-image-archives/orthanc-with-docker.md similarity index 100% rename from docs/v1/connecting-to-image-archives/orthanc-with-docker.md rename to packages/_viewer/docs/v1/connecting-to-image-archives/orthanc-with-docker.md diff --git a/docs/v1/connecting-to-image-archives/osirix.md b/packages/_viewer/docs/v1/connecting-to-image-archives/osirix.md similarity index 100% rename from docs/v1/connecting-to-image-archives/osirix.md rename to packages/_viewer/docs/v1/connecting-to-image-archives/osirix.md diff --git a/docs/v1/contributing.md b/packages/_viewer/docs/v1/contributing.md similarity index 100% rename from docs/v1/contributing.md rename to packages/_viewer/docs/v1/contributing.md diff --git a/docs/v1/data/data-hierarchy.md b/packages/_viewer/docs/v1/data/data-hierarchy.md similarity index 100% rename from docs/v1/data/data-hierarchy.md rename to packages/_viewer/docs/v1/data/data-hierarchy.md diff --git a/docs/v1/data/image-viewport.md b/packages/_viewer/docs/v1/data/image-viewport.md similarity index 100% rename from docs/v1/data/image-viewport.md rename to packages/_viewer/docs/v1/data/image-viewport.md diff --git a/docs/v1/data/measurements-and-annotations.md b/packages/_viewer/docs/v1/data/measurements-and-annotations.md similarity index 100% rename from docs/v1/data/measurements-and-annotations.md rename to packages/_viewer/docs/v1/data/measurements-and-annotations.md diff --git a/docs/v1/data/tool-management.md b/packages/_viewer/docs/v1/data/tool-management.md similarity index 100% rename from docs/v1/data/tool-management.md rename to packages/_viewer/docs/v1/data/tool-management.md diff --git a/docs/v1/deployment/building-for-production.md b/packages/_viewer/docs/v1/deployment/building-for-production.md similarity index 100% rename from docs/v1/deployment/building-for-production.md rename to packages/_viewer/docs/v1/deployment/building-for-production.md diff --git a/docs/v1/deployment/security.md b/packages/_viewer/docs/v1/deployment/security.md similarity index 100% rename from docs/v1/deployment/security.md rename to packages/_viewer/docs/v1/deployment/security.md diff --git a/docs/v1/essentials/architecture.md b/packages/_viewer/docs/v1/essentials/architecture.md similarity index 100% rename from docs/v1/essentials/architecture.md rename to packages/_viewer/docs/v1/essentials/architecture.md diff --git a/docs/v1/essentials/configuration.md b/packages/_viewer/docs/v1/essentials/configuration.md similarity index 100% rename from docs/v1/essentials/configuration.md rename to packages/_viewer/docs/v1/essentials/configuration.md diff --git a/docs/v1/essentials/getting-started.md b/packages/_viewer/docs/v1/essentials/getting-started.md similarity index 100% rename from docs/v1/essentials/getting-started.md rename to packages/_viewer/docs/v1/essentials/getting-started.md diff --git a/docs/v1/essentials/installation.md b/packages/_viewer/docs/v1/essentials/installation.md similarity index 100% rename from docs/v1/essentials/installation.md rename to packages/_viewer/docs/v1/essentials/installation.md diff --git a/docs/v1/essentials/meteor-packages.md b/packages/_viewer/docs/v1/essentials/meteor-packages.md similarity index 100% rename from docs/v1/essentials/meteor-packages.md rename to packages/_viewer/docs/v1/essentials/meteor-packages.md diff --git a/docs/v1/essentials/troubleshooting.md b/packages/_viewer/docs/v1/essentials/troubleshooting.md similarity index 100% rename from docs/v1/essentials/troubleshooting.md rename to packages/_viewer/docs/v1/essentials/troubleshooting.md diff --git a/docs/v1/example-applications/lesion-tracker.md b/packages/_viewer/docs/v1/example-applications/lesion-tracker.md similarity index 100% rename from docs/v1/example-applications/lesion-tracker.md rename to packages/_viewer/docs/v1/example-applications/lesion-tracker.md diff --git a/docs/v1/example-applications/ohif-viewer.md b/packages/_viewer/docs/v1/example-applications/ohif-viewer.md similarity index 100% rename from docs/v1/example-applications/ohif-viewer.md rename to packages/_viewer/docs/v1/example-applications/ohif-viewer.md diff --git a/docs/v1/example-applications/standalone-viewer.md b/packages/_viewer/docs/v1/example-applications/standalone-viewer.md similarity index 100% rename from docs/v1/example-applications/standalone-viewer.md rename to packages/_viewer/docs/v1/example-applications/standalone-viewer.md diff --git a/docs/v1/faq/general.md b/packages/_viewer/docs/v1/faq/general.md similarity index 100% rename from docs/v1/faq/general.md rename to packages/_viewer/docs/v1/faq/general.md diff --git a/docs/v1/faq/technical.md b/packages/_viewer/docs/v1/faq/technical.md similarity index 100% rename from docs/v1/faq/technical.md rename to packages/_viewer/docs/v1/faq/technical.md diff --git a/docs/v1/layout/hanging-protocols.md b/packages/_viewer/docs/v1/layout/hanging-protocols.md similarity index 100% rename from docs/v1/layout/hanging-protocols.md rename to packages/_viewer/docs/v1/layout/hanging-protocols.md diff --git a/docs/v1/layout/layout-management.md b/packages/_viewer/docs/v1/layout/layout-management.md similarity index 100% rename from docs/v1/layout/layout-management.md rename to packages/_viewer/docs/v1/layout/layout-management.md diff --git a/docs/v1/lesion-tracker/audit-trail.md b/packages/_viewer/docs/v1/lesion-tracker/audit-trail.md similarity index 100% rename from docs/v1/lesion-tracker/audit-trail.md rename to packages/_viewer/docs/v1/lesion-tracker/audit-trail.md diff --git a/docs/v1/lesion-tracker/installation-on-windows.md b/packages/_viewer/docs/v1/lesion-tracker/installation-on-windows.md similarity index 100% rename from docs/v1/lesion-tracker/installation-on-windows.md rename to packages/_viewer/docs/v1/lesion-tracker/installation-on-windows.md diff --git a/docs/v1/lesion-tracker/manage-studies-in-orthanc.md b/packages/_viewer/docs/v1/lesion-tracker/manage-studies-in-orthanc.md similarity index 100% rename from docs/v1/lesion-tracker/manage-studies-in-orthanc.md rename to packages/_viewer/docs/v1/lesion-tracker/manage-studies-in-orthanc.md diff --git a/docs/v1/lesion-tracker/server-management.md b/packages/_viewer/docs/v1/lesion-tracker/server-management.md similarity index 100% rename from docs/v1/lesion-tracker/server-management.md rename to packages/_viewer/docs/v1/lesion-tracker/server-management.md diff --git a/docs/v1/lesion-tracker/study-and-timepoint-management.md b/packages/_viewer/docs/v1/lesion-tracker/study-and-timepoint-management.md similarity index 100% rename from docs/v1/lesion-tracker/study-and-timepoint-management.md rename to packages/_viewer/docs/v1/lesion-tracker/study-and-timepoint-management.md diff --git a/docs/v1/lesion-tracker/user-accounts.md b/packages/_viewer/docs/v1/lesion-tracker/user-accounts.md similarity index 100% rename from docs/v1/lesion-tracker/user-accounts.md rename to packages/_viewer/docs/v1/lesion-tracker/user-accounts.md diff --git a/docs/v1/lesion-tracker/user-manual.md b/packages/_viewer/docs/v1/lesion-tracker/user-manual.md similarity index 100% rename from docs/v1/lesion-tracker/user-manual.md rename to packages/_viewer/docs/v1/lesion-tracker/user-manual.md diff --git a/docs/v1/lesion-tracker/user-preferences.md b/packages/_viewer/docs/v1/lesion-tracker/user-preferences.md similarity index 100% rename from docs/v1/lesion-tracker/user-preferences.md rename to packages/_viewer/docs/v1/lesion-tracker/user-preferences.md diff --git a/docs/v1/lesion-tracker/using-the-viewer.md b/packages/_viewer/docs/v1/lesion-tracker/using-the-viewer.md similarity index 100% rename from docs/v1/lesion-tracker/using-the-viewer.md rename to packages/_viewer/docs/v1/lesion-tracker/using-the-viewer.md diff --git a/docs/v1/package.json b/packages/_viewer/docs/v1/package.json similarity index 100% rename from docs/v1/package.json rename to packages/_viewer/docs/v1/package.json diff --git a/docs/v1/packages/measurements.md b/packages/_viewer/docs/v1/packages/measurements.md similarity index 100% rename from docs/v1/packages/measurements.md rename to packages/_viewer/docs/v1/packages/measurements.md diff --git a/docs/v1/standalone-viewer/usage.md b/packages/_viewer/docs/v1/standalone-viewer/usage.md similarity index 100% rename from docs/v1/standalone-viewer/usage.md rename to packages/_viewer/docs/v1/standalone-viewer/usage.md diff --git a/docs/v1/update-docs.sh b/packages/_viewer/docs/v1/update-docs.sh similarity index 100% rename from docs/v1/update-docs.sh rename to packages/_viewer/docs/v1/update-docs.sh diff --git a/docs/win-server-workaround.bat b/packages/_viewer/docs/win-server-workaround.bat similarity index 100% rename from docs/win-server-workaround.bat rename to packages/_viewer/docs/win-server-workaround.bat diff --git a/extensions/_ohif-example-extension/src/index.js b/packages/_viewer/extensions/_ohif-example-extension/src/index.js similarity index 100% rename from extensions/_ohif-example-extension/src/index.js rename to packages/_viewer/extensions/_ohif-example-extension/src/index.js diff --git a/extensions/ohif-cornerstone-extension/.babelrc b/packages/_viewer/extensions/ohif-cornerstone-extension/.babelrc similarity index 100% rename from extensions/ohif-cornerstone-extension/.babelrc rename to packages/_viewer/extensions/ohif-cornerstone-extension/.babelrc diff --git a/extensions/ohif-cornerstone-extension/.editorconfig b/packages/_viewer/extensions/ohif-cornerstone-extension/.editorconfig similarity index 100% rename from extensions/ohif-cornerstone-extension/.editorconfig rename to packages/_viewer/extensions/ohif-cornerstone-extension/.editorconfig diff --git a/extensions/ohif-cornerstone-extension/.eslintrc b/packages/_viewer/extensions/ohif-cornerstone-extension/.eslintrc similarity index 100% rename from extensions/ohif-cornerstone-extension/.eslintrc rename to packages/_viewer/extensions/ohif-cornerstone-extension/.eslintrc diff --git a/extensions/ohif-cornerstone-extension/.gitignore b/packages/_viewer/extensions/ohif-cornerstone-extension/.gitignore similarity index 100% rename from extensions/ohif-cornerstone-extension/.gitignore rename to packages/_viewer/extensions/ohif-cornerstone-extension/.gitignore diff --git a/extensions/ohif-dicom-html-extension/.prettierrc b/packages/_viewer/extensions/ohif-cornerstone-extension/.prettierrc similarity index 100% rename from extensions/ohif-dicom-html-extension/.prettierrc rename to packages/_viewer/extensions/ohif-cornerstone-extension/.prettierrc diff --git a/extensions/ohif-cornerstone-extension/.travis.yml b/packages/_viewer/extensions/ohif-cornerstone-extension/.travis.yml similarity index 100% rename from extensions/ohif-cornerstone-extension/.travis.yml rename to packages/_viewer/extensions/ohif-cornerstone-extension/.travis.yml diff --git a/extensions/ohif-dicom-html-extension/LICENSE b/packages/_viewer/extensions/ohif-cornerstone-extension/LICENSE similarity index 100% rename from extensions/ohif-dicom-html-extension/LICENSE rename to packages/_viewer/extensions/ohif-cornerstone-extension/LICENSE diff --git a/extensions/ohif-cornerstone-extension/README.md b/packages/_viewer/extensions/ohif-cornerstone-extension/README.md similarity index 100% rename from extensions/ohif-cornerstone-extension/README.md rename to packages/_viewer/extensions/ohif-cornerstone-extension/README.md diff --git a/extensions/ohif-cornerstone-extension/package.json b/packages/_viewer/extensions/ohif-cornerstone-extension/package.json similarity index 100% rename from extensions/ohif-cornerstone-extension/package.json rename to packages/_viewer/extensions/ohif-cornerstone-extension/package.json diff --git a/extensions/ohif-cornerstone-extension/rollup.config.js b/packages/_viewer/extensions/ohif-cornerstone-extension/rollup.config.js similarity index 100% rename from extensions/ohif-cornerstone-extension/rollup.config.js rename to packages/_viewer/extensions/ohif-cornerstone-extension/rollup.config.js diff --git a/extensions/ohif-cornerstone-extension/src/ConnectedCornerstoneViewport.js b/packages/_viewer/extensions/ohif-cornerstone-extension/src/ConnectedCornerstoneViewport.js similarity index 100% rename from extensions/ohif-cornerstone-extension/src/ConnectedCornerstoneViewport.js rename to packages/_viewer/extensions/ohif-cornerstone-extension/src/ConnectedCornerstoneViewport.js diff --git a/extensions/ohif-cornerstone-extension/src/OHIFCornerstoneViewport.js b/packages/_viewer/extensions/ohif-cornerstone-extension/src/OHIFCornerstoneViewport.js similarity index 100% rename from extensions/ohif-cornerstone-extension/src/OHIFCornerstoneViewport.js rename to packages/_viewer/extensions/ohif-cornerstone-extension/src/OHIFCornerstoneViewport.js diff --git a/extensions/ohif-cornerstone-extension/src/commandsModule.js b/packages/_viewer/extensions/ohif-cornerstone-extension/src/commandsModule.js similarity index 100% rename from extensions/ohif-cornerstone-extension/src/commandsModule.js rename to packages/_viewer/extensions/ohif-cornerstone-extension/src/commandsModule.js diff --git a/extensions/ohif-cornerstone-extension/src/handleSegmentationStorage.js b/packages/_viewer/extensions/ohif-cornerstone-extension/src/handleSegmentationStorage.js similarity index 100% rename from extensions/ohif-cornerstone-extension/src/handleSegmentationStorage.js rename to packages/_viewer/extensions/ohif-cornerstone-extension/src/handleSegmentationStorage.js diff --git a/extensions/ohif-cornerstone-extension/src/index.js b/packages/_viewer/extensions/ohif-cornerstone-extension/src/index.js similarity index 100% rename from extensions/ohif-cornerstone-extension/src/index.js rename to packages/_viewer/extensions/ohif-cornerstone-extension/src/index.js diff --git a/extensions/ohif-cornerstone-extension/src/toolbarModule.js b/packages/_viewer/extensions/ohif-cornerstone-extension/src/toolbarModule.js similarity index 100% rename from extensions/ohif-cornerstone-extension/src/toolbarModule.js rename to packages/_viewer/extensions/ohif-cornerstone-extension/src/toolbarModule.js diff --git a/extensions/ohif-cornerstone-extension/yarn.lock b/packages/_viewer/extensions/ohif-cornerstone-extension/yarn.lock similarity index 100% rename from extensions/ohif-cornerstone-extension/yarn.lock rename to packages/_viewer/extensions/ohif-cornerstone-extension/yarn.lock diff --git a/extensions/ohif-dicom-html-extension/.babelrc b/packages/_viewer/extensions/ohif-dicom-html-extension/.babelrc similarity index 100% rename from extensions/ohif-dicom-html-extension/.babelrc rename to packages/_viewer/extensions/ohif-dicom-html-extension/.babelrc diff --git a/extensions/ohif-dicom-html-extension/.editorconfig b/packages/_viewer/extensions/ohif-dicom-html-extension/.editorconfig similarity index 100% rename from extensions/ohif-dicom-html-extension/.editorconfig rename to packages/_viewer/extensions/ohif-dicom-html-extension/.editorconfig diff --git a/extensions/ohif-dicom-html-extension/.eslintrc b/packages/_viewer/extensions/ohif-dicom-html-extension/.eslintrc similarity index 100% rename from extensions/ohif-dicom-html-extension/.eslintrc rename to packages/_viewer/extensions/ohif-dicom-html-extension/.eslintrc diff --git a/extensions/ohif-dicom-html-extension/.gitignore b/packages/_viewer/extensions/ohif-dicom-html-extension/.gitignore similarity index 100% rename from extensions/ohif-dicom-html-extension/.gitignore rename to packages/_viewer/extensions/ohif-dicom-html-extension/.gitignore diff --git a/extensions/ohif-dicom-microscopy-extension/.prettierrc b/packages/_viewer/extensions/ohif-dicom-html-extension/.prettierrc similarity index 100% rename from extensions/ohif-dicom-microscopy-extension/.prettierrc rename to packages/_viewer/extensions/ohif-dicom-html-extension/.prettierrc diff --git a/extensions/ohif-dicom-html-extension/.travis.yml b/packages/_viewer/extensions/ohif-dicom-html-extension/.travis.yml similarity index 100% rename from extensions/ohif-dicom-html-extension/.travis.yml rename to packages/_viewer/extensions/ohif-dicom-html-extension/.travis.yml diff --git a/extensions/ohif-dicom-microscopy-extension/LICENSE b/packages/_viewer/extensions/ohif-dicom-html-extension/LICENSE similarity index 100% rename from extensions/ohif-dicom-microscopy-extension/LICENSE rename to packages/_viewer/extensions/ohif-dicom-html-extension/LICENSE diff --git a/extensions/ohif-dicom-html-extension/package.json b/packages/_viewer/extensions/ohif-dicom-html-extension/package.json similarity index 100% rename from extensions/ohif-dicom-html-extension/package.json rename to packages/_viewer/extensions/ohif-dicom-html-extension/package.json diff --git a/extensions/ohif-dicom-html-extension/rollup.config.js b/packages/_viewer/extensions/ohif-dicom-html-extension/rollup.config.js similarity index 100% rename from extensions/ohif-dicom-html-extension/rollup.config.js rename to packages/_viewer/extensions/ohif-dicom-html-extension/rollup.config.js diff --git a/extensions/ohif-dicom-html-extension/src/DicomHtmlViewport.css b/packages/_viewer/extensions/ohif-dicom-html-extension/src/DicomHtmlViewport.css similarity index 100% rename from extensions/ohif-dicom-html-extension/src/DicomHtmlViewport.css rename to packages/_viewer/extensions/ohif-dicom-html-extension/src/DicomHtmlViewport.css diff --git a/extensions/ohif-dicom-html-extension/src/DicomHtmlViewport.js b/packages/_viewer/extensions/ohif-dicom-html-extension/src/DicomHtmlViewport.js similarity index 100% rename from extensions/ohif-dicom-html-extension/src/DicomHtmlViewport.js rename to packages/_viewer/extensions/ohif-dicom-html-extension/src/DicomHtmlViewport.js diff --git a/extensions/ohif-dicom-html-extension/src/OHIFDicomHtmlSopClassHandler.js b/packages/_viewer/extensions/ohif-dicom-html-extension/src/OHIFDicomHtmlSopClassHandler.js similarity index 100% rename from extensions/ohif-dicom-html-extension/src/OHIFDicomHtmlSopClassHandler.js rename to packages/_viewer/extensions/ohif-dicom-html-extension/src/OHIFDicomHtmlSopClassHandler.js diff --git a/extensions/ohif-dicom-html-extension/src/OHIFDicomHtmlViewport.js b/packages/_viewer/extensions/ohif-dicom-html-extension/src/OHIFDicomHtmlViewport.js similarity index 100% rename from extensions/ohif-dicom-html-extension/src/OHIFDicomHtmlViewport.js rename to packages/_viewer/extensions/ohif-dicom-html-extension/src/OHIFDicomHtmlViewport.js diff --git a/extensions/ohif-dicom-html-extension/src/TypedArrayProp.js b/packages/_viewer/extensions/ohif-dicom-html-extension/src/TypedArrayProp.js similarity index 100% rename from extensions/ohif-dicom-html-extension/src/TypedArrayProp.js rename to packages/_viewer/extensions/ohif-dicom-html-extension/src/TypedArrayProp.js diff --git a/extensions/ohif-dicom-html-extension/src/index.js b/packages/_viewer/extensions/ohif-dicom-html-extension/src/index.js similarity index 100% rename from extensions/ohif-dicom-html-extension/src/index.js rename to packages/_viewer/extensions/ohif-dicom-html-extension/src/index.js diff --git a/extensions/ohif-dicom-html-extension/yarn.lock b/packages/_viewer/extensions/ohif-dicom-html-extension/yarn.lock similarity index 100% rename from extensions/ohif-dicom-html-extension/yarn.lock rename to packages/_viewer/extensions/ohif-dicom-html-extension/yarn.lock diff --git a/extensions/ohif-dicom-microscopy-extension/.babelrc b/packages/_viewer/extensions/ohif-dicom-microscopy-extension/.babelrc similarity index 100% rename from extensions/ohif-dicom-microscopy-extension/.babelrc rename to packages/_viewer/extensions/ohif-dicom-microscopy-extension/.babelrc diff --git a/extensions/ohif-dicom-microscopy-extension/.editorconfig b/packages/_viewer/extensions/ohif-dicom-microscopy-extension/.editorconfig similarity index 100% rename from extensions/ohif-dicom-microscopy-extension/.editorconfig rename to packages/_viewer/extensions/ohif-dicom-microscopy-extension/.editorconfig diff --git a/extensions/ohif-dicom-microscopy-extension/.eslintrc b/packages/_viewer/extensions/ohif-dicom-microscopy-extension/.eslintrc similarity index 100% rename from extensions/ohif-dicom-microscopy-extension/.eslintrc rename to packages/_viewer/extensions/ohif-dicom-microscopy-extension/.eslintrc diff --git a/extensions/ohif-dicom-microscopy-extension/.gitignore b/packages/_viewer/extensions/ohif-dicom-microscopy-extension/.gitignore similarity index 100% rename from extensions/ohif-dicom-microscopy-extension/.gitignore rename to packages/_viewer/extensions/ohif-dicom-microscopy-extension/.gitignore diff --git a/extensions/ohif-dicom-pdf-extension/.prettierrc b/packages/_viewer/extensions/ohif-dicom-microscopy-extension/.prettierrc similarity index 100% rename from extensions/ohif-dicom-pdf-extension/.prettierrc rename to packages/_viewer/extensions/ohif-dicom-microscopy-extension/.prettierrc diff --git a/extensions/ohif-dicom-microscopy-extension/.travis.yml b/packages/_viewer/extensions/ohif-dicom-microscopy-extension/.travis.yml similarity index 100% rename from extensions/ohif-dicom-microscopy-extension/.travis.yml rename to packages/_viewer/extensions/ohif-dicom-microscopy-extension/.travis.yml diff --git a/extensions/ohif-dicom-pdf-extension/LICENSE b/packages/_viewer/extensions/ohif-dicom-microscopy-extension/LICENSE similarity index 100% rename from extensions/ohif-dicom-pdf-extension/LICENSE rename to packages/_viewer/extensions/ohif-dicom-microscopy-extension/LICENSE diff --git a/extensions/ohif-dicom-microscopy-extension/README.md b/packages/_viewer/extensions/ohif-dicom-microscopy-extension/README.md similarity index 100% rename from extensions/ohif-dicom-microscopy-extension/README.md rename to packages/_viewer/extensions/ohif-dicom-microscopy-extension/README.md diff --git a/extensions/ohif-dicom-microscopy-extension/package.json b/packages/_viewer/extensions/ohif-dicom-microscopy-extension/package.json similarity index 100% rename from extensions/ohif-dicom-microscopy-extension/package.json rename to packages/_viewer/extensions/ohif-dicom-microscopy-extension/package.json diff --git a/extensions/ohif-dicom-microscopy-extension/rollup.config.js b/packages/_viewer/extensions/ohif-dicom-microscopy-extension/rollup.config.js similarity index 100% rename from extensions/ohif-dicom-microscopy-extension/rollup.config.js rename to packages/_viewer/extensions/ohif-dicom-microscopy-extension/rollup.config.js diff --git a/extensions/ohif-dicom-microscopy-extension/src/DicomMicroscopySopClassHandler.js b/packages/_viewer/extensions/ohif-dicom-microscopy-extension/src/DicomMicroscopySopClassHandler.js similarity index 100% rename from extensions/ohif-dicom-microscopy-extension/src/DicomMicroscopySopClassHandler.js rename to packages/_viewer/extensions/ohif-dicom-microscopy-extension/src/DicomMicroscopySopClassHandler.js diff --git a/extensions/ohif-dicom-microscopy-extension/src/DicomMicroscopyViewport.js b/packages/_viewer/extensions/ohif-dicom-microscopy-extension/src/DicomMicroscopyViewport.js similarity index 100% rename from extensions/ohif-dicom-microscopy-extension/src/DicomMicroscopyViewport.js rename to packages/_viewer/extensions/ohif-dicom-microscopy-extension/src/DicomMicroscopyViewport.js diff --git a/extensions/ohif-dicom-microscopy-extension/src/index.js b/packages/_viewer/extensions/ohif-dicom-microscopy-extension/src/index.js similarity index 100% rename from extensions/ohif-dicom-microscopy-extension/src/index.js rename to packages/_viewer/extensions/ohif-dicom-microscopy-extension/src/index.js diff --git a/extensions/ohif-dicom-microscopy-extension/yarn.lock b/packages/_viewer/extensions/ohif-dicom-microscopy-extension/yarn.lock similarity index 100% rename from extensions/ohif-dicom-microscopy-extension/yarn.lock rename to packages/_viewer/extensions/ohif-dicom-microscopy-extension/yarn.lock diff --git a/extensions/ohif-dicom-pdf-extension/.babelrc b/packages/_viewer/extensions/ohif-dicom-pdf-extension/.babelrc similarity index 100% rename from extensions/ohif-dicom-pdf-extension/.babelrc rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/.babelrc diff --git a/extensions/ohif-dicom-pdf-extension/.editorconfig b/packages/_viewer/extensions/ohif-dicom-pdf-extension/.editorconfig similarity index 100% rename from extensions/ohif-dicom-pdf-extension/.editorconfig rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/.editorconfig diff --git a/extensions/ohif-dicom-pdf-extension/.eslintrc b/packages/_viewer/extensions/ohif-dicom-pdf-extension/.eslintrc similarity index 100% rename from extensions/ohif-dicom-pdf-extension/.eslintrc rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/.eslintrc diff --git a/extensions/ohif-dicom-pdf-extension/.gitignore b/packages/_viewer/extensions/ohif-dicom-pdf-extension/.gitignore similarity index 100% rename from extensions/ohif-dicom-pdf-extension/.gitignore rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/.gitignore diff --git a/extensions/ohif-vtk-extension/.prettierrc b/packages/_viewer/extensions/ohif-dicom-pdf-extension/.prettierrc similarity index 100% rename from extensions/ohif-vtk-extension/.prettierrc rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/.prettierrc diff --git a/extensions/ohif-dicom-pdf-extension/.travis.yml b/packages/_viewer/extensions/ohif-dicom-pdf-extension/.travis.yml similarity index 100% rename from extensions/ohif-dicom-pdf-extension/.travis.yml rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/.travis.yml diff --git a/extensions/ohif-i18n/LICENSE b/packages/_viewer/extensions/ohif-dicom-pdf-extension/LICENSE similarity index 100% rename from extensions/ohif-i18n/LICENSE rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/LICENSE diff --git a/extensions/ohif-dicom-pdf-extension/package.json b/packages/_viewer/extensions/ohif-dicom-pdf-extension/package.json similarity index 100% rename from extensions/ohif-dicom-pdf-extension/package.json rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/package.json diff --git a/extensions/ohif-dicom-pdf-extension/rollup.config.js b/packages/_viewer/extensions/ohif-dicom-pdf-extension/rollup.config.js similarity index 100% rename from extensions/ohif-dicom-pdf-extension/rollup.config.js rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/rollup.config.js diff --git a/extensions/ohif-dicom-pdf-extension/src/DicomPDFViewport.js b/packages/_viewer/extensions/ohif-dicom-pdf-extension/src/DicomPDFViewport.js similarity index 100% rename from extensions/ohif-dicom-pdf-extension/src/DicomPDFViewport.js rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/src/DicomPDFViewport.js diff --git a/extensions/ohif-dicom-pdf-extension/src/OHIFComponentPlugin.js b/packages/_viewer/extensions/ohif-dicom-pdf-extension/src/OHIFComponentPlugin.js similarity index 100% rename from extensions/ohif-dicom-pdf-extension/src/OHIFComponentPlugin.js rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/src/OHIFComponentPlugin.js diff --git a/extensions/ohif-dicom-pdf-extension/src/OHIFDicomPDFSopClassHandler.js b/packages/_viewer/extensions/ohif-dicom-pdf-extension/src/OHIFDicomPDFSopClassHandler.js similarity index 100% rename from extensions/ohif-dicom-pdf-extension/src/OHIFDicomPDFSopClassHandler.js rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/src/OHIFDicomPDFSopClassHandler.js diff --git a/extensions/ohif-dicom-pdf-extension/src/OHIFDicomPDFViewport.js b/packages/_viewer/extensions/ohif-dicom-pdf-extension/src/OHIFDicomPDFViewport.js similarity index 100% rename from extensions/ohif-dicom-pdf-extension/src/OHIFDicomPDFViewport.js rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/src/OHIFDicomPDFViewport.js diff --git a/extensions/ohif-dicom-pdf-extension/src/TypedArrayProp.js b/packages/_viewer/extensions/ohif-dicom-pdf-extension/src/TypedArrayProp.js similarity index 100% rename from extensions/ohif-dicom-pdf-extension/src/TypedArrayProp.js rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/src/TypedArrayProp.js diff --git a/extensions/ohif-dicom-pdf-extension/src/index.js b/packages/_viewer/extensions/ohif-dicom-pdf-extension/src/index.js similarity index 100% rename from extensions/ohif-dicom-pdf-extension/src/index.js rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/src/index.js diff --git a/extensions/ohif-dicom-pdf-extension/yarn.lock b/packages/_viewer/extensions/ohif-dicom-pdf-extension/yarn.lock similarity index 100% rename from extensions/ohif-dicom-pdf-extension/yarn.lock rename to packages/_viewer/extensions/ohif-dicom-pdf-extension/yarn.lock diff --git a/extensions/ohif-i18n/.babelrc b/packages/_viewer/extensions/ohif-i18n/.babelrc similarity index 100% rename from extensions/ohif-i18n/.babelrc rename to packages/_viewer/extensions/ohif-i18n/.babelrc diff --git a/extensions/ohif-i18n/.editorconfig b/packages/_viewer/extensions/ohif-i18n/.editorconfig similarity index 100% rename from extensions/ohif-i18n/.editorconfig rename to packages/_viewer/extensions/ohif-i18n/.editorconfig diff --git a/extensions/ohif-i18n/.gitignore b/packages/_viewer/extensions/ohif-i18n/.gitignore similarity index 100% rename from extensions/ohif-i18n/.gitignore rename to packages/_viewer/extensions/ohif-i18n/.gitignore diff --git a/extensions/ohif-vtk-extension/LICENSE b/packages/_viewer/extensions/ohif-i18n/LICENSE similarity index 100% rename from extensions/ohif-vtk-extension/LICENSE rename to packages/_viewer/extensions/ohif-i18n/LICENSE diff --git a/extensions/ohif-i18n/README.md b/packages/_viewer/extensions/ohif-i18n/README.md similarity index 100% rename from extensions/ohif-i18n/README.md rename to packages/_viewer/extensions/ohif-i18n/README.md diff --git a/extensions/ohif-i18n/package.json b/packages/_viewer/extensions/ohif-i18n/package.json similarity index 100% rename from extensions/ohif-i18n/package.json rename to packages/_viewer/extensions/ohif-i18n/package.json diff --git a/extensions/ohif-i18n/pullTranslations.sh b/packages/_viewer/extensions/ohif-i18n/pullTranslations.sh old mode 100755 new mode 100644 similarity index 100% rename from extensions/ohif-i18n/pullTranslations.sh rename to packages/_viewer/extensions/ohif-i18n/pullTranslations.sh diff --git a/extensions/ohif-i18n/rollup.config.js b/packages/_viewer/extensions/ohif-i18n/rollup.config.js similarity index 100% rename from extensions/ohif-i18n/rollup.config.js rename to packages/_viewer/extensions/ohif-i18n/rollup.config.js diff --git a/extensions/ohif-i18n/src/config.js b/packages/_viewer/extensions/ohif-i18n/src/config.js similarity index 100% rename from extensions/ohif-i18n/src/config.js rename to packages/_viewer/extensions/ohif-i18n/src/config.js diff --git a/extensions/ohif-i18n/src/debugger.js b/packages/_viewer/extensions/ohif-i18n/src/debugger.js similarity index 100% rename from extensions/ohif-i18n/src/debugger.js rename to packages/_viewer/extensions/ohif-i18n/src/debugger.js diff --git a/extensions/ohif-i18n/src/index.js b/packages/_viewer/extensions/ohif-i18n/src/index.js old mode 100755 new mode 100644 similarity index 100% rename from extensions/ohif-i18n/src/index.js rename to packages/_viewer/extensions/ohif-i18n/src/index.js diff --git a/extensions/ohif-i18n/src/locales/en-US/Buttons.json b/packages/_viewer/extensions/ohif-i18n/src/locales/en-US/Buttons.json similarity index 100% rename from extensions/ohif-i18n/src/locales/en-US/Buttons.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/en-US/Buttons.json diff --git a/extensions/ohif-i18n/src/locales/en-US/CineDialog.json b/packages/_viewer/extensions/ohif-i18n/src/locales/en-US/CineDialog.json similarity index 100% rename from extensions/ohif-i18n/src/locales/en-US/CineDialog.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/en-US/CineDialog.json diff --git a/extensions/ohif-i18n/src/locales/en-US/Common.json b/packages/_viewer/extensions/ohif-i18n/src/locales/en-US/Common.json similarity index 100% rename from extensions/ohif-i18n/src/locales/en-US/Common.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/en-US/Common.json diff --git a/extensions/ohif-i18n/src/locales/en-US/Header.json b/packages/_viewer/extensions/ohif-i18n/src/locales/en-US/Header.json similarity index 100% rename from extensions/ohif-i18n/src/locales/en-US/Header.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/en-US/Header.json diff --git a/extensions/ohif-i18n/src/locales/en-US/MeasurementTable.json b/packages/_viewer/extensions/ohif-i18n/src/locales/en-US/MeasurementTable.json similarity index 100% rename from extensions/ohif-i18n/src/locales/en-US/MeasurementTable.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/en-US/MeasurementTable.json diff --git a/extensions/ohif-i18n/src/locales/en-US/UserPreferencesModal.json b/packages/_viewer/extensions/ohif-i18n/src/locales/en-US/UserPreferencesModal.json similarity index 100% rename from extensions/ohif-i18n/src/locales/en-US/UserPreferencesModal.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/en-US/UserPreferencesModal.json diff --git a/extensions/ohif-i18n/src/locales/en-US/index.js b/packages/_viewer/extensions/ohif-i18n/src/locales/en-US/index.js similarity index 100% rename from extensions/ohif-i18n/src/locales/en-US/index.js rename to packages/_viewer/extensions/ohif-i18n/src/locales/en-US/index.js diff --git a/extensions/ohif-i18n/src/locales/es/Buttons.json b/packages/_viewer/extensions/ohif-i18n/src/locales/es/Buttons.json similarity index 100% rename from extensions/ohif-i18n/src/locales/es/Buttons.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/es/Buttons.json diff --git a/extensions/ohif-i18n/src/locales/es/CineDialog.json b/packages/_viewer/extensions/ohif-i18n/src/locales/es/CineDialog.json similarity index 100% rename from extensions/ohif-i18n/src/locales/es/CineDialog.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/es/CineDialog.json diff --git a/extensions/ohif-i18n/src/locales/es/Common.json b/packages/_viewer/extensions/ohif-i18n/src/locales/es/Common.json similarity index 100% rename from extensions/ohif-i18n/src/locales/es/Common.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/es/Common.json diff --git a/extensions/ohif-i18n/src/locales/es/Header.json b/packages/_viewer/extensions/ohif-i18n/src/locales/es/Header.json similarity index 100% rename from extensions/ohif-i18n/src/locales/es/Header.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/es/Header.json diff --git a/extensions/ohif-i18n/src/locales/es/MeasurementTable.json b/packages/_viewer/extensions/ohif-i18n/src/locales/es/MeasurementTable.json similarity index 100% rename from extensions/ohif-i18n/src/locales/es/MeasurementTable.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/es/MeasurementTable.json diff --git a/extensions/ohif-i18n/src/locales/es/UserPreferencesModal.json b/packages/_viewer/extensions/ohif-i18n/src/locales/es/UserPreferencesModal.json similarity index 100% rename from extensions/ohif-i18n/src/locales/es/UserPreferencesModal.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/es/UserPreferencesModal.json diff --git a/extensions/ohif-i18n/src/locales/es/index.js b/packages/_viewer/extensions/ohif-i18n/src/locales/es/index.js similarity index 100% rename from extensions/ohif-i18n/src/locales/es/index.js rename to packages/_viewer/extensions/ohif-i18n/src/locales/es/index.js diff --git a/extensions/ohif-i18n/src/locales/index.js b/packages/_viewer/extensions/ohif-i18n/src/locales/index.js similarity index 100% rename from extensions/ohif-i18n/src/locales/index.js rename to packages/_viewer/extensions/ohif-i18n/src/locales/index.js diff --git a/extensions/ohif-i18n/src/locales/nl/Buttons.json b/packages/_viewer/extensions/ohif-i18n/src/locales/nl/Buttons.json similarity index 100% rename from extensions/ohif-i18n/src/locales/nl/Buttons.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/nl/Buttons.json diff --git a/extensions/ohif-i18n/src/locales/nl/Common.json b/packages/_viewer/extensions/ohif-i18n/src/locales/nl/Common.json similarity index 100% rename from extensions/ohif-i18n/src/locales/nl/Common.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/nl/Common.json diff --git a/extensions/ohif-i18n/src/locales/nl/Header.json b/packages/_viewer/extensions/ohif-i18n/src/locales/nl/Header.json similarity index 100% rename from extensions/ohif-i18n/src/locales/nl/Header.json rename to packages/_viewer/extensions/ohif-i18n/src/locales/nl/Header.json diff --git a/extensions/ohif-i18n/src/locales/nl/index.js b/packages/_viewer/extensions/ohif-i18n/src/locales/nl/index.js similarity index 100% rename from extensions/ohif-i18n/src/locales/nl/index.js rename to packages/_viewer/extensions/ohif-i18n/src/locales/nl/index.js diff --git a/extensions/ohif-i18n/writeLocaleIndexFiles.js b/packages/_viewer/extensions/ohif-i18n/writeLocaleIndexFiles.js similarity index 100% rename from extensions/ohif-i18n/writeLocaleIndexFiles.js rename to packages/_viewer/extensions/ohif-i18n/writeLocaleIndexFiles.js diff --git a/extensions/ohif-i18n/yarn.lock b/packages/_viewer/extensions/ohif-i18n/yarn.lock similarity index 100% rename from extensions/ohif-i18n/yarn.lock rename to packages/_viewer/extensions/ohif-i18n/yarn.lock diff --git a/extensions/ohif-vtk-extension/.babelrc b/packages/_viewer/extensions/ohif-vtk-extension/.babelrc similarity index 100% rename from extensions/ohif-vtk-extension/.babelrc rename to packages/_viewer/extensions/ohif-vtk-extension/.babelrc diff --git a/extensions/ohif-vtk-extension/.editorconfig b/packages/_viewer/extensions/ohif-vtk-extension/.editorconfig similarity index 100% rename from extensions/ohif-vtk-extension/.editorconfig rename to packages/_viewer/extensions/ohif-vtk-extension/.editorconfig diff --git a/extensions/ohif-vtk-extension/.eslintrc b/packages/_viewer/extensions/ohif-vtk-extension/.eslintrc similarity index 100% rename from extensions/ohif-vtk-extension/.eslintrc rename to packages/_viewer/extensions/ohif-vtk-extension/.eslintrc diff --git a/extensions/ohif-vtk-extension/.gitignore b/packages/_viewer/extensions/ohif-vtk-extension/.gitignore similarity index 100% rename from extensions/ohif-vtk-extension/.gitignore rename to packages/_viewer/extensions/ohif-vtk-extension/.gitignore diff --git a/packages/_viewer/extensions/ohif-vtk-extension/.prettierrc b/packages/_viewer/extensions/ohif-vtk-extension/.prettierrc new file mode 100644 index 000000000..12348ec6a --- /dev/null +++ b/packages/_viewer/extensions/ohif-vtk-extension/.prettierrc @@ -0,0 +1,9 @@ +{ + "trailingComma": "es5", + "printWidth": 80, + "proseWrap": "always", + "tabWidth": 2, + "semi": true, + "singleQuote": true, + "endOfLine": "lf" +} diff --git a/extensions/ohif-vtk-extension/.travis.yml b/packages/_viewer/extensions/ohif-vtk-extension/.travis.yml similarity index 100% rename from extensions/ohif-vtk-extension/.travis.yml rename to packages/_viewer/extensions/ohif-vtk-extension/.travis.yml diff --git a/packages/_viewer/extensions/ohif-vtk-extension/LICENSE b/packages/_viewer/extensions/ohif-vtk-extension/LICENSE new file mode 100644 index 000000000..19e20dd35 --- /dev/null +++ b/packages/_viewer/extensions/ohif-vtk-extension/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Open Health Imaging Foundation + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/extensions/ohif-vtk-extension/README.md b/packages/_viewer/extensions/ohif-vtk-extension/README.md similarity index 100% rename from extensions/ohif-vtk-extension/README.md rename to packages/_viewer/extensions/ohif-vtk-extension/README.md diff --git a/extensions/ohif-vtk-extension/package.json b/packages/_viewer/extensions/ohif-vtk-extension/package.json similarity index 100% rename from extensions/ohif-vtk-extension/package.json rename to packages/_viewer/extensions/ohif-vtk-extension/package.json diff --git a/extensions/ohif-vtk-extension/rollup.config.js b/packages/_viewer/extensions/ohif-vtk-extension/rollup.config.js similarity index 100% rename from extensions/ohif-vtk-extension/rollup.config.js rename to packages/_viewer/extensions/ohif-vtk-extension/rollup.config.js diff --git a/extensions/ohif-vtk-extension/src/ConnectedVTKViewport.js b/packages/_viewer/extensions/ohif-vtk-extension/src/ConnectedVTKViewport.js similarity index 100% rename from extensions/ohif-vtk-extension/src/ConnectedVTKViewport.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/ConnectedVTKViewport.js diff --git a/extensions/ohif-vtk-extension/src/LoadingIndicator.css b/packages/_viewer/extensions/ohif-vtk-extension/src/LoadingIndicator.css similarity index 100% rename from extensions/ohif-vtk-extension/src/LoadingIndicator.css rename to packages/_viewer/extensions/ohif-vtk-extension/src/LoadingIndicator.css diff --git a/extensions/ohif-vtk-extension/src/LoadingIndicator.js b/packages/_viewer/extensions/ohif-vtk-extension/src/LoadingIndicator.js similarity index 100% rename from extensions/ohif-vtk-extension/src/LoadingIndicator.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/LoadingIndicator.js diff --git a/extensions/ohif-vtk-extension/src/OHIFVTKViewport.js b/packages/_viewer/extensions/ohif-vtk-extension/src/OHIFVTKViewport.js similarity index 100% rename from extensions/ohif-vtk-extension/src/OHIFVTKViewport.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/OHIFVTKViewport.js diff --git a/extensions/ohif-vtk-extension/src/commandsModule.js b/packages/_viewer/extensions/ohif-vtk-extension/src/commandsModule.js similarity index 100% rename from extensions/ohif-vtk-extension/src/commandsModule.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/commandsModule.js diff --git a/extensions/ohif-vtk-extension/src/handleSegmentationStorage.js b/packages/_viewer/extensions/ohif-vtk-extension/src/handleSegmentationStorage.js similarity index 100% rename from extensions/ohif-vtk-extension/src/handleSegmentationStorage.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/handleSegmentationStorage.js diff --git a/extensions/ohif-vtk-extension/src/index.js b/packages/_viewer/extensions/ohif-vtk-extension/src/index.js similarity index 100% rename from extensions/ohif-vtk-extension/src/index.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/index.js diff --git a/extensions/ohif-vtk-extension/src/loadLocales.js b/packages/_viewer/extensions/ohif-vtk-extension/src/loadLocales.js similarity index 100% rename from extensions/ohif-vtk-extension/src/loadLocales.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/loadLocales.js diff --git a/extensions/ohif-vtk-extension/src/locales/en/Buttons.json b/packages/_viewer/extensions/ohif-vtk-extension/src/locales/en/Buttons.json similarity index 100% rename from extensions/ohif-vtk-extension/src/locales/en/Buttons.json rename to packages/_viewer/extensions/ohif-vtk-extension/src/locales/en/Buttons.json diff --git a/extensions/ohif-vtk-extension/src/locales/en/index.js b/packages/_viewer/extensions/ohif-vtk-extension/src/locales/en/index.js similarity index 100% rename from extensions/ohif-vtk-extension/src/locales/en/index.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/locales/en/index.js diff --git a/extensions/ohif-vtk-extension/src/locales/es/Buttons.json b/packages/_viewer/extensions/ohif-vtk-extension/src/locales/es/Buttons.json similarity index 100% rename from extensions/ohif-vtk-extension/src/locales/es/Buttons.json rename to packages/_viewer/extensions/ohif-vtk-extension/src/locales/es/Buttons.json diff --git a/extensions/ohif-vtk-extension/src/locales/es/index.js b/packages/_viewer/extensions/ohif-vtk-extension/src/locales/es/index.js similarity index 100% rename from extensions/ohif-vtk-extension/src/locales/es/index.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/locales/es/index.js diff --git a/extensions/ohif-vtk-extension/src/locales/index.js b/packages/_viewer/extensions/ohif-vtk-extension/src/locales/index.js similarity index 100% rename from extensions/ohif-vtk-extension/src/locales/index.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/locales/index.js diff --git a/extensions/ohif-vtk-extension/src/toolbarModule.js b/packages/_viewer/extensions/ohif-vtk-extension/src/toolbarModule.js similarity index 100% rename from extensions/ohif-vtk-extension/src/toolbarModule.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/toolbarModule.js diff --git a/extensions/ohif-vtk-extension/src/utils/setLayoutAndViewportData.js b/packages/_viewer/extensions/ohif-vtk-extension/src/utils/setLayoutAndViewportData.js similarity index 100% rename from extensions/ohif-vtk-extension/src/utils/setLayoutAndViewportData.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/utils/setLayoutAndViewportData.js diff --git a/extensions/ohif-vtk-extension/src/utils/setMPRLayout.js b/packages/_viewer/extensions/ohif-vtk-extension/src/utils/setMPRLayout.js similarity index 100% rename from extensions/ohif-vtk-extension/src/utils/setMPRLayout.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/utils/setMPRLayout.js diff --git a/extensions/ohif-vtk-extension/src/utils/setSingleLayoutData.js b/packages/_viewer/extensions/ohif-vtk-extension/src/utils/setSingleLayoutData.js similarity index 100% rename from extensions/ohif-vtk-extension/src/utils/setSingleLayoutData.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/utils/setSingleLayoutData.js diff --git a/extensions/ohif-vtk-extension/src/utils/setViewportToVTK.js b/packages/_viewer/extensions/ohif-vtk-extension/src/utils/setViewportToVTK.js similarity index 100% rename from extensions/ohif-vtk-extension/src/utils/setViewportToVTK.js rename to packages/_viewer/extensions/ohif-vtk-extension/src/utils/setViewportToVTK.js diff --git a/extensions/ohif-vtk-extension/webpack.config.js b/packages/_viewer/extensions/ohif-vtk-extension/webpack.config.js similarity index 100% rename from extensions/ohif-vtk-extension/webpack.config.js rename to packages/_viewer/extensions/ohif-vtk-extension/webpack.config.js diff --git a/extensions/ohif-vtk-extension/yarn.lock b/packages/_viewer/extensions/ohif-vtk-extension/yarn.lock similarity index 100% rename from extensions/ohif-vtk-extension/yarn.lock rename to packages/_viewer/extensions/ohif-vtk-extension/yarn.lock diff --git a/generateStaticSite.sh b/packages/_viewer/generateStaticSite.sh old mode 100755 new mode 100644 similarity index 100% rename from generateStaticSite.sh rename to packages/_viewer/generateStaticSite.sh diff --git a/img/designs/open-graph.fig b/packages/_viewer/img/designs/open-graph.fig similarity index 100% rename from img/designs/open-graph.fig rename to packages/_viewer/img/designs/open-graph.fig diff --git a/jest.config.js b/packages/_viewer/jest.config.js similarity index 100% rename from jest.config.js rename to packages/_viewer/jest.config.js diff --git a/netlify.toml b/packages/_viewer/netlify.toml similarity index 100% rename from netlify.toml rename to packages/_viewer/netlify.toml diff --git a/packages/_viewer/package.json b/packages/_viewer/package.json new file mode 100644 index 000000000..fb6e79563 --- /dev/null +++ b/packages/_viewer/package.json @@ -0,0 +1,156 @@ +{ + "name": "ohif-viewer", + "version": "0.0.21", + "description": "OHIF Viewer", + "author": "OHIF Contributors", + "license": "MIT", + "repository": "OHIF/Viewers", + "main": "dist/index.umd.js", + "browser": "dist/index.umd.js", + "module": "dist/index.es.js", + "jsnext:main": "dist/index.es.js", + "engines": { + "node": ">=8", + "npm": ">=5" + }, + "proxy": "http://localhost:8042", + "scripts": { + "cm": "npx git-cz", + "dev": "yarn run preBuild && cross-env PORT=5000 react-scripts start", + "dev:debug": "cross-env PORT=5000 react-scripts start", + "build:package": "yarn run preBuild && node --max-old-space-size=4096 node_modules/rollup/bin/rollup -c", + "build:package:ci": "yarn run preBuild && node --max-old-space-size=4096 node_modules/rollup/bin/rollup -c", + "build:web": "yarn run preBuild && react-scripts --max_old_space_size=4096 build", + "build:web:ci": "yarn run preBuild && cross-env PUBLIC_URL=/demo REACT_APP_CONFIG=config/netlify.js react-scripts --max_old_space_size=4096 build && cpx 'build/**/*' docs/latest/_book/demo --verbose", + "build:demo:ci": "yarn run preBuild && cross-env PUBLIC_URL=/ REACT_APP_CONFIG=config/demo.js react-scripts --max_old_space_size=4096 build", + "lint": "eslint -c .eslintrc --fix src && prettier --single-quote --write src/**/*.{js,jsx,json,css}", + "test:unit": "jest", + "test:unit:ci": "jest --ci --runInBand --collectCoverage --reporters=default --reporters=jest-junit && codecov", + "test:e2e": "", + "test:e2e:ci": "start-server-and-test start http://localhost:5000 cy:run:ci", + "staticDeploy": "./generateStaticSite.sh", + "docs:publish": "./publishStaticSite.sh", + "start": "yarn run dev", + "predeploy": "cd example && npm install && yarn run build:package", + "preBuild": "yarn run version && yarn run copy:webworkers", + "orthanc:up": "docker-compose -f docker/Nginx-Orthanc/docker-compose.yml up", + "dev:orthanc": "yarn run preBuild && cross-env PORT=5000 REACT_APP_CONFIG=config/docker_nginx-orthanc.js react-scripts start", + "version": "node -p -e \"'export default \\'' + require('./package.json').version + '\\';'\" > src/version.js", + "copy:webworkers": "cpx \"node_modules/cornerstone-wado-image-loader/dist/*.min.js*\" \"public\" -v", + "cy": "cypress open", + "cy:run": "cypress run", + "cy:run:ci": "yarn run cy:run -- --record" + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, + "lint-staged": { + "src/**/*.{js,jsx,json,css}": [ + "prettier --single-quote --write", + "git add" + ] + }, + "browserslist": [ + ">0.2%", + "not dead", + "not ie <= 11", + "not op_mini all" + ], + "resolutions": { + "browserslist": "4.6.2", + "caniuse-lite": "1.0.30000974" + }, + "files": [ + "dist" + ], + "config": { + "commitizen": { + "path": "./node_modules/cz-conventional-changelog" + } + }, + "peerDependencies": { + "react": "^16.8.6", + "react-dom": "^16.8.6" + }, + "dependencies": { + "@babel/runtime": "^7.4.5", + "@ohif/extension-cornerstone": "0.0.38", + "@ohif/extension-dicom-html": "0.0.3", + "@ohif/extension-dicom-microscopy": "0.0.8", + "@ohif/extension-dicom-pdf": "0.0.7", + "@ohif/extension-vtk": "0.1.3", + "@ohif/i18n": "0.2.2", + "@tanem/react-nprogress": "^1.1.25", + "classnames": "^2.2.6", + "cornerstone-core": "^2.2.8", + "cornerstone-math": "^0.1.8", + "cornerstone-tools": "^3.15.1", + "cornerstone-wado-image-loader": "^2.2.3", + "dcmjs": "^0.4.7", + "dicom-parser": "^1.8.3", + "dicomweb-client": "^0.4.4", + "hammerjs": "^2.0.8", + "i18next": "^17.0.3", + "i18next-browser-languagedetector": "^3.0.1", + "lodash.isequal": "4.5.0", + "moment": "^2.24.0", + "ohif-core": "0.9.1", + "oidc-client": "1.7.x", + "prop-types": "^15.7.2", + "react-i18next": "^10.11.0", + "react-redux": "^7.1.0", + "react-resize-detector": "^4.2.0", + "react-router": "^5.0.1", + "react-router-dom": "^5.0.1", + "react-transition-group": "^4.1.1", + "react-viewerbase": "0.15.3", + "redux": "^4.0.1", + "redux-logger": "^3.0.6", + "redux-oidc": "3.1.x", + "redux-thunk": "^2.3.0", + "reselect": "^4.0.0" + }, + "devDependencies": { + "@semantic-release/exec": "3.3.3", + "@svgr/rollup": "^4.3.0", + "babel-eslint": "10.0.1", + "codecov": "3.5.0", + "commitizen": "3.1.x", + "core-js": "^3.1.4", + "cpx": "1.5.0", + "cross-env": "^5.2.0", + "cypress": "^3.3.1", + "cz-conventional-changelog": "2.1.0", + "eslint": "5.16.0", + "eslint-plugin-import": "^2.17.3", + "eslint-plugin-node": "^9.1.0", + "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-react": "^7.13.0", + "gh-pages": "2.0.1", + "husky": "2.4.x", + "identity-obj-proxy": "3.0.x", + "jest-canvas-mock": "2.1.0", + "jest-junit": "6.4.x", + "lint-staged": "^8.2.1", + "lodash": "4.17.11", + "lodash.clonedeep": "4.5.0", + "prettier": "1.18.x", + "react": "^16.7.0", + "react-dom": "^16.7.0", + "react-scripts": "^3.0.1", + "rollup": "^1.15.5", + "rollup-plugin-babel": "^4.3.2", + "rollup-plugin-commonjs": "^10.0.0", + "rollup-plugin-json": "^4.0.0", + "rollup-plugin-node-builtins": "^2.1.2", + "rollup-plugin-node-resolve": "^5.0.2", + "rollup-plugin-peer-deps-external": "^2.2.0", + "rollup-plugin-postcss": "^2.0.3", + "rollup-plugin-url": "^2.2.2", + "semantic-release": "15.13.x", + "start-server-and-test": "^1.9.1", + "stylelint": "^10.1.0" + } +} diff --git a/public/config/default.js b/packages/_viewer/public/config/default.js similarity index 100% rename from public/config/default.js rename to packages/_viewer/public/config/default.js diff --git a/public/config/demo.js b/packages/_viewer/public/config/demo.js similarity index 100% rename from public/config/demo.js rename to packages/_viewer/public/config/demo.js diff --git a/public/config/docker_nginx-orthanc.js b/packages/_viewer/public/config/docker_nginx-orthanc.js similarity index 100% rename from public/config/docker_nginx-orthanc.js rename to packages/_viewer/public/config/docker_nginx-orthanc.js diff --git a/public/config/docker_openresty-orthanc-keycloak.js b/packages/_viewer/public/config/docker_openresty-orthanc-keycloak.js similarity index 100% rename from public/config/docker_openresty-orthanc-keycloak.js rename to packages/_viewer/public/config/docker_openresty-orthanc-keycloak.js diff --git a/public/config/docker_openresty-orthanc.js b/packages/_viewer/public/config/docker_openresty-orthanc.js similarity index 100% rename from public/config/docker_openresty-orthanc.js rename to packages/_viewer/public/config/docker_openresty-orthanc.js diff --git a/public/config/local_dcm4chee.js b/packages/_viewer/public/config/local_dcm4chee.js similarity index 100% rename from public/config/local_dcm4chee.js rename to packages/_viewer/public/config/local_dcm4chee.js diff --git a/public/config/netlify.js b/packages/_viewer/public/config/netlify.js similarity index 100% rename from public/config/netlify.js rename to packages/_viewer/public/config/netlify.js diff --git a/public/config/public_dicomweb.js b/packages/_viewer/public/config/public_dicomweb.js similarity index 100% rename from public/config/public_dicomweb.js rename to packages/_viewer/public/config/public_dicomweb.js diff --git a/public/cornerstoneWADOImageLoader.min.js b/packages/_viewer/public/cornerstoneWADOImageLoader.min.js similarity index 100% rename from public/cornerstoneWADOImageLoader.min.js rename to packages/_viewer/public/cornerstoneWADOImageLoader.min.js diff --git a/public/cornerstoneWADOImageLoader.min.js.map b/packages/_viewer/public/cornerstoneWADOImageLoader.min.js.map similarity index 100% rename from public/cornerstoneWADOImageLoader.min.js.map rename to packages/_viewer/public/cornerstoneWADOImageLoader.min.js.map diff --git a/public/cornerstoneWADOImageLoaderCodecs.min.js b/packages/_viewer/public/cornerstoneWADOImageLoaderCodecs.min.js similarity index 100% rename from public/cornerstoneWADOImageLoaderCodecs.min.js rename to packages/_viewer/public/cornerstoneWADOImageLoaderCodecs.min.js diff --git a/public/cornerstoneWADOImageLoaderWebWorker.min.js b/packages/_viewer/public/cornerstoneWADOImageLoaderWebWorker.min.js similarity index 100% rename from public/cornerstoneWADOImageLoaderWebWorker.min.js rename to packages/_viewer/public/cornerstoneWADOImageLoaderWebWorker.min.js diff --git a/public/cornerstoneWADOImageLoaderWebWorker.min.js.map b/packages/_viewer/public/cornerstoneWADOImageLoaderWebWorker.min.js.map similarity index 100% rename from public/cornerstoneWADOImageLoaderWebWorker.min.js.map rename to packages/_viewer/public/cornerstoneWADOImageLoaderWebWorker.min.js.map diff --git a/public/es6-shim.min.js b/packages/_viewer/public/es6-shim.min.js similarity index 100% rename from public/es6-shim.min.js rename to packages/_viewer/public/es6-shim.min.js diff --git a/public/index.html b/packages/_viewer/public/index.html similarity index 100% rename from public/index.html rename to packages/_viewer/public/index.html diff --git a/public/logout-redirect.html b/packages/_viewer/public/logout-redirect.html similarity index 100% rename from public/logout-redirect.html rename to packages/_viewer/public/logout-redirect.html diff --git a/public/manifest.json b/packages/_viewer/public/manifest.json similarity index 100% rename from public/manifest.json rename to packages/_viewer/public/manifest.json diff --git a/public/oidc-client.min.js b/packages/_viewer/public/oidc-client.min.js similarity index 100% rename from public/oidc-client.min.js rename to packages/_viewer/public/oidc-client.min.js diff --git a/public/polyfill.min.js b/packages/_viewer/public/polyfill.min.js similarity index 100% rename from public/polyfill.min.js rename to packages/_viewer/public/polyfill.min.js diff --git a/public/silent-refresh.html b/packages/_viewer/public/silent-refresh.html similarity index 100% rename from public/silent-refresh.html rename to packages/_viewer/public/silent-refresh.html diff --git a/publishStaticSite.sh b/packages/_viewer/publishStaticSite.sh old mode 100755 new mode 100644 similarity index 100% rename from publishStaticSite.sh rename to packages/_viewer/publishStaticSite.sh diff --git a/rollup.config.js b/packages/_viewer/rollup.config.js similarity index 100% rename from rollup.config.js rename to packages/_viewer/rollup.config.js diff --git a/src/App.js b/packages/_viewer/src/App.js similarity index 100% rename from src/App.js rename to packages/_viewer/src/App.js diff --git a/src/OHIFStandaloneViewer.css b/packages/_viewer/src/OHIFStandaloneViewer.css similarity index 100% rename from src/OHIFStandaloneViewer.css rename to packages/_viewer/src/OHIFStandaloneViewer.css diff --git a/src/OHIFStandaloneViewer.js b/packages/_viewer/src/OHIFStandaloneViewer.js similarity index 100% rename from src/OHIFStandaloneViewer.js rename to packages/_viewer/src/OHIFStandaloneViewer.js diff --git a/src/WhiteLabellingContext.js b/packages/_viewer/src/WhiteLabellingContext.js similarity index 100% rename from src/WhiteLabellingContext.js rename to packages/_viewer/src/WhiteLabellingContext.js diff --git a/src/__mocks__/cornerstone-wado-image-loader.js b/packages/_viewer/src/__mocks__/cornerstone-wado-image-loader.js similarity index 100% rename from src/__mocks__/cornerstone-wado-image-loader.js rename to packages/_viewer/src/__mocks__/cornerstone-wado-image-loader.js diff --git a/src/__mocks__/fileMock.js b/packages/_viewer/src/__mocks__/fileMock.js similarity index 100% rename from src/__mocks__/fileMock.js rename to packages/_viewer/src/__mocks__/fileMock.js diff --git a/src/__mocks__/redux-oidc.js b/packages/_viewer/src/__mocks__/redux-oidc.js similarity index 100% rename from src/__mocks__/redux-oidc.js rename to packages/_viewer/src/__mocks__/redux-oidc.js diff --git a/src/__tests__/globalSetup.js b/packages/_viewer/src/__tests__/globalSetup.js similarity index 100% rename from src/__tests__/globalSetup.js rename to packages/_viewer/src/__tests__/globalSetup.js diff --git a/src/appExtensions/GenericViewerCommands/commandsModule.js b/packages/_viewer/src/appExtensions/GenericViewerCommands/commandsModule.js similarity index 100% rename from src/appExtensions/GenericViewerCommands/commandsModule.js rename to packages/_viewer/src/appExtensions/GenericViewerCommands/commandsModule.js diff --git a/src/appExtensions/GenericViewerCommands/index.js b/packages/_viewer/src/appExtensions/GenericViewerCommands/index.js similarity index 100% rename from src/appExtensions/GenericViewerCommands/index.js rename to packages/_viewer/src/appExtensions/GenericViewerCommands/index.js diff --git a/src/appExtensions/MeasurementsPanel/ConnectedMeasurementTable.js b/packages/_viewer/src/appExtensions/MeasurementsPanel/ConnectedMeasurementTable.js similarity index 100% rename from src/appExtensions/MeasurementsPanel/ConnectedMeasurementTable.js rename to packages/_viewer/src/appExtensions/MeasurementsPanel/ConnectedMeasurementTable.js diff --git a/src/appExtensions/MeasurementsPanel/index.js b/packages/_viewer/src/appExtensions/MeasurementsPanel/index.js similarity index 100% rename from src/appExtensions/MeasurementsPanel/index.js rename to packages/_viewer/src/appExtensions/MeasurementsPanel/index.js diff --git a/src/appExtensions/MeasurementsPanel/jumpToRowItem.js b/packages/_viewer/src/appExtensions/MeasurementsPanel/jumpToRowItem.js similarity index 100% rename from src/appExtensions/MeasurementsPanel/jumpToRowItem.js rename to packages/_viewer/src/appExtensions/MeasurementsPanel/jumpToRowItem.js diff --git a/src/appExtensions/index.js b/packages/_viewer/src/appExtensions/index.js similarity index 100% rename from src/appExtensions/index.js rename to packages/_viewer/src/appExtensions/index.js diff --git a/src/components/AsyncComponent.js b/packages/_viewer/src/components/AsyncComponent.js similarity index 100% rename from src/components/AsyncComponent.js rename to packages/_viewer/src/components/AsyncComponent.js diff --git a/src/components/EditDescriptionDialog/EditDescriptionDialog.css b/packages/_viewer/src/components/EditDescriptionDialog/EditDescriptionDialog.css similarity index 100% rename from src/components/EditDescriptionDialog/EditDescriptionDialog.css rename to packages/_viewer/src/components/EditDescriptionDialog/EditDescriptionDialog.css diff --git a/src/components/EditDescriptionDialog/EditDescriptionDialog.js b/packages/_viewer/src/components/EditDescriptionDialog/EditDescriptionDialog.js similarity index 100% rename from src/components/EditDescriptionDialog/EditDescriptionDialog.js rename to packages/_viewer/src/components/EditDescriptionDialog/EditDescriptionDialog.js diff --git a/src/components/Header/Header.css b/packages/_viewer/src/components/Header/Header.css similarity index 100% rename from src/components/Header/Header.css rename to packages/_viewer/src/components/Header/Header.css diff --git a/src/components/Header/Header.js b/packages/_viewer/src/components/Header/Header.js similarity index 100% rename from src/components/Header/Header.js rename to packages/_viewer/src/components/Header/Header.js diff --git a/src/components/Header/index.js b/packages/_viewer/src/components/Header/index.js similarity index 100% rename from src/components/Header/index.js rename to packages/_viewer/src/components/Header/index.js diff --git a/src/components/Labelling/LabellingFlow.js b/packages/_viewer/src/components/Labelling/LabellingFlow.js similarity index 100% rename from src/components/Labelling/LabellingFlow.js rename to packages/_viewer/src/components/Labelling/LabellingFlow.js diff --git a/src/components/Labelling/LabellingManager.css b/packages/_viewer/src/components/Labelling/LabellingManager.css similarity index 100% rename from src/components/Labelling/LabellingManager.css rename to packages/_viewer/src/components/Labelling/LabellingManager.css diff --git a/src/components/Labelling/LabellingManager.js b/packages/_viewer/src/components/Labelling/LabellingManager.js similarity index 100% rename from src/components/Labelling/LabellingManager.js rename to packages/_viewer/src/components/Labelling/LabellingManager.js diff --git a/src/components/Labelling/LabellingTransition.css b/packages/_viewer/src/components/Labelling/LabellingTransition.css similarity index 100% rename from src/components/Labelling/LabellingTransition.css rename to packages/_viewer/src/components/Labelling/LabellingTransition.css diff --git a/src/components/Labelling/LabellingTransition.js b/packages/_viewer/src/components/Labelling/LabellingTransition.js similarity index 100% rename from src/components/Labelling/LabellingTransition.js rename to packages/_viewer/src/components/Labelling/LabellingTransition.js diff --git a/src/components/Labelling/OHIFLabellingData.js b/packages/_viewer/src/components/Labelling/OHIFLabellingData.js similarity index 100% rename from src/components/Labelling/OHIFLabellingData.js rename to packages/_viewer/src/components/Labelling/OHIFLabellingData.js diff --git a/src/components/Labelling/labellingPositionUtils.js b/packages/_viewer/src/components/Labelling/labellingPositionUtils.js similarity index 100% rename from src/components/Labelling/labellingPositionUtils.js rename to packages/_viewer/src/components/Labelling/labellingPositionUtils.js diff --git a/src/components/LoadingBar/Bar.js b/packages/_viewer/src/components/LoadingBar/Bar.js similarity index 100% rename from src/components/LoadingBar/Bar.js rename to packages/_viewer/src/components/LoadingBar/Bar.js diff --git a/src/components/LoadingBar/Container.js b/packages/_viewer/src/components/LoadingBar/Container.js similarity index 100% rename from src/components/LoadingBar/Container.js rename to packages/_viewer/src/components/LoadingBar/Container.js diff --git a/src/components/LoadingBar/index.js b/packages/_viewer/src/components/LoadingBar/index.js similarity index 100% rename from src/components/LoadingBar/index.js rename to packages/_viewer/src/components/LoadingBar/index.js diff --git a/src/components/OHIFLogo/OHIFLogo.css b/packages/_viewer/src/components/OHIFLogo/OHIFLogo.css similarity index 100% rename from src/components/OHIFLogo/OHIFLogo.css rename to packages/_viewer/src/components/OHIFLogo/OHIFLogo.css diff --git a/src/components/OHIFLogo/OHIFLogo.js b/packages/_viewer/src/components/OHIFLogo/OHIFLogo.js similarity index 100% rename from src/components/OHIFLogo/OHIFLogo.js rename to packages/_viewer/src/components/OHIFLogo/OHIFLogo.js diff --git a/src/components/SidePanel.css b/packages/_viewer/src/components/SidePanel.css similarity index 100% rename from src/components/SidePanel.css rename to packages/_viewer/src/components/SidePanel.css diff --git a/src/components/SidePanel.js b/packages/_viewer/src/components/SidePanel.js similarity index 100% rename from src/components/SidePanel.js rename to packages/_viewer/src/components/SidePanel.js diff --git a/src/components/SimpleDialog/SimpleDialog.css b/packages/_viewer/src/components/SimpleDialog/SimpleDialog.css similarity index 100% rename from src/components/SimpleDialog/SimpleDialog.css rename to packages/_viewer/src/components/SimpleDialog/SimpleDialog.css diff --git a/src/components/SimpleDialog/SimpleDialog.js b/packages/_viewer/src/components/SimpleDialog/SimpleDialog.js similarity index 100% rename from src/components/SimpleDialog/SimpleDialog.js rename to packages/_viewer/src/components/SimpleDialog/SimpleDialog.js diff --git a/src/components/StudyLoadingMonitor.js b/packages/_viewer/src/components/StudyLoadingMonitor.js similarity index 100% rename from src/components/StudyLoadingMonitor.js rename to packages/_viewer/src/components/StudyLoadingMonitor.js diff --git a/src/components/StudyPrefetcher.js b/packages/_viewer/src/components/StudyPrefetcher.js similarity index 100% rename from src/components/StudyPrefetcher.js rename to packages/_viewer/src/components/StudyPrefetcher.js diff --git a/src/config.js b/packages/_viewer/src/config.js similarity index 100% rename from src/config.js rename to packages/_viewer/src/config.js diff --git a/src/connectedComponents/ConnectedCineDialog.js b/packages/_viewer/src/connectedComponents/ConnectedCineDialog.js similarity index 100% rename from src/connectedComponents/ConnectedCineDialog.js rename to packages/_viewer/src/connectedComponents/ConnectedCineDialog.js diff --git a/src/connectedComponents/ConnectedHeader.js b/packages/_viewer/src/connectedComponents/ConnectedHeader.js similarity index 100% rename from src/connectedComponents/ConnectedHeader.js rename to packages/_viewer/src/connectedComponents/ConnectedHeader.js diff --git a/src/connectedComponents/ConnectedLabellingOverlay.js b/packages/_viewer/src/connectedComponents/ConnectedLabellingOverlay.js similarity index 100% rename from src/connectedComponents/ConnectedLabellingOverlay.js rename to packages/_viewer/src/connectedComponents/ConnectedLabellingOverlay.js diff --git a/src/connectedComponents/ConnectedLayoutButton.js b/packages/_viewer/src/connectedComponents/ConnectedLayoutButton.js similarity index 100% rename from src/connectedComponents/ConnectedLayoutButton.js rename to packages/_viewer/src/connectedComponents/ConnectedLayoutButton.js diff --git a/src/connectedComponents/ConnectedLayoutManager.js b/packages/_viewer/src/connectedComponents/ConnectedLayoutManager.js similarity index 100% rename from src/connectedComponents/ConnectedLayoutManager.js rename to packages/_viewer/src/connectedComponents/ConnectedLayoutManager.js diff --git a/src/connectedComponents/ConnectedPluginSwitch.js b/packages/_viewer/src/connectedComponents/ConnectedPluginSwitch.js similarity index 100% rename from src/connectedComponents/ConnectedPluginSwitch.js rename to packages/_viewer/src/connectedComponents/ConnectedPluginSwitch.js diff --git a/src/connectedComponents/ConnectedStudyBrowser.js b/packages/_viewer/src/connectedComponents/ConnectedStudyBrowser.js similarity index 100% rename from src/connectedComponents/ConnectedStudyBrowser.js rename to packages/_viewer/src/connectedComponents/ConnectedStudyBrowser.js diff --git a/src/connectedComponents/ConnectedStudyLoadingMonitor.js b/packages/_viewer/src/connectedComponents/ConnectedStudyLoadingMonitor.js similarity index 100% rename from src/connectedComponents/ConnectedStudyLoadingMonitor.js rename to packages/_viewer/src/connectedComponents/ConnectedStudyLoadingMonitor.js diff --git a/src/connectedComponents/ConnectedToolContextMenu.js b/packages/_viewer/src/connectedComponents/ConnectedToolContextMenu.js similarity index 100% rename from src/connectedComponents/ConnectedToolContextMenu.js rename to packages/_viewer/src/connectedComponents/ConnectedToolContextMenu.js diff --git a/src/connectedComponents/ConnectedToolbarRow.js b/packages/_viewer/src/connectedComponents/ConnectedToolbarRow.js similarity index 100% rename from src/connectedComponents/ConnectedToolbarRow.js rename to packages/_viewer/src/connectedComponents/ConnectedToolbarRow.js diff --git a/src/connectedComponents/ConnectedViewer.js b/packages/_viewer/src/connectedComponents/ConnectedViewer.js similarity index 100% rename from src/connectedComponents/ConnectedViewer.js rename to packages/_viewer/src/connectedComponents/ConnectedViewer.js diff --git a/src/connectedComponents/ConnectedViewerMain.js b/packages/_viewer/src/connectedComponents/ConnectedViewerMain.js similarity index 100% rename from src/connectedComponents/ConnectedViewerMain.js rename to packages/_viewer/src/connectedComponents/ConnectedViewerMain.js diff --git a/src/connectedComponents/ConnectedViewerRetrieveStudyData.js b/packages/_viewer/src/connectedComponents/ConnectedViewerRetrieveStudyData.js similarity index 100% rename from src/connectedComponents/ConnectedViewerRetrieveStudyData.js rename to packages/_viewer/src/connectedComponents/ConnectedViewerRetrieveStudyData.js diff --git a/src/connectedComponents/LabellingOverlay.js b/packages/_viewer/src/connectedComponents/LabellingOverlay.js similarity index 100% rename from src/connectedComponents/LabellingOverlay.js rename to packages/_viewer/src/connectedComponents/LabellingOverlay.js diff --git a/src/connectedComponents/PluginSwitch.css b/packages/_viewer/src/connectedComponents/PluginSwitch.css similarity index 100% rename from src/connectedComponents/PluginSwitch.css rename to packages/_viewer/src/connectedComponents/PluginSwitch.css diff --git a/src/connectedComponents/PluginSwitch.js b/packages/_viewer/src/connectedComponents/PluginSwitch.js similarity index 100% rename from src/connectedComponents/PluginSwitch.js rename to packages/_viewer/src/connectedComponents/PluginSwitch.js diff --git a/src/connectedComponents/ToolContextMenu.css b/packages/_viewer/src/connectedComponents/ToolContextMenu.css similarity index 100% rename from src/connectedComponents/ToolContextMenu.css rename to packages/_viewer/src/connectedComponents/ToolContextMenu.css diff --git a/src/connectedComponents/ToolContextMenu.js b/packages/_viewer/src/connectedComponents/ToolContextMenu.js similarity index 100% rename from src/connectedComponents/ToolContextMenu.js rename to packages/_viewer/src/connectedComponents/ToolContextMenu.js diff --git a/src/connectedComponents/ToolbarRow.css b/packages/_viewer/src/connectedComponents/ToolbarRow.css similarity index 100% rename from src/connectedComponents/ToolbarRow.css rename to packages/_viewer/src/connectedComponents/ToolbarRow.css diff --git a/src/connectedComponents/ToolbarRow.js b/packages/_viewer/src/connectedComponents/ToolbarRow.js similarity index 100% rename from src/connectedComponents/ToolbarRow.js rename to packages/_viewer/src/connectedComponents/ToolbarRow.js diff --git a/src/connectedComponents/Viewer.css b/packages/_viewer/src/connectedComponents/Viewer.css similarity index 100% rename from src/connectedComponents/Viewer.css rename to packages/_viewer/src/connectedComponents/Viewer.css diff --git a/src/connectedComponents/Viewer.js b/packages/_viewer/src/connectedComponents/Viewer.js similarity index 100% rename from src/connectedComponents/Viewer.js rename to packages/_viewer/src/connectedComponents/Viewer.js diff --git a/src/connectedComponents/ViewerMain.css b/packages/_viewer/src/connectedComponents/ViewerMain.css similarity index 100% rename from src/connectedComponents/ViewerMain.css rename to packages/_viewer/src/connectedComponents/ViewerMain.css diff --git a/src/connectedComponents/ViewerMain.js b/packages/_viewer/src/connectedComponents/ViewerMain.js similarity index 100% rename from src/connectedComponents/ViewerMain.js rename to packages/_viewer/src/connectedComponents/ViewerMain.js diff --git a/src/connectedComponents/ViewerRetrieveStudyData.js b/packages/_viewer/src/connectedComponents/ViewerRetrieveStudyData.js similarity index 100% rename from src/connectedComponents/ViewerRetrieveStudyData.js rename to packages/_viewer/src/connectedComponents/ViewerRetrieveStudyData.js diff --git a/src/head.html b/packages/_viewer/src/head.html similarity index 100% rename from src/head.html rename to packages/_viewer/src/head.html diff --git a/src/index.js b/packages/_viewer/src/index.js similarity index 100% rename from src/index.js rename to packages/_viewer/src/index.js diff --git a/src/index_publish.js b/packages/_viewer/src/index_publish.js similarity index 100% rename from src/index_publish.js rename to packages/_viewer/src/index_publish.js diff --git a/src/initCornerstoneTools.js b/packages/_viewer/src/initCornerstoneTools.js similarity index 100% rename from src/initCornerstoneTools.js rename to packages/_viewer/src/initCornerstoneTools.js diff --git a/src/lib/getMeasurementLocationCallback.js b/packages/_viewer/src/lib/getMeasurementLocationCallback.js similarity index 100% rename from src/lib/getMeasurementLocationCallback.js rename to packages/_viewer/src/lib/getMeasurementLocationCallback.js diff --git a/src/lib/updateTableWithNewMeasurementData.js b/packages/_viewer/src/lib/updateTableWithNewMeasurementData.js similarity index 100% rename from src/lib/updateTableWithNewMeasurementData.js rename to packages/_viewer/src/lib/updateTableWithNewMeasurementData.js diff --git a/src/lib/utils/bounding.js b/packages/_viewer/src/lib/utils/bounding.js similarity index 100% rename from src/lib/utils/bounding.js rename to packages/_viewer/src/lib/utils/bounding.js diff --git a/src/routes/CallbackPage.js b/packages/_viewer/src/routes/CallbackPage.js similarity index 100% rename from src/routes/CallbackPage.js rename to packages/_viewer/src/routes/CallbackPage.js diff --git a/src/routes/IHEInvokeImageDisplay.js b/packages/_viewer/src/routes/IHEInvokeImageDisplay.js similarity index 100% rename from src/routes/IHEInvokeImageDisplay.js rename to packages/_viewer/src/routes/IHEInvokeImageDisplay.js diff --git a/src/routes/NotFound.css b/packages/_viewer/src/routes/NotFound.css similarity index 100% rename from src/routes/NotFound.css rename to packages/_viewer/src/routes/NotFound.css diff --git a/src/routes/NotFound.js b/packages/_viewer/src/routes/NotFound.js similarity index 100% rename from src/routes/NotFound.js rename to packages/_viewer/src/routes/NotFound.js diff --git a/src/routes/StandaloneRouting.js b/packages/_viewer/src/routes/StandaloneRouting.js similarity index 100% rename from src/routes/StandaloneRouting.js rename to packages/_viewer/src/routes/StandaloneRouting.js diff --git a/src/routes/ViewerRouting.js b/packages/_viewer/src/routes/ViewerRouting.js similarity index 100% rename from src/routes/ViewerRouting.js rename to packages/_viewer/src/routes/ViewerRouting.js diff --git a/src/sanity.test.js b/packages/_viewer/src/sanity.test.js similarity index 100% rename from src/sanity.test.js rename to packages/_viewer/src/sanity.test.js diff --git a/src/setupTools.js b/packages/_viewer/src/setupTools.js similarity index 100% rename from src/setupTools.js rename to packages/_viewer/src/setupTools.js diff --git a/src/sha.js b/packages/_viewer/src/sha.js similarity index 100% rename from src/sha.js rename to packages/_viewer/src/sha.js diff --git a/src/store/index.js b/packages/_viewer/src/store/index.js similarity index 100% rename from src/store/index.js rename to packages/_viewer/src/store/index.js diff --git a/src/store/layout/reducers.js b/packages/_viewer/src/store/layout/reducers.js similarity index 100% rename from src/store/layout/reducers.js rename to packages/_viewer/src/store/layout/reducers.js diff --git a/src/store/layout/selectors.js b/packages/_viewer/src/store/layout/selectors.js similarity index 100% rename from src/store/layout/selectors.js rename to packages/_viewer/src/store/layout/selectors.js diff --git a/src/studylist/ConnectedStudyList.js b/packages/_viewer/src/studylist/ConnectedStudyList.js similarity index 100% rename from src/studylist/ConnectedStudyList.js rename to packages/_viewer/src/studylist/ConnectedStudyList.js diff --git a/src/studylist/StudyListRouting.js b/packages/_viewer/src/studylist/StudyListRouting.js similarity index 100% rename from src/studylist/StudyListRouting.js rename to packages/_viewer/src/studylist/StudyListRouting.js diff --git a/src/studylist/StudyListWithData.js b/packages/_viewer/src/studylist/StudyListWithData.js similarity index 100% rename from src/studylist/StudyListWithData.js rename to packages/_viewer/src/studylist/StudyListWithData.js diff --git a/src/theme-tide.css b/packages/_viewer/src/theme-tide.css similarity index 100% rename from src/theme-tide.css rename to packages/_viewer/src/theme-tide.css diff --git a/src/utils/getUserManagerForOpenIdConnectClient.js b/packages/_viewer/src/utils/getUserManagerForOpenIdConnectClient.js similarity index 100% rename from src/utils/getUserManagerForOpenIdConnectClient.js rename to packages/_viewer/src/utils/getUserManagerForOpenIdConnectClient.js diff --git a/src/utils/getUserManagerForOpenIdConnectClient.test.js b/packages/_viewer/src/utils/getUserManagerForOpenIdConnectClient.test.js similarity index 100% rename from src/utils/getUserManagerForOpenIdConnectClient.test.js rename to packages/_viewer/src/utils/getUserManagerForOpenIdConnectClient.test.js diff --git a/src/utils/index.js b/packages/_viewer/src/utils/index.js similarity index 100% rename from src/utils/index.js rename to packages/_viewer/src/utils/index.js diff --git a/src/utils/index.test.js b/packages/_viewer/src/utils/index.test.js similarity index 100% rename from src/utils/index.test.js rename to packages/_viewer/src/utils/index.test.js diff --git a/src/utils/initWebWorkers.js b/packages/_viewer/src/utils/initWebWorkers.js similarity index 100% rename from src/utils/initWebWorkers.js rename to packages/_viewer/src/utils/initWebWorkers.js diff --git a/src/utils/initWebWorkers.test.js b/packages/_viewer/src/utils/initWebWorkers.test.js similarity index 100% rename from src/utils/initWebWorkers.test.js rename to packages/_viewer/src/utils/initWebWorkers.test.js diff --git a/src/variables.css b/packages/_viewer/src/variables.css similarity index 100% rename from src/variables.css rename to packages/_viewer/src/variables.css diff --git a/packages/_viewer/src/version.js b/packages/_viewer/src/version.js new file mode 100644 index 000000000..fcca6f19b --- /dev/null +++ b/packages/_viewer/src/version.js @@ -0,0 +1 @@ +export default '0.0.21'; diff --git a/yarn.lock b/packages/_viewer/yarn.lock similarity index 100% rename from yarn.lock rename to packages/_viewer/yarn.lock