├── frontend ├── .nvmrc ├── src │ ├── globals.js │ ├── colors.js │ ├── styles.css │ ├── conversion.js │ ├── utils.js │ ├── overlays.js │ ├── index.js │ ├── conformance.js │ ├── discovery.js │ └── legend.js ├── package.json ├── README.md ├── index.html └── package-lock.json ├── backend ├── requirements.txt ├── bpmn-layout-generator-0.1.4-jar-with-dependencies.jar ├── README.md └── app.py ├── backend-mock-server ├── .prettierrc ├── tsconfig.build.json ├── nest-cli.json ├── test │ ├── jest-e2e.json │ └── app.e2e-spec.ts ├── src │ ├── main.ts │ ├── app.module.ts │ ├── app.controller.spec.ts │ ├── app.controller.ts │ ├── app.service.ts │ └── assets │ │ ├── diagram.bpmn │ │ └── diagram.ts ├── .gitignore ├── tsconfig.json ├── .eslintrc.js ├── README.md └── package.json ├── .gitignore ├── .github ├── workflows │ └── pr-metadata-checks.yml ├── release.yml └── dependabot.yml ├── third_party ├── d3.LICENSE ├── observable.LICENSE └── bpmn-visualization.LICENSE ├── README.md └── LICENSE /frontend/.nvmrc: -------------------------------------------------------------------------------- 1 | 18 2 | -------------------------------------------------------------------------------- /backend/requirements.txt: -------------------------------------------------------------------------------- 1 | pm4py==2.6.1 2 | flask==2.2.2 3 | Flask-Cors==3.0.10 -------------------------------------------------------------------------------- /backend-mock-server/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "trailingComma": "all" 4 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | backend/venv 2 | backend/result.bpmn 3 | backend/result-with-layout.bpmn 4 | node_modules 5 | .idea 6 | dist 7 | -------------------------------------------------------------------------------- /backend-mock-server/tsconfig.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": ["node_modules", "test", "dist", "**/*spec.ts"] 4 | } 5 | -------------------------------------------------------------------------------- /backend/bpmn-layout-generator-0.1.4-jar-with-dependencies.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/process-analytics/bpmn-visualization-pm4py/HEAD/backend/bpmn-layout-generator-0.1.4-jar-with-dependencies.jar -------------------------------------------------------------------------------- /backend-mock-server/nest-cli.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/nest-cli", 3 | "collection": "@nestjs/schematics", 4 | "sourceRoot": "src", 5 | "compilerOptions": { 6 | "deleteOutDir": true 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /backend-mock-server/test/jest-e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "moduleFileExtensions": ["js", "json", "ts"], 3 | "rootDir": ".", 4 | "testEnvironment": "node", 5 | "testRegex": ".e2e-spec.ts$", 6 | "transform": { 7 | "^.+\\.(t|j)s$": "ts-jest" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /frontend/src/globals.js: -------------------------------------------------------------------------------- 1 | import { BpmnVisualization } from 'bpmn-visualization'; 2 | 3 | 4 | export default{ 5 | bpmnVisualization : new BpmnVisualization({ 6 | container: 'bpmn-container', 7 | navigation: { enabled: true }, 8 | }), 9 | bpmnActivityElements : null //updated each time a new BPMN is discovered 10 | } 11 | -------------------------------------------------------------------------------- /frontend/src/colors.js: -------------------------------------------------------------------------------- 1 | import * as d3 from 'd3'; 2 | 3 | export function violationScale(min,max){ 4 | return d3.scaleSequential().domain([min,max]) 5 | .interpolator(d3.interpolateOrRd) 6 | } 7 | 8 | export function frequencyScale(min, max){ 9 | return d3.scaleSequential().domain([min,max]) 10 | .interpolator(d3.interpolatePuBu) 11 | } -------------------------------------------------------------------------------- /backend-mock-server/src/main.ts: -------------------------------------------------------------------------------- 1 | import { NestFactory } from '@nestjs/core'; 2 | import { AppModule } from './app.module'; 3 | import { Logger } from 'nestjs-pino'; 4 | 5 | async function bootstrap() { 6 | const app = await NestFactory.create(AppModule, { 7 | bufferLogs: true, 8 | cors: true, 9 | }); 10 | app.useLogger(app.get(Logger)); 11 | await app.listen(6969); 12 | } 13 | bootstrap(); 14 | -------------------------------------------------------------------------------- /frontend/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bpmn-visualization-pm4py", 3 | "private": true, 4 | "version": "0.0.0", 5 | "license": "GPL-3.0", 6 | "type": "module", 7 | "scripts": { 8 | "dev": "vite", 9 | "build": "vite build", 10 | "preview": "vite preview" 11 | }, 12 | "dependencies": { 13 | "bpmn-visualization": "^0.37.0", 14 | "d3": "^7.8.5", 15 | "spectre.css": "^0.5.9" 16 | }, 17 | "devDependencies": { 18 | "vite": "^4.3.9" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /.github/workflows/pr-metadata-checks.yml: -------------------------------------------------------------------------------- 1 | name: Check Pull Request Metadata 2 | on: 3 | pull_request_target: 4 | # trigger when the PR title changes 5 | types: [opened, edited, reopened] 6 | 7 | jobs: 8 | pr-title: 9 | runs-on: ubuntu-22.04 10 | permissions: 11 | pull-requests: write # post comments when the PR title doesn't match the "Conventional Commits" rules 12 | steps: 13 | - name: Check Pull Request title 14 | uses: bonitasoft/actions/packages/pr-title-conventional-commits@v3 15 | -------------------------------------------------------------------------------- /frontend/src/styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: sans-serif; 3 | } 4 | 5 | .menu{ 6 | height: 75vh; 7 | } 8 | 9 | 10 | #bpmn-container { 11 | /* This ensures that the parts of the diagram outside of the container are not displayed. */ 12 | overflow: hidden; 13 | height: 75vh; 14 | border: solid; 15 | border-width: 1px; 16 | border-color: rgb(132, 127, 127); 17 | 18 | } 19 | 20 | #legend { 21 | height: 10vh; 22 | display: flex; 23 | justify-content: center; 24 | align-items: center; 25 | } 26 | 27 | -------------------------------------------------------------------------------- /backend-mock-server/.gitignore: -------------------------------------------------------------------------------- 1 | # compiled output 2 | /dist 3 | /node_modules 4 | 5 | # Logs 6 | logs 7 | *.log 8 | npm-debug.log* 9 | pnpm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* 12 | lerna-debug.log* 13 | 14 | # OS 15 | .DS_Store 16 | 17 | # Tests 18 | /coverage 19 | /.nyc_output 20 | 21 | # IDEs and editors 22 | /.idea 23 | .project 24 | .classpath 25 | .c9/ 26 | *.launch 27 | .settings/ 28 | *.sublime-workspace 29 | 30 | # IDE - VSCode 31 | .vscode/* 32 | !.vscode/settings.json 33 | !.vscode/tasks.json 34 | !.vscode/launch.json 35 | !.vscode/extensions.json -------------------------------------------------------------------------------- /frontend/src/conversion.js: -------------------------------------------------------------------------------- 1 | import { apiUrl } from "./utils.js"; 2 | 3 | export function convertToCSV(formData){ 4 | fetch(`${apiUrl}/conversion/xes-to-csv`, { 5 | method: 'POST', 6 | body: formData 7 | }).then(response => response.json()) 8 | .then(data => visualizeCSV(data)) 9 | .catch(error => console.log(error)) 10 | } 11 | 12 | function visualizeCSV(data){ 13 | console.log('visualizeCSV - data:', data) 14 | // Get a reference to the table 15 | let table = document.getElementById("xes-log-table"); 16 | table.innerHTML = data 17 | } 18 | -------------------------------------------------------------------------------- /.github/release.yml: -------------------------------------------------------------------------------- 1 | # see https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes 2 | changelog: 3 | exclude: 4 | labels: 5 | - chore 6 | - dependencies 7 | - skip-changelog 8 | categories: 9 | - title: 🎉 New Features 10 | labels: 11 | - enhancement 12 | - title: 🐛 Bug Fixes 13 | labels: 14 | - bug 15 | - title: 📝 Documentation 16 | labels: 17 | - documentation 18 | - title: Other Changes 19 | labels: 20 | - "*" 21 | -------------------------------------------------------------------------------- /backend-mock-server/src/app.module.ts: -------------------------------------------------------------------------------- 1 | import { Module } from '@nestjs/common'; 2 | import { AppController } from './app.controller'; 3 | import { AppService } from './app.service'; 4 | import { LoggerModule } from 'nestjs-pino'; 5 | 6 | @Module({ 7 | imports: [ 8 | LoggerModule.forRoot({ 9 | pinoHttp: { 10 | transport: { 11 | target: 'pino-pretty', 12 | options: { 13 | singleLine: true, 14 | }, 15 | }, 16 | }, 17 | }), 18 | ], 19 | controllers: [AppController], 20 | providers: [AppService], 21 | }) 22 | export class AppModule {} 23 | -------------------------------------------------------------------------------- /backend-mock-server/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "declaration": true, 5 | "removeComments": true, 6 | "emitDecoratorMetadata": true, 7 | "experimentalDecorators": true, 8 | "allowSyntheticDefaultImports": true, 9 | "target": "es2017", 10 | "sourceMap": true, 11 | "outDir": "./dist", 12 | "baseUrl": "./", 13 | "incremental": true, 14 | "skipLibCheck": true, 15 | "strictNullChecks": false, 16 | "noImplicitAny": false, 17 | "strictBindCallApply": false, 18 | "forceConsistentCasingInFileNames": false, 19 | "noFallthroughCasesInSwitch": false 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # See https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates 2 | version: 2 3 | updates: 4 | - package-ecosystem: "github-actions" 5 | # Workflow files stored in the default location of `.github/workflows` 6 | directory: "/" 7 | schedule: 8 | interval: "weekly" 9 | day: thursday 10 | open-pull-requests-limit: 2 11 | rebase-strategy: "disabled" 12 | commit-message: 13 | prefix: "chore(gha)" 14 | labels: 15 | - dependencies 16 | - github_actions 17 | - skip-changelog 18 | reviewers: 19 | - process-analytics/pa-collaborators 20 | -------------------------------------------------------------------------------- /backend-mock-server/src/app.controller.spec.ts: -------------------------------------------------------------------------------- 1 | import { Test, TestingModule } from '@nestjs/testing'; 2 | import { AppController } from './app.controller'; 3 | import { AppService } from './app.service'; 4 | 5 | describe('AppController', () => { 6 | let appController: AppController; 7 | 8 | beforeEach(async () => { 9 | const app: TestingModule = await Test.createTestingModule({ 10 | controllers: [AppController], 11 | providers: [AppService], 12 | }).compile(); 13 | 14 | appController = app.get(AppController); 15 | }); 16 | 17 | describe('root', () => { 18 | it('should return BPMN content', () => { 19 | expect(appController.discover()).toContain(' { 7 | let app: INestApplication; 8 | 9 | beforeEach(async () => { 10 | const moduleFixture: TestingModule = await Test.createTestingModule({ 11 | imports: [AppModule], 12 | }).compile(); 13 | 14 | app = moduleFixture.createNestApplication(); 15 | await app.init(); 16 | }); 17 | 18 | it('/ (GET)', () => { 19 | return request(app.getHttpServer()) 20 | .get('/') 21 | .expect(200) 22 | .expect("I'm alive"); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /third_party/d3.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2010-2023 Mike Bostock 2 | 3 | Permission to use, copy, modify, and/or distribute this software for any purpose 4 | with or without fee is hereby granted, provided that the above copyright notice 5 | and this permission notice appear in all copies. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 8 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 9 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 10 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 11 | OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 12 | TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF 13 | THIS SOFTWARE. -------------------------------------------------------------------------------- /backend-mock-server/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | parser: '@typescript-eslint/parser', 3 | parserOptions: { 4 | project: 'tsconfig.json', 5 | tsconfigRootDir: __dirname, 6 | sourceType: 'module', 7 | }, 8 | plugins: ['@typescript-eslint/eslint-plugin'], 9 | extends: [ 10 | 'plugin:@typescript-eslint/recommended', 11 | 'plugin:prettier/recommended', 12 | ], 13 | root: true, 14 | env: { 15 | node: true, 16 | jest: true, 17 | }, 18 | ignorePatterns: ['.eslintrc.js'], 19 | rules: { 20 | '@typescript-eslint/interface-name-prefix': 'off', 21 | '@typescript-eslint/explicit-function-return-type': 'off', 22 | '@typescript-eslint/explicit-module-boundary-types': 'off', 23 | '@typescript-eslint/no-explicit-any': 'off', 24 | }, 25 | }; 26 | -------------------------------------------------------------------------------- /third_party/observable.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2019–2020 Observable, Inc. 2 | 3 | Permission to use, copy, modify, and/or distribute this software for any 4 | purpose with or without fee is hereby granted, provided that the above 5 | copyright notice and this permission notice appear in all copies. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 8 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 9 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 10 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 11 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 12 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 13 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -------------------------------------------------------------------------------- /frontend/src/utils.js: -------------------------------------------------------------------------------- 1 | import globals from "./globals"; 2 | 3 | export function getBpmnActivityElementbyName(activityName){ 4 | if(globals.bpmnActivityElements){ 5 | return globals.bpmnActivityElements.find((elt) => elt.bpmnSemantic.name === activityName); 6 | } 7 | return null 8 | } 9 | 10 | // for both backend and backend-mock-server 11 | export const apiUrl = 'http://localhost:6969'; 12 | 13 | // Linear mapping function to return an edge width based on the frequency 14 | export function mapFrequencyToWidth(frequency, minFrequency, maxFrequency, minWidth, maxWidth) { 15 | const range = maxFrequency - minFrequency; 16 | const fraction = (frequency - minFrequency) / range; 17 | const widthRange = maxWidth - minWidth; 18 | return minWidth + (fraction * widthRange); 19 | } 20 | -------------------------------------------------------------------------------- /backend-mock-server/README.md: -------------------------------------------------------------------------------- 1 | # backend-mock-server 2 | 3 | Simulate the [Python backend](../backend/README.md) to ease the frontend developments. 4 | 5 | This is a NodeJS server providing the same API as the backend. 6 | It is powered by the [Nest](https://github.com/nestjs/nest) framework and written in TypeScript. 7 | 8 | It has been initialized using nest@9.2.0: `npx @nestjs/cli new backend-mock-server`. 9 | 10 | 11 | ## Installation 12 | 13 | Node: see [frontend requirements](../frontend/README.md). 14 | 15 | ```bash 16 | $ npm install 17 | ``` 18 | 19 | ## Running the app 20 | 21 | ```bash 22 | # development 23 | $ npm run start 24 | 25 | # watch mode 26 | $ npm run start:dev 27 | 28 | # production mode 29 | $ npm run start:prod 30 | ``` 31 | 32 | ## Test 33 | 34 | ```bash 35 | # unit tests 36 | $ npm run test 37 | 38 | # e2e tests 39 | $ npm run test:e2e 40 | 41 | # test coverage 42 | $ npm run test:cov 43 | ``` 44 | -------------------------------------------------------------------------------- /backend-mock-server/src/app.controller.ts: -------------------------------------------------------------------------------- 1 | import { Controller, Get, Post } from '@nestjs/common'; 2 | import { AppService } from './app.service'; 3 | 4 | @Controller() 5 | export class AppController { 6 | constructor(private readonly appService: AppService) {} 7 | 8 | @Get() 9 | healthCheck(): string { 10 | return "I'm alive"; 11 | } 12 | 13 | // here we return an arbitrary BPMN content, so we don't care of the request body 14 | @Post('discover/inductive-miner') 15 | discover(): string { 16 | return this.appService.getBpmn(); 17 | } 18 | 19 | @Get('stats/frequency') 20 | getFrequencyStats() { 21 | return this.appService.getFrequencyStats(); 22 | } 23 | 24 | @Post('conformance/alignment') 25 | getConformanceAlignment(): any { 26 | return this.appService.getConformanceAlignment(); 27 | } 28 | 29 | @Post('conversion/xes-to-csv') 30 | convertXesToCsv() { 31 | // TODO returning the object seems not working in the frontend 32 | // return xesLog.map(entry => `${entry.id}${entry.name}`).join('\n'); 33 | return this.appService.getXesLog(); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /backend/README.md: -------------------------------------------------------------------------------- 1 | # Backend requirements 2 | 3 | It is assumed that the following is installed on your system: 4 | 5 | * `Python 3.6` or higher: https://www.python.org/downloads/ 6 | * `pip`: 7 | * **Windows**: The Python installers for Windows include pip. You can make sure that pip is up-to-date by running: 8 | ```sh 9 | py -m pip install --upgrade pip 10 | py -m pip --version 11 | ``` 12 | * **Unix/MacOS**: Debian and most other distributions include a [python-pip](https://packages.debian.org/stable/python/python3-pip) package. You can also install pip yourself to ensure you have the latest version by running: 13 | ```sh 14 | python3 -m pip install --user --upgrade pip 15 | python3 -m pip --version 16 | ``` 17 | 18 | * `venv`: keeps your environments clean by keeping the dependencies in a specific directory for your project. You can install virtualenv by running: 19 | * **Windows**: 20 | ```sh 21 | py -m pip install --user virtualenv 22 | ``` 23 | * **Unix/MacOS**: 24 | ```sh 25 | python3 -m pip install --user virtualenv 26 | ``` 27 | 28 | * `Graphviz`: pm4py uses Graphviz to encode the structure of process models. It is the only software that needs to be installed on your system from https://graphviz.org/download/. -------------------------------------------------------------------------------- /frontend/src/overlays.js: -------------------------------------------------------------------------------- 1 | export function getDeviationOverlay(violationLabel, violationRatio, color){ 2 | let fontColor = "none" 3 | if(violationRatio > 0.5){ 4 | fontColor = "white" 5 | } 6 | else{ 7 | fontColor = "black" 8 | } 9 | return { 10 | position: 'top-right', 11 | label: `${violationLabel}`, 12 | style: { 13 | font: { color: fontColor, size: 20 }, 14 | fill: { color: color}, 15 | stroke: { color: 'transparent', width: 0} 16 | } 17 | } 18 | } 19 | 20 | export function getSynchronousOverlay(label){ 21 | return { 22 | position: 'top-left', 23 | label: `${label}`, 24 | style: { 25 | font: { color: 'white', size: 20}, 26 | fill: { color: '#009E73'}, 27 | stroke: { color: 'transparent', width: 0} 28 | } 29 | } 30 | } 31 | 32 | export function getFrequencyOverlay(freqValue, freqMax, color, position){ 33 | let fontColor = "none" 34 | if(freqValue > freqMax / 2){ 35 | fontColor = "white" 36 | } 37 | else{ 38 | fontColor = "black" 39 | } 40 | return { 41 | position: position, 42 | label: `${freqValue}`, 43 | style: { 44 | font: { color: fontColor, size: 20 }, 45 | fill: { color: color}, 46 | stroke: { color: 'transparent', width: 0} 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /frontend/src/index.js: -------------------------------------------------------------------------------- 1 | import { getBPMNDiagram } from './discovery.js'; 2 | import { getAlignment } from './conformance.js'; 3 | import { convertToCSV } from './conversion.js'; 4 | import './styles.css'; 5 | 6 | const fileUpload = document.getElementById('xes-file-discovery') 7 | fileUpload.addEventListener('change', function(e){ 8 | document.getElementById('show-xes-log').classList.remove('d-invisible'); 9 | }) 10 | 11 | //modal interaction 12 | const modalElt = document.getElementById('event-log-modal') 13 | document.getElementById('close-modal').onclick = () => { 14 | modalElt.classList.remove('active'); 15 | }; 16 | document.getElementsByClassName('modal-overlay').item(0).onclick = () => { 17 | modalElt.classList.remove('active'); 18 | }; 19 | 20 | const showEventLogButton = document.getElementById('show-xes-log') 21 | showEventLogButton.addEventListener('click', function(e){ 22 | let file = document.getElementById('xes-file-discovery').files[0] 23 | let formData = new FormData() 24 | formData.append('file', file) 25 | convertToCSV(formData) 26 | modalElt.classList.add('active'); 27 | }) 28 | 29 | const discoverBpmnButton = document.getElementById('discover-bpmn') 30 | discoverBpmnButton.addEventListener('click', function(e){ 31 | discoverBpmnButton.classList.add('loading') 32 | let file = document.getElementById('xes-file-discovery').files[0] 33 | let noiseThreshold = document.getElementById('noise-threshold').value 34 | let formData = new FormData() 35 | formData.append('file', file) 36 | formData.append('noise', noiseThreshold) 37 | getBPMNDiagram(formData).then(() => discoverBpmnButton.classList.remove('loading')) 38 | 39 | 40 | }) 41 | 42 | 43 | const conformanceButton = document.getElementById('compute-conformance') 44 | conformanceButton.addEventListener('click', function(e){ 45 | conformanceButton.classList.add('loading') 46 | let file = document.getElementById('xes-file-conformance').files[0] 47 | let formData = new FormData() 48 | formData.append('file', file) 49 | getAlignment(formData).then(() => conformanceButton.classList.remove('loading')) 50 | }) -------------------------------------------------------------------------------- /backend-mock-server/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "backend-mock-server", 3 | "version": "0.0.0", 4 | "private": true, 5 | "license": "GPL-3.0", 6 | "scripts": { 7 | "build": "nest build", 8 | "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", 9 | "start": "nest start", 10 | "start:dev": "nest start --watch", 11 | "start:debug": "nest start --debug --watch", 12 | "start:prod": "node dist/main", 13 | "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", 14 | "test": "jest", 15 | "test:watch": "jest --watch", 16 | "test:cov": "jest --coverage", 17 | "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", 18 | "test:e2e": "jest --config ./test/jest-e2e.json" 19 | }, 20 | "dependencies": { 21 | "@nestjs/common": "^9.0.0", 22 | "@nestjs/core": "^9.0.0", 23 | "@nestjs/platform-express": "^9.0.0", 24 | "nestjs-pino": "^3.1.2", 25 | "pino-http": "^8.3.3", 26 | "pino-pretty": "^9.3.0", 27 | "reflect-metadata": "^0.1.13", 28 | "rxjs": "^7.2.0" 29 | }, 30 | "devDependencies": { 31 | "@nestjs/cli": "^9.0.0", 32 | "@nestjs/schematics": "^9.0.0", 33 | "@nestjs/testing": "^9.0.0", 34 | "@types/express": "^4.17.13", 35 | "@types/jest": "29.2.4", 36 | "@types/node": "18.11.18", 37 | "@types/supertest": "^2.0.11", 38 | "@typescript-eslint/eslint-plugin": "^5.0.0", 39 | "@typescript-eslint/parser": "^5.0.0", 40 | "eslint": "^8.0.1", 41 | "eslint-config-prettier": "^8.3.0", 42 | "eslint-plugin-prettier": "^4.0.0", 43 | "jest": "29.3.1", 44 | "prettier": "^2.3.2", 45 | "source-map-support": "^0.5.20", 46 | "supertest": "^6.1.3", 47 | "ts-jest": "29.0.3", 48 | "ts-loader": "^9.2.3", 49 | "ts-node": "^10.0.0", 50 | "tsconfig-paths": "4.1.1", 51 | "typescript": "^4.7.4" 52 | }, 53 | "jest": { 54 | "moduleFileExtensions": [ 55 | "js", 56 | "json", 57 | "ts" 58 | ], 59 | "rootDir": "src", 60 | "testRegex": ".*\\.spec\\.ts$", 61 | "transform": { 62 | "^.+\\.(t|j)s$": "ts-jest" 63 | }, 64 | "collectCoverageFrom": [ 65 | "**/*.(t|j)s" 66 | ], 67 | "coverageDirectory": "../coverage", 68 | "testEnvironment": "node" 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /frontend/README.md: -------------------------------------------------------------------------------- 1 | # Frontend requirements 2 | 3 | You will need [Node.js](https://nodejs.org/) and [npm](https://www.npmjs.com/) to be installed on your system. Node.js `installer` is not recommended, since the Node installation process installs `npm` in a directory with local permissions and can cause permissions errors when you run npm packages globally. Node version manager like [nvm](https://github.com/nvm-sh/nvm) is usually recommended as explained below. 4 | 5 | * `nvm`: Node version manager to install `Node.js` and `npm`: 6 | * **Windows**: 7 | 1. Donwload the latest release of [`nvm-windows`](https://github.com/coreybutler/nvm-windows#readme). 8 | 2. Click on `.exe` file to install the latest release. 9 | 3. Complete the installation wizard 10 | 4. When done, you can confirm that nvm has been installed by running: 11 | ```sh 12 | nvm -m 13 | ``` 14 | * **Unix/MacOS**: 15 | 1. In your terminal, run the nvm installer by using `cURL` or `Wget` commands depending on the command available on your device. These commands will clone the nvm repository to a `~/.nvm` directory on your device: 16 | ```sh 17 | curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash 18 | 19 | #or 20 | 21 | wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash 22 | ``` 23 | 2. Update your profile configuration: Running either of the above commands downloads a script and runs it. The script clones the nvm repository to `~/.nvm`, and attempts to add the source lines from the snippet below to the correct profile file (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`). If it doesn't automatically add nvm configuration, you can add it yourself to your profile file: 24 | ```sh 25 | export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" 26 | [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm 27 | ``` 28 | 3. When done, you can confirm that nvm has been installed by running: 29 | ```sh 30 | command -v nvm 31 | ``` 32 | 4. If you run into problems, you can check the [complete documentation](https://github.com/nvm-sh/nvm#installing-and-updating). 33 | * `Node.js` and `npm`: Use `nvm` to install, and use, the version of `Node.js` and `npm` defined in the `.nvmrc` file: 34 | ```sh 35 | nvm use 36 | ``` 37 | ```sh 38 | nvm install 39 | ``` 40 | Verify it worked by running: 41 | ```sh 42 | node --version 43 | ``` 44 | ```sh 45 | npm --version 46 | ``` -------------------------------------------------------------------------------- /backend-mock-server/src/app.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@nestjs/common'; 2 | import { diagram } from './assets/diagram'; 3 | 4 | type FrequencyStats = { [index: string]: number }; 5 | type ConformanceAlignment = Array<{ alignment: Array> }>; 6 | 7 | @Injectable() 8 | export class AppService { 9 | getBpmn(): string { 10 | return diagram; 11 | } 12 | 13 | getFrequencyStats(): FrequencyStats { 14 | return { 15 | // Shapes 16 | 'Activity_1': 65, // 'Assign Approver' 17 | 'Activity_1omool6': 113, // 'Approve Invoice' 18 | 'Activity_1pkoaqu': 48, // 'Clarify Invoice' 19 | 'Activity_1gv7jjb': 107, // 'Prepare Bank Transfer' 20 | 'Activity_11n0ixn': 107, // 'Archive Invoice' 21 | // Edges 22 | 'Flow_1w8ldp8': 65, // between 'Assign Approver' and 'Approve Invoice' 23 | 'Flow_1pl5mvt': 113, // between 'Approve Invoice' and gateway 24 | 'Flow_0odkkje': 48, // between gateway and 'Clarify Invoice' 25 | 'Flow_09havhs': 48, // between gateway and 'Approve Invoice' 26 | 'Flow_1x81xda': 107, // between gateway and 'Archive Invoice' 27 | }; 28 | } 29 | 30 | getConformanceAlignment(): ConformanceAlignment { 31 | return [ 32 | { alignment: [['Assign Approver', 'Assign Approver'], ['>>', 'Approve Invoice'], ['Prepare Bank Transfer', 'Prepare Bank Transfer'], ['>>', 'Archive Invoice']] }, 33 | { alignment: [['Assign Approver', '>>'], ['Approve Invoice', 'Approve Invoice'], ['>>', 'Prepare Bank Transfer'], ['Archive Invoice', 'Archive Invoice']] }, 34 | { alignment: [['Assign Approver', 'Assign Approver'], ['Approve Invoice', 'Approve Invoice'], ['>>', 'Prepare Bank Transfer'], ['>>', 'Archive Invoice']] }, 35 | { alignment: [['>>', 'Assign Approver'], ['>>', 'Approve Invoice'], ['>>', 'Prepare Bank Transfer'], ['Archive Invoice', 'Archive Invoice']] }, 36 | ]; 37 | } 38 | 39 | getXesLog(): Array { 40 | return [ 41 | { 42 | id: '1', 43 | name: 'Invoice received', 44 | timestamp: '2020-12-10T13:52:36.000+00:00', 45 | }, 46 | { 47 | id: '2', 48 | name: 'Approve Invoice', 49 | timestamp: '2020-12-10T13:52:38.000+00:00', 50 | }, 51 | { 52 | id: '11', 53 | name: 'Invoice received', 54 | timestamp: '2020-12-11T13:52:36.000+00:00', 55 | }, 56 | { 57 | id: '12', 58 | name: 'Approve Invoice', 59 | timestamp: '2020-12-11T13:52:38.000+00:00', 60 | }, 61 | ]; 62 | } 63 | } 64 | 65 | type XesLogEntry = { 66 | id: string; 67 | name: string; 68 | timestamp: string; 69 | }; 70 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Integration between `bpmn-visualization` and `pm4py` 2 | 3 | | Archived on 2024-01-13 | We no longer use this repository. | 4 | | -------- | -------- | 5 | 6 | This is an example integration between [bpmn-visualization](https://github.com/process-analytics/bpmn-visualization-js/) and [PM4PY](https://github.com/pm4py). 7 | 8 | ## Architecture 9 | The application consists of two main components: the frontend written in JavaScript and the backend written in Python. 10 | * The frontend uses **bpmn-visualization** to visualize the BPMN process model and the statistics data over it. 11 | * The backend is built using **pm4py** which processes data to perform process discovery and conformance checking. The results are then communicated to the frontend through [Flask](https://flask.palletsprojects.com/) and [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). 12 | 13 | In addition to bpmn-visualization and pm4py, the application also leverages two other libraries, [d3](https://d3js.org/) and [BPMN layout generators](https://github.com/process-analytics/bpmn-layout-generators). 14 | * **d3** is used to manipulate colors and add a legend to the visualized BPMN diagrams. 15 | * **BPMN layout generators** is used to generate the layout of the discovered BPMN process models produced by pm4py. ⚠️ Please note that BPMN layout generators is still in an **experimental version** and may not produce optimal or visually appealing layouts. 16 | 17 | ![Application architecture](./architecture/architecture.svg) 18 | 19 | ## Prerequisites 20 | 21 | You can skip this part if your system meets all the requirements listed below 👇 22 | 23 | * [Backend requirements](./backend/README.md) 24 | * [Backend Mock Server requirements](./backend-mock-server/README.md) (only needed if you want to simulate the Backend during Frontend developments) 25 | * [Frontend requirements](./frontend/README.md) 26 | 27 | 28 | ## Setup 29 | * Clone the project in your preferred IDE (e.g. VScode) 30 | * Prepare the backend environment: 31 | 1. Navigate to the `backend` folder: `cd backend` 32 | 2. Create a virtual environment for dependencies called `venv` using the following command: 33 | ```sh 34 | python -m venv venv 35 | ``` 36 | 3. Activate the created `venv` by running: 37 | * **Windows**: 38 | ```sh 39 | venv\Scripts\activate.bat 40 | ``` 41 | * **Unix/MacOS**: 42 | ```sh 43 | venv/bin/activate 44 | ``` 45 | 4. Install the required libraries listed in `requirements.txt` by running: 46 | ```sh 47 | pip install -r requirements.txt 48 | ``` 49 | * Prepare the frontend environment: 50 | 1. Navigate to the `frontend` folder: `cd ../frontend` 51 | 2. Install the required libraries listed in `package.json` by running: 52 | ```sh 53 | npm install 54 | ``` 55 | ## Run 56 | 1. Navigate to the `backend` folder: `cd backend` 57 | 2. Run the application: 58 | ```sh 59 | python app.py 60 | ``` 61 | 3. Open a new terminal and navigate to the `frontend`folder: `cd frontend` 62 | 4. Run the development web server: 63 | ```sh 64 | npm run dev 65 | ``` 66 | 5. Access the web application on the displayed localhost: http://localhost:5173/ 67 | 68 | ## License 69 | 70 | This project is licensed under the GPL-3.0 license because the backend part of the code uses the pm4py library, which is licensed under this license. 71 | 72 | The front end part of the code uses the bpmn-visualization library, which is licensed under the Apache-2.0 license. The legends in the project are generated using d3, which is licensed under the ISC license. 73 | 74 | Please note that the different licenses may have different requirements, so make sure to review the license terms carefully before using or contributing to this project. 75 | 76 | ## Release how-to 77 | 78 | When all updates have been completed, you are ready to publish a new release. 79 | 80 | Create a new GitHub release by following the [GitHub help](https://help.github.com/en/github/administering-a-repository/managing-releases-in-a-repository#creating-a-release) 81 | - for `Tag version`, use a value following the **vX.Y.Z** scheme using the [Semantic Versioning](https://semver.org/). 82 | - for `Target` 83 | - usually, keep the `main` branch except if new commits that you don't want to integrate for the release are already 84 | available in the branch 85 | - in that case, choose a dedicated commit 86 | - Description 87 | - briefly explain the contents of the new version 88 | - make GitHub generates the [release notes automatically](https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes) 89 | 90 | -------------------------------------------------------------------------------- /frontend/src/conformance.js: -------------------------------------------------------------------------------- 1 | import globals from './globals.js'; 2 | import { violationScale } from './colors.js' 3 | import { colorLegend, overlayLegend } from './legend.js'; 4 | import { getDeviationOverlay, getSynchronousOverlay } from './overlays.js' 5 | import { apiUrl, getBpmnActivityElementbyName } from './utils.js'; 6 | import { mxgraph, ShapeBpmnElementKind, FlowKind } from 'bpmn-visualization'; 7 | 8 | export function getAlignment(formData) { 9 | console.log("Get alignments..."); 10 | return fetch(`${apiUrl}/conformance/alignment`,{ 11 | method: 'POST', 12 | body: formData 13 | }).then(response => response.json()) 14 | .then(data => visualizeAlignment(data)) 15 | .catch(error => console.log(error)) 16 | } 17 | 18 | function visualizeAlignment(alignedTraces){ 19 | const myViolationScale = violationScale(0,100) 20 | console.log("alignments received!"); 21 | 22 | //compute aggregated statistics of the received alignment 23 | const stats = getAlignmentDecorations(alignedTraces) 24 | 25 | //set the violation color 26 | const graph = globals.bpmnVisualization.graph 27 | 28 | // reset fill and font color for activities 29 | const activities = globals.bpmnVisualization.bpmnElementsRegistry.getElementsByKinds(ShapeBpmnElementKind.TASK); 30 | const activitiesIds = activities.map(elt => elt.bpmnSemantic.id); 31 | globals.bpmnVisualization.bpmnElementsRegistry.resetStyle(activitiesIds); 32 | 33 | // reset color and width for edges 34 | const edges = globals.bpmnVisualization.bpmnElementsRegistry.getElementsByKinds(FlowKind.SEQUENCE_FLOW); 35 | const edgesIds = edges.map(elt => elt.bpmnSemantic.id); 36 | globals.bpmnVisualization.bpmnElementsRegistry.resetStyle(edgesIds); 37 | 38 | //remove overlays 39 | activities.forEach(act => globals.bpmnVisualization.bpmnElementsRegistry.removeAllOverlays(act.bpmnSemantic.id)) 40 | edges.forEach(edge => globals.bpmnVisualization.bpmnElementsRegistry.removeAllOverlays(edge.bpmnSemantic.id)) 41 | 42 | // update style and add overlay 43 | for (const [activityName, violationRatio] of Object.entries(stats.normalizedStats)) { 44 | const activityElement = getBpmnActivityElementbyName(activityName) 45 | if (activityElement) { 46 | const fontColor = violationRatio > 0.5 ? 'white' : 'default'; 47 | globals.bpmnVisualization.bpmnElementsRegistry.updateStyle(activityElement.bpmnSemantic.id, { 48 | fill: { 49 | color: myViolationScale(violationRatio * 100) 50 | }, 51 | font: { 52 | color: fontColor 53 | } 54 | }); 55 | 56 | //add overlay 57 | globals.bpmnVisualization.bpmnElementsRegistry.addOverlays( 58 | activityElement.bpmnSemantic.id, 59 | [ 60 | getDeviationOverlay(stats.aggStats[activityName].modelMove, 61 | violationRatio, 62 | myViolationScale(violationRatio * 100)), 63 | getSynchronousOverlay(stats.aggStats[activityName].syncMove) 64 | ]) 65 | } 66 | } 67 | 68 | //add legend 69 | colorLegend({ 70 | colorScale: myViolationScale, 71 | title: "% deviations (model moves)" 72 | }) 73 | 74 | overlayLegend({ 75 | leftOverlayLegend: "# conformities\n(synchronous moves)", 76 | rightOverlayLegend : "# deviations\n(model moves)"}) 77 | } 78 | 79 | /** 80 | * For each activity, compute the number of model moves and syncronous moves 81 | */ 82 | function getAlignmentDecorations(alignments){ 83 | //initialize the aggregated statistics for each activity 84 | const aggStats = globals.bpmnActivityElements.map(elt => { 85 | let result = {} 86 | result[elt.bpmnSemantic.name] = {syncMove: 0, modelMove: 0} 87 | return result 88 | }) 89 | //convert the list aggStats to one object whose keys are the activity names 90 | .reduce((obj, item) => { 91 | const key = Object.keys(item)[0] 92 | obj[key] = item[key]; 93 | return obj; 94 | }, {}); 95 | 96 | //extract the alignments 97 | alignments = alignments.map((elt) => elt.alignment) 98 | //iterate over the alignments and update aggStats 99 | for(const alignedTrace of alignments){ 100 | for(const pair of alignedTrace){ 101 | //pair[0] is a trace_move, pair[1] is a model_move 102 | if(pair[1] && pair[1] != '>>'){ //pair[1] is not null (tau transitions from petri net) and it is not a log move 103 | pair[1] === pair[0]? aggStats[pair[1]].syncMove++ : aggStats[pair[1]].modelMove++ 104 | } 105 | } 106 | } 107 | 108 | //normalize statistics wrt modelMove (which are the violations) 109 | let normalizedStats = Object.fromEntries(Object 110 | .entries(aggStats) 111 | .map(([activityName, value]) => [activityName, value.modelMove/(value.syncMove + value.modelMove)]) 112 | ); 113 | 114 | return {"aggStats": aggStats, "normalizedStats": normalizedStats} 115 | } 116 | -------------------------------------------------------------------------------- /frontend/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Example of integration between bpmn-visualization and pm4py 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 |
16 |

Example of integration between bpmn-visualization and pm4py

17 |
18 |
19 | 65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 | 75 | 76 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /frontend/src/discovery.js: -------------------------------------------------------------------------------- 1 | import globals from './globals.js'; 2 | 3 | import { FitType, mxgraph, ShapeBpmnElementKind } from 'bpmn-visualization'; 4 | import { frequencyScale } from './colors.js' 5 | import { getFrequencyOverlay } from './overlays.js'; 6 | import { colorLegend, overlayLegend } from './legend.js'; 7 | import { apiUrl, mapFrequencyToWidth } from './utils.js'; 8 | 9 | export function getBPMNDiagram(formData) { 10 | console.log('Get bpmn...'); 11 | return fetch(`${apiUrl}/discover/inductive-miner`, { 12 | method: 'POST', 13 | body: formData 14 | }).then(response => response.text()) 15 | .then(data => visualizeBPMN(data)) 16 | .catch(error => console.log(error)); 17 | } 18 | 19 | function visualizeBPMN(data) { 20 | console.log('BPMN data received!') 21 | //load 22 | globals.bpmnVisualization.load(data, { 23 | fit: { type: FitType.Center } 24 | }); 25 | 26 | //update the list of bpmn activities 27 | globals.bpmnActivityElements = globals.bpmnVisualization.bpmnElementsRegistry.getElementsByKinds(ShapeBpmnElementKind.TASK); 28 | computeFrequency(); 29 | } 30 | 31 | function computeFrequency(){ 32 | console.log('Compute frequency stats...'); 33 | fetch(`${apiUrl}/stats/frequency`) 34 | .then(response => response.json()) 35 | .then(data => visualizeFrequency(data)) 36 | .catch(error => console.log(error)) 37 | } 38 | 39 | function visualizeFrequency(data) { 40 | console.log('Frequency stats received!'); 41 | 42 | // Preprocess data to replace the tuples in the form (source_id, target_id) with the edge id 43 | for (const key of Object.keys(data)) { 44 | // Check if the key matches the pattern (source_id,target_id) 45 | const match = key.match(/\('([^']+)'\s*,\s*'([^']+)'\)/); 46 | if (match) { 47 | // Extract the source and target ids 48 | const source_id = match[1]; 49 | const target_id = match[2]; 50 | // Get the edge id 51 | const edge_id = findEdgeId(source_id, target_id); 52 | if (edge_id !== null) { 53 | console.log(`Found edge ${edge_id} connecting activities ${source_id} and ${target_id}`); 54 | const value = data[key]; 55 | data[edge_id] = value; // Create a new key with the same value 56 | delete data[key]; // Delete the original key 57 | } else { 58 | console.log(`No edge found connecting activities ${source_id} and ${target_id}`); 59 | } 60 | } 61 | } 62 | 63 | //set the frequency color scale 64 | const values = Object.values(data); 65 | const statistics = values.map(Number); // Convert strings to numbers 66 | const max = Math.max(...statistics); 67 | const avg = max/2; 68 | const myFrequencyScale = frequencyScale(0, max); 69 | 70 | //iterate over the elements (activities and edges) and set their color by calling the frequency color scale function 71 | for (const [eltId, freqValue] of Object.entries(data)) { 72 | const freqNum = parseInt(freqValue); 73 | 74 | // freqValue is None if the BPMN element has never been executed 75 | // Add frequency related statistics only if freqNum is not NaN 76 | if(!isNaN(freqNum)){ 77 | const bpmnElement = globals.bpmnVisualization.bpmnElementsRegistry.getElementsByIds(eltId)[0]; 78 | 79 | if(bpmnElement){ 80 | // Update style of activity element 81 | if (bpmnElement.bpmnSemantic.isShape) { 82 | const fontColor = freqNum > avg ? 'white' : 'default'; 83 | 84 | globals.bpmnVisualization.bpmnElementsRegistry.updateStyle(eltId,{ 85 | fill: { 86 | color: myFrequencyScale(freqNum) 87 | }, 88 | font: { 89 | color: fontColor 90 | } 91 | }); 92 | 93 | //add frequency overlay 94 | globals.bpmnVisualization.bpmnElementsRegistry.addOverlays( 95 | bpmnElement.bpmnSemantic.id, 96 | getFrequencyOverlay(freqNum, max, myFrequencyScale(freqNum), 'top-right')); 97 | } 98 | // Update edge style and add overlay on edge 99 | else { 100 | const edgeWidth = mapFrequencyToWidth(freqNum, 0, max, 0, 5); 101 | globals.bpmnVisualization.bpmnElementsRegistry.updateStyle(eltId, { 102 | stroke:{ 103 | width: edgeWidth, 104 | color: myFrequencyScale(freqNum) 105 | } 106 | }); 107 | 108 | globals.bpmnVisualization.bpmnElementsRegistry.addOverlays( 109 | bpmnElement.bpmnSemantic.id, 110 | getFrequencyOverlay(freqNum, max, myFrequencyScale(freqNum), 'middle')); 111 | } 112 | } 113 | else{ 114 | console.log(`did not find the element of id ${eltId}`) 115 | } 116 | } 117 | } 118 | 119 | //add legend 120 | colorLegend({ 121 | colorScale: myFrequencyScale, 122 | title: 'Frequency of execution (absolute)' 123 | }); 124 | 125 | overlayLegend({rightOverlayLegend : '# executions'}); 126 | } 127 | 128 | function findEdgeId(source_id, target_id) { 129 | const edgesIds = globals.bpmnVisualization.bpmnElementsRegistry.getElementsByIds(source_id)[0].bpmnSemantic.outgoingIds; 130 | for (const edgeId of edgesIds) { 131 | const targetActivityId = globals.bpmnVisualization.bpmnElementsRegistry.getElementsByIds(edgeId)[0].bpmnSemantic.targetRefId; 132 | if (targetActivityId === target_id) { 133 | // Found the edge ID 134 | return edgeId; 135 | } 136 | } 137 | // Edge not found 138 | return null; 139 | } 140 | -------------------------------------------------------------------------------- /backend/app.py: -------------------------------------------------------------------------------- 1 | import flask 2 | from flask import Flask, request 3 | from flask_cors import CORS 4 | 5 | import pm4py 6 | from pm4py.objects.log.importer.xes import importer as xes_importer 7 | from pm4py.objects.conversion.bpmn.variants.to_petri_net import Parameters as PARAMS_CONVERTER, apply as petri_net_converter 8 | from pm4py.visualization.petri_net.variants import token_decoration_frequency 9 | from pm4py.visualization.petri_net import visualizer as petri_net_visualizer 10 | import re 11 | import subprocess #to execute the layout-generator jar file 12 | 13 | class Parameters: 14 | EVENT_LOG_DISCOVERY = None 15 | EVENT_LOG_CONFORMANCE = None 16 | BPMN_MODEL = None 17 | PETRI_NET = None 18 | IM = None 19 | FM = None 20 | #store the mapping between bpmn and petrinet 21 | #will be used to be able to compute statistics related to edges and gateways 22 | FLOW_PLACE = {} 23 | TRANS_MAP = {} 24 | 25 | app = Flask(__name__) 26 | CORS(app) 27 | 28 | 29 | @app.route('/discover/inductive-miner', methods=["POST"]) 30 | def discover_inductive_miner(): 31 | #read xes log 32 | log_stream = request.files.getlist('file')[0].read() 33 | noise = request.form.get('noise') 34 | 35 | #create pm4py event log object 36 | Parameters.EVENT_LOG_DISCOVERY = xes_importer.deserialize(log_stream) 37 | 38 | #discover bpmn 39 | Parameters.BPMN_MODEL = pm4py.discover_bpmn_inductive(Parameters.EVENT_LOG_DISCOVERY, noise_threshold=float(noise)) 40 | 41 | #convert bpmn to petri net to be able to replay log and compute later frequency and conformance data 42 | #use the new fix by pm4py to return the mapping between bpmn and petri net 43 | Parameters.PETRI_NET, Parameters.IM, Parameters.FM, Parameters.FLOW_PLACE, Parameters.TRANS_MAP = petri_net_converter(Parameters.BPMN_MODEL, {PARAMS_CONVERTER.RETURN_FLOW_TRANS_MAP.value: True}) 44 | 45 | #generate the layout using layout-generators 46 | ''' 47 | TO BE IMPROVED in future iterations 48 | ''' 49 | #layout-generators takes a bpmn file, so save the bpmn-file first 50 | pm4py.write_bpmn(Parameters.BPMN_MODEL, 'result.bpmn') 51 | #generate layout 52 | subprocess.call(['java', '-jar', 'bpmn-layout-generator-0.1.4-jar-with-dependencies.jar', '--output=./result-with-layout.bpmn', 'result.bpmn']) 53 | 54 | #get result and send it 55 | file = open('result-with-layout.bpmn', 'r') 56 | bpmn_xml_content = file.read() 57 | 58 | return flask.Response(response = bpmn_xml_content, status=201, mimetype='text/xml') 59 | 60 | 61 | @app.route('/conformance/alignment', methods=["POST"]) 62 | def compute_alignment(): 63 | #read xes log 64 | log_stream = request.files.getlist('file')[0].read() 65 | 66 | #create pm4py event log object 67 | Parameters.EVENT_LOG_CONFORMANCE = xes_importer.deserialize(log_stream) 68 | 69 | #alignment can be only done on Petri nets 70 | if Parameters.PETRI_NET is not None: 71 | aligned_traces = pm4py.conformance_diagnostics_alignments(Parameters.EVENT_LOG_CONFORMANCE, Parameters.PETRI_NET, Parameters.IM, Parameters.FM) 72 | return flask.jsonify(aligned_traces) 73 | else: 74 | return flask.Response(response = "BPMN diagram is missing. \n Discover a model and then apply conformance checking", status=404, mimetype='text/xml') 75 | 76 | @app.route('/conversion/xes-to-csv', methods=["POST"]) 77 | def xes_to_csv(): 78 | log_stream = request.files.getlist('file')[0].read() 79 | 80 | #create pm4py event log object 81 | Parameters.EVENT_LOG_DISCOVERY = xes_importer.deserialize(log_stream) 82 | log_dataframe = pm4py.convert_to_dataframe(Parameters.EVENT_LOG_DISCOVERY) 83 | return flask.jsonify(log_dataframe.to_html()) 84 | 85 | 86 | @app.route('/stats/frequency', methods=["GET"]) 87 | def compute_frequency(): 88 | elements_frequency = {} 89 | # Compute frequency information on petri net 90 | frequency_decorations = token_decoration_frequency.get_decorations(Parameters.EVENT_LOG_DISCOVERY, Parameters.PETRI_NET, Parameters.IM, Parameters.FM, measure = 'frequency') 91 | 92 | # Add frequency of activities 93 | # Value is a list of pm4py Transition 94 | for value in Parameters.TRANS_MAP.values(): 95 | if value[0].label is not None: # Test that it corresponds to a BPMN activity and not an event or a gateway (which are represented as silent transitions in petri_net) 96 | bpmn_activity_id = value[0].name 97 | activity_frequency = extract_activity_statistics_from_decorations(bpmn_activity_id, frequency_decorations) 98 | elements_frequency[bpmn_activity_id] = activity_frequency 99 | 100 | # Add frequency of edges 101 | # key is of type pm4py BPMN Flow, value is of type pm4py Place 102 | for key, value in Parameters.FLOW_PLACE.items(): 103 | bpmn_source_id = key.get_source().get_id() 104 | bpmn_target_id = key.get_target().get_id() 105 | place_id = value.name 106 | edge_frequency = extract_edge_statistics_from_decorations(place_id, frequency_decorations) 107 | elements_frequency[(bpmn_source_id, bpmn_target_id)] = edge_frequency 108 | 109 | print(elements_frequency) 110 | # Convert key that are tuples to string 111 | result = {str(k): v for k, v in elements_frequency.items()} 112 | return flask.jsonify(result) 113 | 114 | # key of decorations is of type pm4py Transition or Arc, value is a dict 115 | def extract_activity_statistics_from_decorations(activity_id, decorations): 116 | for key, value in decorations.items(): 117 | if type(key) is pm4py.objects.petri_net.obj.PetriNet.Transition: 118 | if key.name == activity_id: 119 | # Extract statistics from value and return it 120 | # Value is a dictionary: 'label': activity_name (statistics), 'color':color 121 | return re.findall(r'\((\d+)\)', value['label'])[0] 122 | 123 | print('key for activity {} not found'.format(activity_id)) 124 | return None 125 | 126 | # An edge in BPMN corresponds to a place in petri_net 127 | # key of decorations is of type pm4py Transition or Arc, value is a dict 128 | def extract_edge_statistics_from_decorations(place_id, decorations): 129 | for key, value in decorations.items(): 130 | if type(key) is pm4py.objects.petri_net.obj.PetriNet.Arc: 131 | if key.source.name == place_id or key.target.name == place_id: 132 | # Extract statistics from value and return it 133 | # Value is a dictionary: 'label': statistics, 'penwidth':width 134 | return value['label'] 135 | 136 | print('key for place {} not found'.format(place_id)) 137 | return None 138 | 139 | if __name__ == "__main__": 140 | app.run("localhost", 6969) -------------------------------------------------------------------------------- /frontend/src/legend.js: -------------------------------------------------------------------------------- 1 | import * as d3 from 'd3'; 2 | 3 | /* 4 | * This function is derived from code in the https://observablehq.com/@d3/color-legend project, 5 | * which is licensed under the ISC license. 6 | * 7 | * Original code: 8 | * https://observablehq.com/@d3/color-legend 9 | * 10 | * ISC License: 11 | * Copyright 2019–2020 Observable, Inc. 12 | */ 13 | export function colorLegend({colorScale, title} = {}) { 14 | const tickSize = 6 15 | const width = 320 16 | const height = 44 + tickSize 17 | 18 | d3.select("#legend") 19 | .selectAll("*") 20 | .remove(); 21 | 22 | const svgColorLegend = d3.select('#legend').append('svg').attr('id', 'color-legend') 23 | .attr("width", width) 24 | .attr("height", height) 25 | .attr("viewBox", [0, 0, width, height]) 26 | .style("overflow", "visible") 27 | .style("display", "block") 28 | 29 | const marginTop = 18 30 | const marginRight = 0 31 | const marginBottom = 16 + tickSize 32 | const marginLeft = 0 33 | const ticks = width / 64 34 | 35 | let tickAdjust = g => g.selectAll(".tick line").attr("y1", marginTop + marginBottom - height); 36 | let x = Object.assign(colorScale.copy() 37 | .interpolator(d3.interpolateRound(marginLeft, width - marginRight)), { 38 | range() { 39 | return [marginLeft, width - marginRight]; 40 | } 41 | }); 42 | 43 | svgColorLegend.append("image") 44 | .attr("x", marginLeft) 45 | .attr("y", marginTop) 46 | .attr("width", width - marginLeft - marginRight) 47 | .attr("height", height - marginTop - marginBottom) 48 | .attr("preserveAspectRatio", "none") 49 | .attr("xlink:href", ramp(colorScale.interpolator()).toDataURL()); 50 | 51 | //compute tick values 52 | const n = Math.round(ticks + 1); 53 | const tickValues = d3.range(n).map(i => d3.quantile(colorScale.domain(), i / (n - 1))); 54 | 55 | svgColorLegend.append("g") 56 | .attr("transform", `translate(0,${height - marginBottom})`) 57 | .call(d3.axisBottom(x) 58 | .ticks(ticks) 59 | .tickSize(tickSize) 60 | .tickValues(tickValues)) 61 | .call(tickAdjust) 62 | .call(g => g.select(".domain").remove()) 63 | .call(g => g.append("text") 64 | .attr("x", marginLeft) 65 | .attr("y", marginTop + marginBottom - height - 6) 66 | .attr("fill", "currentColor") 67 | .attr("text-anchor", "start") 68 | .attr("font-weight", "bold") 69 | .text(title)); 70 | 71 | return svgColorLegend.node(); 72 | } 73 | 74 | function ramp(color, n = 256) { 75 | var canvas = document.createElement('canvas'); 76 | canvas.width = n; 77 | canvas.height = 1; 78 | const context = canvas.getContext("2d"); 79 | for (let i = 0; i < n; ++i) { 80 | context.fillStyle = color(i / (n - 1)); 81 | context.fillRect(i, 0, 1, 1); 82 | } 83 | return canvas; 84 | } 85 | 86 | export function overlayLegend({leftOverlayLegend, rightOverlayLegend} = {}){ 87 | const divElt = d3.select('#legend').node() 88 | const width = divElt.getBoundingClientRect().width/2; 89 | const height = divElt.getBoundingClientRect().height; 90 | const svgOverlayLegend = d3.select('#legend').append('svg') 91 | .attr('id', 'overlay-legend') 92 | .attr('width', width) 93 | .attr('height', height) 94 | .attr('viewBox', [0, 0, width, height]) 95 | .style('overflow', 'visible') 96 | .style('display', "block") 97 | 98 | 99 | 100 | const overlayGroup = svgOverlayLegend.append('g') 101 | 102 | 103 | 104 | const activityRectWidth = 40 105 | const activityRectHeight = 20 106 | const activityRectX = width/2 - activityRectWidth/2 107 | const activityRectY = height/2 - activityRectHeight/2 108 | overlayGroup.append('rect') 109 | .attr('x', activityRectX) 110 | .attr('y', activityRectY) 111 | .attr('width', activityRectWidth) 112 | .attr('height', activityRectHeight) 113 | .attr('stroke', 'black') 114 | .attr('fill', 'white') 115 | 116 | const overlaySize = 10 117 | const offset = 5 118 | 119 | //right overlay 120 | if(rightOverlayLegend != undefined){ 121 | let overlayX = activityRectX + (activityRectWidth - overlaySize + offset) 122 | let overlayY = activityRectY - overlaySize + offset 123 | overlayGroup.append('rect') 124 | .attr('x', overlayX) 125 | .attr('y', overlayY) 126 | .attr('width', overlaySize) 127 | .attr('height', overlaySize) 128 | .attr('stroke', 'black') 129 | .attr('fill', 'white') 130 | //legend 131 | let overlayChunks = rightOverlayLegend.split("\n") 132 | let overlayTextX = overlayX + overlaySize + offset 133 | let overlayTextY = overlayY 134 | let overlayText = overlayGroup.append('text') 135 | .attr('x', overlayTextX) 136 | .attr('y', overlayTextY) 137 | .style("font-size", "8px") 138 | overlayChunks.forEach(elt => overlayText.append('tspan') 139 | .attr('dy', '1em') 140 | .attr('x', overlayTextX) 141 | .text(elt)) 142 | } 143 | 144 | //left overlay 145 | if(leftOverlayLegend !== undefined){ 146 | let overlayX = activityRectX - overlaySize + offset 147 | let overlayY = activityRectY - overlaySize + offset 148 | overlayGroup.append('rect') 149 | .attr('x', overlayX) 150 | .attr('y', overlayY) 151 | .attr('width', overlaySize) 152 | .attr('height', overlaySize) 153 | .attr('stroke', 'black') 154 | .attr('fill', 'white') 155 | //legend 156 | let overlayChunks = leftOverlayLegend.split("\n") 157 | let overlayTextX = overlayX - 80 158 | let overlayTextY = overlayY 159 | let overlayText = overlayGroup.append('text') 160 | .attr('x', overlayTextX) 161 | .attr('y', overlayTextY) 162 | .style("font-size", "8px") 163 | overlayChunks.forEach(elt => overlayText.append('tspan') 164 | .attr('dy', '1em') 165 | .attr('x', overlayTextX) 166 | .text(elt)) 167 | } 168 | 169 | return svgOverlayLegend.node(); 170 | } 171 | 172 | -------------------------------------------------------------------------------- /backend-mock-server/src/assets/diagram.bpmn: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Flow_1 6 | 7 | 8 | 9 | Flow_1 10 | Flow_1w8ldp8 11 | 12 | 13 | Flow_1w8ldp8 14 | Flow_09havhs 15 | Flow_1pl5mvt 16 | 17 | 18 | 19 | Flow_1pl5mvt 20 | Flow_0odkkje 21 | Flow_1x81xda 22 | 23 | 24 | 25 | Flow_0odkkje 26 | Flow_0a65aek 27 | 28 | 29 | 30 | Flow_1x81xda 31 | Flow_0ba5hf8 32 | 33 | 34 | 35 | Flow_0ba5hf8 36 | Flow_0hy3hcb 37 | 38 | 39 | 40 | 41 | Flow_0hy3hcb 42 | 43 | 44 | Flow_0a65aek 45 | Flow_0ut6ewb 46 | Flow_09havhs 47 | 48 | 49 | 50 | Flow_0ut6ewb 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | -------------------------------------------------------------------------------- /backend-mock-server/src/assets/diagram.ts: -------------------------------------------------------------------------------- 1 | export const diagram = ` 2 | 3 | 4 | 5 | Flow_1 6 | 7 | 8 | 9 | Flow_1 10 | Flow_1w8ldp8 11 | 12 | 13 | Flow_1w8ldp8 14 | Flow_09havhs 15 | Flow_1pl5mvt 16 | 17 | 18 | 19 | Flow_1pl5mvt 20 | Flow_0odkkje 21 | Flow_1x81xda 22 | 23 | 24 | 25 | Flow_0odkkje 26 | Flow_0a65aek 27 | 28 | 29 | 30 | Flow_1x81xda 31 | Flow_0ba5hf8 32 | 33 | 34 | 35 | Flow_0ba5hf8 36 | Flow_0hy3hcb 37 | 38 | 39 | 40 | 41 | Flow_0hy3hcb 42 | 43 | 44 | Flow_0a65aek 45 | Flow_0ut6ewb 46 | Flow_09havhs 47 | 48 | 49 | 50 | Flow_0ut6ewb 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | `; 172 | -------------------------------------------------------------------------------- /third_party/bpmn-visualization.LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright © 2007 Free Software Foundation, Inc. 5 | 6 | Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | The GNU General Public License is a free, copyleft license for software and other kinds of works. 10 | 11 | The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. 12 | 13 | When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. 14 | 15 | To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. 16 | 17 | For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. 18 | 19 | Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. 20 | 21 | For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. 22 | 23 | Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. 24 | 25 | Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. 26 | 27 | The precise terms and conditions for copying, distribution and modification follow. 28 | 29 | TERMS AND CONDITIONS 30 | 0. Definitions. 31 | “This License” refers to version 3 of the GNU General Public License. 32 | 33 | “Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. 34 | 35 | “The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. 36 | 37 | To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. 38 | 39 | A “covered work” means either the unmodified Program or a work based on the Program. 40 | 41 | To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. 42 | 43 | To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. 44 | 45 | An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 46 | 47 | 1. Source Code. 48 | The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. 49 | 50 | A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. 51 | 52 | The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. 53 | 54 | The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. 55 | 56 | The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. 57 | 58 | The Corresponding Source for a work in source code form is that same work. 59 | 60 | 2. Basic Permissions. 61 | All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. 62 | 63 | You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. 64 | 65 | Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 66 | 67 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 68 | No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. 69 | 70 | When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 71 | 72 | 4. Conveying Verbatim Copies. 73 | You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. 74 | 75 | You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 76 | 77 | 5. Conveying Modified Source Versions. 78 | You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: 79 | 80 | a) The work must carry prominent notices stating that you modified it, and giving a relevant date. 81 | b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. 82 | c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. 83 | d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. 84 | A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 85 | 86 | 6. Conveying Non-Source Forms. 87 | You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: 88 | 89 | a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. 90 | b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. 91 | c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. 92 | d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. 93 | e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. 94 | A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. 95 | 96 | A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. 97 | 98 | “Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. 99 | 100 | If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). 101 | 102 | The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. 103 | 104 | Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 105 | 106 | 7. Additional Terms. 107 | “Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. 108 | 109 | When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. 110 | 111 | Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: 112 | 113 | a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or 114 | b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or 115 | c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or 116 | d) Limiting the use for publicity purposes of names of licensors or authors of the material; or 117 | e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or 118 | f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. 119 | All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. 120 | 121 | If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. 122 | 123 | Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 124 | 125 | 8. Termination. 126 | You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). 127 | 128 | However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. 129 | 130 | Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. 131 | 132 | Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 133 | 134 | 9. Acceptance Not Required for Having Copies. 135 | You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 136 | 137 | 10. Automatic Licensing of Downstream Recipients. 138 | Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. 139 | 140 | An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. 141 | 142 | You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 143 | 144 | 11. Patents. 145 | A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. 146 | 147 | A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. 148 | 149 | Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. 150 | 151 | In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. 152 | 153 | If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. 154 | 155 | If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. 156 | 157 | A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. 158 | 159 | Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 160 | 161 | 12. No Surrender of Others' Freedom. 162 | If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 163 | 164 | 13. Use with the GNU Affero General Public License. 165 | Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 166 | 167 | 14. Revised Versions of this License. 168 | The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. 169 | 170 | Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. 171 | 172 | If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. 173 | 174 | Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 175 | 176 | 15. Disclaimer of Warranty. 177 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 178 | 179 | 16. Limitation of Liability. 180 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 181 | 182 | 17. Interpretation of Sections 15 and 16. 183 | If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. 184 | 185 | END OF TERMS AND CONDITIONS 186 | 187 | How to Apply These Terms to Your New Programs 188 | If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. 189 | 190 | To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. 191 | 192 | 193 | Copyright (C) 194 | 195 | This program is free software: you can redistribute it and/or modify 196 | it under the terms of the GNU General Public License as published by 197 | the Free Software Foundation, either version 3 of the License, or 198 | (at your option) any later version. 199 | 200 | This program is distributed in the hope that it will be useful, 201 | but WITHOUT ANY WARRANTY; without even the implied warranty of 202 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 203 | GNU General Public License for more details. 204 | 205 | You should have received a copy of the GNU General Public License 206 | along with this program. If not, see . 207 | Also add information on how to contact you by electronic and paper mail. 208 | 209 | If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: 210 | 211 | Copyright (C) 212 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 213 | This is free software, and you are welcome to redistribute it 214 | under certain conditions; type `show c' for details. 215 | The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. 216 | 217 | You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . 218 | 219 | The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -------------------------------------------------------------------------------- /frontend/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bpmn-visualization-pm4py", 3 | "version": "0.0.0", 4 | "lockfileVersion": 2, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "bpmn-visualization-pm4py", 9 | "version": "0.0.0", 10 | "license": "GPL-3.0", 11 | "dependencies": { 12 | "bpmn-visualization": "^0.37.0", 13 | "d3": "^7.8.5", 14 | "spectre.css": "^0.5.9" 15 | }, 16 | "devDependencies": { 17 | "vite": "^4.3.9" 18 | } 19 | }, 20 | "node_modules/@esbuild/android-arm": { 21 | "version": "0.17.19", 22 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.19.tgz", 23 | "integrity": "sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==", 24 | "cpu": [ 25 | "arm" 26 | ], 27 | "dev": true, 28 | "optional": true, 29 | "os": [ 30 | "android" 31 | ], 32 | "engines": { 33 | "node": ">=12" 34 | } 35 | }, 36 | "node_modules/@esbuild/android-arm64": { 37 | "version": "0.17.19", 38 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz", 39 | "integrity": "sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==", 40 | "cpu": [ 41 | "arm64" 42 | ], 43 | "dev": true, 44 | "optional": true, 45 | "os": [ 46 | "android" 47 | ], 48 | "engines": { 49 | "node": ">=12" 50 | } 51 | }, 52 | "node_modules/@esbuild/android-x64": { 53 | "version": "0.17.19", 54 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.19.tgz", 55 | "integrity": "sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==", 56 | "cpu": [ 57 | "x64" 58 | ], 59 | "dev": true, 60 | "optional": true, 61 | "os": [ 62 | "android" 63 | ], 64 | "engines": { 65 | "node": ">=12" 66 | } 67 | }, 68 | "node_modules/@esbuild/darwin-arm64": { 69 | "version": "0.17.19", 70 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz", 71 | "integrity": "sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==", 72 | "cpu": [ 73 | "arm64" 74 | ], 75 | "dev": true, 76 | "optional": true, 77 | "os": [ 78 | "darwin" 79 | ], 80 | "engines": { 81 | "node": ">=12" 82 | } 83 | }, 84 | "node_modules/@esbuild/darwin-x64": { 85 | "version": "0.17.19", 86 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz", 87 | "integrity": "sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==", 88 | "cpu": [ 89 | "x64" 90 | ], 91 | "dev": true, 92 | "optional": true, 93 | "os": [ 94 | "darwin" 95 | ], 96 | "engines": { 97 | "node": ">=12" 98 | } 99 | }, 100 | "node_modules/@esbuild/freebsd-arm64": { 101 | "version": "0.17.19", 102 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz", 103 | "integrity": "sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==", 104 | "cpu": [ 105 | "arm64" 106 | ], 107 | "dev": true, 108 | "optional": true, 109 | "os": [ 110 | "freebsd" 111 | ], 112 | "engines": { 113 | "node": ">=12" 114 | } 115 | }, 116 | "node_modules/@esbuild/freebsd-x64": { 117 | "version": "0.17.19", 118 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz", 119 | "integrity": "sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==", 120 | "cpu": [ 121 | "x64" 122 | ], 123 | "dev": true, 124 | "optional": true, 125 | "os": [ 126 | "freebsd" 127 | ], 128 | "engines": { 129 | "node": ">=12" 130 | } 131 | }, 132 | "node_modules/@esbuild/linux-arm": { 133 | "version": "0.17.19", 134 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz", 135 | "integrity": "sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==", 136 | "cpu": [ 137 | "arm" 138 | ], 139 | "dev": true, 140 | "optional": true, 141 | "os": [ 142 | "linux" 143 | ], 144 | "engines": { 145 | "node": ">=12" 146 | } 147 | }, 148 | "node_modules/@esbuild/linux-arm64": { 149 | "version": "0.17.19", 150 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz", 151 | "integrity": "sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==", 152 | "cpu": [ 153 | "arm64" 154 | ], 155 | "dev": true, 156 | "optional": true, 157 | "os": [ 158 | "linux" 159 | ], 160 | "engines": { 161 | "node": ">=12" 162 | } 163 | }, 164 | "node_modules/@esbuild/linux-ia32": { 165 | "version": "0.17.19", 166 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz", 167 | "integrity": "sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==", 168 | "cpu": [ 169 | "ia32" 170 | ], 171 | "dev": true, 172 | "optional": true, 173 | "os": [ 174 | "linux" 175 | ], 176 | "engines": { 177 | "node": ">=12" 178 | } 179 | }, 180 | "node_modules/@esbuild/linux-loong64": { 181 | "version": "0.17.19", 182 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz", 183 | "integrity": "sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==", 184 | "cpu": [ 185 | "loong64" 186 | ], 187 | "dev": true, 188 | "optional": true, 189 | "os": [ 190 | "linux" 191 | ], 192 | "engines": { 193 | "node": ">=12" 194 | } 195 | }, 196 | "node_modules/@esbuild/linux-mips64el": { 197 | "version": "0.17.19", 198 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz", 199 | "integrity": "sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==", 200 | "cpu": [ 201 | "mips64el" 202 | ], 203 | "dev": true, 204 | "optional": true, 205 | "os": [ 206 | "linux" 207 | ], 208 | "engines": { 209 | "node": ">=12" 210 | } 211 | }, 212 | "node_modules/@esbuild/linux-ppc64": { 213 | "version": "0.17.19", 214 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz", 215 | "integrity": "sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==", 216 | "cpu": [ 217 | "ppc64" 218 | ], 219 | "dev": true, 220 | "optional": true, 221 | "os": [ 222 | "linux" 223 | ], 224 | "engines": { 225 | "node": ">=12" 226 | } 227 | }, 228 | "node_modules/@esbuild/linux-riscv64": { 229 | "version": "0.17.19", 230 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz", 231 | "integrity": "sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==", 232 | "cpu": [ 233 | "riscv64" 234 | ], 235 | "dev": true, 236 | "optional": true, 237 | "os": [ 238 | "linux" 239 | ], 240 | "engines": { 241 | "node": ">=12" 242 | } 243 | }, 244 | "node_modules/@esbuild/linux-s390x": { 245 | "version": "0.17.19", 246 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz", 247 | "integrity": "sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==", 248 | "cpu": [ 249 | "s390x" 250 | ], 251 | "dev": true, 252 | "optional": true, 253 | "os": [ 254 | "linux" 255 | ], 256 | "engines": { 257 | "node": ">=12" 258 | } 259 | }, 260 | "node_modules/@esbuild/linux-x64": { 261 | "version": "0.17.19", 262 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz", 263 | "integrity": "sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==", 264 | "cpu": [ 265 | "x64" 266 | ], 267 | "dev": true, 268 | "optional": true, 269 | "os": [ 270 | "linux" 271 | ], 272 | "engines": { 273 | "node": ">=12" 274 | } 275 | }, 276 | "node_modules/@esbuild/netbsd-x64": { 277 | "version": "0.17.19", 278 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz", 279 | "integrity": "sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==", 280 | "cpu": [ 281 | "x64" 282 | ], 283 | "dev": true, 284 | "optional": true, 285 | "os": [ 286 | "netbsd" 287 | ], 288 | "engines": { 289 | "node": ">=12" 290 | } 291 | }, 292 | "node_modules/@esbuild/openbsd-x64": { 293 | "version": "0.17.19", 294 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz", 295 | "integrity": "sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==", 296 | "cpu": [ 297 | "x64" 298 | ], 299 | "dev": true, 300 | "optional": true, 301 | "os": [ 302 | "openbsd" 303 | ], 304 | "engines": { 305 | "node": ">=12" 306 | } 307 | }, 308 | "node_modules/@esbuild/sunos-x64": { 309 | "version": "0.17.19", 310 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz", 311 | "integrity": "sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==", 312 | "cpu": [ 313 | "x64" 314 | ], 315 | "dev": true, 316 | "optional": true, 317 | "os": [ 318 | "sunos" 319 | ], 320 | "engines": { 321 | "node": ">=12" 322 | } 323 | }, 324 | "node_modules/@esbuild/win32-arm64": { 325 | "version": "0.17.19", 326 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz", 327 | "integrity": "sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==", 328 | "cpu": [ 329 | "arm64" 330 | ], 331 | "dev": true, 332 | "optional": true, 333 | "os": [ 334 | "win32" 335 | ], 336 | "engines": { 337 | "node": ">=12" 338 | } 339 | }, 340 | "node_modules/@esbuild/win32-ia32": { 341 | "version": "0.17.19", 342 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz", 343 | "integrity": "sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==", 344 | "cpu": [ 345 | "ia32" 346 | ], 347 | "dev": true, 348 | "optional": true, 349 | "os": [ 350 | "win32" 351 | ], 352 | "engines": { 353 | "node": ">=12" 354 | } 355 | }, 356 | "node_modules/@esbuild/win32-x64": { 357 | "version": "0.17.19", 358 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz", 359 | "integrity": "sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==", 360 | "cpu": [ 361 | "x64" 362 | ], 363 | "dev": true, 364 | "optional": true, 365 | "os": [ 366 | "win32" 367 | ], 368 | "engines": { 369 | "node": ">=12" 370 | } 371 | }, 372 | "node_modules/@typed-mxgraph/typed-mxgraph": { 373 | "version": "1.0.8", 374 | "resolved": "https://registry.npmjs.org/@typed-mxgraph/typed-mxgraph/-/typed-mxgraph-1.0.8.tgz", 375 | "integrity": "sha512-rzTbmD/XofRq0YZMY/BU9cjbCTw9q8rpIvWRhQO0DcgCx3+rpHTsVOk3pfuhcnUigUYNFkljmDkRuVjbl7zZoQ==" 376 | }, 377 | "node_modules/bpmn-visualization": { 378 | "version": "0.37.0", 379 | "resolved": "https://registry.npmjs.org/bpmn-visualization/-/bpmn-visualization-0.37.0.tgz", 380 | "integrity": "sha512-KZhFmiApyRp3gNXd+nZVz5Ff1R8CoYu86C1H0xLxspPOG4aCOATzjjW+S02XQyK/BfDyUIgeXCDvufQDf63l+A==", 381 | "dependencies": { 382 | "@typed-mxgraph/typed-mxgraph": "~1.0.8", 383 | "fast-xml-parser": "4.2.5", 384 | "lodash-es": "~4.17.21", 385 | "mxgraph": "4.2.2", 386 | "strnum": "1.0.5" 387 | } 388 | }, 389 | "node_modules/commander": { 390 | "version": "7.2.0", 391 | "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", 392 | "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", 393 | "engines": { 394 | "node": ">= 10" 395 | } 396 | }, 397 | "node_modules/d3": { 398 | "version": "7.8.5", 399 | "resolved": "https://registry.npmjs.org/d3/-/d3-7.8.5.tgz", 400 | "integrity": "sha512-JgoahDG51ncUfJu6wX/1vWQEqOflgXyl4MaHqlcSruTez7yhaRKR9i8VjjcQGeS2en/jnFivXuaIMnseMMt0XA==", 401 | "dependencies": { 402 | "d3-array": "3", 403 | "d3-axis": "3", 404 | "d3-brush": "3", 405 | "d3-chord": "3", 406 | "d3-color": "3", 407 | "d3-contour": "4", 408 | "d3-delaunay": "6", 409 | "d3-dispatch": "3", 410 | "d3-drag": "3", 411 | "d3-dsv": "3", 412 | "d3-ease": "3", 413 | "d3-fetch": "3", 414 | "d3-force": "3", 415 | "d3-format": "3", 416 | "d3-geo": "3", 417 | "d3-hierarchy": "3", 418 | "d3-interpolate": "3", 419 | "d3-path": "3", 420 | "d3-polygon": "3", 421 | "d3-quadtree": "3", 422 | "d3-random": "3", 423 | "d3-scale": "4", 424 | "d3-scale-chromatic": "3", 425 | "d3-selection": "3", 426 | "d3-shape": "3", 427 | "d3-time": "3", 428 | "d3-time-format": "4", 429 | "d3-timer": "3", 430 | "d3-transition": "3", 431 | "d3-zoom": "3" 432 | }, 433 | "engines": { 434 | "node": ">=12" 435 | } 436 | }, 437 | "node_modules/d3-array": { 438 | "version": "3.2.2", 439 | "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.2.tgz", 440 | "integrity": "sha512-yEEyEAbDrF8C6Ob2myOBLjwBLck1Z89jMGFee0oPsn95GqjerpaOA4ch+vc2l0FNFFwMD5N7OCSEN5eAlsUbgQ==", 441 | "dependencies": { 442 | "internmap": "1 - 2" 443 | }, 444 | "engines": { 445 | "node": ">=12" 446 | } 447 | }, 448 | "node_modules/d3-axis": { 449 | "version": "3.0.0", 450 | "resolved": "https://registry.npmjs.org/d3-axis/-/d3-axis-3.0.0.tgz", 451 | "integrity": "sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==", 452 | "engines": { 453 | "node": ">=12" 454 | } 455 | }, 456 | "node_modules/d3-brush": { 457 | "version": "3.0.0", 458 | "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-3.0.0.tgz", 459 | "integrity": "sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==", 460 | "dependencies": { 461 | "d3-dispatch": "1 - 3", 462 | "d3-drag": "2 - 3", 463 | "d3-interpolate": "1 - 3", 464 | "d3-selection": "3", 465 | "d3-transition": "3" 466 | }, 467 | "engines": { 468 | "node": ">=12" 469 | } 470 | }, 471 | "node_modules/d3-chord": { 472 | "version": "3.0.1", 473 | "resolved": "https://registry.npmjs.org/d3-chord/-/d3-chord-3.0.1.tgz", 474 | "integrity": "sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==", 475 | "dependencies": { 476 | "d3-path": "1 - 3" 477 | }, 478 | "engines": { 479 | "node": ">=12" 480 | } 481 | }, 482 | "node_modules/d3-color": { 483 | "version": "3.1.0", 484 | "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", 485 | "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", 486 | "engines": { 487 | "node": ">=12" 488 | } 489 | }, 490 | "node_modules/d3-contour": { 491 | "version": "4.0.2", 492 | "resolved": "https://registry.npmjs.org/d3-contour/-/d3-contour-4.0.2.tgz", 493 | "integrity": "sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==", 494 | "dependencies": { 495 | "d3-array": "^3.2.0" 496 | }, 497 | "engines": { 498 | "node": ">=12" 499 | } 500 | }, 501 | "node_modules/d3-delaunay": { 502 | "version": "6.0.2", 503 | "resolved": "https://registry.npmjs.org/d3-delaunay/-/d3-delaunay-6.0.2.tgz", 504 | "integrity": "sha512-IMLNldruDQScrcfT+MWnazhHbDJhcRJyOEBAJfwQnHle1RPh6WDuLvxNArUju2VSMSUuKlY5BGHRJ2cYyoFLQQ==", 505 | "dependencies": { 506 | "delaunator": "5" 507 | }, 508 | "engines": { 509 | "node": ">=12" 510 | } 511 | }, 512 | "node_modules/d3-dispatch": { 513 | "version": "3.0.1", 514 | "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz", 515 | "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==", 516 | "engines": { 517 | "node": ">=12" 518 | } 519 | }, 520 | "node_modules/d3-drag": { 521 | "version": "3.0.0", 522 | "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz", 523 | "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==", 524 | "dependencies": { 525 | "d3-dispatch": "1 - 3", 526 | "d3-selection": "3" 527 | }, 528 | "engines": { 529 | "node": ">=12" 530 | } 531 | }, 532 | "node_modules/d3-dsv": { 533 | "version": "3.0.1", 534 | "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-3.0.1.tgz", 535 | "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==", 536 | "dependencies": { 537 | "commander": "7", 538 | "iconv-lite": "0.6", 539 | "rw": "1" 540 | }, 541 | "bin": { 542 | "csv2json": "bin/dsv2json.js", 543 | "csv2tsv": "bin/dsv2dsv.js", 544 | "dsv2dsv": "bin/dsv2dsv.js", 545 | "dsv2json": "bin/dsv2json.js", 546 | "json2csv": "bin/json2dsv.js", 547 | "json2dsv": "bin/json2dsv.js", 548 | "json2tsv": "bin/json2dsv.js", 549 | "tsv2csv": "bin/dsv2dsv.js", 550 | "tsv2json": "bin/dsv2json.js" 551 | }, 552 | "engines": { 553 | "node": ">=12" 554 | } 555 | }, 556 | "node_modules/d3-ease": { 557 | "version": "3.0.1", 558 | "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", 559 | "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", 560 | "engines": { 561 | "node": ">=12" 562 | } 563 | }, 564 | "node_modules/d3-fetch": { 565 | "version": "3.0.1", 566 | "resolved": "https://registry.npmjs.org/d3-fetch/-/d3-fetch-3.0.1.tgz", 567 | "integrity": "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==", 568 | "dependencies": { 569 | "d3-dsv": "1 - 3" 570 | }, 571 | "engines": { 572 | "node": ">=12" 573 | } 574 | }, 575 | "node_modules/d3-force": { 576 | "version": "3.0.0", 577 | "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-3.0.0.tgz", 578 | "integrity": "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==", 579 | "dependencies": { 580 | "d3-dispatch": "1 - 3", 581 | "d3-quadtree": "1 - 3", 582 | "d3-timer": "1 - 3" 583 | }, 584 | "engines": { 585 | "node": ">=12" 586 | } 587 | }, 588 | "node_modules/d3-format": { 589 | "version": "3.1.0", 590 | "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.0.tgz", 591 | "integrity": "sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==", 592 | "engines": { 593 | "node": ">=12" 594 | } 595 | }, 596 | "node_modules/d3-geo": { 597 | "version": "3.1.0", 598 | "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-3.1.0.tgz", 599 | "integrity": "sha512-JEo5HxXDdDYXCaWdwLRt79y7giK8SbhZJbFWXqbRTolCHFI5jRqteLzCsq51NKbUoX0PjBVSohxrx+NoOUujYA==", 600 | "dependencies": { 601 | "d3-array": "2.5.0 - 3" 602 | }, 603 | "engines": { 604 | "node": ">=12" 605 | } 606 | }, 607 | "node_modules/d3-hierarchy": { 608 | "version": "3.1.2", 609 | "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz", 610 | "integrity": "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==", 611 | "engines": { 612 | "node": ">=12" 613 | } 614 | }, 615 | "node_modules/d3-interpolate": { 616 | "version": "3.0.1", 617 | "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", 618 | "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", 619 | "dependencies": { 620 | "d3-color": "1 - 3" 621 | }, 622 | "engines": { 623 | "node": ">=12" 624 | } 625 | }, 626 | "node_modules/d3-path": { 627 | "version": "3.1.0", 628 | "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", 629 | "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", 630 | "engines": { 631 | "node": ">=12" 632 | } 633 | }, 634 | "node_modules/d3-polygon": { 635 | "version": "3.0.1", 636 | "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-3.0.1.tgz", 637 | "integrity": "sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==", 638 | "engines": { 639 | "node": ">=12" 640 | } 641 | }, 642 | "node_modules/d3-quadtree": { 643 | "version": "3.0.1", 644 | "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-3.0.1.tgz", 645 | "integrity": "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==", 646 | "engines": { 647 | "node": ">=12" 648 | } 649 | }, 650 | "node_modules/d3-random": { 651 | "version": "3.0.1", 652 | "resolved": "https://registry.npmjs.org/d3-random/-/d3-random-3.0.1.tgz", 653 | "integrity": "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==", 654 | "engines": { 655 | "node": ">=12" 656 | } 657 | }, 658 | "node_modules/d3-scale": { 659 | "version": "4.0.2", 660 | "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", 661 | "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", 662 | "dependencies": { 663 | "d3-array": "2.10.0 - 3", 664 | "d3-format": "1 - 3", 665 | "d3-interpolate": "1.2.0 - 3", 666 | "d3-time": "2.1.1 - 3", 667 | "d3-time-format": "2 - 4" 668 | }, 669 | "engines": { 670 | "node": ">=12" 671 | } 672 | }, 673 | "node_modules/d3-scale-chromatic": { 674 | "version": "3.0.0", 675 | "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.0.0.tgz", 676 | "integrity": "sha512-Lx9thtxAKrO2Pq6OO2Ua474opeziKr279P/TKZsMAhYyNDD3EnCffdbgeSYN5O7m2ByQsxtuP2CSDczNUIZ22g==", 677 | "dependencies": { 678 | "d3-color": "1 - 3", 679 | "d3-interpolate": "1 - 3" 680 | }, 681 | "engines": { 682 | "node": ">=12" 683 | } 684 | }, 685 | "node_modules/d3-selection": { 686 | "version": "3.0.0", 687 | "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", 688 | "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", 689 | "engines": { 690 | "node": ">=12" 691 | } 692 | }, 693 | "node_modules/d3-shape": { 694 | "version": "3.2.0", 695 | "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", 696 | "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", 697 | "dependencies": { 698 | "d3-path": "^3.1.0" 699 | }, 700 | "engines": { 701 | "node": ">=12" 702 | } 703 | }, 704 | "node_modules/d3-time": { 705 | "version": "3.1.0", 706 | "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", 707 | "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", 708 | "dependencies": { 709 | "d3-array": "2 - 3" 710 | }, 711 | "engines": { 712 | "node": ">=12" 713 | } 714 | }, 715 | "node_modules/d3-time-format": { 716 | "version": "4.1.0", 717 | "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", 718 | "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", 719 | "dependencies": { 720 | "d3-time": "1 - 3" 721 | }, 722 | "engines": { 723 | "node": ">=12" 724 | } 725 | }, 726 | "node_modules/d3-timer": { 727 | "version": "3.0.1", 728 | "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", 729 | "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", 730 | "engines": { 731 | "node": ">=12" 732 | } 733 | }, 734 | "node_modules/d3-transition": { 735 | "version": "3.0.1", 736 | "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz", 737 | "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==", 738 | "dependencies": { 739 | "d3-color": "1 - 3", 740 | "d3-dispatch": "1 - 3", 741 | "d3-ease": "1 - 3", 742 | "d3-interpolate": "1 - 3", 743 | "d3-timer": "1 - 3" 744 | }, 745 | "engines": { 746 | "node": ">=12" 747 | }, 748 | "peerDependencies": { 749 | "d3-selection": "2 - 3" 750 | } 751 | }, 752 | "node_modules/d3-zoom": { 753 | "version": "3.0.0", 754 | "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz", 755 | "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==", 756 | "dependencies": { 757 | "d3-dispatch": "1 - 3", 758 | "d3-drag": "2 - 3", 759 | "d3-interpolate": "1 - 3", 760 | "d3-selection": "2 - 3", 761 | "d3-transition": "2 - 3" 762 | }, 763 | "engines": { 764 | "node": ">=12" 765 | } 766 | }, 767 | "node_modules/delaunator": { 768 | "version": "5.0.0", 769 | "resolved": "https://registry.npmjs.org/delaunator/-/delaunator-5.0.0.tgz", 770 | "integrity": "sha512-AyLvtyJdbv/U1GkiS6gUUzclRoAY4Gs75qkMygJJhU75LW4DNuSF2RMzpxs9jw9Oz1BobHjTdkG3zdP55VxAqw==", 771 | "dependencies": { 772 | "robust-predicates": "^3.0.0" 773 | } 774 | }, 775 | "node_modules/esbuild": { 776 | "version": "0.17.19", 777 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.19.tgz", 778 | "integrity": "sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==", 779 | "dev": true, 780 | "hasInstallScript": true, 781 | "bin": { 782 | "esbuild": "bin/esbuild" 783 | }, 784 | "engines": { 785 | "node": ">=12" 786 | }, 787 | "optionalDependencies": { 788 | "@esbuild/android-arm": "0.17.19", 789 | "@esbuild/android-arm64": "0.17.19", 790 | "@esbuild/android-x64": "0.17.19", 791 | "@esbuild/darwin-arm64": "0.17.19", 792 | "@esbuild/darwin-x64": "0.17.19", 793 | "@esbuild/freebsd-arm64": "0.17.19", 794 | "@esbuild/freebsd-x64": "0.17.19", 795 | "@esbuild/linux-arm": "0.17.19", 796 | "@esbuild/linux-arm64": "0.17.19", 797 | "@esbuild/linux-ia32": "0.17.19", 798 | "@esbuild/linux-loong64": "0.17.19", 799 | "@esbuild/linux-mips64el": "0.17.19", 800 | "@esbuild/linux-ppc64": "0.17.19", 801 | "@esbuild/linux-riscv64": "0.17.19", 802 | "@esbuild/linux-s390x": "0.17.19", 803 | "@esbuild/linux-x64": "0.17.19", 804 | "@esbuild/netbsd-x64": "0.17.19", 805 | "@esbuild/openbsd-x64": "0.17.19", 806 | "@esbuild/sunos-x64": "0.17.19", 807 | "@esbuild/win32-arm64": "0.17.19", 808 | "@esbuild/win32-ia32": "0.17.19", 809 | "@esbuild/win32-x64": "0.17.19" 810 | } 811 | }, 812 | "node_modules/fast-xml-parser": { 813 | "version": "4.2.5", 814 | "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", 815 | "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==", 816 | "funding": [ 817 | { 818 | "type": "paypal", 819 | "url": "https://paypal.me/naturalintelligence" 820 | }, 821 | { 822 | "type": "github", 823 | "url": "https://github.com/sponsors/NaturalIntelligence" 824 | } 825 | ], 826 | "dependencies": { 827 | "strnum": "^1.0.5" 828 | }, 829 | "bin": { 830 | "fxparser": "src/cli/cli.js" 831 | } 832 | }, 833 | "node_modules/fsevents": { 834 | "version": "2.3.2", 835 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 836 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 837 | "dev": true, 838 | "hasInstallScript": true, 839 | "optional": true, 840 | "os": [ 841 | "darwin" 842 | ], 843 | "engines": { 844 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 845 | } 846 | }, 847 | "node_modules/iconv-lite": { 848 | "version": "0.6.3", 849 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", 850 | "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", 851 | "dependencies": { 852 | "safer-buffer": ">= 2.1.2 < 3.0.0" 853 | }, 854 | "engines": { 855 | "node": ">=0.10.0" 856 | } 857 | }, 858 | "node_modules/internmap": { 859 | "version": "2.0.3", 860 | "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", 861 | "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==", 862 | "engines": { 863 | "node": ">=12" 864 | } 865 | }, 866 | "node_modules/lodash-es": { 867 | "version": "4.17.21", 868 | "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", 869 | "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" 870 | }, 871 | "node_modules/mxgraph": { 872 | "version": "4.2.2", 873 | "resolved": "https://registry.npmjs.org/mxgraph/-/mxgraph-4.2.2.tgz", 874 | "integrity": "sha512-FrJc5AxzXSqiQNF+8CyJk6VxuKO4UVPgw32FZuFZ3X9W+JqOAQBTokZhh0ZkEqGpEOyp3z778ssmBTvdrTAdqw==", 875 | "deprecated": "Package no longer supported. Use at your own risk" 876 | }, 877 | "node_modules/nanoid": { 878 | "version": "3.3.6", 879 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", 880 | "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", 881 | "dev": true, 882 | "funding": [ 883 | { 884 | "type": "github", 885 | "url": "https://github.com/sponsors/ai" 886 | } 887 | ], 888 | "bin": { 889 | "nanoid": "bin/nanoid.cjs" 890 | }, 891 | "engines": { 892 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 893 | } 894 | }, 895 | "node_modules/picocolors": { 896 | "version": "1.0.0", 897 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 898 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", 899 | "dev": true 900 | }, 901 | "node_modules/postcss": { 902 | "version": "8.4.24", 903 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz", 904 | "integrity": "sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==", 905 | "dev": true, 906 | "funding": [ 907 | { 908 | "type": "opencollective", 909 | "url": "https://opencollective.com/postcss/" 910 | }, 911 | { 912 | "type": "tidelift", 913 | "url": "https://tidelift.com/funding/github/npm/postcss" 914 | }, 915 | { 916 | "type": "github", 917 | "url": "https://github.com/sponsors/ai" 918 | } 919 | ], 920 | "dependencies": { 921 | "nanoid": "^3.3.6", 922 | "picocolors": "^1.0.0", 923 | "source-map-js": "^1.0.2" 924 | }, 925 | "engines": { 926 | "node": "^10 || ^12 || >=14" 927 | } 928 | }, 929 | "node_modules/robust-predicates": { 930 | "version": "3.0.1", 931 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.1.tgz", 932 | "integrity": "sha512-ndEIpszUHiG4HtDsQLeIuMvRsDnn8c8rYStabochtUeCvfuvNptb5TUbVD68LRAILPX7p9nqQGh4xJgn3EHS/g==" 933 | }, 934 | "node_modules/rollup": { 935 | "version": "3.25.3", 936 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.25.3.tgz", 937 | "integrity": "sha512-ZT279hx8gszBj9uy5FfhoG4bZx8c+0A1sbqtr7Q3KNWIizpTdDEPZbV2xcbvHsnFp4MavCQYZyzApJ+virB8Yw==", 938 | "dev": true, 939 | "bin": { 940 | "rollup": "dist/bin/rollup" 941 | }, 942 | "engines": { 943 | "node": ">=14.18.0", 944 | "npm": ">=8.0.0" 945 | }, 946 | "optionalDependencies": { 947 | "fsevents": "~2.3.2" 948 | } 949 | }, 950 | "node_modules/rw": { 951 | "version": "1.3.3", 952 | "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", 953 | "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==" 954 | }, 955 | "node_modules/safer-buffer": { 956 | "version": "2.1.2", 957 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 958 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 959 | }, 960 | "node_modules/source-map-js": { 961 | "version": "1.0.2", 962 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", 963 | "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", 964 | "dev": true, 965 | "engines": { 966 | "node": ">=0.10.0" 967 | } 968 | }, 969 | "node_modules/spectre.css": { 970 | "version": "0.5.9", 971 | "resolved": "https://registry.npmjs.org/spectre.css/-/spectre.css-0.5.9.tgz", 972 | "integrity": "sha512-9jUqwZmCnvflrxFGcK+ize43TvjwDjqMwZPVubEtSIHzvinH0TBUESm1LcOJx3Ur7bdPaeOHQIjOqBl1Y5kLFw==" 973 | }, 974 | "node_modules/strnum": { 975 | "version": "1.0.5", 976 | "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", 977 | "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==" 978 | }, 979 | "node_modules/vite": { 980 | "version": "4.3.9", 981 | "resolved": "https://registry.npmjs.org/vite/-/vite-4.3.9.tgz", 982 | "integrity": "sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg==", 983 | "dev": true, 984 | "dependencies": { 985 | "esbuild": "^0.17.5", 986 | "postcss": "^8.4.23", 987 | "rollup": "^3.21.0" 988 | }, 989 | "bin": { 990 | "vite": "bin/vite.js" 991 | }, 992 | "engines": { 993 | "node": "^14.18.0 || >=16.0.0" 994 | }, 995 | "optionalDependencies": { 996 | "fsevents": "~2.3.2" 997 | }, 998 | "peerDependencies": { 999 | "@types/node": ">= 14", 1000 | "less": "*", 1001 | "sass": "*", 1002 | "stylus": "*", 1003 | "sugarss": "*", 1004 | "terser": "^5.4.0" 1005 | }, 1006 | "peerDependenciesMeta": { 1007 | "@types/node": { 1008 | "optional": true 1009 | }, 1010 | "less": { 1011 | "optional": true 1012 | }, 1013 | "sass": { 1014 | "optional": true 1015 | }, 1016 | "stylus": { 1017 | "optional": true 1018 | }, 1019 | "sugarss": { 1020 | "optional": true 1021 | }, 1022 | "terser": { 1023 | "optional": true 1024 | } 1025 | } 1026 | } 1027 | }, 1028 | "dependencies": { 1029 | "@esbuild/android-arm": { 1030 | "version": "0.17.19", 1031 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.19.tgz", 1032 | "integrity": "sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==", 1033 | "dev": true, 1034 | "optional": true 1035 | }, 1036 | "@esbuild/android-arm64": { 1037 | "version": "0.17.19", 1038 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz", 1039 | "integrity": "sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==", 1040 | "dev": true, 1041 | "optional": true 1042 | }, 1043 | "@esbuild/android-x64": { 1044 | "version": "0.17.19", 1045 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.19.tgz", 1046 | "integrity": "sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==", 1047 | "dev": true, 1048 | "optional": true 1049 | }, 1050 | "@esbuild/darwin-arm64": { 1051 | "version": "0.17.19", 1052 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz", 1053 | "integrity": "sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==", 1054 | "dev": true, 1055 | "optional": true 1056 | }, 1057 | "@esbuild/darwin-x64": { 1058 | "version": "0.17.19", 1059 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz", 1060 | "integrity": "sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==", 1061 | "dev": true, 1062 | "optional": true 1063 | }, 1064 | "@esbuild/freebsd-arm64": { 1065 | "version": "0.17.19", 1066 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz", 1067 | "integrity": "sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==", 1068 | "dev": true, 1069 | "optional": true 1070 | }, 1071 | "@esbuild/freebsd-x64": { 1072 | "version": "0.17.19", 1073 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz", 1074 | "integrity": "sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==", 1075 | "dev": true, 1076 | "optional": true 1077 | }, 1078 | "@esbuild/linux-arm": { 1079 | "version": "0.17.19", 1080 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz", 1081 | "integrity": "sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==", 1082 | "dev": true, 1083 | "optional": true 1084 | }, 1085 | "@esbuild/linux-arm64": { 1086 | "version": "0.17.19", 1087 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz", 1088 | "integrity": "sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==", 1089 | "dev": true, 1090 | "optional": true 1091 | }, 1092 | "@esbuild/linux-ia32": { 1093 | "version": "0.17.19", 1094 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz", 1095 | "integrity": "sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==", 1096 | "dev": true, 1097 | "optional": true 1098 | }, 1099 | "@esbuild/linux-loong64": { 1100 | "version": "0.17.19", 1101 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz", 1102 | "integrity": "sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==", 1103 | "dev": true, 1104 | "optional": true 1105 | }, 1106 | "@esbuild/linux-mips64el": { 1107 | "version": "0.17.19", 1108 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz", 1109 | "integrity": "sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==", 1110 | "dev": true, 1111 | "optional": true 1112 | }, 1113 | "@esbuild/linux-ppc64": { 1114 | "version": "0.17.19", 1115 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz", 1116 | "integrity": "sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==", 1117 | "dev": true, 1118 | "optional": true 1119 | }, 1120 | "@esbuild/linux-riscv64": { 1121 | "version": "0.17.19", 1122 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz", 1123 | "integrity": "sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==", 1124 | "dev": true, 1125 | "optional": true 1126 | }, 1127 | "@esbuild/linux-s390x": { 1128 | "version": "0.17.19", 1129 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz", 1130 | "integrity": "sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==", 1131 | "dev": true, 1132 | "optional": true 1133 | }, 1134 | "@esbuild/linux-x64": { 1135 | "version": "0.17.19", 1136 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz", 1137 | "integrity": "sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==", 1138 | "dev": true, 1139 | "optional": true 1140 | }, 1141 | "@esbuild/netbsd-x64": { 1142 | "version": "0.17.19", 1143 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz", 1144 | "integrity": "sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==", 1145 | "dev": true, 1146 | "optional": true 1147 | }, 1148 | "@esbuild/openbsd-x64": { 1149 | "version": "0.17.19", 1150 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz", 1151 | "integrity": "sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==", 1152 | "dev": true, 1153 | "optional": true 1154 | }, 1155 | "@esbuild/sunos-x64": { 1156 | "version": "0.17.19", 1157 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz", 1158 | "integrity": "sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==", 1159 | "dev": true, 1160 | "optional": true 1161 | }, 1162 | "@esbuild/win32-arm64": { 1163 | "version": "0.17.19", 1164 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz", 1165 | "integrity": "sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==", 1166 | "dev": true, 1167 | "optional": true 1168 | }, 1169 | "@esbuild/win32-ia32": { 1170 | "version": "0.17.19", 1171 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz", 1172 | "integrity": "sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==", 1173 | "dev": true, 1174 | "optional": true 1175 | }, 1176 | "@esbuild/win32-x64": { 1177 | "version": "0.17.19", 1178 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz", 1179 | "integrity": "sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==", 1180 | "dev": true, 1181 | "optional": true 1182 | }, 1183 | "@typed-mxgraph/typed-mxgraph": { 1184 | "version": "1.0.8", 1185 | "resolved": "https://registry.npmjs.org/@typed-mxgraph/typed-mxgraph/-/typed-mxgraph-1.0.8.tgz", 1186 | "integrity": "sha512-rzTbmD/XofRq0YZMY/BU9cjbCTw9q8rpIvWRhQO0DcgCx3+rpHTsVOk3pfuhcnUigUYNFkljmDkRuVjbl7zZoQ==" 1187 | }, 1188 | "bpmn-visualization": { 1189 | "version": "0.37.0", 1190 | "resolved": "https://registry.npmjs.org/bpmn-visualization/-/bpmn-visualization-0.37.0.tgz", 1191 | "integrity": "sha512-KZhFmiApyRp3gNXd+nZVz5Ff1R8CoYu86C1H0xLxspPOG4aCOATzjjW+S02XQyK/BfDyUIgeXCDvufQDf63l+A==", 1192 | "requires": { 1193 | "@typed-mxgraph/typed-mxgraph": "~1.0.8", 1194 | "fast-xml-parser": "4.2.5", 1195 | "lodash-es": "~4.17.21", 1196 | "mxgraph": "4.2.2", 1197 | "strnum": "1.0.5" 1198 | } 1199 | }, 1200 | "commander": { 1201 | "version": "7.2.0", 1202 | "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", 1203 | "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==" 1204 | }, 1205 | "d3": { 1206 | "version": "7.8.5", 1207 | "resolved": "https://registry.npmjs.org/d3/-/d3-7.8.5.tgz", 1208 | "integrity": "sha512-JgoahDG51ncUfJu6wX/1vWQEqOflgXyl4MaHqlcSruTez7yhaRKR9i8VjjcQGeS2en/jnFivXuaIMnseMMt0XA==", 1209 | "requires": { 1210 | "d3-array": "3", 1211 | "d3-axis": "3", 1212 | "d3-brush": "3", 1213 | "d3-chord": "3", 1214 | "d3-color": "3", 1215 | "d3-contour": "4", 1216 | "d3-delaunay": "6", 1217 | "d3-dispatch": "3", 1218 | "d3-drag": "3", 1219 | "d3-dsv": "3", 1220 | "d3-ease": "3", 1221 | "d3-fetch": "3", 1222 | "d3-force": "3", 1223 | "d3-format": "3", 1224 | "d3-geo": "3", 1225 | "d3-hierarchy": "3", 1226 | "d3-interpolate": "3", 1227 | "d3-path": "3", 1228 | "d3-polygon": "3", 1229 | "d3-quadtree": "3", 1230 | "d3-random": "3", 1231 | "d3-scale": "4", 1232 | "d3-scale-chromatic": "3", 1233 | "d3-selection": "3", 1234 | "d3-shape": "3", 1235 | "d3-time": "3", 1236 | "d3-time-format": "4", 1237 | "d3-timer": "3", 1238 | "d3-transition": "3", 1239 | "d3-zoom": "3" 1240 | } 1241 | }, 1242 | "d3-array": { 1243 | "version": "3.2.2", 1244 | "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.2.tgz", 1245 | "integrity": "sha512-yEEyEAbDrF8C6Ob2myOBLjwBLck1Z89jMGFee0oPsn95GqjerpaOA4ch+vc2l0FNFFwMD5N7OCSEN5eAlsUbgQ==", 1246 | "requires": { 1247 | "internmap": "1 - 2" 1248 | } 1249 | }, 1250 | "d3-axis": { 1251 | "version": "3.0.0", 1252 | "resolved": "https://registry.npmjs.org/d3-axis/-/d3-axis-3.0.0.tgz", 1253 | "integrity": "sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==" 1254 | }, 1255 | "d3-brush": { 1256 | "version": "3.0.0", 1257 | "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-3.0.0.tgz", 1258 | "integrity": "sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==", 1259 | "requires": { 1260 | "d3-dispatch": "1 - 3", 1261 | "d3-drag": "2 - 3", 1262 | "d3-interpolate": "1 - 3", 1263 | "d3-selection": "3", 1264 | "d3-transition": "3" 1265 | } 1266 | }, 1267 | "d3-chord": { 1268 | "version": "3.0.1", 1269 | "resolved": "https://registry.npmjs.org/d3-chord/-/d3-chord-3.0.1.tgz", 1270 | "integrity": "sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==", 1271 | "requires": { 1272 | "d3-path": "1 - 3" 1273 | } 1274 | }, 1275 | "d3-color": { 1276 | "version": "3.1.0", 1277 | "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", 1278 | "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==" 1279 | }, 1280 | "d3-contour": { 1281 | "version": "4.0.2", 1282 | "resolved": "https://registry.npmjs.org/d3-contour/-/d3-contour-4.0.2.tgz", 1283 | "integrity": "sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==", 1284 | "requires": { 1285 | "d3-array": "^3.2.0" 1286 | } 1287 | }, 1288 | "d3-delaunay": { 1289 | "version": "6.0.2", 1290 | "resolved": "https://registry.npmjs.org/d3-delaunay/-/d3-delaunay-6.0.2.tgz", 1291 | "integrity": "sha512-IMLNldruDQScrcfT+MWnazhHbDJhcRJyOEBAJfwQnHle1RPh6WDuLvxNArUju2VSMSUuKlY5BGHRJ2cYyoFLQQ==", 1292 | "requires": { 1293 | "delaunator": "5" 1294 | } 1295 | }, 1296 | "d3-dispatch": { 1297 | "version": "3.0.1", 1298 | "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz", 1299 | "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==" 1300 | }, 1301 | "d3-drag": { 1302 | "version": "3.0.0", 1303 | "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz", 1304 | "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==", 1305 | "requires": { 1306 | "d3-dispatch": "1 - 3", 1307 | "d3-selection": "3" 1308 | } 1309 | }, 1310 | "d3-dsv": { 1311 | "version": "3.0.1", 1312 | "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-3.0.1.tgz", 1313 | "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==", 1314 | "requires": { 1315 | "commander": "7", 1316 | "iconv-lite": "0.6", 1317 | "rw": "1" 1318 | } 1319 | }, 1320 | "d3-ease": { 1321 | "version": "3.0.1", 1322 | "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", 1323 | "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==" 1324 | }, 1325 | "d3-fetch": { 1326 | "version": "3.0.1", 1327 | "resolved": "https://registry.npmjs.org/d3-fetch/-/d3-fetch-3.0.1.tgz", 1328 | "integrity": "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==", 1329 | "requires": { 1330 | "d3-dsv": "1 - 3" 1331 | } 1332 | }, 1333 | "d3-force": { 1334 | "version": "3.0.0", 1335 | "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-3.0.0.tgz", 1336 | "integrity": "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==", 1337 | "requires": { 1338 | "d3-dispatch": "1 - 3", 1339 | "d3-quadtree": "1 - 3", 1340 | "d3-timer": "1 - 3" 1341 | } 1342 | }, 1343 | "d3-format": { 1344 | "version": "3.1.0", 1345 | "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.0.tgz", 1346 | "integrity": "sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==" 1347 | }, 1348 | "d3-geo": { 1349 | "version": "3.1.0", 1350 | "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-3.1.0.tgz", 1351 | "integrity": "sha512-JEo5HxXDdDYXCaWdwLRt79y7giK8SbhZJbFWXqbRTolCHFI5jRqteLzCsq51NKbUoX0PjBVSohxrx+NoOUujYA==", 1352 | "requires": { 1353 | "d3-array": "2.5.0 - 3" 1354 | } 1355 | }, 1356 | "d3-hierarchy": { 1357 | "version": "3.1.2", 1358 | "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz", 1359 | "integrity": "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==" 1360 | }, 1361 | "d3-interpolate": { 1362 | "version": "3.0.1", 1363 | "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", 1364 | "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", 1365 | "requires": { 1366 | "d3-color": "1 - 3" 1367 | } 1368 | }, 1369 | "d3-path": { 1370 | "version": "3.1.0", 1371 | "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", 1372 | "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==" 1373 | }, 1374 | "d3-polygon": { 1375 | "version": "3.0.1", 1376 | "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-3.0.1.tgz", 1377 | "integrity": "sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==" 1378 | }, 1379 | "d3-quadtree": { 1380 | "version": "3.0.1", 1381 | "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-3.0.1.tgz", 1382 | "integrity": "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==" 1383 | }, 1384 | "d3-random": { 1385 | "version": "3.0.1", 1386 | "resolved": "https://registry.npmjs.org/d3-random/-/d3-random-3.0.1.tgz", 1387 | "integrity": "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==" 1388 | }, 1389 | "d3-scale": { 1390 | "version": "4.0.2", 1391 | "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", 1392 | "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", 1393 | "requires": { 1394 | "d3-array": "2.10.0 - 3", 1395 | "d3-format": "1 - 3", 1396 | "d3-interpolate": "1.2.0 - 3", 1397 | "d3-time": "2.1.1 - 3", 1398 | "d3-time-format": "2 - 4" 1399 | } 1400 | }, 1401 | "d3-scale-chromatic": { 1402 | "version": "3.0.0", 1403 | "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.0.0.tgz", 1404 | "integrity": "sha512-Lx9thtxAKrO2Pq6OO2Ua474opeziKr279P/TKZsMAhYyNDD3EnCffdbgeSYN5O7m2ByQsxtuP2CSDczNUIZ22g==", 1405 | "requires": { 1406 | "d3-color": "1 - 3", 1407 | "d3-interpolate": "1 - 3" 1408 | } 1409 | }, 1410 | "d3-selection": { 1411 | "version": "3.0.0", 1412 | "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", 1413 | "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==" 1414 | }, 1415 | "d3-shape": { 1416 | "version": "3.2.0", 1417 | "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", 1418 | "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", 1419 | "requires": { 1420 | "d3-path": "^3.1.0" 1421 | } 1422 | }, 1423 | "d3-time": { 1424 | "version": "3.1.0", 1425 | "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", 1426 | "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", 1427 | "requires": { 1428 | "d3-array": "2 - 3" 1429 | } 1430 | }, 1431 | "d3-time-format": { 1432 | "version": "4.1.0", 1433 | "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", 1434 | "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", 1435 | "requires": { 1436 | "d3-time": "1 - 3" 1437 | } 1438 | }, 1439 | "d3-timer": { 1440 | "version": "3.0.1", 1441 | "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", 1442 | "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==" 1443 | }, 1444 | "d3-transition": { 1445 | "version": "3.0.1", 1446 | "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz", 1447 | "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==", 1448 | "requires": { 1449 | "d3-color": "1 - 3", 1450 | "d3-dispatch": "1 - 3", 1451 | "d3-ease": "1 - 3", 1452 | "d3-interpolate": "1 - 3", 1453 | "d3-timer": "1 - 3" 1454 | } 1455 | }, 1456 | "d3-zoom": { 1457 | "version": "3.0.0", 1458 | "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz", 1459 | "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==", 1460 | "requires": { 1461 | "d3-dispatch": "1 - 3", 1462 | "d3-drag": "2 - 3", 1463 | "d3-interpolate": "1 - 3", 1464 | "d3-selection": "2 - 3", 1465 | "d3-transition": "2 - 3" 1466 | } 1467 | }, 1468 | "delaunator": { 1469 | "version": "5.0.0", 1470 | "resolved": "https://registry.npmjs.org/delaunator/-/delaunator-5.0.0.tgz", 1471 | "integrity": "sha512-AyLvtyJdbv/U1GkiS6gUUzclRoAY4Gs75qkMygJJhU75LW4DNuSF2RMzpxs9jw9Oz1BobHjTdkG3zdP55VxAqw==", 1472 | "requires": { 1473 | "robust-predicates": "^3.0.0" 1474 | } 1475 | }, 1476 | "esbuild": { 1477 | "version": "0.17.19", 1478 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.19.tgz", 1479 | "integrity": "sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==", 1480 | "dev": true, 1481 | "requires": { 1482 | "@esbuild/android-arm": "0.17.19", 1483 | "@esbuild/android-arm64": "0.17.19", 1484 | "@esbuild/android-x64": "0.17.19", 1485 | "@esbuild/darwin-arm64": "0.17.19", 1486 | "@esbuild/darwin-x64": "0.17.19", 1487 | "@esbuild/freebsd-arm64": "0.17.19", 1488 | "@esbuild/freebsd-x64": "0.17.19", 1489 | "@esbuild/linux-arm": "0.17.19", 1490 | "@esbuild/linux-arm64": "0.17.19", 1491 | "@esbuild/linux-ia32": "0.17.19", 1492 | "@esbuild/linux-loong64": "0.17.19", 1493 | "@esbuild/linux-mips64el": "0.17.19", 1494 | "@esbuild/linux-ppc64": "0.17.19", 1495 | "@esbuild/linux-riscv64": "0.17.19", 1496 | "@esbuild/linux-s390x": "0.17.19", 1497 | "@esbuild/linux-x64": "0.17.19", 1498 | "@esbuild/netbsd-x64": "0.17.19", 1499 | "@esbuild/openbsd-x64": "0.17.19", 1500 | "@esbuild/sunos-x64": "0.17.19", 1501 | "@esbuild/win32-arm64": "0.17.19", 1502 | "@esbuild/win32-ia32": "0.17.19", 1503 | "@esbuild/win32-x64": "0.17.19" 1504 | } 1505 | }, 1506 | "fast-xml-parser": { 1507 | "version": "4.2.5", 1508 | "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", 1509 | "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==", 1510 | "requires": { 1511 | "strnum": "^1.0.5" 1512 | } 1513 | }, 1514 | "fsevents": { 1515 | "version": "2.3.2", 1516 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 1517 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 1518 | "dev": true, 1519 | "optional": true 1520 | }, 1521 | "iconv-lite": { 1522 | "version": "0.6.3", 1523 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", 1524 | "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", 1525 | "requires": { 1526 | "safer-buffer": ">= 2.1.2 < 3.0.0" 1527 | } 1528 | }, 1529 | "internmap": { 1530 | "version": "2.0.3", 1531 | "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", 1532 | "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==" 1533 | }, 1534 | "lodash-es": { 1535 | "version": "4.17.21", 1536 | "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", 1537 | "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" 1538 | }, 1539 | "mxgraph": { 1540 | "version": "4.2.2", 1541 | "resolved": "https://registry.npmjs.org/mxgraph/-/mxgraph-4.2.2.tgz", 1542 | "integrity": "sha512-FrJc5AxzXSqiQNF+8CyJk6VxuKO4UVPgw32FZuFZ3X9W+JqOAQBTokZhh0ZkEqGpEOyp3z778ssmBTvdrTAdqw==" 1543 | }, 1544 | "nanoid": { 1545 | "version": "3.3.6", 1546 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", 1547 | "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", 1548 | "dev": true 1549 | }, 1550 | "picocolors": { 1551 | "version": "1.0.0", 1552 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 1553 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", 1554 | "dev": true 1555 | }, 1556 | "postcss": { 1557 | "version": "8.4.24", 1558 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz", 1559 | "integrity": "sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==", 1560 | "dev": true, 1561 | "requires": { 1562 | "nanoid": "^3.3.6", 1563 | "picocolors": "^1.0.0", 1564 | "source-map-js": "^1.0.2" 1565 | } 1566 | }, 1567 | "robust-predicates": { 1568 | "version": "3.0.1", 1569 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.1.tgz", 1570 | "integrity": "sha512-ndEIpszUHiG4HtDsQLeIuMvRsDnn8c8rYStabochtUeCvfuvNptb5TUbVD68LRAILPX7p9nqQGh4xJgn3EHS/g==" 1571 | }, 1572 | "rollup": { 1573 | "version": "3.25.3", 1574 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.25.3.tgz", 1575 | "integrity": "sha512-ZT279hx8gszBj9uy5FfhoG4bZx8c+0A1sbqtr7Q3KNWIizpTdDEPZbV2xcbvHsnFp4MavCQYZyzApJ+virB8Yw==", 1576 | "dev": true, 1577 | "requires": { 1578 | "fsevents": "~2.3.2" 1579 | } 1580 | }, 1581 | "rw": { 1582 | "version": "1.3.3", 1583 | "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", 1584 | "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==" 1585 | }, 1586 | "safer-buffer": { 1587 | "version": "2.1.2", 1588 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1589 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1590 | }, 1591 | "source-map-js": { 1592 | "version": "1.0.2", 1593 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", 1594 | "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", 1595 | "dev": true 1596 | }, 1597 | "spectre.css": { 1598 | "version": "0.5.9", 1599 | "resolved": "https://registry.npmjs.org/spectre.css/-/spectre.css-0.5.9.tgz", 1600 | "integrity": "sha512-9jUqwZmCnvflrxFGcK+ize43TvjwDjqMwZPVubEtSIHzvinH0TBUESm1LcOJx3Ur7bdPaeOHQIjOqBl1Y5kLFw==" 1601 | }, 1602 | "strnum": { 1603 | "version": "1.0.5", 1604 | "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", 1605 | "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==" 1606 | }, 1607 | "vite": { 1608 | "version": "4.3.9", 1609 | "resolved": "https://registry.npmjs.org/vite/-/vite-4.3.9.tgz", 1610 | "integrity": "sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg==", 1611 | "dev": true, 1612 | "requires": { 1613 | "esbuild": "^0.17.5", 1614 | "fsevents": "~2.3.2", 1615 | "postcss": "^8.4.23", 1616 | "rollup": "^3.21.0" 1617 | } 1618 | } 1619 | } 1620 | } 1621 | --------------------------------------------------------------------------------