├── .gitignore ├── .babelrc ├── dist ├── index.html ├── main.js.LICENSE.txt └── main.js ├── .hintrc ├── src ├── index.js ├── index.html ├── modules │ ├── complete.js │ └── crud.js └── style.css ├── .eslintrc.json ├── webpack.config.js ├── .stylelintrc.json ├── LICENSE ├── package.json ├── .github └── workflows │ └── linters.yml └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "test": { 4 | "plugins": [ 5 | "@babel/plugin-transform-modules-commonjs" 6 | ] 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /dist/index.html: -------------------------------------------------------------------------------- 1 | Wbpack Exercise

Hello webpack!

-------------------------------------------------------------------------------- /dist/main.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Lodash 4 | * Copyright OpenJS Foundation and other contributors 5 | * Released under MIT license 6 | * Based on Underscore.js 1.8.3 7 | * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 8 | */ 9 | -------------------------------------------------------------------------------- /.hintrc: -------------------------------------------------------------------------------- 1 | { 2 | "connector": { 3 | "name": "local", 4 | "options": { 5 | "pattern": [ 6 | "**", 7 | "!.git/**", 8 | "!node_modules/**" 9 | ] 10 | } 11 | }, 12 | "extends": [ 13 | "development" 14 | ], 15 | "formatters": [ 16 | "stylish" 17 | ], 18 | "hints": [ 19 | "button-type", 20 | "disown-opener", 21 | "html-checker", 22 | "meta-charset-utf-8", 23 | "meta-viewport", 24 | "no-inline-styles:error" 25 | ] 26 | } -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import './style.css'; 2 | import add, { createList, clearComplete } from './modules/crud.js'; 3 | 4 | window.addEventListener('load', createList()); 5 | // Add an event 6 | const inputChange = document.querySelector('#input'); 7 | clearComplete(); 8 | 9 | inputChange.addEventListener('keypress', (event) => { 10 | if (event.key === 'Enter') { 11 | if (inputChange.value === '') { 12 | alert('Kindy dont add empty tasks'); 13 | } else { 14 | add(inputChange.value); 15 | inputChange.value = ''; 16 | } 17 | } 18 | }); 19 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "es6": true, 5 | "jest": true 6 | }, 7 | "parser": "babel-eslint", 8 | "parserOptions": { 9 | "ecmaVersion": 2018, 10 | "sourceType": "module" 11 | }, 12 | "extends": [ 13 | "airbnb-base" 14 | ], 15 | "rules": { 16 | "no-shadow": "off", 17 | "no-param-reassign": "off", 18 | "eol-last": "off", 19 | "import/extensions": [ 20 | 1, 21 | { 22 | "js": "always", 23 | "json": "always" 24 | } 25 | ] 26 | }, 27 | "ignorePatterns": [ 28 | "dist/", 29 | "build/" 30 | ] 31 | } -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const HtmlWebpackPlugin = require('html-webpack-plugin'); 3 | 4 | module.exports = { 5 | mode: 'development', 6 | entry: './src/index.js', 7 | devServer: { 8 | static: './dist', 9 | }, 10 | plugins: [ 11 | new HtmlWebpackPlugin({ 12 | template: './src/index.html', 13 | }), 14 | ], 15 | output: { 16 | filename: 'main.js', 17 | path: path.resolve(__dirname, 'dist'), 18 | }, 19 | module: { 20 | rules: [ 21 | { 22 | test: /\.css$/i, 23 | use: ['style-loader', 'css-loader'], 24 | }, 25 | ], 26 | }, 27 | }; -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | TO-DO List 9 | 10 | 11 | 12 |
13 |

Today's TO-DO

14 | 16 |
17 |
    18 | 19 |
20 |
21 |

Clear all completed

22 |
23 |
24 | 25 | 26 | -------------------------------------------------------------------------------- /.stylelintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "stylelint-config-standard" 4 | ], 5 | "plugins": [ 6 | "stylelint-scss", 7 | "stylelint-csstree-validator" 8 | ], 9 | "rules": { 10 | "at-rule-no-unknown": [ 11 | true, 12 | { 13 | "ignoreAtRules": [ 14 | "tailwind", 15 | "apply", 16 | "variants", 17 | "responsive", 18 | "screen" 19 | ] 20 | } 21 | ], 22 | "scss/at-rule-no-unknown": [ 23 | true, 24 | { 25 | "ignoreAtRules": [ 26 | "tailwind", 27 | "apply", 28 | "variants", 29 | "responsive", 30 | "screen" 31 | ] 32 | } 33 | ], 34 | "csstree/validator": true 35 | }, 36 | "ignoreFiles": [ 37 | "build/**", 38 | "dist/**", 39 | "**/reset*.css", 40 | "**/bootstrap*.css", 41 | "**/*.js", 42 | "**/*.jsx" 43 | ] 44 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Leehaney George 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/modules/complete.js: -------------------------------------------------------------------------------- 1 | const storeData = (storedTask) => { 2 | localStorage.setItem('todolists', JSON.stringify(storedTask)); 3 | }; 4 | 5 | const getData = () => { 6 | const bookShelfstr = localStorage.getItem('todolists'); 7 | const bookArray = JSON.parse(bookShelfstr); 8 | if (bookArray === null) { 9 | const empty = []; 10 | return empty; 11 | } 12 | return bookArray; 13 | }; 14 | 15 | const completeTask = () => { 16 | const checkElement = document.querySelectorAll('.check'); 17 | const listText = document.querySelectorAll('.listmarg'); 18 | const list = getData(); 19 | checkElement.forEach((item, index) => { 20 | item.addEventListener('click', () => { 21 | if (item.checked === true) { 22 | list[index].completed = true; 23 | storeData(list); 24 | listText.forEach((element, pos) => { 25 | if (index === pos) { 26 | element.classList.add('canceltext'); 27 | } 28 | }); 29 | } else { 30 | list[index].completed = false; 31 | storeData(list); 32 | listText.forEach((element, pos) => { 33 | if (index === pos) { 34 | element.classList.remove('canceltext'); 35 | } 36 | }); 37 | } 38 | }); 39 | }); 40 | }; 41 | 42 | export { storeData, getData, completeTask }; 43 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "webpack", 3 | "version": "1.0.0", 4 | "description": "��#\u0000 \u0000w\u0000e\u0000b\u0000p\u0000a\u0000c\u0000k\u0000-\u0000t\u0000e\u0000m\u0000p\u0000l\u0000a\u0000t\u0000e\u0000\r\u0000 \u0000", 5 | "private": true, 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1", 8 | "start": "webpack serve --open", 9 | "build": "webpack" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "git+https://github.com/leehaney254/webpack-template.git" 14 | }, 15 | "keywords": [], 16 | "author": "", 17 | "license": "ISC", 18 | "bugs": { 19 | "url": "https://github.com/leehaney254/webpack-template/issues" 20 | }, 21 | "homepage": "https://github.com/leehaney254/webpack-template#readme", 22 | "devDependencies": { 23 | "@babel/plugin-transform-modules-commonjs": "^7.19.6", 24 | "babel-eslint": "^10.1.0", 25 | "css-loader": "^6.7.2", 26 | "eslint": "^7.32.0", 27 | "eslint-config-airbnb-base": "^14.2.1", 28 | "eslint-plugin-import": "^2.26.0", 29 | "hint": "^7.1.3", 30 | "html-webpack-plugin": "^5.5.0", 31 | "style-loader": "^3.3.1", 32 | "stylelint": "^13.13.1", 33 | "stylelint-config-standard": "^21.0.0", 34 | "stylelint-csstree-validator": "^1.9.0", 35 | "stylelint-scss": "^3.21.0", 36 | "webpack": "^5.75.0", 37 | "webpack-cli": "^5.0.1", 38 | "webpack-dev-server": "^4.11.1" 39 | }, 40 | "dependencies": { 41 | "lodash": "^4.17.21" 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/style.css: -------------------------------------------------------------------------------- 1 | #centerlist { 2 | display: flex; 3 | justify-content: center; 4 | align-items: center; 5 | height: 100vh; 6 | background-color: #f5f5f5; 7 | } 8 | 9 | #unordered { 10 | list-style: none; 11 | border-top: 1px solid gray; 12 | padding: 0; 13 | margin: 0; 14 | } 15 | 16 | .event { 17 | height: 100%; 18 | } 19 | 20 | .flexs { 21 | display: flex; 22 | } 23 | 24 | .fa { 25 | color: gray !important; 26 | } 27 | 28 | #class-box { 29 | background-color: white; 30 | width: 50%; 31 | box-shadow: 20px 20px 50px 15px grey; 32 | } 33 | 34 | #head { 35 | display: flex; 36 | justify-content: space-between; 37 | border-bottom: 1px solid gray; 38 | margin: 0; 39 | padding: 15px 0.8rem; 40 | font-size: large; 41 | font-weight: 500; 42 | } 43 | 44 | #input { 45 | width: 95%; 46 | height: 50px; 47 | border: none; 48 | } 49 | 50 | #input:focus { 51 | outline: none; 52 | } 53 | 54 | .lists { 55 | display: flex; 56 | align-items: center; 57 | justify-content: space-between; 58 | border-bottom: 1px solid gray; 59 | height: 50px; 60 | padding: 0 0.8rem; 61 | } 62 | 63 | .del { 64 | display: flex; 65 | align-items: center; 66 | justify-content: space-between; 67 | width: 100%; 68 | height: 100%; 69 | } 70 | 71 | .heights { 72 | height: 100%; 73 | } 74 | 75 | .listmarg { 76 | margin-left: 0.8rem; 77 | height: 100%; 78 | display: flex; 79 | align-items: center; 80 | width: 20rem; 81 | } 82 | 83 | #complete { 84 | display: flex; 85 | justify-content: center; 86 | align-items: center; 87 | background-color: #e8e8e8; 88 | height: 3.2rem; 89 | } 90 | 91 | #comp { 92 | color: #909090; 93 | } 94 | 95 | #comp:hover { 96 | color: #696969; 97 | text-decoration: underline; 98 | cursor: pointer; 99 | } 100 | 101 | .edit { 102 | width: auto; 103 | height: 96%; 104 | border: none; 105 | } 106 | 107 | .edit:focus { 108 | outline: none; 109 | } 110 | 111 | .move { 112 | cursor: move; 113 | } 114 | 115 | .point { 116 | cursor: pointer; 117 | } 118 | 119 | .check { 120 | outline: 1px solid #808080; 121 | } 122 | 123 | .height { 124 | height: 100%; 125 | display: flex; 126 | align-items: center; 127 | } 128 | 129 | .border { 130 | border-top: 1px solid gray; 131 | border-bottom: 1px solid gray; 132 | } 133 | 134 | .canceltext { 135 | text-decoration: line-through; 136 | } 137 | 138 | #emptylist { 139 | border-top: 1px solid gray; 140 | height: 2.5rem; 141 | display: flex; 142 | justify-content: center; 143 | align-items: center; 144 | color: green; 145 | } 146 | 147 | .disp { 148 | display: none; 149 | } 150 | 151 | .nodisp { 152 | display: inline; 153 | } 154 | -------------------------------------------------------------------------------- /.github/workflows/linters.yml: -------------------------------------------------------------------------------- 1 | name: Linters 2 | 3 | on: pull_request 4 | 5 | env: 6 | FORCE_COLOR: 1 7 | 8 | jobs: 9 | lighthouse: 10 | name: Lighthouse 11 | runs-on: ubuntu-22.04 12 | steps: 13 | - uses: actions/checkout@v2 14 | - uses: actions/setup-node@v1 15 | with: 16 | node-version: "12.x" 17 | - name: Setup Lighthouse 18 | run: npm install -g @lhci/cli@0.7.x 19 | - name: Lighthouse Report 20 | run: lhci autorun --upload.target=temporary-public-storage --collect.staticDistDir=. 21 | webhint: 22 | name: Webhint 23 | runs-on: ubuntu-22.04 24 | steps: 25 | - uses: actions/checkout@v2 26 | - uses: actions/setup-node@v1 27 | with: 28 | node-version: "12.x" 29 | - name: Setup Webhint 30 | run: | 31 | npm install --save-dev hint@7.x 32 | [ -f .hintrc ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.hintrc 33 | - name: Webhint Report 34 | run: npx hint . 35 | stylelint: 36 | name: Stylelint 37 | runs-on: ubuntu-22.04 38 | steps: 39 | - uses: actions/checkout@v2 40 | - uses: actions/setup-node@v1 41 | with: 42 | node-version: "12.x" 43 | - name: Setup Stylelint 44 | run: | 45 | npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x 46 | [ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.stylelintrc.json 47 | - name: Stylelint Report 48 | run: npx stylelint "**/*.{css,scss}" 49 | eslint: 50 | name: ESLint 51 | runs-on: ubuntu-22.04 52 | steps: 53 | - uses: actions/checkout@v2 54 | - uses: actions/setup-node@v1 55 | with: 56 | node-version: "12.x" 57 | - name: Setup ESLint 58 | run: | 59 | npm install --save-dev eslint@7.x eslint-config-airbnb-base@14.x eslint-plugin-import@2.x babel-eslint@10.x 60 | [ -f .eslintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.eslintrc.json 61 | - name: ESLint Report 62 | run: npx eslint . 63 | nodechecker: 64 | name: node_modules checker 65 | runs-on: ubuntu-22.04 66 | steps: 67 | - uses: actions/checkout@v2 68 | - name: Check node_modules existence 69 | run: | 70 | if [ -d "node_modules/" ]; then echo -e "\e[1;31mThe node_modules/ folder was pushed to the repo. Please remove it from the GitHub repository and try again."; echo -e "\e[1;32mYou can set up a .gitignore file with this folder included on it to prevent this from happening in the future." && exit 1; fi -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | # 📗 Table of Contents 6 | 7 | - [📗 Table of Contents](#-table-of-contents) 8 | - [📖 To-do List Project ](#-to-do-list-project--) 9 | - [🛠 Built With ](#-built-with-) 10 | - [Key Features ](#key-features-) 11 | - [🚀 Live Demo ](#-live-demo-) 12 | - [💻 Getting Started ](#-getting-started-) 13 | - [Prerequisites](#prerequisites) 14 | - [Setup](#setup) 15 | - [Install](#install) 16 | - [👥 Author ](#-author-) 17 | - [🔭 Future Features ](#-future-features-) 18 | - [🤝 Contributing ](#-contributing-) 19 | - [⭐️ Show your support ](#️-show-your-support-) 20 | - [🙏 Acknowledgments ](#-acknowledgments-) 21 | - [📝 License ](#-license-) 22 | 23 | 24 | 25 | # 📖 To-do List Project 26 | 27 | 28 | **To-do List Project** is a tool that can help a person organize their everyday tasks. 29 | 30 | ## 🛠 Built With 31 | - HTML 32 | - CSS 33 | - JS 34 | - Linter Checks 35 | - Webpack 36 | 37 |

(back to top)

38 | 39 | 40 | 41 | ### Key Features 42 | 43 | - **Add a task** 44 | - **Delete a task** 45 | - **Rearrange a task** 46 | - **Mark a task as complete** 47 | - **Remove all complete tasks** 48 | 49 |

(back to top)

50 | 51 | 52 | 53 | ## 🚀 Live Demo 54 | 55 | > Our live demo can be found on 56 | 57 | - [Live Demo Link](https://leehaney254.github.io/todo-review/) 58 | 59 |

(back to top)

60 | 61 | 62 | 63 | ## 💻 Getting Started 64 | 65 | To get a local copy up and running, follow these steps. 66 | 67 | - Create a local directory where you can clone the project. 68 | - Clone the project into your repository 69 | - Install the dependencies 70 | - Open the project on a browser 71 | 72 |

(back to top)

73 | 74 | ### Prerequisites 75 | 76 | In order to run this project you need: 77 | 78 | - Git and GitHub 79 | - A code editor 80 | - Nodejs 81 | - A browser 82 | 83 |

(back to top)

84 | 85 | ### Setup 86 | 87 | - Create a local directory where you can clone the project. 88 | - Clone the project into your repository 89 | - Install the dependencies 90 | - Open the project on a browser 91 | 92 |

(back to top)

93 | 94 | ### Install 95 | 96 | Just run npm i to install all dependencies 97 | 98 |

(back to top)

99 | 100 | 101 | 102 | 103 | ## 👥 Author 104 | 105 | **Leehaney George** 106 | 107 | - GitHub: [@githubhandle](https://github.com/leehaney254) 108 | - Twitter: [@twitterhandle](https://twitter.com/Lee06785586) 109 | - LinkedIn: [LinkedIn](https://www.linkedin.com/in/leehaney-george-0a4a51178/) 110 | 111 | 112 | Contributions, issues, and feature requests are welcome! 113 | 114 |

(back to top)

115 | 116 | 117 | 118 | ## 🔭 Future Features 119 | 120 | > Describe 1 - 3 features you will add to the project. 121 | 122 | - [ ] **Improve the UI** 123 | - [ ] **Add functionality** 124 | 125 |

(back to top)

126 | 127 | 128 | 129 | ## 🤝 Contributing 130 | 131 | Contributions, issues, and feature requests are welcome! 132 | 133 | Feel free to check the [issues page](https://github.com/leehaney254/todo-list/issues). 134 | 135 |

(back to top)

136 | 137 | 138 | 139 | ## ⭐️ Show your support 140 | 141 | If you like this project kindly leave a star 142 | 143 |

(back to top)

144 | 145 | 146 | 147 | ## 🙏 Acknowledgments 148 | 149 | I would like to thank microverse for the great resources shared. 150 | 151 |

(back to top)

152 | 153 | 154 | 155 | 156 | ## 📝 License 157 | 158 | This project is [MIT](https://github.com/leehaney254/todo-list/blob/main/LICENSE) licensed. 159 | 160 | -------------------------------------------------------------------------------- /src/modules/crud.js: -------------------------------------------------------------------------------- 1 | import { storeData, getData, completeTask } from './complete.js'; 2 | 3 | const unorderedList = document.querySelector('#unordered'); 4 | 5 | const storeEdit = () => { 6 | const events = document.querySelectorAll('.event'); 7 | const count = document.querySelectorAll('.lists'); 8 | const list = getData(); 9 | let position; 10 | 11 | count.forEach((element, index) => { 12 | element.addEventListener('click', () => { 13 | position = index; 14 | }); 15 | }); 16 | 17 | events.forEach((element) => { 18 | element.addEventListener('keypress', (event) => { 19 | if (event.key === 'Enter') { 20 | const edits = element.value; 21 | if (edits === '') { 22 | const par = element.parentNode.parentNode; 23 | par.innerHTML = ''; 24 | par.innerHTML = ` 25 | 26 | ${list[position].description} 27 | 28 | `; 29 | // eslint-disable-next-line no-use-before-define 30 | editElement(); 31 | } else { 32 | const obj = {}; 33 | obj.index = position; 34 | obj.description = edits; 35 | obj.completed = false; 36 | list.splice(position, 1, obj); 37 | storeData(list); 38 | // eslint-disable-next-line no-use-before-define 39 | createList(); 40 | } 41 | } 42 | }); 43 | }); 44 | }; 45 | 46 | const editElement = () => { 47 | const listElement = document.querySelectorAll('.listmarg'); 48 | const list = getData(); 49 | listElement.forEach((element, index) => { 50 | element.addEventListener('click', () => { 51 | const parents = element.parentNode.parentNode; 52 | parents.innerHTML = ''; 53 | parents.innerHTML = ` 54 | 55 | 56 | 57 | 58 | 59 | 60 | `; 61 | storeEdit(); 62 | }); 63 | }); 64 | }; 65 | 66 | const createList = () => { 67 | const listMess = document.querySelector('#noth'); 68 | unorderedList.innerHTML = ''; 69 | const list = getData(); 70 | if (list.length === 0) { 71 | listMess.innerHTML = '

You do not have any tasks

'; 72 | } else { 73 | listMess.innerHTML = ''; 74 | list.forEach((item) => { 75 | if (item.completed === true) { 76 | unorderedList.innerHTML += ` 77 |
  • 78 | 79 | ${item.description} 80 | 81 | 82 |
  • 83 | `; 84 | } else { 85 | unorderedList.innerHTML += ` 86 |
  • 87 | 88 | ${item.description} 89 | 90 | 91 |
  • 92 | `; 93 | } 94 | }); 95 | } 96 | editElement(); 97 | completeTask(); 98 | }; 99 | 100 | const clearComplete = () => { 101 | const removeComplete = document.querySelector('#comp'); 102 | removeComplete.addEventListener('click', () => { 103 | let list = getData(); 104 | list = list.filter((element) => element.completed === false); 105 | list.forEach((item, index) => { 106 | item.index = index; 107 | }); 108 | storeData(list); 109 | createList(); 110 | }); 111 | }; 112 | 113 | const add = (input) => { 114 | const addObj = {}; 115 | const list = getData(); 116 | if (list.length === 0) { 117 | addObj.index = 0; 118 | } else { 119 | addObj.index = list.length; 120 | } 121 | addObj.description = input; 122 | addObj.completed = false; 123 | list.push(addObj); 124 | storeData(list); 125 | unorderedList.innerHTML = ''; 126 | createList(); 127 | }; 128 | 129 | window.deleteItem = () => { 130 | const deleteElement = document.querySelectorAll('.icondelete'); 131 | deleteElement.forEach((element, index) => { 132 | element.addEventListener('click', () => { 133 | if (element.innerHTML === '') { 134 | return; 135 | } 136 | const list = getData(); 137 | list.splice(index, 1); 138 | list.forEach((item, index) => { 139 | item.index = index; 140 | }); 141 | storeData(list); 142 | createList(); 143 | }); 144 | }); 145 | }; 146 | 147 | export default add; 148 | export { createList, clearComplete }; -------------------------------------------------------------------------------- /dist/main.js: -------------------------------------------------------------------------------- 1 | /*! For license information please see main.js.LICENSE.txt */ 2 | (()=>{var n={426:(n,t,r)=>{"use strict";r.d(t,{Z:()=>f});var e=r(81),u=r.n(e),i=r(645),o=r.n(i)()(u());o.push([n.id,".hello {\r\n color: red;\r\n}\r\n\r\nbody {\r\n background-color: bisque;\r\n}",""]);const f=o},645:n=>{"use strict";n.exports=function(n){var t=[];return t.toString=function(){return this.map((function(t){var r="",e=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),e&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=n(t),e&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(n,r,e,u,i){"string"==typeof n&&(n=[[null,n,void 0]]);var o={};if(e)for(var f=0;f0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),u&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=u):l[4]="".concat(u)),t.push(l))}},t}},81:n=>{"use strict";n.exports=function(n){return n[1]}},486:function(n,t,r){var e;n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=32,c=128,l=1/0,s=9007199254740991,h=NaN,p=4294967295,v=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",256]],_="[object Arguments]",g="[object Array]",y="[object Boolean]",d="[object Date]",b="[object Error]",w="[object Function]",m="[object GeneratorFunction]",x="[object Map]",j="[object Number]",A="[object Object]",k="[object Promise]",I="[object RegExp]",O="[object Set]",E="[object String]",R="[object Symbol]",S="[object WeakMap]",z="[object ArrayBuffer]",C="[object DataView]",L="[object Float32Array]",T="[object Float64Array]",W="[object Int8Array]",U="[object Int16Array]",B="[object Int32Array]",M="[object Uint8Array]",D="[object Uint8ClampedArray]",$="[object Uint16Array]",N="[object Uint32Array]",F=/\b__p \+= '';/g,P=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Z=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,K=RegExp(Z.source),V=RegExp(H.source),G=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,nn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tn=/[\\^$.*+?()[\]{}|]/g,rn=RegExp(tn.source),en=/^\s+/,un=/\s/,on=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fn=/\{\n\/\* \[wrapped with (.+)\] \*/,an=/,? & /,cn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ln=/[()=,{}\[\]\/\s]/,sn=/\\(\\)?/g,hn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pn=/\w*$/,vn=/^[-+]0x[0-9a-f]+$/i,_n=/^0b[01]+$/i,gn=/^\[object .+?Constructor\]$/,yn=/^0o[0-7]+$/i,dn=/^(?:0|[1-9]\d*)$/,bn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wn=/($^)/,mn=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",jn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",An="\\u2700-\\u27bf",kn="a-z\\xdf-\\xf6\\xf8-\\xff",In="A-Z\\xc0-\\xd6\\xd8-\\xde",On="\\ufe0e\\ufe0f",En="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rn="["+xn+"]",Sn="["+En+"]",zn="["+jn+"]",Cn="\\d+",Ln="["+An+"]",Tn="["+kn+"]",Wn="[^"+xn+En+Cn+An+kn+In+"]",Un="\\ud83c[\\udffb-\\udfff]",Bn="[^"+xn+"]",Mn="(?:\\ud83c[\\udde6-\\uddff]){2}",Dn="[\\ud800-\\udbff][\\udc00-\\udfff]",$n="["+In+"]",Nn="\\u200d",Fn="(?:"+Tn+"|"+Wn+")",Pn="(?:"+$n+"|"+Wn+")",qn="(?:['’](?:d|ll|m|re|s|t|ve))?",Zn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Hn="(?:"+zn+"|"+Un+")?",Kn="["+On+"]?",Vn=Kn+Hn+"(?:"+Nn+"(?:"+[Bn,Mn,Dn].join("|")+")"+Kn+Hn+")*",Gn="(?:"+[Ln,Mn,Dn].join("|")+")"+Vn,Jn="(?:"+[Bn+zn+"?",zn,Mn,Dn,Rn].join("|")+")",Yn=RegExp("['’]","g"),Qn=RegExp(zn,"g"),Xn=RegExp(Un+"(?="+Un+")|"+Jn+Vn,"g"),nt=RegExp([$n+"?"+Tn+"+"+qn+"(?="+[Sn,$n,"$"].join("|")+")",Pn+"+"+Zn+"(?="+[Sn,$n+Fn,"$"].join("|")+")",$n+"?"+Fn+"+"+qn,$n+"+"+Zn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cn,Gn].join("|"),"g"),tt=RegExp("["+Nn+xn+jn+On+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,et=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ut=-1,it={};it[L]=it[T]=it[W]=it[U]=it[B]=it[M]=it[D]=it[$]=it[N]=!0,it[_]=it[g]=it[z]=it[y]=it[C]=it[d]=it[b]=it[w]=it[x]=it[j]=it[A]=it[I]=it[O]=it[E]=it[S]=!1;var ot={};ot[_]=ot[g]=ot[z]=ot[C]=ot[y]=ot[d]=ot[L]=ot[T]=ot[W]=ot[U]=ot[B]=ot[x]=ot[j]=ot[A]=ot[I]=ot[O]=ot[E]=ot[R]=ot[M]=ot[D]=ot[$]=ot[N]=!0,ot[b]=ot[w]=ot[S]=!1;var ft={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,ct=parseInt,lt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,st="object"==typeof self&&self&&self.Object===Object&&self,ht=lt||st||Function("return this")(),pt=t&&!t.nodeType&&t,vt=pt&&n&&!n.nodeType&&n,_t=vt&&vt.exports===pt,gt=_t&<.process,yt=function(){try{return vt&&vt.require&&vt.require("util").types||gt&>.binding&>.binding("util")}catch(n){}}(),dt=yt&&yt.isArrayBuffer,bt=yt&&yt.isDate,wt=yt&&yt.isMap,mt=yt&&yt.isRegExp,xt=yt&&yt.isSet,jt=yt&&yt.isTypedArray;function At(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function kt(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function zt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function nr(n,t){for(var r=n.length;r--&&$t(t,n[r],0)>-1;);return r}function tr(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}var rr=Zt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),er=Zt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ur(n){return"\\"+ft[n]}function ir(n){return tt.test(n)}function or(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function fr(n,t){return function(r){return n(t(r))}}function ar(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"}),_r=function n(t){var r,e=(t=null==t?ht:_r.defaults(ht.Object(),t,_r.pick(ht,et))).Array,un=t.Date,xn=t.Error,jn=t.Function,An=t.Math,kn=t.Object,In=t.RegExp,On=t.String,En=t.TypeError,Rn=e.prototype,Sn=jn.prototype,zn=kn.prototype,Cn=t["__core-js_shared__"],Ln=Sn.toString,Tn=zn.hasOwnProperty,Wn=0,Un=(r=/[^.]+$/.exec(Cn&&Cn.keys&&Cn.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Bn=zn.toString,Mn=Ln.call(kn),Dn=ht._,$n=In("^"+Ln.call(Tn).replace(tn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nn=_t?t.Buffer:u,Fn=t.Symbol,Pn=t.Uint8Array,qn=Nn?Nn.allocUnsafe:u,Zn=fr(kn.getPrototypeOf,kn),Hn=kn.create,Kn=zn.propertyIsEnumerable,Vn=Rn.splice,Gn=Fn?Fn.isConcatSpreadable:u,Jn=Fn?Fn.iterator:u,Xn=Fn?Fn.toStringTag:u,tt=function(){try{var n=ci(kn,"defineProperty");return n({},"",{}),n}catch(n){}}(),ft=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,lt=un&&un.now!==ht.Date.now&&un.now,st=t.setTimeout!==ht.setTimeout&&t.setTimeout,pt=An.ceil,vt=An.floor,gt=kn.getOwnPropertySymbols,yt=Nn?Nn.isBuffer:u,Bt=t.isFinite,Zt=Rn.join,gr=fr(kn.keys,kn),yr=An.max,dr=An.min,br=un.now,wr=t.parseInt,mr=An.random,xr=Rn.reverse,jr=ci(t,"DataView"),Ar=ci(t,"Map"),kr=ci(t,"Promise"),Ir=ci(t,"Set"),Or=ci(t,"WeakMap"),Er=ci(kn,"create"),Rr=Or&&new Or,Sr={},zr=Mi(jr),Cr=Mi(Ar),Lr=Mi(kr),Tr=Mi(Ir),Wr=Mi(Or),Ur=Fn?Fn.prototype:u,Br=Ur?Ur.valueOf:u,Mr=Ur?Ur.toString:u;function Dr(n){if(rf(n)&&!Zo(n)&&!(n instanceof Pr)){if(n instanceof Fr)return n;if(Tn.call(n,"__wrapped__"))return Di(n)}return new Fr(n)}var $r=function(){function n(){}return function(t){if(!tf(t))return{};if(Hn)return Hn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Nr(){}function Fr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Pr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function qr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function fe(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==u)return f;if(!tf(n))return n;var s=Zo(n);if(s){if(f=function(n){var t=n.length,r=new n.constructor(t);return t&&"string"==typeof n[0]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input),r}(n),!a)return Ou(n,f)}else{var h=hi(n),p=h==w||h==m;if(Go(n))return mu(n,a);if(h==A||h==_||p&&!i){if(f=c||p?{}:vi(n),!a)return c?function(n,t){return Eu(n,si(n),t)}(n,function(n,t){return n&&Eu(t,Tf(t),n)}(f,n)):function(n,t){return Eu(n,li(n),t)}(n,ee(f,n))}else{if(!ot[h])return i?n:{};f=function(n,t,r){var e,u=n.constructor;switch(t){case z:return xu(n);case y:case d:return new u(+n);case C:return function(n,t){var r=t?xu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case L:case T:case W:case U:case B:case M:case D:case $:case N:return ju(n,r);case x:return new u;case j:case E:return new u(n);case I:return function(n){var t=new n.constructor(n.source,pn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case O:return new u;case R:return e=n,Br?kn(Br.call(e)):{}}}(n,h,a)}}o||(o=new Vr);var v=o.get(n);if(v)return v;o.set(n,f),af(n)?n.forEach((function(e){f.add(fe(e,t,r,e,n,o))})):ef(n)&&n.forEach((function(e,u){f.set(u,fe(e,t,r,u,n,o))}));var g=s?u:(l?c?ri:ti:c?Tf:Lf)(n);return It(g||n,(function(e,u){g&&(e=n[u=e]),ne(f,u,fe(e,t,r,u,n,o))})),f}function ae(n,t,r){var e=r.length;if(null==n)return!e;for(n=kn(n);e--;){var i=r[e],o=t[i],f=n[i];if(f===u&&!(i in n)||!o(f))return!1}return!0}function ce(n,t,r){if("function"!=typeof n)throw new En(i);return Ri((function(){n.apply(u,r)}),t)}function le(n,t,r,e){var u=-1,i=St,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=Ct(t,Jt(r))),e?(i=zt,o=!1):t.length>=200&&(i=Qt,o=!1,t=new Kr(t));n:for(;++u-1},Zr.prototype.set=function(n,t){var r=this.__data__,e=te(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Hr.prototype.clear=function(){this.size=0,this.__data__={hash:new qr,map:new(Ar||Zr),string:new qr}},Hr.prototype.delete=function(n){var t=fi(this,n).delete(n);return this.size-=t?1:0,t},Hr.prototype.get=function(n){return fi(this,n).get(n)},Hr.prototype.has=function(n){return fi(this,n).has(n)},Hr.prototype.set=function(n,t){var r=fi(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Kr.prototype.add=Kr.prototype.push=function(n){return this.__data__.set(n,o),this},Kr.prototype.has=function(n){return this.__data__.has(n)},Vr.prototype.clear=function(){this.__data__=new Zr,this.size=0},Vr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Vr.prototype.get=function(n){return this.__data__.get(n)},Vr.prototype.has=function(n){return this.__data__.has(n)},Vr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Zr){var e=r.__data__;if(!Ar||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Hr(e)}return r.set(n,t),this.size=r.size,this};var se=zu(be),he=zu(we,!0);function pe(n,t){var r=!0;return se(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function ve(n,t,r){for(var e=-1,i=n.length;++e0&&r(f)?t>1?ge(f,t-1,r,e,u):Lt(u,f):e||(u[u.length]=f)}return u}var ye=Cu(),de=Cu(!0);function be(n,t){return n&&ye(n,t,Lf)}function we(n,t){return n&&de(n,t,Lf)}function me(n,t){return Rt(t,(function(t){return Qo(n[t])}))}function xe(n,t){for(var r=0,e=(t=yu(t,n)).length;null!=n&&rt}function Ie(n,t){return null!=n&&Tn.call(n,t)}function Oe(n,t){return null!=n&&t in kn(n)}function Ee(n,t,r){for(var i=r?zt:St,o=n[0].length,f=n.length,a=f,c=e(f),l=1/0,s=[];a--;){var h=n[a];a&&t&&(h=Ct(h,Jt(t))),l=dr(h.length,l),c[a]=!r&&(t||o>=120&&h.length>=120)?new Kr(a&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p=f?a:a*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}));e--;)n[e]=n[e].value;return n}(u)}function Pe(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&Vn.call(f,a,1),Vn.call(n,a,1);return n}function Ze(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;gi(u)?Vn.call(n,u,1):cu(n,u)}}return n}function He(n,t){return n+vt(mr()*(t-n+1))}function Ke(n,t){var r="";if(!n||t<1||t>s)return r;do{t%2&&(r+=n),(t=vt(t/2))&&(n+=n)}while(t);return r}function Ve(n,t){return Si(Ai(n,t,ia),n+"")}function Ge(n){return Jr(Ff(n))}function Je(n,t){var r=Ff(n);return Li(r,oe(t,0,r.length))}function Ye(n,t,r,e){if(!tf(n))return n;for(var i=-1,o=(t=yu(t,n)).length,f=o-1,a=n;null!=a&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=e(i);++u>>1,o=n[i];null!==o&&!lf(o)&&(r?o<=t:o=200){var c=t?null:Ku(n);if(c)return cr(c);o=!1,u=Qt,a=new Kr}else a=t?[]:f;n:for(;++e=e?n:tu(n,t,r)}var wu=ft||function(n){return ht.clearTimeout(n)};function mu(n,t){if(t)return n.slice();var r=n.length,e=qn?qn(r):new n.constructor(r);return n.copy(e),e}function xu(n){var t=new n.constructor(n.byteLength);return new Pn(t).set(new Pn(n)),t}function ju(n,t){var r=t?xu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Au(n,t){if(n!==t){var r=n!==u,e=null===n,i=n==n,o=lf(n),f=t!==u,a=null===t,c=t==t,l=lf(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&yi(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=kn(t);++e-1?i[o?t[f]:f]:u}}function Bu(n){return ni((function(t){var r=t.length,e=r,o=Fr.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new En(i);if(o&&!a&&"wrapper"==ui(f))var a=new Fr([],!0)}for(e=a?e:r;++e1&&b.reverse(),p&&sa))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Kr:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(on,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return It(v,(function(r){var e="_."+r[0];t&r[1]&&!St(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(fn);return t?t[1].split(an):[]}(e),r)))}function Ci(n){var t=0,r=0;return function(){var e=br(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Li(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,io(n,r)}));function ho(n){var t=Dr(n);return t.__chain__=!0,t}function po(n,t){return t(n)}var vo=ni((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return ie(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Pr&&gi(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[i],thisArg:u}),new Fr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)})),_o=Ru((function(n,t,r){Tn.call(n,r)?++n[r]:ue(n,r,1)})),go=Uu(Pi),yo=Uu(qi);function bo(n,t){return(Zo(n)?It:se)(n,oi(t,3))}function wo(n,t){return(Zo(n)?Ot:he)(n,oi(t,3))}var mo=Ru((function(n,t,r){Tn.call(n,r)?n[r].push(t):ue(n,r,[t])})),xo=Ve((function(n,t,r){var u=-1,i="function"==typeof t,o=Ko(n)?e(n.length):[];return se(n,(function(n){o[++u]=i?At(t,n,r):Re(n,t,r)})),o})),jo=Ru((function(n,t,r){ue(n,r,t)}));function Ao(n,t){return(Zo(n)?Ct:Be)(n,oi(t,3))}var ko=Ru((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]})),Io=Ve((function(n,t){if(null==n)return[];var r=t.length;return r>1&&yi(n,t[0],t[1])?t=[]:r>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),Fe(n,ge(t,1),[])})),Oo=lt||function(){return ht.Date.now()};function Eo(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Gu(n,c,u,u,u,u,t)}function Ro(n,t){var r;if("function"!=typeof t)throw new En(i);return n=gf(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var So=Ve((function(n,t,r){var e=1;if(r.length){var u=ar(r,ii(So));e|=a}return Gu(n,e,t,r,u)})),zo=Ve((function(n,t,r){var e=3;if(r.length){var u=ar(r,ii(zo));e|=a}return Gu(t,e,n,r,u)}));function Co(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new En(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){return s=n,c=Ri(d,t),h?_(n):a}function y(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=f}function d(){var n=Oo();if(y(n))return b(n);c=Ri(d,function(n){var r=t-(n-l);return p?dr(r,f-(n-s)):r}(n))}function b(n){return c=u,v&&e?_(n):(e=o=u,a)}function w(){var n=Oo(),r=y(n);if(e=arguments,o=this,l=n,r){if(c===u)return g(l);if(p)return wu(c),c=Ri(d,t),_(l)}return c===u&&(c=Ri(d,t)),a}return t=df(t)||0,tf(r)&&(h=!!r.leading,f=(p="maxWait"in r)?yr(df(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),w.cancel=function(){c!==u&&wu(c),s=0,e=l=o=c=u},w.flush=function(){return c===u?a:b(Oo())},w}var Lo=Ve((function(n,t){return ce(n,1,t)})),To=Ve((function(n,t,r){return ce(n,df(t)||0,r)}));function Wo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new En(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Wo.Cache||Hr),r}function Uo(n){if("function"!=typeof n)throw new En(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Wo.Cache=Hr;var Bo=du((function(n,t){var r=(t=1==t.length&&Zo(t[0])?Ct(t[0],Jt(oi())):Ct(ge(t,1),Jt(oi()))).length;return Ve((function(e){for(var u=-1,i=dr(e.length,r);++u=t})),qo=Se(function(){return arguments}())?Se:function(n){return rf(n)&&Tn.call(n,"callee")&&!Kn.call(n,"callee")},Zo=e.isArray,Ho=dt?Jt(dt):function(n){return rf(n)&&Ae(n)==z};function Ko(n){return null!=n&&nf(n.length)&&!Qo(n)}function Vo(n){return rf(n)&&Ko(n)}var Go=yt||da,Jo=bt?Jt(bt):function(n){return rf(n)&&Ae(n)==d};function Yo(n){if(!rf(n))return!1;var t=Ae(n);return t==b||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!of(n)}function Qo(n){if(!tf(n))return!1;var t=Ae(n);return t==w||t==m||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xo(n){return"number"==typeof n&&n==gf(n)}function nf(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=s}function tf(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function rf(n){return null!=n&&"object"==typeof n}var ef=wt?Jt(wt):function(n){return rf(n)&&hi(n)==x};function uf(n){return"number"==typeof n||rf(n)&&Ae(n)==j}function of(n){if(!rf(n)||Ae(n)!=A)return!1;var t=Zn(n);if(null===t)return!0;var r=Tn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ln.call(r)==Mn}var ff=mt?Jt(mt):function(n){return rf(n)&&Ae(n)==I},af=xt?Jt(xt):function(n){return rf(n)&&hi(n)==O};function cf(n){return"string"==typeof n||!Zo(n)&&rf(n)&&Ae(n)==E}function lf(n){return"symbol"==typeof n||rf(n)&&Ae(n)==R}var sf=jt?Jt(jt):function(n){return rf(n)&&nf(n.length)&&!!it[Ae(n)]},hf=qu(Ue),pf=qu((function(n,t){return n<=t}));function vf(n){if(!n)return[];if(Ko(n))return cf(n)?hr(n):Ou(n);if(Jn&&n[Jn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Jn]());var t=hi(n);return(t==x?or:t==O?cr:Ff)(n)}function _f(n){return n?(n=df(n))===l||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function gf(n){var t=_f(n),r=t%1;return t==t?r?t-r:t:0}function yf(n){return n?oe(gf(n),0,p):0}function df(n){if("number"==typeof n)return n;if(lf(n))return h;if(tf(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=tf(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Gt(n);var r=_n.test(n);return r||yn.test(n)?ct(n.slice(2),r?2:8):vn.test(n)?h:+n}function bf(n){return Eu(n,Tf(n))}function wf(n){return null==n?"":fu(n)}var mf=Su((function(n,t){if(mi(t)||Ko(t))Eu(t,Lf(t),n);else for(var r in t)Tn.call(t,r)&&ne(n,r,t[r])})),xf=Su((function(n,t){Eu(t,Tf(t),n)})),jf=Su((function(n,t,r,e){Eu(t,Tf(t),n,e)})),Af=Su((function(n,t,r,e){Eu(t,Lf(t),n,e)})),kf=ni(ie),If=Ve((function(n,t){n=kn(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&yi(t[0],t[1],i)&&(e=1);++r1),t})),Eu(n,ri(n),r),e&&(r=fe(r,7,Qu));for(var u=t.length;u--;)cu(r,t[u]);return r})),Mf=ni((function(n,t){return null==n?{}:function(n,t){return Pe(n,t,(function(t,r){return Rf(n,r)}))}(n,t)}));function Df(n,t){if(null==n)return{};var r=Ct(ri(n),(function(n){return[n]}));return t=oi(t),Pe(n,r,(function(n,r){return t(n,r[0])}))}var $f=Vu(Lf),Nf=Vu(Tf);function Ff(n){return null==n?[]:Yt(n,Lf(n))}var Pf=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?qf(t):t)}));function qf(n){return Qf(wf(n).toLowerCase())}function Zf(n){return(n=wf(n))&&n.replace(bn,rr).replace(Qn,"")}var Hf=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Kf=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Vf=Lu("toLowerCase"),Gf=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()})),Jf=Tu((function(n,t,r){return n+(r?" ":"")+Qf(t)})),Yf=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Qf=Lu("toUpperCase");function Xf(n,t,r){return n=wf(n),(t=r?u:t)===u?function(n){return rt.test(n)}(n)?function(n){return n.match(nt)||[]}(n):function(n){return n.match(cn)||[]}(n):n.match(t)||[]}var na=Ve((function(n,t){try{return At(n,u,t)}catch(n){return Yo(n)?n:new xn(n)}})),ta=ni((function(n,t){return It(t,(function(t){t=Bi(t),ue(n,t,So(n[t],n))})),n}));function ra(n){return function(){return n}}var ea=Bu(),ua=Bu(!0);function ia(n){return n}function oa(n){return Te("function"==typeof n?n:fe(n,1))}var fa=Ve((function(n,t){return function(r){return Re(r,n,t)}})),aa=Ve((function(n,t){return function(r){return Re(n,r,t)}}));function ca(n,t,r){var e=Lf(t),u=me(t,e);null!=r||tf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=me(t,Lf(t)));var i=!(tf(r)&&"chain"in r&&!r.chain),o=Qo(n);return It(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__),u=r.__actions__=Ou(this.__actions__);return u.push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Lt([this.value()],arguments))})})),n}function la(){}var sa=Nu(Ct),ha=Nu(Et),pa=Nu(Ut);function va(n){return di(n)?qt(Bi(n)):function(n){return function(t){return xe(t,n)}}(n)}var _a=Pu(),ga=Pu(!0);function ya(){return[]}function da(){return!1}var ba,wa=$u((function(n,t){return n+t}),0),ma=Hu("ceil"),xa=$u((function(n,t){return n/t}),1),ja=Hu("floor"),Aa=$u((function(n,t){return n*t}),1),ka=Hu("round"),Ia=$u((function(n,t){return n-t}),0);return Dr.after=function(n,t){if("function"!=typeof t)throw new En(i);return n=gf(n),function(){if(--n<1)return t.apply(this,arguments)}},Dr.ary=Eo,Dr.assign=mf,Dr.assignIn=xf,Dr.assignInWith=jf,Dr.assignWith=Af,Dr.at=kf,Dr.before=Ro,Dr.bind=So,Dr.bindAll=ta,Dr.bindKey=zo,Dr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Zo(n)?n:[n]},Dr.chain=ho,Dr.chunk=function(n,t,r){t=(r?yi(n,t,r):t===u)?1:yr(gf(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,f=0,a=e(pt(i/t));oi?0:i+r),(e=e===u||e>i?i:gf(e))<0&&(e+=i),e=r>e?0:yf(e);r>>0)?(n=wf(n))&&("string"==typeof t||null!=t&&!ff(t))&&!(t=fu(t))&&ir(n)?bu(hr(n),0,r):n.split(t,r):[]},Dr.spread=function(n,t){if("function"!=typeof n)throw new En(i);return t=null==t?0:yr(gf(t),0),Ve((function(r){var e=r[t],u=bu(r,0,t);return e&&Lt(u,e),At(n,this,u)}))},Dr.tail=function(n){var t=null==n?0:n.length;return t?tu(n,1,t):[]},Dr.take=function(n,t,r){return n&&n.length?tu(n,0,(t=r||t===u?1:gf(t))<0?0:t):[]},Dr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?tu(n,(t=e-(t=r||t===u?1:gf(t)))<0?0:t,e):[]},Dr.takeRightWhile=function(n,t){return n&&n.length?su(n,oi(t,3),!1,!0):[]},Dr.takeWhile=function(n,t){return n&&n.length?su(n,oi(t,3)):[]},Dr.tap=function(n,t){return t(n),n},Dr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new En(i);return tf(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Co(n,t,{leading:e,maxWait:t,trailing:u})},Dr.thru=po,Dr.toArray=vf,Dr.toPairs=$f,Dr.toPairsIn=Nf,Dr.toPath=function(n){return Zo(n)?Ct(n,Bi):lf(n)?[n]:Ou(Ui(wf(n)))},Dr.toPlainObject=bf,Dr.transform=function(n,t,r){var e=Zo(n),u=e||Go(n)||sf(n);if(t=oi(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:tf(n)&&Qo(i)?$r(Zn(n)):{}}return(u?It:be)(n,(function(n,e,u){return t(r,n,e,u)})),r},Dr.unary=function(n){return Eo(n,1)},Dr.union=to,Dr.unionBy=ro,Dr.unionWith=eo,Dr.uniq=function(n){return n&&n.length?au(n):[]},Dr.uniqBy=function(n,t){return n&&n.length?au(n,oi(t,2)):[]},Dr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?au(n,u,t):[]},Dr.unset=function(n,t){return null==n||cu(n,t)},Dr.unzip=uo,Dr.unzipWith=io,Dr.update=function(n,t,r){return null==n?n:lu(n,t,gu(r))},Dr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:lu(n,t,gu(r),e)},Dr.values=Ff,Dr.valuesIn=function(n){return null==n?[]:Yt(n,Tf(n))},Dr.without=oo,Dr.words=Xf,Dr.wrap=function(n,t){return Mo(gu(t),n)},Dr.xor=fo,Dr.xorBy=ao,Dr.xorWith=co,Dr.zip=lo,Dr.zipObject=function(n,t){return vu(n||[],t||[],ne)},Dr.zipObjectDeep=function(n,t){return vu(n||[],t||[],Ye)},Dr.zipWith=so,Dr.entries=$f,Dr.entriesIn=Nf,Dr.extend=xf,Dr.extendWith=jf,ca(Dr,Dr),Dr.add=wa,Dr.attempt=na,Dr.camelCase=Pf,Dr.capitalize=qf,Dr.ceil=ma,Dr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=df(r))==r?r:0),t!==u&&(t=(t=df(t))==t?t:0),oe(df(n),t,r)},Dr.clone=function(n){return fe(n,4)},Dr.cloneDeep=function(n){return fe(n,5)},Dr.cloneDeepWith=function(n,t){return fe(n,5,t="function"==typeof t?t:u)},Dr.cloneWith=function(n,t){return fe(n,4,t="function"==typeof t?t:u)},Dr.conformsTo=function(n,t){return null==t||ae(n,t,Lf(t))},Dr.deburr=Zf,Dr.defaultTo=function(n,t){return null==n||n!=n?t:n},Dr.divide=xa,Dr.endsWith=function(n,t,r){n=wf(n),t=fu(t);var e=n.length,i=r=r===u?e:oe(gf(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Dr.eq=No,Dr.escape=function(n){return(n=wf(n))&&V.test(n)?n.replace(H,er):n},Dr.escapeRegExp=function(n){return(n=wf(n))&&rn.test(n)?n.replace(tn,"\\$&"):n},Dr.every=function(n,t,r){var e=Zo(n)?Et:pe;return r&&yi(n,t,r)&&(t=u),e(n,oi(t,3))},Dr.find=go,Dr.findIndex=Pi,Dr.findKey=function(n,t){return Mt(n,oi(t,3),be)},Dr.findLast=yo,Dr.findLastIndex=qi,Dr.findLastKey=function(n,t){return Mt(n,oi(t,3),we)},Dr.floor=ja,Dr.forEach=bo,Dr.forEachRight=wo,Dr.forIn=function(n,t){return null==n?n:ye(n,oi(t,3),Tf)},Dr.forInRight=function(n,t){return null==n?n:de(n,oi(t,3),Tf)},Dr.forOwn=function(n,t){return n&&be(n,oi(t,3))},Dr.forOwnRight=function(n,t){return n&&we(n,oi(t,3))},Dr.get=Ef,Dr.gt=Fo,Dr.gte=Po,Dr.has=function(n,t){return null!=n&&pi(n,t,Ie)},Dr.hasIn=Rf,Dr.head=Hi,Dr.identity=ia,Dr.includes=function(n,t,r,e){n=Ko(n)?n:Ff(n),r=r&&!e?gf(r):0;var u=n.length;return r<0&&(r=yr(u+r,0)),cf(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&$t(n,t,r)>-1},Dr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:gf(r);return u<0&&(u=yr(e+u,0)),$t(n,t,u)},Dr.inRange=function(n,t,r){return t=_f(t),r===u?(r=t,t=0):r=_f(r),function(n,t,r){return n>=dr(t,r)&&n=-9007199254740991&&n<=s},Dr.isSet=af,Dr.isString=cf,Dr.isSymbol=lf,Dr.isTypedArray=sf,Dr.isUndefined=function(n){return n===u},Dr.isWeakMap=function(n){return rf(n)&&hi(n)==S},Dr.isWeakSet=function(n){return rf(n)&&"[object WeakSet]"==Ae(n)},Dr.join=function(n,t){return null==n?"":Zt.call(n,t)},Dr.kebabCase=Hf,Dr.last=Ji,Dr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=gf(r))<0?yr(e+i,0):dr(i,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):Dt(n,Ft,i,!0)},Dr.lowerCase=Kf,Dr.lowerFirst=Vf,Dr.lt=hf,Dr.lte=pf,Dr.max=function(n){return n&&n.length?ve(n,ia,ke):u},Dr.maxBy=function(n,t){return n&&n.length?ve(n,oi(t,2),ke):u},Dr.mean=function(n){return Pt(n,ia)},Dr.meanBy=function(n,t){return Pt(n,oi(t,2))},Dr.min=function(n){return n&&n.length?ve(n,ia,Ue):u},Dr.minBy=function(n,t){return n&&n.length?ve(n,oi(t,2),Ue):u},Dr.stubArray=ya,Dr.stubFalse=da,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=Aa,Dr.nth=function(n,t){return n&&n.length?Ne(n,gf(t)):u},Dr.noConflict=function(){return ht._===this&&(ht._=Dn),this},Dr.noop=la,Dr.now=Oo,Dr.pad=function(n,t,r){n=wf(n);var e=(t=gf(t))?sr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Fu(vt(u),r)+n+Fu(pt(u),r)},Dr.padEnd=function(n,t,r){n=wf(n);var e=(t=gf(t))?sr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=mr();return dr(n+i*(t-n+at("1e-"+((i+"").length-1))),t)}return He(n,t)},Dr.reduce=function(n,t,r){var e=Zo(n)?Tt:Ht,u=arguments.length<3;return e(n,oi(t,4),r,u,se)},Dr.reduceRight=function(n,t,r){var e=Zo(n)?Wt:Ht,u=arguments.length<3;return e(n,oi(t,4),r,u,he)},Dr.repeat=function(n,t,r){return t=(r?yi(n,t,r):t===u)?1:gf(t),Ke(wf(n),t)},Dr.replace=function(){var n=arguments,t=wf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Dr.result=function(n,t,r){var e=-1,i=(t=yu(t,n)).length;for(i||(i=1,n=u);++es)return[];var r=p,e=dr(n,p);t=oi(t),n-=p;for(var u=Vt(e,t);++r=o)return n;var a=r-sr(e);if(a<1)return e;var c=f?bu(f,0,a).join(""):n.slice(0,a);if(i===u)return c+e;if(f&&(a+=c.length-a),ff(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=In(i.source,wf(pn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?a:h)}}else if(n.indexOf(fu(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Dr.unescape=function(n){return(n=wf(n))&&K.test(n)?n.replace(Z,vr):n},Dr.uniqueId=function(n){var t=++Wn;return wf(n)+t},Dr.upperCase=Yf,Dr.upperFirst=Qf,Dr.each=bo,Dr.eachRight=wo,Dr.first=Hi,ca(Dr,(ba={},be(Dr,(function(n,t){Tn.call(Dr.prototype,t)||(ba[t]=n)})),ba),{chain:!1}),Dr.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Dr[n].placeholder=Dr})),It(["drop","take"],(function(n,t){Pr.prototype[n]=function(r){r=r===u?1:yr(gf(r),0);var e=this.__filtered__&&!t?new Pr(this):this.clone();return e.__filtered__?e.__takeCount__=dr(r,e.__takeCount__):e.__views__.push({size:dr(r,p),type:n+(e.__dir__<0?"Right":"")}),e},Pr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),It(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Pr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:oi(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),It(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Pr.prototype[n]=function(){return this[r](1).value()[0]}})),It(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Pr.prototype[n]=function(){return this.__filtered__?new Pr(this):this[r](1)}})),Pr.prototype.compact=function(){return this.filter(ia)},Pr.prototype.find=function(n){return this.filter(n).head()},Pr.prototype.findLast=function(n){return this.reverse().find(n)},Pr.prototype.invokeMap=Ve((function(n,t){return"function"==typeof n?new Pr(this):this.map((function(r){return Re(r,n,t)}))})),Pr.prototype.reject=function(n){return this.filter(Uo(oi(n)))},Pr.prototype.slice=function(n,t){n=gf(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Pr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=gf(t))<0?r.dropRight(-t):r.take(t-n)),r)},Pr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Pr.prototype.toArray=function(){return this.take(p)},be(Pr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Dr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Dr.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof Pr,c=f[0],l=a||Zo(t),s=function(n){var t=i.apply(Dr,Lt([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new Pr(this);var g=n.apply(t,f);return g.__actions__.push({func:po,args:[s],thisArg:u}),new Fr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),It(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Rn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Dr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Zo(u)?u:[],n)}return this[r]((function(r){return t.apply(Zo(r)?r:[],n)}))}})),be(Pr.prototype,(function(n,t){var r=Dr[t];if(r){var e=r.name+"";Tn.call(Sr,e)||(Sr[e]=[]),Sr[e].push({name:t,func:r})}})),Sr[Mu(u,2).name]=[{name:"wrapper",func:u}],Pr.prototype.clone=function(){var n=new Pr(this.__wrapped__);return n.__actions__=Ou(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ou(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ou(this.__views__),n},Pr.prototype.reverse=function(){if(this.__filtered__){var n=new Pr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Pr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Zo(n),e=t<0,u=r?n.length:0,i=function(n,t,r){for(var e=-1,u=r.length;++e=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Dr.prototype.plant=function(n){for(var t,r=this;r instanceof Nr;){var e=Di(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Dr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Pr){var t=n;return this.__actions__.length&&(t=new Pr(this)),(t=t.reverse()).__actions__.push({func:po,args:[no],thisArg:u}),new Fr(t,this.__chain__)}return this.thru(no)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return hu(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Jn&&(Dr.prototype[Jn]=function(){return this}),Dr}();ht._=_r,(e=function(){return _r}.call(t,r,t,n))===u||(n.exports=e)}.call(this)},379:n=>{"use strict";var t=[];function r(n){for(var r=-1,e=0;e{"use strict";var t={};n.exports=function(n,r){var e=function(n){if(void 0===t[n]){var r=document.querySelector(n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(n){r=null}t[n]=r}return t[n]}(n);if(!e)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");e.appendChild(r)}},216:n=>{"use strict";n.exports=function(n){var t=document.createElement("style");return n.setAttributes(t,n.attributes),n.insert(t,n.options),t}},565:(n,t,r)=>{"use strict";n.exports=function(n){var t=r.nc;t&&n.setAttribute("nonce",t)}},795:n=>{"use strict";n.exports=function(n){var t=n.insertStyleElement(n);return{update:function(r){!function(n,t,r){var e="";r.supports&&(e+="@supports (".concat(r.supports,") {")),r.media&&(e+="@media ".concat(r.media," {"));var u=void 0!==r.layer;u&&(e+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),e+=r.css,u&&(e+="}"),r.media&&(e+="}"),r.supports&&(e+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(e+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(e,n,t.options)}(t,n,r)},remove:function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(t)}}}},589:n=>{"use strict";n.exports=function(n,t){if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}}},t={};function r(e){var u=t[e];if(void 0!==u)return u.exports;var i=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return r.d(t,{a:t}),t},r.d=(n,t)=>{for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),r.nc=void 0,(()=>{"use strict";var n=r(486),t=r.n(n),e=r(379),u=r.n(e),i=r(795),o=r.n(i),f=r(569),a=r.n(f),c=r(565),l=r.n(c),s=r(216),h=r.n(s),p=r(589),v=r.n(p),_=r(426),g={};g.styleTagTransform=v(),g.setAttributes=l(),g.insert=a().bind(null,"head"),g.domAPI=o(),g.insertStyleElement=h(),u()(_.Z,g),_.Z&&_.Z.locals&&_.Z.locals,document.body.appendChild(function(){const n=document.createElement("div");return n.innerHTML=t().join(["Hello","webpack"]," "),n.classList.add("hello"),n}())})()})(); --------------------------------------------------------------------------------