From 8f0760a8134a412fcc7c47b9227902e8df2b004e Mon Sep 17 00:00:00 2001 From: Arthur Clemens Date: Fri, 2 Aug 2019 19:49:28 +0100 Subject: [PATCH] 1.7.0 --- lerna.json | 2 +- package.json | 8 +- .../polythene-core-base-spinner/package.json | 8 +- .../polythene-core-button-group/package.json | 8 +- packages/polythene-core-button/package.json | 12 +- packages/polythene-core-card/package.json | 12 +- packages/polythene-core-checkbox/package.json | 10 +- packages/polythene-core-css/package.json | 6 +- .../polythene-core-dialog-pane/package.json | 8 +- packages/polythene-core-dialog/package.json | 10 +- packages/polythene-core-drawer/package.json | 10 +- packages/polythene-core-fab/package.json | 12 +- .../polythene-core-icon-button/package.json | 12 +- packages/polythene-core-icon/package.json | 10 +- .../polythene-core-ios-spinner/package.json | 10 +- .../polythene-core-list-tile/package.json | 12 +- packages/polythene-core-list/package.json | 10 +- .../package.json | 12 +- .../package.json | 10 +- packages/polythene-core-menu/package.json | 8 +- .../polythene-core-notification/package.json | 10 +- .../polythene-core-radio-button/package.json | 10 +- .../polythene-core-radio-group/package.json | 10 +- packages/polythene-core-ripple/package.json | 8 +- packages/polythene-core-search/package.json | 10 +- .../package.json | 12 +- packages/polythene-core-shadow/package.json | 8 +- packages/polythene-core-slider/package.json | 8 +- packages/polythene-core-snackbar/package.json | 10 +- packages/polythene-core-svg/package.json | 6 +- packages/polythene-core-switch/package.json | 12 +- packages/polythene-core-tabs/package.json | 18 +- .../polythene-core-textfield/package.json | 8 +- packages/polythene-core-toolbar/package.json | 8 +- packages/polythene-core/package.json | 2 +- .../polythene-css-base-spinner/package.json | 8 +- .../polythene-css-button-group/package.json | 8 +- packages/polythene-css-button/package.json | 10 +- packages/polythene-css-card/package.json | 8 +- packages/polythene-css-checkbox/package.json | 10 +- packages/polythene-css-classes/package.json | 2 +- packages/polythene-css-core/package.json | 4 +- .../polythene-css-dialog-pane/package.json | 8 +- packages/polythene-css-dialog/package.json | 12 +- packages/polythene-css-drawer/package.json | 12 +- packages/polythene-css-fab/package.json | 8 +- .../polythene-css-icon-button/package.json | 10 +- packages/polythene-css-icon/package.json | 8 +- .../polythene-css-ios-spinner/package.json | 12 +- packages/polythene-css-list-tile/package.json | 8 +- packages/polythene-css-list/package.json | 8 +- .../package.json | 12 +- .../package.json | 10 +- packages/polythene-css-menu/package.json | 10 +- .../polythene-css-notification/package.json | 8 +- .../polythene-css-radio-button/package.json | 10 +- packages/polythene-css-ripple/package.json | 8 +- packages/polythene-css-search/package.json | 8 +- .../package.json | 8 +- packages/polythene-css-shadow/package.json | 8 +- packages/polythene-css-slider/package.json | 8 +- packages/polythene-css-snackbar/package.json | 10 +- packages/polythene-css-svg/package.json | 8 +- packages/polythene-css-switch/package.json | 12 +- packages/polythene-css-tabs/package.json | 12 +- packages/polythene-css-textfield/package.json | 8 +- packages/polythene-css-toolbar/package.json | 8 +- .../polythene-css-typography/package.json | 10 +- packages/polythene-css/dist/polythene.css.gz | Bin 17275 -> 17275 bytes packages/polythene-css/package.json | 72 +- .../package.json | 8 +- .../package.json | 4 +- .../polythene-mithril-button/package.json | 12 +- packages/polythene-mithril-card/package.json | 10 +- .../polythene-mithril-checkbox/package.json | 10 +- .../package.json | 4 +- .../polythene-mithril-dialog/package.json | 12 +- .../polythene-mithril-drawer/package.json | 10 +- packages/polythene-mithril-fab/package.json | 8 +- .../package.json | 8 +- packages/polythene-mithril-icon/package.json | 6 +- .../package.json | 10 +- .../polythene-mithril-list-tile/package.json | 8 +- packages/polythene-mithril-list/package.json | 6 +- .../package.json | 10 +- .../package.json | 10 +- packages/polythene-mithril-menu/package.json | 10 +- .../package.json | 8 +- .../package.json | 10 +- .../package.json | 6 +- .../package.json | 8 +- .../polythene-mithril-ripple/package.json | 4 +- .../polythene-mithril-search/package.json | 6 +- .../polythene-mithril-shadow/package.json | 4 +- .../polythene-mithril-slider/package.json | 4 +- .../polythene-mithril-snackbar/package.json | 8 +- packages/polythene-mithril-svg/package.json | 4 +- .../polythene-mithril-switch/package.json | 10 +- packages/polythene-mithril-tabs/package.json | 10 +- .../polythene-mithril-textfield/package.json | 4 +- .../polythene-mithril-toolbar/package.json | 6 +- packages/polythene-mithril/package.json | 68 +- .../polythene-react-base-spinner/package.json | 8 +- .../polythene-react-button-group/package.json | 4 +- packages/polythene-react-button/package.json | 10 +- packages/polythene-react-card/package.json | 10 +- .../polythene-react-checkbox/package.json | 10 +- .../polythene-react-dialog-pane/package.json | 4 +- packages/polythene-react-dialog/package.json | 12 +- packages/polythene-react-drawer/package.json | 10 +- packages/polythene-react-fab/package.json | 8 +- .../polythene-react-icon-button/package.json | 8 +- packages/polythene-react-icon/package.json | 6 +- .../polythene-react-ios-spinner/package.json | 10 +- .../polythene-react-list-tile/package.json | 8 +- packages/polythene-react-list/package.json | 6 +- .../package.json | 10 +- .../package.json | 10 +- packages/polythene-react-menu/package.json | 10 +- .../polythene-react-notification/package.json | 8 +- .../polythene-react-radio-button/package.json | 10 +- .../polythene-react-radio-group/package.json | 6 +- .../package.json | 8 +- packages/polythene-react-ripple/package.json | 4 +- packages/polythene-react-search/package.json | 6 +- packages/polythene-react-shadow/package.json | 4 +- packages/polythene-react-slider/package.json | 4 +- .../polythene-react-snackbar/package.json | 8 +- packages/polythene-react-svg/package.json | 4 +- packages/polythene-react-switch/package.json | 10 +- packages/polythene-react-tabs/package.json | 10 +- .../polythene-react-textfield/package.json | 4 +- packages/polythene-react-toolbar/package.json | 6 +- packages/polythene-react/package.json | 68 +- packages/polythene-scripts/package.json | 2 +- packages/polythene-style/package.json | 4 +- packages/polythene-theme/package.json | 4 +- packages/polythene-utilities/package.json | 6 +- packages/polythene/package.json | 2 +- packages/tests-build-rollup/dist/js/index.js | 2 +- .../tests-build-rollup/dist/js/index.js.map | 2 +- packages/tests-build-rollup/package.json | 6 +- .../tests-bundle-mithril-all/dist/js/index.js | 4 +- .../dist/js/index.js.gz | Bin 76542 -> 76581 bytes .../dist/js/index.js.map | 2 +- .../dist/js/index.js.map.gz | Bin 263818 -> 263951 bytes .../tests-bundle-mithril-all/package.json | 6 +- .../dist/js/index.js | 2 +- .../dist/js/index.js.gz | Bin 51271 -> 51309 bytes .../dist/js/index.js.map | 2 +- .../dist/js/index.js.map.gz | Bin 182390 -> 182554 bytes .../package.json | 40 +- packages/tests-cypress-mithril/package.json | 6 +- packages/tests-cypress-react/package.json | 8 +- packages/tests-cypress/package.json | 10 +- .../package.json | 6 +- .../tests-polythene-react-setup/package.json | 8 +- .../tests-render-mithril-1.x/dist/js/index.js | 58574 +--------------- .../dist/js/index.js.gz | Bin 128226 -> 128271 bytes .../dist/js/index.js.map | 2 +- .../dist/js/index.js.map.gz | Bin 383065 -> 383271 bytes .../tests-render-mithril-1.x/package.json | 16 +- .../dist/css/theme.css.gz | Bin 1403 -> 1408 bytes .../tests-render-mithril-css/dist/js/index.js | 2 +- .../dist/js/index.js.gz | Bin 45546 -> 45586 bytes .../dist/js/index.js.map | 2 +- .../dist/js/index.js.map.gz | Bin 158453 -> 158608 bytes .../tests-render-mithril-css/package.json | 8 +- .../package.json | 12 +- .../package.json | 2 +- .../tests-render-mithril-tabs/package.json | 6 +- .../dist/js/index.js | 2 +- .../dist/js/index.js.gz | Bin 88689 -> 88723 bytes .../dist/js/index.js.map | 2 +- .../dist/js/index.js.map.gz | Bin 290912 -> 291100 bytes .../package.json | 6 +- packages/tests-render-mithril/package.json | 16 +- .../tests-render-react-phenomic/package.json | 6 +- .../package.json | 2 +- .../dist/js/index.js | 2 +- .../dist/js/index.js.gz | Bin 112708 -> 112742 bytes .../dist/js/index.js.map | 2 +- .../dist/js/index.js.map.gz | Bin 330208 -> 330330 bytes .../package.json | 8 +- packages/tests-render-react/package.json | 16 +- packages/tests/package.json | 14 +- 186 files changed, 788 insertions(+), 59340 deletions(-) diff --git a/lerna.json b/lerna.json index b62aeec2f..234cc7ecd 100644 --- a/lerna.json +++ b/lerna.json @@ -3,5 +3,5 @@ "packages": [ "packages/*" ], - "version": "1.6.5" + "version": "1.7.0" } diff --git a/package.json b/package.json index 888642b64..cabc03805 100644 --- a/package.json +++ b/package.json @@ -9,10 +9,10 @@ "build:collect-css": "cd packages/polythene-css && npm run build", "build:standalone": "node ./scripts/private/buildStandalone && npm run github:assets", "dependencies:update": "node ./scripts/private/updateDependencies", - "bump:test": "node --experimental-modules ./scripts/private/bumpVersion --dry-run --version 1.6.5", - "bump:real": "node --experimental-modules ./scripts/private/bumpVersion --version 1.6.5", - "publish:test": "node --experimental-modules ./scripts/private/publish --dry-run --version 1.6.5", - "publish:real": "node --experimental-modules ./scripts/private/publish --version 1.6.5", + "bump:test": "node --experimental-modules ./scripts/private/bumpVersion --dry-run --version 1.7.0", + "bump:real": "node --experimental-modules ./scripts/private/bumpVersion --version 1.7.0", + "publish:test": "node --experimental-modules ./scripts/private/publish --dry-run --version 1.7.0", + "publish:real": "node --experimental-modules ./scripts/private/publish --version 1.7.0", "github:demos": "node ./scripts/private/copyToDemos", "github:assets": "node ./scripts/private/copyToAssets", "typecheck": "lerna run typecheck", diff --git a/packages/polythene-core-base-spinner/package.json b/packages/polythene-core-base-spinner/package.json index fcd091af3..6b8d7c082 100644 --- a/packages/polythene-core-base-spinner/package.json +++ b/packages/polythene-core-base-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-base-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-base-spinner", "module": "dist/polythene-core-base-spinner.mjs", @@ -16,9 +16,9 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-button-group/package.json b/packages/polythene-core-button-group/package.json index db2024083..ae66fbe8b 100644 --- a/packages/polythene-core-button-group/package.json +++ b/packages/polythene-core-button-group/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-button-group", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-button-group", "module": "dist/polythene-core-button-group.mjs", @@ -16,9 +16,9 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-button/package.json b/packages/polythene-core-button/package.json index 7b96eff8f..39528d21a 100644 --- a/packages/polythene-core-button/package.json +++ b/packages/polythene-core-button/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-button", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-button", "module": "dist/polythene-core-button.mjs", @@ -16,13 +16,13 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-core-shadow": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-core-shadow": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "devDependencies": { - "polythene-core-ripple": "1.6.5" + "polythene-core-ripple": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-card/package.json b/packages/polythene-core-card/package.json index ddb9ce375..830043add 100644 --- a/packages/polythene-core-card/package.json +++ b/packages/polythene-core-card/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-card", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-card", "module": "dist/polythene-core-card.mjs", @@ -16,13 +16,13 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "devDependencies": { - "polythene-core-icon": "1.6.5", - "polythene-core-list-tile": "1.6.5" + "polythene-core-icon": "1.7.0", + "polythene-core-list-tile": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-checkbox/package.json b/packages/polythene-core-checkbox/package.json index a0c868cf0..d3a5dcaf0 100644 --- a/packages/polythene-core-checkbox/package.json +++ b/packages/polythene-core-checkbox/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-checkbox", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-checkbox", "module": "dist/polythene-core-checkbox.mjs", @@ -16,10 +16,10 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-core-selection-control": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-core-selection-control": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-css/package.json b/packages/polythene-core-css/package.json index d35fba27b..6b47e0dfa 100644 --- a/packages/polythene-core-css/package.json +++ b/packages/polythene-core-css/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-css", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-css", "module": "dist/polythene-core-css.mjs", @@ -20,10 +20,10 @@ "dependencies": { "j2c": "^1.0.0-4", "j2c-plugin-prefix-browser": "^1.0.7", - "polythene-core": "1.6.5" + "polythene-core": "1.7.0" }, "devDependencies": { - "polythene-scripts": "1.6.5" + "polythene-scripts": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-dialog-pane/package.json b/packages/polythene-core-dialog-pane/package.json index fd104e251..75e287c4a 100644 --- a/packages/polythene-core-dialog-pane/package.json +++ b/packages/polythene-core-dialog-pane/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-dialog-pane", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-dialog-pane", "module": "dist/polythene-core-dialog-pane.mjs", @@ -16,9 +16,9 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-dialog/package.json b/packages/polythene-core-dialog/package.json index 95e7ea174..f4e991391 100644 --- a/packages/polythene-core-dialog/package.json +++ b/packages/polythene-core-dialog/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-dialog", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-dialog", "module": "dist/polythene-core-dialog.mjs", @@ -16,12 +16,12 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "devDependencies": { - "polythene-core-dialog-pane": "1.6.5" + "polythene-core-dialog-pane": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-drawer/package.json b/packages/polythene-core-drawer/package.json index be229ae85..b3afc58ff 100644 --- a/packages/polythene-core-drawer/package.json +++ b/packages/polythene-core-drawer/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-drawer", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-drawer", "module": "dist/polythene-core-drawer.mjs", @@ -16,12 +16,12 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "devDependencies": { - "polythene-core-dialog": "1.6.5" + "polythene-core-dialog": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-fab/package.json b/packages/polythene-core-fab/package.json index 0d4a49527..8b2ae3c6a 100644 --- a/packages/polythene-core-fab/package.json +++ b/packages/polythene-core-fab/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-fab", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-fab", "module": "dist/polythene-core-fab.mjs", @@ -16,13 +16,13 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "devDependencies": { - "polythene-core-button": "1.6.5", - "polythene-core-icon": "1.6.5" + "polythene-core-button": "1.7.0", + "polythene-core-icon": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-icon-button/package.json b/packages/polythene-core-icon-button/package.json index 3b17ff454..5e80fbdbc 100644 --- a/packages/polythene-core-icon-button/package.json +++ b/packages/polythene-core-icon-button/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-icon-button", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-icon-button", "module": "dist/polythene-core-icon-button.mjs", @@ -16,13 +16,13 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "devDependencies": { - "polythene-core-button": "1.6.5", - "polythene-core-icon": "1.6.5" + "polythene-core-button": "1.7.0", + "polythene-core-icon": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-icon/package.json b/packages/polythene-core-icon/package.json index 01caba513..37f814885 100644 --- a/packages/polythene-core-icon/package.json +++ b/packages/polythene-core-icon/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-icon", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-icon", "module": "dist/polythene-core-icon.mjs", @@ -16,12 +16,12 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "devDependencies": { - "polythene-core-svg": "1.6.5" + "polythene-core-svg": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-ios-spinner/package.json b/packages/polythene-core-ios-spinner/package.json index 6109e8687..4b92910a8 100644 --- a/packages/polythene-core-ios-spinner/package.json +++ b/packages/polythene-core-ios-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-ios-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-ios-spinner", "module": "dist/polythene-core-ios-spinner.mjs", @@ -16,10 +16,10 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-core-base-spinner": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-core-base-spinner": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-list-tile/package.json b/packages/polythene-core-list-tile/package.json index 64a99e2c4..7af1db9b8 100644 --- a/packages/polythene-core-list-tile/package.json +++ b/packages/polythene-core-list-tile/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-list-tile", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-list-tile", "module": "dist/polythene-core-list-tile.mjs", @@ -16,13 +16,13 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "devDependencies": { - "polythene-core-icon": "1.6.5", - "polythene-core-ripple": "1.6.5" + "polythene-core-icon": "1.7.0", + "polythene-core-ripple": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-list/package.json b/packages/polythene-core-list/package.json index 1658c91b8..78fca627f 100644 --- a/packages/polythene-core-list/package.json +++ b/packages/polythene-core-list/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-list", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-list", "module": "dist/polythene-core-list.mjs", @@ -16,12 +16,12 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "devDependencies": { - "polythene-core-list-tile": "1.6.5" + "polythene-core-list-tile": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-material-design-progress-spinner/package.json b/packages/polythene-core-material-design-progress-spinner/package.json index ade2bc07e..a6a1b1d4a 100644 --- a/packages/polythene-core-material-design-progress-spinner/package.json +++ b/packages/polythene-core-material-design-progress-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-material-design-progress-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-material-design-progress-spinner", "module": "dist/polythene-core-material-design-progress-spinner.mjs", @@ -16,11 +16,11 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-core-base-spinner": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5", - "polythene-utilities": "1.6.5" + "polythene-core": "1.7.0", + "polythene-core-base-spinner": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0", + "polythene-utilities": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-material-design-spinner/package.json b/packages/polythene-core-material-design-spinner/package.json index b0a269b43..c755439fa 100644 --- a/packages/polythene-core-material-design-spinner/package.json +++ b/packages/polythene-core-material-design-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-material-design-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-material-design-spinner", "module": "dist/polythene-core-material-design-spinner.mjs", @@ -16,10 +16,10 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-core-base-spinner": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-core-base-spinner": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-menu/package.json b/packages/polythene-core-menu/package.json index a7950ae1f..0967dd0e3 100644 --- a/packages/polythene-core-menu/package.json +++ b/packages/polythene-core-menu/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-menu", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-menu", "module": "dist/polythene-core-menu.mjs", @@ -16,9 +16,9 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-notification/package.json b/packages/polythene-core-notification/package.json index b6845f5e6..4756833dc 100644 --- a/packages/polythene-core-notification/package.json +++ b/packages/polythene-core-notification/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-notification", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-notification", "module": "dist/polythene-core-notification.mjs", @@ -16,10 +16,10 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5", - "polythene-utilities": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0", + "polythene-utilities": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-radio-button/package.json b/packages/polythene-core-radio-button/package.json index 60c0d8de8..db09ce842 100644 --- a/packages/polythene-core-radio-button/package.json +++ b/packages/polythene-core-radio-button/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-radio-button", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-radio-button", "module": "dist/polythene-core-radio-button.mjs", @@ -16,10 +16,10 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-core-selection-control": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-core-selection-control": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "license": "MIT" diff --git a/packages/polythene-core-radio-group/package.json b/packages/polythene-core-radio-group/package.json index 6484c02c5..85b52237d 100644 --- a/packages/polythene-core-radio-group/package.json +++ b/packages/polythene-core-radio-group/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-radio-group", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-radio-group", "module": "dist/polythene-core-radio-group.mjs", @@ -16,12 +16,12 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "devDependencies": { - "polythene-core-radio-button": "1.6.5" + "polythene-core-radio-button": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-ripple/package.json b/packages/polythene-core-ripple/package.json index 84c0397df..4d1897b6e 100644 --- a/packages/polythene-core-ripple/package.json +++ b/packages/polythene-core-ripple/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-ripple", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-ripple", "module": "dist/polythene-core-ripple.mjs", @@ -16,9 +16,9 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-search/package.json b/packages/polythene-core-search/package.json index a3effe755..70f9f89ce 100644 --- a/packages/polythene-core-search/package.json +++ b/packages/polythene-core-search/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-search", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-search", "module": "dist/polythene-core-search.mjs", @@ -16,12 +16,12 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "devDependencies": { - "polythene-core-textfield": "1.6.5" + "polythene-core-textfield": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-selection-control/package.json b/packages/polythene-core-selection-control/package.json index 243d88e17..9c7a6a73f 100644 --- a/packages/polythene-core-selection-control/package.json +++ b/packages/polythene-core-selection-control/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-selection-control", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-selection-control", "module": "dist/polythene-core-selection-control.mjs", @@ -16,13 +16,13 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "devDependencies": { - "polythene-core-icon": "1.6.5", - "polythene-core-icon-button": "1.6.5" + "polythene-core-icon": "1.7.0", + "polythene-core-icon-button": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-shadow/package.json b/packages/polythene-core-shadow/package.json index a37440259..cfca96550 100644 --- a/packages/polythene-core-shadow/package.json +++ b/packages/polythene-core-shadow/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-shadow", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-shadow", "module": "dist/polythene-core-shadow.mjs", @@ -16,9 +16,9 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-slider/package.json b/packages/polythene-core-slider/package.json index a2578f6c4..e9c3a5093 100644 --- a/packages/polythene-core-slider/package.json +++ b/packages/polythene-core-slider/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-slider", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-slider", "module": "dist/polythene-core-slider.mjs", @@ -16,9 +16,9 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-snackbar/package.json b/packages/polythene-core-snackbar/package.json index e35b55af5..cea1730e8 100644 --- a/packages/polythene-core-snackbar/package.json +++ b/packages/polythene-core-snackbar/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-snackbar", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-snackbar", "module": "dist/polythene-core-snackbar.mjs", @@ -16,10 +16,10 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-core-notification": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-core-notification": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-svg/package.json b/packages/polythene-core-svg/package.json index e38dc46b2..d1989c875 100644 --- a/packages/polythene-core-svg/package.json +++ b/packages/polythene-core-svg/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-svg", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-svg", "module": "dist/polythene-core-svg.mjs", @@ -16,8 +16,8 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-switch/package.json b/packages/polythene-core-switch/package.json index 3212747c5..c9d785777 100644 --- a/packages/polythene-core-switch/package.json +++ b/packages/polythene-core-switch/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-switch", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-switch", "module": "dist/polythene-core-switch.mjs", @@ -16,11 +16,11 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-core-icon-button": "1.6.5", - "polythene-core-selection-control": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-core-icon-button": "1.7.0", + "polythene-core-selection-control": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-tabs/package.json b/packages/polythene-core-tabs/package.json index 9e7c0c8f0..00505ff15 100644 --- a/packages/polythene-core-tabs/package.json +++ b/packages/polythene-core-tabs/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-tabs", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-tabs", "module": "dist/polythene-core-tabs.mjs", @@ -16,16 +16,16 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-core-icon-button": "1.6.5", - "polythene-css-button": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5", - "polythene-utilities": "1.6.5" + "polythene-core": "1.7.0", + "polythene-core-icon-button": "1.7.0", + "polythene-css-button": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0", + "polythene-utilities": "1.7.0" }, "devDependencies": { - "polythene-core-button": "1.6.5", - "polythene-core-icon": "1.6.5" + "polythene-core-button": "1.7.0", + "polythene-core-icon": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-textfield/package.json b/packages/polythene-core-textfield/package.json index 9068f41c5..b7e4c075b 100644 --- a/packages/polythene-core-textfield/package.json +++ b/packages/polythene-core-textfield/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-textfield", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-textfield", "module": "dist/polythene-core-textfield.mjs", @@ -16,9 +16,9 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core-toolbar/package.json b/packages/polythene-core-toolbar/package.json index 3b67667dd..efd8ce6c8 100644 --- a/packages/polythene-core-toolbar/package.json +++ b/packages/polythene-core-toolbar/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core-toolbar", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core-toolbar", "module": "dist/polythene-core-toolbar.mjs", @@ -16,9 +16,9 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-core/package.json b/packages/polythene-core/package.json index 25c6eaebf..5a1773042 100644 --- a/packages/polythene-core/package.json +++ b/packages/polythene-core/package.json @@ -1,6 +1,6 @@ { "name": "polythene-core", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-core", "module": "dist/polythene-core.mjs", diff --git a/packages/polythene-css-base-spinner/package.json b/packages/polythene-css-base-spinner/package.json index 9cbb314c9..d668e48d3 100644 --- a/packages/polythene-css-base-spinner/package.json +++ b/packages/polythene-css-base-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-base-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-base-spinner", "module": "dist/polythene-css-base-spinner.mjs", @@ -17,9 +17,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-button-group/package.json b/packages/polythene-css-button-group/package.json index c54d726d0..9860c9428 100644 --- a/packages/polythene-css-button-group/package.json +++ b/packages/polythene-css-button-group/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-button-group", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-button-group", "module": "dist/polythene-css-button-group.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-button/package.json b/packages/polythene-css-button/package.json index 003abff3a..e23b8f963 100644 --- a/packages/polythene-css-button/package.json +++ b/packages/polythene-css-button/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-button", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-button", "module": "dist/polythene-css-button.mjs", @@ -18,10 +18,10 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-css-shadow": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-css-shadow": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-card/package.json b/packages/polythene-css-card/package.json index 6850ea7c9..aad395c2f 100644 --- a/packages/polythene-css-card/package.json +++ b/packages/polythene-css-card/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-card", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-card", "module": "dist/polythene-css-card.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-checkbox/package.json b/packages/polythene-css-checkbox/package.json index c777e6232..7d1132921 100644 --- a/packages/polythene-css-checkbox/package.json +++ b/packages/polythene-css-checkbox/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-checkbox", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-checkbox", "module": "dist/polythene-css-checkbox.mjs", @@ -18,10 +18,10 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-css-selection-control": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-css-selection-control": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-classes/package.json b/packages/polythene-css-classes/package.json index afb37fb07..0e8219938 100644 --- a/packages/polythene-css-classes/package.json +++ b/packages/polythene-css-classes/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-classes", - "version": "1.6.5", + "version": "1.7.0", "description": "", "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-core/package.json b/packages/polythene-css-core/package.json index 1dc90e642..3b599fb67 100644 --- a/packages/polythene-css-core/package.json +++ b/packages/polythene-css-core/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-core", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-core", "module": "dist/polythene-css-core.mjs", @@ -18,7 +18,7 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5" + "polythene-core-css": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-dialog-pane/package.json b/packages/polythene-css-dialog-pane/package.json index 6f05294eb..2f5d75149 100644 --- a/packages/polythene-css-dialog-pane/package.json +++ b/packages/polythene-css-dialog-pane/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-dialog-pane", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-dialog-pane", "module": "dist/polythene-css-dialog-pane.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-dialog/package.json b/packages/polythene-css-dialog/package.json index 43a678bf0..9e1839c24 100644 --- a/packages/polythene-css-dialog/package.json +++ b/packages/polythene-css-dialog/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-dialog", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-dialog", "module": "dist/polythene-css-dialog.mjs", @@ -18,11 +18,11 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-css-dialog-pane": "1.6.5", - "polythene-css-shadow": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-css-dialog-pane": "1.7.0", + "polythene-css-shadow": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-drawer/package.json b/packages/polythene-css-drawer/package.json index e04121a3d..05344b457 100644 --- a/packages/polythene-css-drawer/package.json +++ b/packages/polythene-css-drawer/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-drawer", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-drawer", "module": "dist/polythene-css-drawer.mjs", @@ -18,11 +18,11 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-css-dialog": "1.6.5", - "polythene-css-shadow": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-css-dialog": "1.7.0", + "polythene-css-shadow": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-fab/package.json b/packages/polythene-css-fab/package.json index b397718f9..eeb53fec4 100644 --- a/packages/polythene-css-fab/package.json +++ b/packages/polythene-css-fab/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-fab", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-fab", "module": "dist/polythene-css-fab.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-icon-button/package.json b/packages/polythene-css-icon-button/package.json index 6718c4dba..dd176e35e 100644 --- a/packages/polythene-css-icon-button/package.json +++ b/packages/polythene-css-icon-button/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-icon-button", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-icon-button", "module": "dist/polythene-css-icon-button.mjs", @@ -18,10 +18,10 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-button": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-button": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-icon/package.json b/packages/polythene-css-icon/package.json index 346a37982..e7f197727 100644 --- a/packages/polythene-css-icon/package.json +++ b/packages/polythene-css-icon/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-icon", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-icon", "module": "dist/polythene-css-icon.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-ios-spinner/package.json b/packages/polythene-css-ios-spinner/package.json index 39a7149f7..9baa7678b 100644 --- a/packages/polythene-css-ios-spinner/package.json +++ b/packages/polythene-css-ios-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-ios-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-ios-spinner", "module": "dist/polythene-css-ios-spinner.mjs", @@ -18,11 +18,11 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-core-css": "1.6.5", - "polythene-css-base-spinner": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core": "1.7.0", + "polythene-core-css": "1.7.0", + "polythene-css-base-spinner": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-list-tile/package.json b/packages/polythene-css-list-tile/package.json index dced05032..fc0c4a6e6 100644 --- a/packages/polythene-css-list-tile/package.json +++ b/packages/polythene-css-list-tile/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-list-tile", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-list-tile", "module": "dist/polythene-css-list-tile.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-list/package.json b/packages/polythene-css-list/package.json index 41827da1f..057006d8d 100644 --- a/packages/polythene-css-list/package.json +++ b/packages/polythene-css-list/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-list", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-list", "module": "dist/polythene-css-list.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-material-design-progress-spinner/package.json b/packages/polythene-css-material-design-progress-spinner/package.json index b25bc6ec8..628f7f88a 100644 --- a/packages/polythene-css-material-design-progress-spinner/package.json +++ b/packages/polythene-css-material-design-progress-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-material-design-progress-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-material-design-progress-spinner", "module": "dist/polythene-css-material-design-progress-spinner.mjs", @@ -18,11 +18,11 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-base-spinner": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-css-material-design-spinner": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-base-spinner": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-css-material-design-spinner": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-material-design-spinner/package.json b/packages/polythene-css-material-design-spinner/package.json index e152c0160..bb8fdcdab 100644 --- a/packages/polythene-css-material-design-spinner/package.json +++ b/packages/polythene-css-material-design-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-material-design-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-material-design-spinner", "module": "dist/polythene-css-material-design-spinner.mjs", @@ -18,10 +18,10 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-base-spinner": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-base-spinner": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-menu/package.json b/packages/polythene-css-menu/package.json index 330344e12..e1db3ded6 100644 --- a/packages/polythene-css-menu/package.json +++ b/packages/polythene-css-menu/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-menu", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-menu", "module": "dist/polythene-css-menu.mjs", @@ -18,10 +18,10 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-css-shadow": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-css-shadow": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-notification/package.json b/packages/polythene-css-notification/package.json index cecd2c0f6..20db1eccf 100644 --- a/packages/polythene-css-notification/package.json +++ b/packages/polythene-css-notification/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-notification", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-notification", "module": "dist/polythene-css-notification.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-radio-button/package.json b/packages/polythene-css-radio-button/package.json index 74b9f26f5..19fc7134f 100644 --- a/packages/polythene-css-radio-button/package.json +++ b/packages/polythene-css-radio-button/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-radio-button", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-radio-button", "module": "dist/polythene-css-radio-button.mjs", @@ -18,10 +18,10 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-css-selection-control": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-css-selection-control": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-ripple/package.json b/packages/polythene-css-ripple/package.json index 1d600037d..b5e54976f 100644 --- a/packages/polythene-css-ripple/package.json +++ b/packages/polythene-css-ripple/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-ripple", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-ripple", "module": "dist/polythene-css-ripple.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-search/package.json b/packages/polythene-css-search/package.json index 8789cd498..aeb101a2c 100644 --- a/packages/polythene-css-search/package.json +++ b/packages/polythene-css-search/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-search", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-search", "module": "dist/polythene-css-search.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-selection-control/package.json b/packages/polythene-css-selection-control/package.json index 74e851712..2e061db5d 100644 --- a/packages/polythene-css-selection-control/package.json +++ b/packages/polythene-css-selection-control/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-selection-control", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-selection-control", "module": "dist/polythene-css-selection-control.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-shadow/package.json b/packages/polythene-css-shadow/package.json index b7de3423e..b99b3eab7 100644 --- a/packages/polythene-css-shadow/package.json +++ b/packages/polythene-css-shadow/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-shadow", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-shadow", "module": "dist/polythene-css-shadow.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-slider/package.json b/packages/polythene-css-slider/package.json index 6a31be5df..de842cfe5 100644 --- a/packages/polythene-css-slider/package.json +++ b/packages/polythene-css-slider/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-slider", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-slider", "module": "dist/polythene-css-slider.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-snackbar/package.json b/packages/polythene-css-snackbar/package.json index 1bcc89963..4383bdc6e 100644 --- a/packages/polythene-css-snackbar/package.json +++ b/packages/polythene-css-snackbar/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-snackbar", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-snackbar", "module": "dist/polythene-css-snackbar.mjs", @@ -18,10 +18,10 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-css-notification": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-css-notification": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-svg/package.json b/packages/polythene-css-svg/package.json index 2bbc124cc..01ec9d747 100644 --- a/packages/polythene-css-svg/package.json +++ b/packages/polythene-css-svg/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-svg", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-svg", "module": "dist/polythene-css-svg.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-switch/package.json b/packages/polythene-css-switch/package.json index 611432d85..c997901de 100644 --- a/packages/polythene-css-switch/package.json +++ b/packages/polythene-css-switch/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-switch", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-switch", "module": "dist/polythene-css-switch.mjs", @@ -18,11 +18,11 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-css-icon-button": "1.6.5", - "polythene-css-selection-control": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-css-icon-button": "1.7.0", + "polythene-css-selection-control": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-tabs/package.json b/packages/polythene-css-tabs/package.json index 203ff9c6c..70ebd0c70 100644 --- a/packages/polythene-css-tabs/package.json +++ b/packages/polythene-css-tabs/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-tabs", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-tabs", "module": "dist/polythene-css-tabs.mjs", @@ -18,11 +18,11 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-button": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-css-icon-button": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-button": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-css-icon-button": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-textfield/package.json b/packages/polythene-css-textfield/package.json index 00ec1edf7..574f1d3c9 100644 --- a/packages/polythene-css-textfield/package.json +++ b/packages/polythene-css-textfield/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-textfield", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-textfield", "module": "dist/polythene-css-textfield.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-toolbar/package.json b/packages/polythene-css-toolbar/package.json index 805cdcd33..0d7c107f7 100644 --- a/packages/polythene-css-toolbar/package.json +++ b/packages/polythene-css-toolbar/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-toolbar", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-toolbar", "module": "dist/polythene-css-toolbar.mjs", @@ -18,9 +18,9 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-css-classes": "1.6.5", - "polythene-theme": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-theme": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css-typography/package.json b/packages/polythene-css-typography/package.json index 5202ff5c0..3f0d705cf 100644 --- a/packages/polythene-css-typography/package.json +++ b/packages/polythene-css-typography/package.json @@ -1,6 +1,6 @@ { "name": "polythene-css-typography", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-css-typography", "module": "dist/polythene-css-typography.mjs", @@ -18,10 +18,10 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-style": "1.6.5", - "polythene-theme": "1.6.5", - "polythene-utilities": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-style": "1.7.0", + "polythene-theme": "1.7.0", + "polythene-utilities": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-css/dist/polythene.css.gz b/packages/polythene-css/dist/polythene.css.gz index 1f06f6c222f834d03fad673e378c91419e731939..84f8440a5e141607ceea08ccaa218ada9562c81e 100644 GIT binary patch literal 17275 zcmV)EK)}BriwFP!000006YYI#kK?+PU_S4!@FciESFTm@yBo9?vJg8;uv!(Sm&M znh@yE<#f&~LP}npx0fm%&WQaP)c^hfe^i;O&+4E1W09SX<$hmO*K?KcPvyBh?6YHa zI2P6U>vO)_eN)OPk6Bjb<*8U-j|X1qxhi(~x%^x#Uk}xq6sYobc{x4LM?ZaYpjnd| zU!O;(rTXqtv`_%C=b9ET z)Z*iXa3o+%6@I2Z764*&NT!5qYJAc@y^*#g08A7mPked>NKxTT6_aDnk`QTr>%97u zoe#vXdl3w^vI9in9mR=-+!V%u_PCnYeD&#Lb-3);+3K)6RL_6dY&MM1*UOo}&*;bF zm2_!G>R2|r;*0Y2n!OjVpUQJ~IT4trVppur&wE1EGJ8AOFM(2rU+rSVIqb@P!GB2k zkCx}+%bEDM)j@bO_L;rRi8%JpE8?+=YPq^pC&I_^P|}|Yu?kZe;U^~!jEl$qT<-G~ z^}CMGoLC|~foolC^2_eL6gacuGa==~2vqP7n#Y%y)q#{09v1k#%U_FKupcP*+oCGZ zE*u<)RNd?Du=*53;(LDDy6B_dxWP0;=C7y2?s6tNIUI?)D%OTZgk)0XjXdm%4gLKq zk?y+q!oC2^1Srg^!~1nZgqNMlUkeJASV|@u>}dH$yluIE9t|?-1Da|I1J}BoEXM2z z()2MW=5`8pFccv$8+bdJ@zrM z%}?3(@R=A4`#S=PR&-5*)%D?hZ|VqeFYjAoOr%@MSH<(OA}+m$9>Gg1d#}4XtzD@O z!Yez;^p%9H8IK0MW-iNvlC#?(8r13YN5H;?_oQYn!~Yn%n1Fr;DdoN}V+d%(W3sOX z0t3^Pd1M93rRLBcv%EP5E#pV+13080A;S_HY_WHnL-mFcSVk&gsHX6qtHU`z7ay|m z<7i!cykqdI^Uf4dWM?w`+q$g&OyK;zB_NYsh%ia3U2beTj*0>~wI`HA$ll~2fdzYh8v;NS9TmPsTakQ*; z(~Yg}Py>b~Hq6u*rx|aI z0ZLsJ-o?b#Xw=NDkoa?eh@GLapfWvUgShUBGaWS1IEZtlxW760~iDUB6kKQ%oXz6`*si@BXnf|EP zx9-P@HUJr5msXC2Z}Yi5?eY(!;pnH~ctrlXAJ6W*JVNN>Il)3nZ;ud$c$%)TkR}Vi zklejE&M@n43r7EdR}p4@04?#y9a2H`$r^(3{!TTeVAlL=l0%>;0_?IsRx zfS-Utw^0M$i>2#9U+C;B{4iEX`$F?w;+g~rCd&j^n~sc5k~9I-P77|5u&V&@Qi|j( zCD5uqzOpt&{=0vC2(%|((B&43uU6N=S%Pw-qO%m`MCQ3n)`kqnh2`R7zbo}(NSWmi?K$r8!y`l!BF&RHCHq&@% zL^;7YZqs8eYnCT8DDPj?NKr?kDpIK&St_kg=i(g}O65j1}qkvoB&F39TwslV8qiV6}c^-9FZVnrInb(M!u#^!MoxziLT1n3WHifS4t zX{?Dz>WqUg69@rU%7FLUC(>z`yW-{LT%LD@vHfhRZZ4aR^b;_2dycvdZUPG)#&){A za)jDGIv9e`vvx3SN&h09eO2%+z188}(@WdH6qBUgvrdM?goK24OqUG*Ykn$E&r(iI zY;1F&CZ;DCS}g%XXaIBFtp4X<3$<}JtM|=?C>H1C~7i`Mt2 zKfU{wN|-I4bO_z>X08ZLf!(Dp$ImRwDR4)5@0kHtO*t};Kvoat@f)+9bdyFM!zOh$ zFxJNyv~_I6JG}@BjG9XCPmd9aqu`Dm-(h7#MvNgf6exm3GME3_X+WyDO3^RqC6miz6wz{+G+V%@_Da7y?8g~ z0f_Zycn}GW4P`W*ZaTr$A$+e9kv#Ld^4Pu{l(QT1;+M_+y>y@0=gmQFczX zCC$;@(pOU5?adQk4fA0x@?Mb#{;J#`FK6-cDiZ>ZzVX-fCT%^N6&e5T4j;2)zAyBt zZhL-GP6nFwhQ{xK@wh{=+h1!dvc%J1j}V6Ks|RYxP|1ro~7 z>+-WYJ5bM@V>tMQemEZvyVtx5Yfj8Bv{O+MZ4TbCB)b%#=I%F|NK;I==!SNSo_)XKjVrj2Wx z&h^lS;YGj~j>8}~hXZlzh=o7?_G3j1W9-NXiNzK+YhF%mA)ZO!E80ILh;JV8jm7PDJ;#*PJSiPX&$N}hEAu~)5_oe!dE6fG#l7vbXn!@YKfpOz!M&gMxWmY*?{K%zWdgIY0ies z#(pr|7tC<4_ud^4Ln9Qr$!IY}+E8oVEqmLkkDzlRIe9(K3jD_#K=?Kums?1LR|T#?_IE zK9s?p@1hmkTdh6eaxdD$Xf)Dx*h86y#f;L>q;{xhlIHX(Eb^ft8SoaxUSUYzV~DJ! zhz^>pi2(%y75dP2OGOdrhU!Y^J2H+lD0=w3ZB9UZe(#u!U;fBPOs8#C?muiqEwP6Ybj;DC6*Pem(rTGQ`(e_9WYu_&6_|iV& zQ6IAjcpTRiCbqsLTkuzL%@!;O{WK&r6HbDH!%i8$@?%ByaB4cy$DPA~4r6W^Q=Phg zILXN+IGGSc=_;tPT{Ra* zXYt+jJg}6k<&L&hPv_YaQaj%5ZzZp zd%gKtdc3CcUC`4?uR1z`u#vs3%4od;Bpk2Cxi?xeF&ZHsghZ|l)xW=p)hHC~t9c++ ziKDE0YQltSt5yyB23&Z`+SiD52QI8nS)G#xHyw>&QdN+ItrD$iHNCgI{Y*R9=fhOr z^9eS%nkmxA&gE)pWM61nh?FOx`%HkeLkn^lR9P!A5XgkV{YR*r8D>XS26<8P3638eziSRbcaG)p(Ubi$7`IXP(1fyY@UYKl7;VVg0VwZKap4$8H@z$ zu+}qu-<&TEg+;+=Kby?w&B5~s&#DJqeo-q_`(o@U!*X#KVJ;y7NtdBYD83O#2r82H z7UGva3FHce7wd(Ql1#(dmjt5p+O=~K)uu@1Q4u$tC72k=Nvj-5}|broSyu>dR?h`2CpuFnnhC`*hCU#4fVNAtN}#GHn?&VV>r-`n@#>&AGNxiXya#@ zh57tb_I9#g0;LYW+QsBVR=H=plO1Vvm-4g~tFyXPCqk!~R$IC^b`z=@yH+;&K;m4P zLsr%&|2CDijX#b&nZSM^&-n$3rYeueow*4{-H~MS!)`l|P3;Ni2yP~Co=wvo&|M1y zWeNw{OR%&I-rQ43h!_9xz7*7q*i^0Lh+)rC#q!{TOR-IlTW9`TK>0)*^#Q-@!lW#9 z;Z&wuZ`+TZcQHXl5i(;tQr2wwfoO-QKn-8 zVS@q1H0m5lMWZ5=9Wm`Iv^t`QS$ztI-8zoY_H`|^TV_McN_6tlJVJJ_m9R0)~ zHby~FH0!Br<9XKV%WYTRiwQ1BNktS0;}&s5qX&IUod9j(Bf|Jer)S?t%Q=VPK0*Ni z2o&gq5#^$_hQ#6$J3a|Z&^blk0MjA7cyQ^0i~t#PT{F)4I>Wn|>Kz0wf&RiFT|EwS z12#f1Ou?4)q_!I({xw%t#=CFiM zqsZ*V85=h|zm@CtuJB%{V^54I2?4ZdY*gc}dCKz7`MF7(V9cdJMcF+e%Gd}PSp@GY zqVO0T*Ejlb`pkFjt1o_`Szb`!8?x0zwqs?Mq0ZK!7uU1rvKt@Fvt)I1tf)WcT$)cb{j1Q4}dP^@BqkR{MelwqRqZ1tAB*}oOj6QV>_#N*Y8pa zPmmNQ-ASRXv%ih6ACCYrJas39hiIdJ=*jBGV}R2|cbpnV8*TOO`khJv4EDN{!qd2& z)w}Bh!_uHgph0VRK&0%&vIcH00{ocFr140~jd5mdr7rk2S#**Vz%3=f4jS(AuZPQd zDE_@yu6EOt4O`#u`NUdXQ%dI_orjN=iiOvn)Ka0 z-9J2R9-GT8>CQL~a4;UQGv^9izU!FPqLZH-GhanzFY9+>@#6e`;4dcf#kML$nW=cS zIb16KW+vazY~}3DT)a7zg3X0|K{rb9R}bP9n}6Z29wm{bB)5mEt)uw4>(#RK6V#)j1biI^{gDy`h$Umeabdhu)MxHh^#POZe(^nnjFd zIj<9|Yx&ybCYr0#&z*PL)*A9J&5ckVjeRrqdnGVp&2)(fOBg^*r=kg;9Y)!I6E`BA6{;?{uI*q;yAZaeEPs+{qG63iA zmr4c%_FGToF!6#e_ow2VZFSz&BRP-e0VKI^CkCQJJ^EoM3sZ(e^%*2yTy$*QwrfE& zDU)~A8z~e+<%ixvr-CrNreJ-^^=W=~{FcB;`i{URyyw?EtOBM&^_6Vi ztcrb|O|Tc%#uRL4nZBdnxQrzcjp$pAQx~G&rdQ7xf%HQwq}-5nf4L&=(n{xNZnbBOIsWz(K9IWG6sE=VZa?f3O9_Rh*$2Jq^o{xQ=2`)xk|?rkTK)b z3YO`OBPOT}?!^%*;p7{q-ayn&S*47W(L-Wy04b>G1Fsf5JSp9%yn}2Mm>Ysa6ZO6v zxLz}Pch!ejD18q2PIRT_#H@*(D$2dYS{+r1_O4Fm?K@N*W+NYt0 zLRpLZri>a`wZ$AeYff12CStZY8)1oJ)i(jN4~e<+5QgB5>3rZLD*EGKbr_GtRZsQf zQ!%(?FHI;yU2qjl4c{DQ9Bve(6hIhtv;vg^sVjKZ`TJe&Crme(Myk>7`T8peVZj$ie(e!0mJ(*H(;>H2)$v^bfRQqZ* zz1eSPmeqmEyX>dhPwisE+zt_SfTx3I+6kuqgw+SpILp&^gS$3kY~|g&DsjF&>osxa zwuGM1Ii&2Je)%y-9DWDX39BT=;Q_}OCY?lE3>{h_H2v5&Ln#*7j}Th4jUPyGkZgL# zt#<^s(#&m;MMo+parmDUeHYhg(U&#Y`p~I*OcW?a)0hxbTW5UBx7_(ni)#l|n;N`C zc)mnEp7gxS$@|r|+z~h6xJj2?qPx^?-BouZJ4sHb#L?&wCj`=1sLwX(^^MDoF(MFJ zRj+#*K-yKbZ=N^sl;$T8uAT!4O&xLEq^4w1Q(|pksM&YyJFvtb2)&8x8W-4_cHk>~V>18$f4b7Vw%2beXS>GsRc{%F@8Jw6a(Zd$cjH zNP5M4Yiovt{6b@$OPXKdnWiie+8jA`iP4aiu~|tZ z_IO&tukB7DfknW_r&xeyG`PcKob-j*u{ZCXiA6Cj5eWo`ESrD=@&x8JL4t<@oPY~w19!zrII6eIS z3vpIX)LzV)8?~3)o-ulOrJ3aa&*iM$4fXV--VHT^Nyb(5Njd*oRAUO}f9(N4lezJG z@sk4i@k#ylEEFSamvDgPP(L)*irZ1QcT&A~dGRp1FRS5pa{FohcnkgC^ z%krdY;*!0eY9e$R%!A)rcdzcu#gJxw5ivx~|43Z=m(7%b*#%ZaxHOJEl1Ko&2-SIs zsq;$1c@F~6DfLTXGQx5WDB7D$8@N@4O|=<6VPnCKcA&hz>Yc7NKuVY>&HCPBPUA)+ z$v9e~Y>4EN5^&?v6Ybk;@>uZM9W4wVnwU&d!|h&`FMZR7t{wGs;LB`mkJp}?=%n23 z{%yY@fAiRPFu$KpC#S*c@>;I4*W%Z*s6O1!*e2KE_^!S!XF$}t9lC;qC@9MxldKjJ zpWI5~lOI#!iDb2q`1Dp1pZ=HX_ zAqSXx$+l4^8Ld-qMIqe56lY^E_C%Pv9R4ty7skur#;X< zHECb3AE!OYebxi*Gt*{P`DQ+XR|~_<)?PXc*J;_fT~zw%F)(A6f;(vLPIB4+?a^y= zD}zZNGMIEC1CRIVRtD2PWH9YS1|Bcgtqf*;$Y9oq3_RYDUM->C-A2b*>P?I!Kw8xW z<-ZvZ+cKJZSF9-T+lH-jWLWc-@8zu({2q%Vd9kY(wZ@K%;&eEh-GO}Cf3(0r7Xu2= z!+Pjh14LCPLF*E}O4I;BH;}JME$t3d@Tx)$%^7@!*6_^G}z4PuzTdJ?+8s> z)eUo2ps8!VmW8uy-O4s%w*Dj*??&nezG5c7K+R9)!k3Gu*%uDI{{5Bz_U+=-oy=vo z6Kl7Cgq5$BFig1eRu@{vxSYjwxQtJqcNscWVBfOpxMX!Kc0qzre6Hp|s4Mq%r=$6f zJD8s4e&Y}K5A!>e?=gA=Cm~@NCJE!a)}jUPq%HUKT3WYI;cFd`E>kqkM_)C|N6PkG z-_(Ngin7+?(NoLvgK`(a#7Civt;yraQ_J#oq85o;J+)lkZTh52!zx7YQ1Hqc2s

zK?EuC4r{vk1Qp8%h8z=>llPmG?+O}XMTmd>j>#a+e5m6bGL{Ey3t0Qj28GZdnvyq|u+IyXnO zX%R3mU&y3l{I2K$2ZyPauj&u47t*KiuaY86?dHn#FIm$uTQ$w!^t5MH{z@w6I}g;r zz2t4ts1h@7|F&+QZi|bHIb=5oEb_9JM6vNZx7*>-u5gv79Hl=`h6+i@Y%`3RV!t-; z0@vCmI*yv2jDcBzb{?b{fsG4wD9%7OEI9JOxdQzzZtL#t2rB9;kOpI%p2O`f%ib=# zbD2@Hv?I3c9&y9CKzieC){7G_SSbxE*1=<(BxTU_2;FLgg8_8&SYxWYITlzf;j^Z2 zYTF3fj1D=XW&$51UJ!izL55>`rR`xy&*wY3-%v;HpVt9yriOi1bC)(m9E(V(Wgc0s zgH=@&dvioCgU&hSvL3?e_D@mf#J1(kVGXkWU~dWH16<->4m2gg<)}Ge{;@nB6Lt>! z_VvoQuA99%%9>05Gs}oCJ?u}!$r4tYgS|RTeEmW5>E-1uKYg-pEDIs9A;b!)8Q`*~ zU4Ab9`aztk1aQ3PpNl3l_n5dJo&!PI>ub+-0(+_J+C$&0W zHZ&rmMf#7&Jh;fieP77wN%Y_t_a+?kmOb;_d94LT9wr-&>mgI9iam*`M1?pCKn{_l zz|x7hzA&!qizkRjI=*{GmFN)y@0p#~V_1}Ojp!Ctr@aY;33b~5f?{{&Sd$4~ixFop z3BsceAVQ6*O!N-{4Gr4kd-?-IWKpHSE{&xO)EdIRO7OPLB z%HM~M0&LRY@Aj}m7FC{KUg#J%6S1fj$_Hm*?1R^DBm}5Ik)J ziRrM}3;+n^!@k*@P>+?faRQ*tX6UT64Oz1VaX~2U$2(xx&kjKjE z>yx6_PWfQdxOg|w3I@u7+ftC>IrG&HpIxKTcm(U2$|6h zAM#*7edME-THSIh5(=WRS1FbXj#{C}G&;A7Z2);QZcZUV zh~>_$MI3~N4q9^=2gPVC0?=&K0AkNhKaB(HX@hKzSx58!^KtDNZb2zMF_qLD4Fx{L$^i*~NqKYPZB)(y8`$u`F> zJ%XK$;vh6~H5)Mk3M|%zV*KnGCsrre&ZP?Vk>#e1Q2* z0e1!0V{Bc*jRPA{GZsS3EMiOpi!<^Rm3E*#Gzg@-(1dP{v12rbsqCz~Z-E!8>-P`Q zUR$57Yf-%mudh0KkT4HUpbtR#@POOK$j5+)l8LiU6iv9k1iCi3Ll@tj_f2uQpyaw> z3zl-Xkh>LM4-|WxM52~j^o!6^Nm>_{)N7@?%1GakWItV)N}Db?vg3^FE5iopL4~kA zRP8ooC-w1=-#%^g_2E5s`=wH~c^Wj2FE8}|C$cw zrw!_VmGL|x4@brklR9qt8$VQtZ^2HwcbmblYp(c+1$8r;44vSG;{XP zjkX4K%6}l|^&Pyfiz7iaLK%xqlMQM7tgJ4=)H?WsV6lZhALAIChMBaDyHh^Bs*Gke zwIu?GI@9!|LrqVjG(8$j2;UQn_el)v@gnU)D3N9nkPE~Ey?<{!vYGJ9X3|357)GWY z8p|}&SjJSX4;J;~rx=mMi@FQ3M4C%LGN8#%scPr3_A+fHattrC4lQODYcXuQr)}`# zfODO;6?YeciL{x3Y#=7+j?}>{+Q-b=2_3`CyhEdz#~KZ__c37f^BA!t$h!-{L>f&% zHXsvJGV^FhGw(;}^Van4%C&M<$#J%4shq*7uOPXc=mjF|B4~bMjUKGAUIL{KzuLtd zXYV3h)l&v&u0W#lHF zwy5lwS7-RJXfJKeICt!)tt!M_&dw5_^WCMu9iMc8c+G*^c;o0KApB&K0)kXX(oW#z z>eI=eC4}8$k-Zk@_oCSMqcOXwxHAH{I60P4dt%2O_(0cr^8t5*yGPSC$5TFbExSom#uE||1aLARa zJ1{8F4{V^|s4tnz0Ae2}SO_9Wn09l)C|MPDq!y(PNsX0saccazb5O`hvV_UpC9DxE z2$G54oPp+THqGmKe#4R0ZKyI&Vc{aS8_~v0*dN^8{`3W+65o%!<>mQjrJ69pETi|F_`K?6Is0um>=cuYa7Q@aa2 zUj6qE*;J29+mPV4S04pI0y%o-FmF<{RU$W7pRg?tCch*Z{8=wwC2KIdk!O+nXEhjx$3LRok zYYqnP2uj^Ozf%r#DDH6b_(g~ z22oR|Bt$AA5@X9ysT;(etZ1#rHJ$Kg4Z3A-e?NM3k?F)3I?4Yd1nIwx7QV}9p*E}W z7}N9l<}6YDn13xbrDKLyUcx~Eod!2h^*?gmcq_K~q1C7li5O|3WKYJ>-?nJfDPG*Ih zh}Os#YlE?eAZ8|6Or206|Cl^Tq!db+G<_>m!ZbRD7PZSpk)&4emhextL$oE#wSy!l zz)7i?sDT~^oNc5KgQpL`-UWa-`Kd2E4y7X{d=pAAgmfL%N6MjV^xskLw;aKwITizX zcMBe%(tE?!ANc6Y0J^87SyAaXmmZo*9`|N*)&r@8b*p4IPOE~ttaW*;oQW(q*#Sd z(7z3AV%O+e4sSvRaEpOWw=_iRqU|zWx_Pz5{9WXH8~%W4X?YEG`$?Z}wAWTT!Ieyi zQ8&#BdSF@ew>gmC=0N@%&ViV#xS`N4xQrVN)PfM=s-(oK@WL-5nhu=K)7CnD-Z<0) z_?Lyd8y6W2CBum9jJ%7>I5lK}0gYn;x)-GcsqX}GH=w!=8|sDSlpvw5j4tiT!|OCN zKZy__K6D)n%-r{yra_6XmLf(Z^GzpOwBYHOW z>O*9H%d+jEDt{%o@*P0LxjgR*<9?(mJ$0SRjhJ#dACBxKu}rQ~C*GnT7#iyfPeB9M z65sTSX#%>w zdwJO&c697$W_=QAzXBQin%qU3@=LL12VH41awb5RnT_V8e}>W+S=p!f&2HzsIxm|x zYqgV%mCwt)bU!A0R`x9}h0hX&*g-n|bxBO3joDlu^Kv?@>;H z-i$8WUZCp1o^m5H5?u1d$Z7CzBCdoxj&abEuR2Zwe-l~7Ut5dOyoFZa~awII`f$)Ld=iI5BOA>ec|g z0k^+TAMVW@bW7;6`WA|0c4V-YYjg2Xs1GgEnO)0Rm13I5U5G5NtMGk?Mg2(E7Tj z|Haa({nm~e86($d+7ltS0Sp^;cZ4J02hFc9fu{m)0k;cr$AXu~6Xx@I7Y>AXC|!6E z-lJH}lAZ1tk4D4s<9IlkJq_Cbrx9tVKIB1Z=S4} zq;+SI#C8x?cfpu?Uie{p*Gd2>aZO+D7C_KTT-KBCLTb8ei0xxX)t*LA=HTR!ujKopbj4?R?G^b;GfYq;ykft0QAfWG1J&7)VkZFh^$ML&7W>23#U{V( z&PzRsts%1N@Lrn$J3!42daO%&M33p{@V@M&5!qJozAewha}a8&J-=7^(Lu2GBV*RG zukREdEoIYaW_p7l_(}0%t&0LaZw^7!HA7tOsW@LL3}VDgps)Fa_pqVltq@d8{ zUOc#*vpIW~?~ow;RuM$3T7))R=Ti$X`{vc6ePB$p01Gdq8@n5^35cwRVl#j;p>9fh zYeNbgBA{6;11im|P4B)fim_%eS#in>3t>0W`)|j5n}Y!6YKanP&tsIDmK= z#xdS)%khd)Z#sSn>1ERz7AegBDZZSQY!brq{c&4A(QqC2m;)5KXL}T+8&rvwIp}^~ zyx9oAtV6Mgw0F&!(BcZU^deT+LQxL zMfXNr={ZOpWVL>6G-8vKI@0z5nfiPaQKS>UyzQa1cAO*X6*eV;Bd~i{*jzSwAT^=A zyzt9rGSP9XBWka9#jKF1R;;gj5(qQJAgX(~Ngvz@VzQVi!}p$iZch!jr?%fiJFgE! zD#DJERujt%#uEgLB>T7mGe0T%XsZB8#{-7b)J`uNAkeElBx~ zoE8XMQX&u5!tI>SkFz?bGo`dn#4hGR=y}6C<0a+Ad?x}2^K~Nj%FwUb!zu7OM6ZCb9pK$HZ3{6bgIqNjYK~5 z%7rC=%ZRpfNAhh%O(7P0%~KJSCwHB(!YVOnKg2ypMVJa>|BRRVtG??(p-E{Ed_RFY znJXs{n|&t(_7~y0TwAk?Qh^A12!hYVHZdxDRzxFeU6}!G^EI)Nrf>B_VcGSV*L zKJ{vNfx0hjpzROYYMWPgCcwjy@|N#1W6C}SR#p7xrL2l|1M8|gtozBlc=Ig?E( zGG!Dkkzq1SN2|5uEPPr(W6JKjC=!X;t`Ga2L)~UB$yoe6t!4^--gvZoJb;!PLx$oB z(Q} z#KEize(8k2__o*`&Ft3qGs zY{Sl#t)VKA>#BbLf7$JLpr~H0WGt`->-u6y4OG2bDb%QqZAuYAJPjvB49^~w>A!_K zC6Ux27W-3igH95{UlB^U}C_$?7Pv$SL;F8OsT!-PhF!5 ziLq&5XfcQsYfTn6_Q=d*-YGUc%%{MC;jvd{4ok-OkdyYgv;Q%|Vy3=XlyK|zYRy&wGm1ML3KsKW@f*ASxg<}B?wsmK40IC;V8_+wtF4M5K zhnl6S);Bj#g59VSzT$xy;07S~z(EW02ULx>C4dGto!-Hui0(oZc;?hBNK1J!2Xbyn z9Yx-DAY^X0_glGkJ4#Hn==R>zkpGR3%@p8BOOWRCK*Qje$viPWf$F7t5_JF_w&d^G zBZzftDrn2+1$$X!pJ)O0!~rsB)OX#75kedA5oCt8`(s;t8hYU^TsILnH{!uWS)Fji zM45xuPC)t~VkhDvh(yorS#ox+mHN<$)dy%Mn@wV{ugtq!Gun;+z;V_V6}UnYVc^kL zZQkY`fvcWa;*0aUT{LnFf zopeMi5usLmKoQYAl5t$^;~~Aa3K3eunUFE#=S8u zeQKq50mP33!ln`3h<$C&i~wd45x{SQJiKztxBO%AOy^?qD*H$`sF6VS!_#P8d>ooO zm@MuF6Y^lZAKeW`U1_H)mEiRd-a*uk9G_7Wf#T)n)oxc-(%yb!pT#FZG3nd z8;^OSsx}S{9>mGe#VqU{+u0iiTMs5XqN5JB)|1r;$}b};`v^vlT6>R1kPxFXow&@* zn1nHR=Oe2j$^mo1(IhI8j3*S@#@NB!v4e>=L4b?5ZeVs6Ss=-bg4qeLT?RSu#3D|b zos8v>Qtkv-k0V8UqCBSc$2WOII|t7FJX%Ms!eHQ;<0xWb5Rr9Yc8r<%AFfwOZE8QZ zD$-{DabBg})IZXlv_sN4RMobp)8TkN8ct@@wD#JMFVW`0)HXOCdr9oh(?;vK6I^`( z2SWPZC8!SS`j;V$ttVv7xUWn+&}0voNujBwT9q2V+VH9nQ=r|M0lyOB|+h!B|TpOW_{C8VuY^3 zi;`WmkPcdJw60W?RknbxFu~!Hgdd zd4;7j04x*ZwB195-$n4)$zrp(wde|5b){t>1~L@ew^r2`D2=pBl77i~qK0*`I*8+a z&Cx+#M0w=rAxW=Otc@%ZP+30gv(G5{GIMFP{gJbN+E(TMla6ShJiol0%d@yg!u`3v zZb!v%I_7&d%Z8C_j1Zc=5^a5YW`Ae&3M(_?KNDa5ve@m)G_zhBu)F6?S)I<= zYFnyl5kZ7nSs(Tp+-^Fj0TyC!tU_jp^=mhkKlhw5ZR5Y9YB2qW-JSUWE`s4m9psty z3)|{-`olpVdG2$09o&%l*EnuIDP>pUQK2*k{M; za4f3x*XMk<`=*pp9@^X5fkAC{*K(i(_ zzCMpmOZDBQ${D!($>g*=9P?F4=omSvAauUv`(l3{x=MU5Pvz^bxJp=K7dhwht=xai zHkbX1QBdTkA}jaV;c|AO-{h~?_i}ySKF=4&FUxIFe%zkfb3kqmD37xS3VS~0>ouY3 zc|7xg+~w8BLO_^3HW27@3>_+*he-p6J=c^>JV4(HqVzXO%19w)6i12%XrTaN&owPx zsKv(%;Yh%kD*Q}+EC9slkW2~J)cB-*dLwN~0GKFBp7`_%kfOqwDkjICB_Y!M)_L_Q zJ0FN&_aYc-We14DJBkwvxhaeR?Qu1)`Rdch>Tubwv(;gDsGk3@*=!i2ua`4{pV5!U zE9ugX)Uj-K#TVu4HG3~!Kb7a~aw0HK#jaSLpZA2SW%hQmUjn5LzuLu!bJ&&pg8z{6 zA1%+tmoxEitAp@n>@$0r6LIXHSHxo#)pB*IPK1x+p`USNVIk7}~0@u3OEu1y5BO3FQ>o@=IQiO;M9C5Q=hA*4nO z3LKCc+h)|ZyJSrzE6>H-Nj8}OAOTys`I-p`^0jDq8P}%#CAH}j8YkIDY;9W65UTQc zB!LHPblI3VY;Je#Q4q_Xnf1}9c9erk2eoW5eAOc_rRekKu)0uFKYw`Uj_1x@d+cLi zo1e1n;WIH9_ICsnt>~HrtLwx2-qaD`Uf#FFm`JyhuZrhmMO=ChJ%X23_Fi{&TDwvm zgjaTw=_?6YGae0i&0LlTC1ss2XIJ1LWU(Y*kbQChw2R@u#8l~P)*@ISBGOd zN`xUs+yJ8Do_bSOr*pR2mb>+x4=`!6tZ_*Ub>PFhC;b}|_bx}HX8oZHxBgKx;%Hgx zrW;$`p#}^!ICVtO7q8zwgpAU3G*=Op6KAwZy<{_ZkLn)bF~5lZGad>~Y?!GrPBY#Z z1C+Wdyo-se(WseQA@Sz`5j#U;L1lWz265dLXF6!2aTqOi|1j^4eQyK>>y?HDqQ)xU ztv-y4x53YY3DL=&MS2rLEN1$Ii(gb*0zT7)gDme8?*kq!N}gy6V3AE{fXLv1pBSOB zI8K>D4%(5L{P;=0T2eLm3?i( z#>lq@Z~GQKWd!8wD|)KT@X#-y=}6367BAH8eF(bD_sQc<1%GyPGo zZ{3d*Z2&UBF0C93-{y0B+T|Zc!_iN}@re9&Kc3xrd4$l%bApAE-X0+g@ibjwAx##3 zA-Q{ToMG187L5J@uOiI+09q;$-I>F<48ncL>Pc#c$%k1%x1M-LCKJ30nhD@;+f5wY z06zhPZleag7faWJzR=lM_+hM&_J!uV#5D;LOqL0-HXRwABxwSuofh0AVOIg*r4-3o zN}yGJd}VEl{CEHO5NJ=npvx^5U#+f#vjpWvMQ16>k3!IMz^AHP276AKMfF;4$wYza zB}|OsFo7EkhF!v*}jGqg|EJ?ier(}-IwA?{Z>;aHzGnj7(eMjnEm>+ z%8$j>*h@TL+)w5afKLB;A!9`o3Uz0A7%S56XJ5oV5?WQNCcm5yOU=+?fm*K*L<1zW zU;~>gAja(LGtpC5Xo~&XfrJYx63^GG-1tF-#O2jmMqlG)^yQhFc~^K`Li+N|T8k6S zpxjjXTQPKhe}ne!`VU0dM#!Gu@-HGLcKN0TrM|NqEY|$q7CG?^Kbt-$wDHT{<^~}< zRwW6gzh)e!IA&3g7$C|>5MI8$6%`~@>XnF*#fmhD>nabSjLqXFa;GUw2+$wY6xB3P z(pVFb)ENg~CJ+LylmYLxPo&c>cg4%gxjgR*WBb`s-CQ;s=_g?5_8fH^+yoXpjO}!J zNnudaJ{`r zEOx>sdo9lIMX`^=P#c1;v69&P@|FnLF05I53!p-{(1F}GV5!r)dI1TSWOr=5XZso8 z7~`#|Tf_R68uZUDND9hFubZ~XwKju8-7iIgs0s{M>i#v|yI3bV6QF1f)I9Rp$|ChX zR(83 zZAfBLttaT1)G0OMU}%{&#)~u{dPa=#*x^M2P}F1=k4lb@M?Xk^xxQL#6|-JL+Hnt#JgXmeDFu_tKbRnUHr zlCz6r?MY@sMR`C3eHEf^wA1pj#f{8hO>Ue4m>RVD-+edDj|P1<@kD>DAw9X@8qd|&8O z-S+&XoD4MU4UOLe<98EBgVX1&w`Dk|KHw4%5R)Z03(CT?mEX||z+59^tByv_3nY}E z*X3t*cA%a)$8hiq{ct`UcCUFA)|{AMXs4ni+8n%NNp>kf(ce3vI(w~({L?f0JIi-F zYtImyny6nEyIpxam8Yee!EJwdukvG<$=AdB>s5lvzVh{M+3M@}r&V~B84Ewk{se>~<=PRj{B3HB6)E=XrLA?^xS#1?u4QtLQ`=GhR_rf&3=;MX zW-~xG09F^wd4iCBEoQgyj2#Qu7AdEs7c)#9?wi3?T{S>aQtH%G^LW8RAT5{0<>H4_ z&zqxo(>zo|44qD|rN zjs0MzPgJY6s7V1Wvl2nHC5Xn8N10qHEO{4@$*j)Mqz#6H5P{KeWSw^5Lo9xOEW%@Z z%@I4u1bS8(6{H9%8k`yc;xb<#G4htwB@aG`S7+2@^pr_F`suY75ga|RPO2j*49@7= z*||PO$DuR^<*}7IrMida*|tSGIc*EBhZYXbCwI`Iqh$~Q@jEz)fSCL&2gt|xjH@FR zeJF!H-$g67w_1C`b#}HXd z5gjyH69WnaD)gc4mWm?K4b_#-cVrxAQ1tM5+nj*-{N6DczxZO+<)qv%U|GD zr=lD$mB`T;2DKnz*byU)UQHPax%`DSYr_->98d9BuRR0nOY;o?qV16$*1lcB@uhvl zqdsO6@Hnn3Ol*Bgw&1Vgnk`rm`e{gLCY%HXhn+Hh<;RNZ;nZ}Zk2{9}9md=;raE=~ zaFUZta56uFrqESm9w=#hBR#YA$c>7!laPkCDZdnJS6mKSfiq5rZN_`ncJ3S!KtjV| z_MEDpOqPMQW_j;z%*sAf4d0;77%N=d2p3bu;#=(mzOl($Y$op7&UKDWDxPWlHgdJm(uYJ_`)uk3kAiA%H z_ImTP^mt9>yP&6)UUhT=VIzB6mCwXYHB4qRBDvN|UXZaNylq^ckZTP0f4YI<*Z`v4DzDn83YnW?GM&<=rwtzh&GV6ZUi3f%e*hz4(%X1`J`nMI+GVjVQO^3D7ak7eBmOgvYhk zxF>)-Fc}292}h6gMP1hv_byJJ=JnN#DXtH001_u0#A4cklaGkDftQ8IF2{ut(TEac z5=%c;)UXS{ffq0G{c3xt=njRpLQ6#3j@LL%p?L1a*gOrdB@5r#1Y?J+ej>3hG8hTg zVXbHSzBykS3X6i#em0rUn}g>Oo>dRJ{GwK<_QlvyhUMZe!dyZEk}gA)P<$hf5L6`X zEyOQ<637(_FV+hqC7Fh^F9}5HwQJwpzTLJX|A#YHudfKrfmpL<0y#Wo#<9;A4)+=! z3;;WJ!HG$iiV`H9Mie+cvFGd^Xo3p|fqJP+2q0MhRwH*6&pC9wBtq*LI6e7ySDAHc zvfZ?CoT~1WFx#wTsD#ta8tGCp*&UF6C(}R%dmoPJ~V|t+sS;>?Tw*cCBpkfyB8o zhpenm{%tC28-E;mGJ*X-p7RS5O;sL`J986^x+BTthuwA_o7xl35!_7PJe#IFpt}|Z z$`lT?mtbibyt${65HJ4WeJQ9Jv8h_g5yPIPisiuvmtvb9x6b^xfbxkr>H~h)g-KcJ z#Aj!R^yj>E(p@<2J|iEmx{JY;>_jX9N%-mVUmMkx+?qV%CE-rySTp>UYxkewqD;pG z!UhEz+GeOE?yHJ7+mAVtow^B7ek;=(>TTN~5_oe_n9n2^CRdMK&dj^u;wFqA^W}-6 z_$l8zn^t{Y1BBCj$g*vI%C>YS>3LhvlEuPvHcF&;Z?-)x#=&3c!cd-AIr@n~ zY>a}UXx3BL#`CPzm)ows7ZY5Nl8Pu0#x3HAMi2UyIsw|mM}+Z{PS3uPmU9lneS`u4 z5Gc?IBg#c<4T;4ic6<_+pmU160j5KE@!--0838ipx@Mg7b%u8_)jJ4W0{w+Ux_TVu z25f|2n1U_oNo_Y!N|^R`-H9n9WD`XcMp%ged*Hdt_6uFL7u{U3rW&l?b91Ng%wY+i zMv>WzGd6B`ek<4OUE#e@$DSBb5&~$^*r>)`^OWVE^K+9n!I(>din4n`l(7*ovIyQ) zMByv%H|dH)N}cY{$whL!GTdFRo|LWj8*U$M5wDTF&07a)H5g z0+v_v1e=p4c8^8t06h^iAluI1`lbpU@NA>NUiy|s@v5e{uA;YJ;B}CBC%-o6K(Pq9 zKsSxG=1CFH;gp?@<$f>5qRQ`=m)BjsE>71bre{yY6BK{_FuDW013dkSL<9``IlQMD z+T`&kKIWgz@8>_US%K-|CuQ@b=`d)j2RTpusrbrnMmh}$?*GeC|4)i{^iw_RzF*9~ zoe#~=(RBXp+h3AvA|>p2FLI+FHre^>u~5`d9nM4tAI9fPwZ9wGN|~;Sp=9G3X+BDR zvwUB^@!`Bq{9t?^52q9spg+;Q^4t_^~@VM4Nq2R{sd`Iq#6q$97iluHU5; zo**eqx|2d%XMY=CKOO;Mcd(391V#{j2`?l?7!Hrndl^*faU80>W?g{N^l zt9RE2hNVG~K!eusfJoVkWewb11o$zTN#l`}8{^E_N?q`4vgjl!fLls{9W>nKUk{h_ zQ2cwZT(rkq+6@AYMRV2=O*5=ff~lmckIuL^?xR0L_3 z2Tmbv6|?2wrO7Gj&%YbTHR-#1 zx_@}sJT{kG(w%V};9xvpXU-M4eAh9nMJGQwX1G#>z+X({i)~eiGE?zt zbGTIe%}l=w!_~z$Uymdn|SiwOVDvX6#(Tlip{no{EKELU%!S9jf#hkTj0t3W_(A3w}o{HT@ z-0n`>Dc3fAspjzj--^1zij2x)W0v(sRHB9jp`*!>fp;~TRdHTz&6?u%(tgF)yr_=? z&cCaxMBvg9E5&nSXh+TeseC&gs&g*3bjo>PdqXYzET?r@54|aYYyjWnm+;l;G>aI^ za$YA^*YdT=O*B`fpF8igtu^Fdnj4`!8vADI_ey+vBHp|B_Yaxa{#;*3KG1&E%cI$* zA`d^qAE6CHb*aFm5PD(lN0#mL&*euJ*qUUCT>MHB{bN;RbsBvaK+;@RpOl;JWdP3K zFO>`k?6;oEVd4c{?oY)z+v>clM{*v`14we;P7Fkcdi29i7N!h`>N7~ZxaiopZP$Wm zQYP=JH&Q5u$`8GTP6c6jO~Lw->(l(~_$`5x^c{gsc+anSSQGLDSiX;6O}T09k*)cv z4_zr5;hAOcTvCOCxKQJYN8_+I8<62A?i@j8h#I;1;jX@X#uk>_B$x{LP5@^1A$hpk z65`$lWRJMS8vm-v{O^(}kW$kL&i0Ob;`8&}x4)b&N7}!g1|OvBV}0Ukm%kmKCp^u& zTh#LMDWLASp3I=P7?B|wwG%l^s0WNn8T%*gQSBaY!j=YrZ#(obCr%MAY;a< z6)e*mM@&!|+>0Yr!pS#Iy@9BmvPu~#qld)a08&uV2VO0Bcv8Aic?a1jFgFB;ChC1T zaJ^>o?y3*5Q2HG3o#;x-H2c022L50PDkbJt zt!6w0%*Ik=+*n3OFb5D=y6U}k;P_0LyHT+`+DJmvvuuhnWGA)A_(hRP@Ke>M$OOtDfq| zr($r)UYbyZy5K698ooKqINT^mDS$BQXay<-QdboDj0Q|G;qN=5I~xb;nGdsb+!)nh z>Ta!li%}Poa3sga3LW8yM&XxYM|>n8X(_Ar!BSU9+6t>DPH*lTZz3KH5MQX+VxTm@57qJW<$jpi&^ARNM|$3aHL#3a=F!8g8SA zR^m$F%aeUBCU%OCkq{9LK%2j@`Un1K?*oTxp$UQrr}A5L^;>lHLqu2pOm0zrK;JNp zYMu!rzRs}3Bf-x>wc;fOOv=&)!+$7<_qv^}CdNQTn#Ek>olYi)|srJ=s zdb8ioEUN>RciB(1pW4NSxg8?v08al>FFV?-dd zs$TarfV8V<-#l;NDa}tHTs;R8nmXdRNlnS3ro`I7P_ysYcVLN!P#U<_*F=G^Qq=$) zghWEY-9YRn)oahmHX7uuAG9c8*y9r2Hh|8=EZ{X4=rUg$XNs`^l%;`bX=Sk-_Gn{X zk@Sl9*47LO{cTNCKYgr5~Cq2W3!S- z?D4dOU)!BR0*io;Pq6^a$o)B(0Wdfs4q5kCsq7o>ClyThatpGDB;Q4zAyME4 zptrTi`~9!X@~`KE>v|pS`k$z3KCF~A`b=*SvLIw*o(KKg9QrzEpCHV2J(%RaaeDau z7vij(sJ)moH)=1pJ!ACnN;Ap-pUYXh8|vvvy&Gx-lZ>nAlXCvGsKyk`|Jnn9CUfKW z;wJ_2<+WU8uf?xrQGK|du}!YS@m+me&VZ;iO+5&@!5|l@kFvv5=T#g8hKCI%@5u|tRaBw zcyd1nN78(>Jb^xnt6INJAHce^(cClRz%M`jwt(?29(dgc=;I^5GW6RcjQ45g9^p?t zb3XswWzt>n<#7md-exeqXIBpXVO z2_!Dh?1rx~aD|WW=ZnY5bUt~SjmHm**+YF7Cvb0Pd}VOG#%urZ;*Gz_#4Q(jSBcz< zLk=+Yl5L|-GFqqJibA-9DbB`T?1?aSIs9QZ$>*DS_q0!XpnYP{zM0LY(?$2RPkW$! zYSO-5KTdm)`>Y4rXQs`p^38k%uNH=zt-W*@uG6w{yQuWjV_?QC1$WTgo#eCu+N0O# zRtA$kWH9MO1|ILztqi7p$Y9!u3_M<}TN%vykio1I8F;)Qy;?%OyN!;s)SDPdfV8R$ z%6~H+wq-Q+u2@mvw+&n6$gt)u-^*Jo_&pX!@?uvnYKO|7d}ME(R2! zhxO3228gOog4QK`m8b!NZXjQiTG}0^;8leh$W8gBSO->7nk7G577{InqUO3)9mePK zRKAMsdPdb+F+erC@l$kjJ6}7!Q`|*E4&c-w~R& zsvG94KvUOzEemJax|MCjZ2d_r-i_1`e8o(DftsJpg)bLRvo9Qa{rfBb?c2qvJDJOF zC)REO2`gVMVVH2`tuC~TaXE|Wa2cOI?=p0%z`kYGamngf?1BWL_*~6_P*?8jPDk?{ zcQ8H8{l*{eALe%`-(&O$PC~*kOcKU-twjsoNn7sewX|-b!q++=U8ZQ7kG^V_kCg4X zzNrP}6=ki(qo1ofZ{FPMBcOIyL zd&%3PQ6*;F{%zep-4+)YbI5KGSmb3biDKh-ZnwjuUEwNEIZA(?3>A`)*=86s#eQwx z1+KMCbR0E383VHb?L0^^0vi|VP@I8mSa9Tla|QZc+}7RO5meMyAPvSiJ%`&}mc3ne z=Q5*YX-90?J>rIOf%L}PtQRLXStb@lmNy?z<5xUg~2LtHlvBp$)b1bk}!e>q4 z)V2|{869#&%>+J3yde1agAB*?O54MZp3ir5zoCxYKd%GaObz?2<}PiBI2Msm%RI7N z2dkepGr(m} zyZl`I^@BK73E+6oKNn4A?lEycJO_fZ*Vmrw1ol)zcB{^Mdhus+oqqojn3&WY8m|X9 zEaijlX21_-6=9L~e)?09SF7!?d1N)|^vtF#c567+gD0%P`cR}VyT-bOj-B=OUoS7^ z{&+cOL~Z$1zhp43@^ij9D~B0s1)`ydmK0ZWm%q}P6=vSjtj)^&QTOrg&xWuu(SJv{ zG*y`CVcbA|`6D9MX7_Mg;|a$I1FbTrjl*hcV!=Ap;gy>wF(t|Z6vMTSf)$3L0wE?M zYB4QESLJdL@$YA2m@l#(|8^m5`9T~_6mN?=U z65doYSBDN3!;=$glK{lH0o@I?+@A{9fXh+ZAwBjjM%?ZSK4S-KY5F0qS-ldtPil3% zY-mJAi}W9ld2o@3`@WFVljy-Q?oBx6Eqms<^I8jxJWMtk*F&aI6?+m>i3)KPfE*%8 zfu$31ePLYJ7f%q6bbR-WD$yeZ-ZML|$FL~n8qqDPPJ0sw6Y91B1jX*ku_hC~79-AH z5{QqBvsCj6UlgR68c3Of*0V-J!_exmgO4%8XL9A_zHzI$fHYuS{O$bpSp0dlEmogM zmA?-i1=ys)-|b6r*axpym+C}BAqKJyTlSbRK#p63Y_PU(4juF!snN^Rk{CUDAUC1V^vuI(yQ?`A$Zyd z64PO`82}K-hkdg*p&lz|;{-sP&CpqCA4EQ`k-K&61hd%$nb2!;(|`wi5N7SlAdi*R z%X@erwJPB`H`@^O!E(6@*+IaD>~)zp_Xd|`XeotQF}PYP)DzOkZHSRew@3kz5Hh11 zKIFlE`p8EuwYue2BostruTm@(9JNA`X>@KE-z+`J;NR&A#fk_Gon_=c)9Yxq-JC*# z5X+rgi#P}k9kk{$4vNuO1fbcd0mPo2ei{eX(+1fbv!XHfD2E@l^6H&L5L)$^m`AQ& z&44fxG_1mL$o5f@?IT*Y9>D!dS2@w=5$-e=L?c^Tbr}f;7VTWIfA)+Mts8E?l5LJ% zdIUQg#X)G~YBpj76j-ba#rWAXPOMI_ol6z!Bcb_7sQ=Ncc{&{je7+WjrAD7}?1P?4 z_x{=(fvX#XLM>n>A*MR8z6Fuu#u7Rm3KL^Q*%4L zsM>AFPU_%)8O_DiK|^E7B4UtZ|_Pizr}{Z=-}`6`KPpp<%}0o|*~_e7}V zPaib$<2K1UF%Lb=#BNY^Z-F&MAh(4ISLGxrSmP`XYrU5=Cjnb?v$=8Mz*nNuXy)vn z8*L5fl>b1^>pOT|7e|6Od51sc(O%k`aqiepTUCg=oSh{;=etXRJ3i?G@tOm-@y5|fK={cd1q7*(q@BRa z)u)p`O9;EiB6}^)??tiiM`LzVac2Z@adIr9_QZ}m@PV%L<^%2q$wU2`UiVvQ1us^uF{pkxt$A4pk8e)}5Ta7b#p)Cp- z+4zgGC{yl;*CHOY^RnE9)`aVH2Rig-cng0AqHU$1Hd6A{VTC|NPL5q~Y6{B-$P~fMFIS1qT}oPrIM$*Z z5E%P()(jvVqXJGM--R9GhmBSIaQN8L2Z&h_=Yp8{>I2=_H^|rm!d;U+a~_n0(35^q z5s?ZkAT4}NXqgbUS&dCOzw#(?u~96+HgkFcCJHPv7t!%?f(CYM1td;#@tA^Er*;>5 zy!!7SvZ)@Iwjsf7uRaQb1azWA%dM%lKNt+rApkRbA@7NocLroe=*nso`m^>Mv@Nqb)maNnJ{)@l7of8_XRJ4WMxjQ^%Oy?vg za%h+&A|wu^YiY|0)`KaTE88)tzGS0Gt0)PO@2r=^Hb5PO4D9<7f}x`&T26Yh6gtG7 z)*KAn5tO=ney1GzKo*<6sCz=1b&KA4=0kEl`E(ELMZ_Jw@tqL+B&i>mlEeD=I54UY zH;)@lp}bacVhj+|vC?9&>FU9=o}`mh4NTf=Ai`<&+;&oR;TFO_deo%%i2vMC>=e?| z4Wgz_Nr+TLB*vDZQa6Y_SO2-VZyo7@SIt^~z1kq{q-v-w5?Nn;;J2O674An+0$e)d#u-HB?Qoy-b1 z5v`Fg)&^q_LCj3Dm^z_C{xNxwNGX&sY5G>CglTjPEozsIB1x^_E#aSPhiFTfYX?bA zfRj=&Q3E{;INL}e22US=y$b+w@>5@S97;z@_$HKK2jB8aNLK|TTjxr!?}rnNwEr_ zpnn_K#IDh`9NvTs;1&a$ZfS_rMcZY%bn|M9`Mb#ZHv9q8(()SW_LDx{Xs@kwf-9L2 zqi&iN^uV&_Z*w5O&4K(koC7geaYLb9a2Yoks0AU!RY{3e;e}sBG#xmdr>%ARym6=p z@GlE@H!d<5N`?{H8F?3%acal{0~*HybT3K?Qr`*WZa{S#Hq;BtDM3PA8C}|whu3Ll zei9)b*3gC_(#eeR&jec4-7f!CtD^gw62j)lf9w`R6KKRG(3&T1tn6D{3ZFk}m)wu#+h5k@=b?BW&{Dz7YWjYr&mW=9OXgbz0bHD+ z4jnb+#RjXgTJ8AZ?7wZw-R{p+oPWP_1IE=*D;#qog9rqO@>=o3?(4_HJ_-Y>idv)M zNypF_!17o699&ozS~dGm>$PbHc7^(r@~^`-K(Jm_!|0GzaO!rTz*InM+l2#H2WKJ< z9PSDjVTPrF;w8mkPw(Y{6vH}mRMm6|CRD5HQS-=mxY zy%}A$y+GB2J>^DZB)H^@k<;McL|h4X9OIxRUv-=W{wA`DzqS|!Ecy206zF{kYGA*T z32Q`9&w;YI-$IQB=*XGeq(Zf09V}SBIB+#GZig#>+86S+451~^9F+T# zniQ_lV4S3f48na)l`=ab`yM*#dae!!2;HFEA1~+O%QMXZyt(Xlr&U!Hd;Z$1Qy7t+ z?A9Vuj!9p4ht;QgUTCy5l9xKEnAm#l9Dw zg(`X;aXegD07_Cf0d#t=Bz7}e;$tg>Jgp~7)P?9U+<=(VaAd)gskz$3abnsK)vW<~ z18#qxKHQr*=$6oB^(_?1@Z3-94#?5GqI9L?SBnIyy%A2;hhq|j0t{2_=EB0&rnyWJ z!MzIE+hE2`Zp7)lZZUJK#f&4v97p0k!>Zc z#gx_(R#Q@Y5nv-*Ok9J31}b)YVFQ+?z045aUIFZHE=>nBd#IbsgWX(O;*4u89!P3q zF;eTw#xiX+q>E`Qkoth8vRK?Nv_J7JC#cVqh7(knXgBi&sFBU)AqoXBX0=-l8@sAY zbuq(NZ=;zs*?#9wb)$K*8qFkX_}#M2xB)3m#+>?)O$N~!x`*~LEe6mW&|n^o6JkZG2G6s5?>I_AUZV3$kwl1qblUjd|s&<5?i~@@-g;xl0?~xWT5ys9JHu5xx#5Uc+{54rdE=}( z6!|96-n}h{V(D(k)GT?PPG=8>92@p?E*?^Na0QWgVuN8Qr_L9L##wP798ICTdm9eK zx1A8FS@0s6${q|jG7wjm6Ll8!y;p904(N2W25rhp0tB26aAyAWAlPiWBGm&4p!Ic4 z|BIzn`>h={GDfb^v?oGt0~j{y?g&S~51LMXGO!(#S2-#l3{ zN$buaiR~b)?t(G(yzs;Hu9W~%;+nqPEr6hxxU47Nh17J{5ZlL&sy&UK%)!Yyf8{wL z>BGxQxnI+xl!vOhlQlb3C0!P$6FY->y(_n_ea+sB*H7g+yPS$DI~6;A@MvEw>Bd^? zB~a?{t6dDZ685hjMt4hz?C`m$HoL=nc3KhUcXY}9e7LN(4O7q0vMet`j~`n{#%W3U zZzc*-312Dg4UY3yc4{k7Ns%LeDY^taS_K06``T>S7>T2<8Dnw)Ximpy?^f4$OE+7u z^<5f~c%XjoYCv>tHV$r7Cd?l$XPBTyc*TD0qKlHemEcS=5i%ovn zotJtNTSH{k;k`Bic7U24^jMelh#u3?;eFXlBeJdFeOsQ1=OENldw#F-qk~}WN5-sW zU*9P_TFR!;%=899@RQ=jS{DU;-W-CcYlgVmQ*pjh7{rK~KwtAyd3qM-X!N$`_i%=b zX=ktY(HE_;iL(npLJMI!hXeIgnL;*y^YS83_cN!Pc9esi&8d|rPw8um4K8sRYX|s# zgHgmf4t2LuI~QY}h`6839Y-Q2rzV1Wi1ecH@jt8wr_Em6*)6rLQ+zoq*(8MJ`{TBLqTxF3F$XAe&-N%tH>eUVbI|>~ zc(W0JS%+c~Y44gdr%7Pgao{?L-Mh@OL}$G#eq<(ZN+(`KR`qrhq2A2c z3GPGCm^Ar2V_==$paVF)!>&_3rT|ogDs$j94)3klUj`w_!^rXgB}pKf57vZ91SphL zTd>wW{N@9yrC4K-wt{h(avw740u@4Brf1)ff3s8hYe5_q-P)!)db-z*!EB}xv?&Lg zitdfL(sPhH$ZGxCXv8Kdb)@YBGWGc;qDUuxdD}y2?Knr&D{M*xM_~7^u(@pVKx#sJ zdEuAMWTN9%N7P>Jidi91tyo|6BoJnbK~(o}lRmf+#AGp3hVMQ3+@2b4Pi?=4c3vNd zRD>NRttOTkj3)>fN%nCCW`0ui(N+PHjt2~^Woqx(ngd$LX5G$-GXjrE4j;IB#G+`&*mgrH+nbmQZf!DtZfAg_+D<@-9wTY0y} zIV}*jq(mO9h1)ruA7^z=XG&?Eh+WKs(DR0O#!JeJ`A!55=Idr2#rz^-r@NToX}qX& zXIm44QNaT!S#5%2spL{NZ%V}Du6Z^Iur38~+zD?_;SOgaci3J(JOC7pH zfP&nV#ZD|b%U_i33ymh;VysJdFYXJ7cD|Lfrk9nDYz>eTLEmiC(N=kioiY+7=B=~SDk8;N}A zl?zM$mJw~|j^x{jnnEo0nx`TtPwqNng;iqEeu#UHiZB(%{uwXzSAExoLX*-S_@UJ~xwd8(r2-N35CorzZDLgRtcXU`x-tXW=4)ajP2cK=!m{fzv%Si( zpD5K-(X()i$s0On`?Yutg86WOIa1`2G&(~Sof28@#b$t)Y-8m zWy&a8BEw{uj#g{QS@^Vo#+2Q4Q6v(xT_5&4hq}#NlCk)CTFn&vyzyxFcmORoh783M zrc(sE(>g<9lan@M&&?uJ-IULVqxzmr(UHN^z$jl8$Ab2~?4Rrlsss1C#-ggs76ul{ zh=W-b{L%@3@olj?n%%dbP+EiA{cXp6$bJ-TU(|-$f zN+PL4EcU132Aw2?$J=qTJmDjAbP|m+tVen!)$?Q;z{G%g*>|IhuhxUGnNoYvpSngB z5@XZA&|(lN)|xDC?2(zryi;s?m`{NN!(*?^9F~mlAt&u~Xa8e_#Y}y(DB;%a)tqnl zH7v7I97?3~m|AY?M+)qe)+zJWD#>R5fow)+1TpgW3&#Q)Z0pY808}r!HlTNOU8Z4e z4>e0ut#59g1iMiue8mGZzzsm|frA$052zY%O8^aQI=zEQ5#5C-@XV=Mke2dd4&>aD zI*PpQK*-!~@3(U8c9fWC(e1sbA^#g6n<>DNmLSdNfrh~`lX+r%0@X|PB0#`k;#24pxyJ+MV1cjP^D&LNW>YRHO-MM#3G`O3|N4`+ZL@Wi5=;hf1h1@|& zI_Zd3B0{bBfFh!KB;&Z+$3uE;6(Y2RH&2Z3ZsL1lh1(XDl<~TlP9}?+u&BmSy)y|S z>j_sA`}NKifT|}w-yE&5gfCy;up!1!@EzLccL;wJzk5T~3*XRTjC*5R z`qWDA0*D_6giRy55&PPl83D{9B7olpd3fcPZ~4dKna;)JRrZl?P$Pltho{lH_&79m zFj?FUCgj0*Ke`)?y3$TpD#7a^yo0D6IX#VCtKF`wq`m#d$}Iwp*LffU+xYM_ zHXidtRc#y^JcyH_i&@w^wzD@3wjNA&L`NNLttYDylwU?x_7RL8we}v3AR$I&I&qnq zF$rVt&PP^5lmq61qe)aG8BZv*jj@BdV+Rv$f&dq9-N5WDvOtm<1+x=gy9{#RiA9_= zI~mI%rQ8Xw9!HAyM0rf>k8kpbb`G5Td9;pNg~7lx$5F(>AR_C)>=-liKU}Yn+SGn* zRiw@Q0s%KN^RUtjeE0xwNw_i2@8L85%MDbtC9T`pbIdGK@0OiLOrMJBUj(gY7H%Wz8*m9N-US;$ybngW z%-}dc#MiT!@cOrDxPQ=TINw^MY7N14#t!VHGvkP`i11QlOM=2dOM1Qn%=)IG#0Xu5 z7bUxBAsw{dXkEns^7>B9z&2rc8a*0|9#e%?k}f+G=U&p=_D21$&9<8D>ynV~f*C&^ z@(N3509Yo*X}gCAzl-3plf`CnYta?B>PpK%3}h&_Z>_2?P#S5MB>j@}L=Ed=br8q< znxlifi1NtKLy}&nSQ}X+pt5|}XP;5@W#-ao`y*%lw5`hhCmqp1d4730muGR0g!^-S z-HwXkbjK^k6;@`(e%IhA^f_nNqMxm02dMS4warmvg_ccuj=mjB&zPbBLYxY7S3)rr0#eEm$_$mAEt~RX$X=c4NV0X`(vO1l! z)wWdAB7z9DvOerHxZQM411!YeScS|G>(_27f9^SB+QxrH)nNJ$yF2p%Tm-|BI>pWH7gW2-o_u)pjer&H*kqTqvdf>me&-g5!&w?|a-=Q(hW-`&`N!U?CwIRG~n zXpUqufu@N3+B9c>u%+>eL}P#}MX5gqms&4*NT<>qVQq+gz<$ev8FiJ$S|(yIp< (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-mithril-base-spinner/package.json b/packages/polythene-mithril-base-spinner/package.json index f163df90f..754f112bd 100644 --- a/packages/polythene-mithril-base-spinner/package.json +++ b/packages/polythene-mithril-base-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-base-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-base-spinner", "module": "dist/polythene-mithril-base-spinner.mjs", @@ -18,9 +18,9 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-base-spinner": "^1.6.5", - "polythene-css-classes": "^1.6.5", - "polythene-mithril-shadow": "^1.6.5" + "polythene-core-base-spinner": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-mithril-shadow": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-button-group/package.json b/packages/polythene-mithril-button-group/package.json index 8286557ef..580707114 100644 --- a/packages/polythene-mithril-button-group/package.json +++ b/packages/polythene-mithril-button-group/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-button-group", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-button-group", "module": "dist/polythene-mithril-button-group.mjs", @@ -18,7 +18,7 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-button-group": "^1.6.5" + "polythene-core-button-group": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-button/package.json b/packages/polythene-mithril-button/package.json index 5091a60b3..3a38c93ac 100644 --- a/packages/polythene-mithril-button/package.json +++ b/packages/polythene-mithril-button/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-button", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-button", "module": "dist/polythene-mithril-button.mjs", @@ -18,14 +18,14 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-button": "^1.6.5", - "polythene-mithril-icon": "^1.6.5", - "polythene-mithril-ripple": "^1.6.5", - "polythene-mithril-shadow": "^1.6.5" + "polythene-core-button": "1.7.0", + "polythene-mithril-icon": "1.7.0", + "polythene-mithril-ripple": "1.7.0", + "polythene-mithril-shadow": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0", - "polythene-core": "^1.6.5" + "polythene-core": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-mithril-card/package.json b/packages/polythene-mithril-card/package.json index 2aac2eeb9..c084bc348 100644 --- a/packages/polythene-mithril-card/package.json +++ b/packages/polythene-mithril-card/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-card", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-card", "module": "dist/polythene-mithril-card.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-card": "^1.6.5", - "polythene-mithril-icon": "^1.6.5", - "polythene-mithril-list-tile": "^1.6.5", - "polythene-mithril-shadow": "^1.6.5" + "polythene-core-card": "1.7.0", + "polythene-mithril-icon": "1.7.0", + "polythene-mithril-list-tile": "1.7.0", + "polythene-mithril-shadow": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-checkbox/package.json b/packages/polythene-mithril-checkbox/package.json index 574bec2d9..9c7b98a04 100644 --- a/packages/polythene-mithril-checkbox/package.json +++ b/packages/polythene-mithril-checkbox/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-checkbox", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-checkbox", "module": "dist/polythene-mithril-checkbox.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-checkbox": "^1.6.5", - "polythene-core-selection-control": "^1.6.5", - "polythene-mithril-icon": "^1.6.5", - "polythene-mithril-icon-button": "^1.6.5" + "polythene-core-checkbox": "1.7.0", + "polythene-core-selection-control": "1.7.0", + "polythene-mithril-icon": "1.7.0", + "polythene-mithril-icon-button": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-dialog-pane/package.json b/packages/polythene-mithril-dialog-pane/package.json index d9c4bdd5f..a8598e63e 100644 --- a/packages/polythene-mithril-dialog-pane/package.json +++ b/packages/polythene-mithril-dialog-pane/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-dialog-pane", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-dialog-pane", "module": "dist/polythene-mithril-dialog-pane.mjs", @@ -18,7 +18,7 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-dialog-pane": "^1.6.5" + "polythene-core-dialog-pane": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-dialog/package.json b/packages/polythene-mithril-dialog/package.json index 8684c299f..87f4e044f 100644 --- a/packages/polythene-mithril-dialog/package.json +++ b/packages/polythene-mithril-dialog/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-dialog", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-dialog", "module": "dist/polythene-mithril-dialog.mjs", @@ -18,11 +18,11 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-dialog": "^1.6.5", - "polythene-css-classes": "^1.6.5", - "polythene-mithril-dialog-pane": "^1.6.5", - "polythene-mithril-shadow": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-dialog": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-mithril-dialog-pane": "1.7.0", + "polythene-mithril-shadow": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-drawer/package.json b/packages/polythene-mithril-drawer/package.json index 4ebef6c05..dbbe346f4 100644 --- a/packages/polythene-mithril-drawer/package.json +++ b/packages/polythene-mithril-drawer/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-drawer", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-drawer", "module": "dist/polythene-mithril-drawer.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-drawer": "^1.6.5", - "polythene-css-classes": "^1.6.5", - "polythene-mithril-dialog": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-drawer": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-mithril-dialog": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-fab/package.json b/packages/polythene-mithril-fab/package.json index d7e36825b..cfdd3b933 100644 --- a/packages/polythene-mithril-fab/package.json +++ b/packages/polythene-mithril-fab/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-fab", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-fab", "module": "dist/polythene-mithril-fab.mjs", @@ -18,9 +18,9 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-fab": "^1.6.5", - "polythene-mithril-button": "^1.6.5", - "polythene-mithril-icon": "^1.6.5" + "polythene-core-fab": "1.7.0", + "polythene-mithril-button": "1.7.0", + "polythene-mithril-icon": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-icon-button/package.json b/packages/polythene-mithril-icon-button/package.json index fb6b04f36..ac4f06683 100644 --- a/packages/polythene-mithril-icon-button/package.json +++ b/packages/polythene-mithril-icon-button/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-icon-button", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-icon-button", "module": "dist/polythene-mithril-icon-button.mjs", @@ -18,9 +18,9 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-icon-button": "^1.6.5", - "polythene-mithril-button": "^1.6.5", - "polythene-mithril-icon": "^1.6.5" + "polythene-core-icon-button": "1.7.0", + "polythene-mithril-button": "1.7.0", + "polythene-mithril-icon": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-icon/package.json b/packages/polythene-mithril-icon/package.json index b70356081..3ad29b117 100644 --- a/packages/polythene-mithril-icon/package.json +++ b/packages/polythene-mithril-icon/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-icon", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-icon", "module": "dist/polythene-mithril-icon.mjs", @@ -18,8 +18,8 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-icon": "^1.6.5", - "polythene-mithril-svg": "^1.6.5" + "polythene-core-icon": "1.7.0", + "polythene-mithril-svg": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-ios-spinner/package.json b/packages/polythene-mithril-ios-spinner/package.json index b21b490b9..e1210b480 100644 --- a/packages/polythene-mithril-ios-spinner/package.json +++ b/packages/polythene-mithril-ios-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-ios-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-ios-spinner", "module": "dist/polythene-mithril-ios-spinner.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-ios-spinner": "^1.6.5", - "polythene-css-classes": "^1.6.5", - "polythene-mithril-base-spinner": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-ios-spinner": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-mithril-base-spinner": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-list-tile/package.json b/packages/polythene-mithril-list-tile/package.json index 6b87be126..90fdfb332 100644 --- a/packages/polythene-mithril-list-tile/package.json +++ b/packages/polythene-mithril-list-tile/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-list-tile", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-list-tile", "module": "dist/polythene-mithril-list-tile.mjs", @@ -18,9 +18,9 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-list-tile": "^1.6.5", - "polythene-mithril-icon": "^1.6.5", - "polythene-mithril-ripple": "^1.6.5" + "polythene-core-list-tile": "1.7.0", + "polythene-mithril-icon": "1.7.0", + "polythene-mithril-ripple": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-list/package.json b/packages/polythene-mithril-list/package.json index 63a6642ab..bca27c41c 100644 --- a/packages/polythene-mithril-list/package.json +++ b/packages/polythene-mithril-list/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-list", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-list", "module": "dist/polythene-mithril-list.mjs", @@ -18,8 +18,8 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-list": "^1.6.5", - "polythene-mithril-list-tile": "^1.6.5" + "polythene-core-list": "1.7.0", + "polythene-mithril-list-tile": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-material-design-progress-spinner/package.json b/packages/polythene-mithril-material-design-progress-spinner/package.json index 0ce344643..859a66c18 100644 --- a/packages/polythene-mithril-material-design-progress-spinner/package.json +++ b/packages/polythene-mithril-material-design-progress-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-material-design-progress-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-material-design-progress-spinner", "module": "dist/polythene-mithril-material-design-progress-spinner.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-material-design-progress-spinner": "^1.6.5", - "polythene-css-classes": "^1.6.5", - "polythene-mithril-base-spinner": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-material-design-progress-spinner": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-mithril-base-spinner": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-material-design-spinner/package.json b/packages/polythene-mithril-material-design-spinner/package.json index bd9f019da..4bed62214 100644 --- a/packages/polythene-mithril-material-design-spinner/package.json +++ b/packages/polythene-mithril-material-design-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-material-design-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-material-design-spinner", "module": "dist/polythene-mithril-material-design-spinner.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-material-design-spinner": "^1.6.5", - "polythene-css-classes": "^1.6.5", - "polythene-mithril-base-spinner": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-material-design-spinner": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-mithril-base-spinner": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-menu/package.json b/packages/polythene-mithril-menu/package.json index f6dc04187..3989486d2 100644 --- a/packages/polythene-mithril-menu/package.json +++ b/packages/polythene-mithril-menu/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-menu", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-menu", "module": "dist/polythene-mithril-menu.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-menu": "^1.6.5", - "polythene-css-classes": "^1.6.5", - "polythene-mithril-shadow": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-menu": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-mithril-shadow": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-notification/package.json b/packages/polythene-mithril-notification/package.json index 3e0b5f6ea..47e27dbbb 100644 --- a/packages/polythene-mithril-notification/package.json +++ b/packages/polythene-mithril-notification/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-notification", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-notification", "module": "dist/polythene-mithril-notification.mjs", @@ -18,9 +18,9 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-notification": "^1.6.5", - "polythene-css-classes": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-notification": "1.7.0", + "polythene-css-classes": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-radio-button/package.json b/packages/polythene-mithril-radio-button/package.json index a0775af28..e4a807574 100644 --- a/packages/polythene-mithril-radio-button/package.json +++ b/packages/polythene-mithril-radio-button/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-radio-button", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-radio-button", "module": "dist/polythene-mithril-radio-button.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-radio-button": "^1.6.5", - "polythene-core-selection-control": "^1.6.5", - "polythene-mithril-icon": "^1.6.5", - "polythene-mithril-icon-button": "^1.6.5" + "polythene-core-radio-button": "1.7.0", + "polythene-core-selection-control": "1.7.0", + "polythene-mithril-icon": "1.7.0", + "polythene-mithril-icon-button": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-radio-group/package.json b/packages/polythene-mithril-radio-group/package.json index 76e0bd511..c11286e06 100644 --- a/packages/polythene-mithril-radio-group/package.json +++ b/packages/polythene-mithril-radio-group/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-radio-group", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-radio-group", "module": "dist/polythene-mithril-radio-group.mjs", @@ -18,8 +18,8 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-radio-group": "^1.6.5", - "polythene-mithril-radio-button": "^1.6.5" + "polythene-core-radio-group": "1.7.0", + "polythene-mithril-radio-button": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-raised-button/package.json b/packages/polythene-mithril-raised-button/package.json index c3593486a..9ec9208d5 100644 --- a/packages/polythene-mithril-raised-button/package.json +++ b/packages/polythene-mithril-raised-button/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-raised-button", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-raised-button", "module": "dist/polythene-mithril-raised-button.mjs", @@ -18,12 +18,12 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-mithril-button": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-mithril-button": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0", - "polythene-core-button": "^1.6.5" + "polythene-core-button": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-mithril-ripple/package.json b/packages/polythene-mithril-ripple/package.json index 1478bbe85..b6dacf087 100644 --- a/packages/polythene-mithril-ripple/package.json +++ b/packages/polythene-mithril-ripple/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-ripple", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-ripple", "module": "dist/polythene-mithril-ripple.mjs", @@ -17,7 +17,7 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-ripple": "^1.6.5" + "polythene-core-ripple": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-search/package.json b/packages/polythene-mithril-search/package.json index 8a6986ab7..02c73bc3f 100644 --- a/packages/polythene-mithril-search/package.json +++ b/packages/polythene-mithril-search/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-search", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-search", "module": "dist/polythene-mithril-search.mjs", @@ -18,8 +18,8 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-search": "^1.6.5", - "polythene-mithril-textfield": "^1.6.5" + "polythene-core-search": "1.7.0", + "polythene-mithril-textfield": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-shadow/package.json b/packages/polythene-mithril-shadow/package.json index 733025952..bdbd7631a 100644 --- a/packages/polythene-mithril-shadow/package.json +++ b/packages/polythene-mithril-shadow/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-shadow", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-shadow", "module": "dist/polythene-mithril-shadow.mjs", @@ -18,7 +18,7 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-shadow": "^1.6.5" + "polythene-core-shadow": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-slider/package.json b/packages/polythene-mithril-slider/package.json index 4f645fac8..82eb5a715 100644 --- a/packages/polythene-mithril-slider/package.json +++ b/packages/polythene-mithril-slider/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-slider", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-slider", "module": "dist/polythene-mithril-slider.mjs", @@ -18,7 +18,7 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-slider": "^1.6.5" + "polythene-core-slider": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-snackbar/package.json b/packages/polythene-mithril-snackbar/package.json index 1143e0ac2..58ecc7e5a 100644 --- a/packages/polythene-mithril-snackbar/package.json +++ b/packages/polythene-mithril-snackbar/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-snackbar", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-snackbar", "module": "dist/polythene-mithril-snackbar.mjs", @@ -18,9 +18,9 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-snackbar": "^1.6.5", - "polythene-css-classes": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-snackbar": "1.7.0", + "polythene-css-classes": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-svg/package.json b/packages/polythene-mithril-svg/package.json index 3cf449312..77f907ed1 100644 --- a/packages/polythene-mithril-svg/package.json +++ b/packages/polythene-mithril-svg/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-svg", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-svg", "module": "dist/polythene-mithril-svg.mjs", @@ -18,7 +18,7 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-svg": "^1.6.5" + "polythene-core-svg": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-switch/package.json b/packages/polythene-mithril-switch/package.json index ee10f8f6b..3f8b9696b 100644 --- a/packages/polythene-mithril-switch/package.json +++ b/packages/polythene-mithril-switch/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-switch", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-switch", "module": "dist/polythene-mithril-switch.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-selection-control": "^1.6.5", - "polythene-core-switch": "^1.6.5", - "polythene-mithril-icon-button": "^1.6.5", - "polythene-mithril-shadow": "^1.6.5" + "polythene-core-selection-control": "1.7.0", + "polythene-core-switch": "1.7.0", + "polythene-mithril-icon-button": "1.7.0", + "polythene-mithril-shadow": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-tabs/package.json b/packages/polythene-mithril-tabs/package.json index e13e1182c..84e703fe5 100644 --- a/packages/polythene-mithril-tabs/package.json +++ b/packages/polythene-mithril-tabs/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-tabs", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-tabs", "module": "dist/polythene-mithril-tabs.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-tabs": "^1.6.5", - "polythene-mithril-button": "^1.6.5", - "polythene-mithril-icon": "^1.6.5", - "polythene-mithril-icon-button": "^1.6.5" + "polythene-core-tabs": "1.7.0", + "polythene-mithril-button": "1.7.0", + "polythene-mithril-icon": "1.7.0", + "polythene-mithril-icon-button": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-textfield/package.json b/packages/polythene-mithril-textfield/package.json index ba9cc7af1..354e190ec 100644 --- a/packages/polythene-mithril-textfield/package.json +++ b/packages/polythene-mithril-textfield/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-textfield", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-textfield", "module": "dist/polythene-mithril-textfield.mjs", @@ -18,7 +18,7 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-textfield": "^1.6.5" + "polythene-core-textfield": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril-toolbar/package.json b/packages/polythene-mithril-toolbar/package.json index 89b045ba4..4661dbbbd 100644 --- a/packages/polythene-mithril-toolbar/package.json +++ b/packages/polythene-mithril-toolbar/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril-toolbar", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril-toolbar", "module": "dist/polythene-mithril-toolbar.mjs", @@ -18,8 +18,8 @@ ], "dependencies": { "cyano-mithril": "^0.6.2", - "polythene-core-toolbar": "^1.6.5", - "polythene-mithril-shadow": "^1.6.5" + "polythene-core-toolbar": "1.7.0", + "polythene-mithril-shadow": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0" diff --git a/packages/polythene-mithril/package.json b/packages/polythene-mithril/package.json index 1607d0a35..bc660da9b 100644 --- a/packages/polythene-mithril/package.json +++ b/packages/polythene-mithril/package.json @@ -1,6 +1,6 @@ { "name": "polythene-mithril", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-mithril", "module": "dist/polythene-mithril.mjs", @@ -17,43 +17,43 @@ "README.md" ], "dependencies": { - "polythene-css": "^1.6.5", - "polythene-mithril-button": "^1.6.5", - "polythene-mithril-button-group": "^1.6.5", - "polythene-mithril-card": "^1.6.5", - "polythene-mithril-checkbox": "^1.6.5", - "polythene-mithril-dialog": "^1.6.5", - "polythene-mithril-dialog-pane": "^1.6.5", - "polythene-mithril-drawer": "^1.6.5", - "polythene-mithril-fab": "^1.6.5", - "polythene-mithril-icon": "^1.6.5", - "polythene-mithril-icon-button": "^1.6.5", - "polythene-mithril-ios-spinner": "^1.6.5", - "polythene-mithril-list": "^1.6.5", - "polythene-mithril-list-tile": "^1.6.5", - "polythene-mithril-material-design-progress-spinner": "^1.6.5", - "polythene-mithril-material-design-spinner": "^1.6.5", - "polythene-mithril-menu": "^1.6.5", - "polythene-mithril-notification": "^1.6.5", - "polythene-mithril-radio-button": "^1.6.5", - "polythene-mithril-radio-group": "^1.6.5", - "polythene-mithril-raised-button": "^1.6.5", - "polythene-mithril-ripple": "^1.6.5", - "polythene-mithril-search": "^1.6.5", - "polythene-mithril-shadow": "^1.6.5", - "polythene-mithril-slider": "^1.6.5", - "polythene-mithril-snackbar": "^1.6.5", - "polythene-mithril-svg": "^1.6.5", - "polythene-mithril-switch": "^1.6.5", - "polythene-mithril-tabs": "^1.6.5", - "polythene-mithril-textfield": "^1.6.5", - "polythene-mithril-toolbar": "^1.6.5" + "polythene-css": "1.7.0", + "polythene-mithril-button": "1.7.0", + "polythene-mithril-button-group": "1.7.0", + "polythene-mithril-card": "1.7.0", + "polythene-mithril-checkbox": "1.7.0", + "polythene-mithril-dialog": "1.7.0", + "polythene-mithril-dialog-pane": "1.7.0", + "polythene-mithril-drawer": "1.7.0", + "polythene-mithril-fab": "1.7.0", + "polythene-mithril-icon": "1.7.0", + "polythene-mithril-icon-button": "1.7.0", + "polythene-mithril-ios-spinner": "1.7.0", + "polythene-mithril-list": "1.7.0", + "polythene-mithril-list-tile": "1.7.0", + "polythene-mithril-material-design-progress-spinner": "1.7.0", + "polythene-mithril-material-design-spinner": "1.7.0", + "polythene-mithril-menu": "1.7.0", + "polythene-mithril-notification": "1.7.0", + "polythene-mithril-radio-button": "1.7.0", + "polythene-mithril-radio-group": "1.7.0", + "polythene-mithril-raised-button": "1.7.0", + "polythene-mithril-ripple": "1.7.0", + "polythene-mithril-search": "1.7.0", + "polythene-mithril-shadow": "1.7.0", + "polythene-mithril-slider": "1.7.0", + "polythene-mithril-snackbar": "1.7.0", + "polythene-mithril-svg": "1.7.0", + "polythene-mithril-switch": "1.7.0", + "polythene-mithril-tabs": "1.7.0", + "polythene-mithril-textfield": "1.7.0", + "polythene-mithril-toolbar": "1.7.0" }, "devDependencies": { "@types/mithril": "^2.0.0", "cyano-mithril": "^0.6.2", - "polythene-core-css": "^1.6.5", - "polythene-core": "^1.6.5" + "polythene-core-css": "1.7.0", + "polythene-core": "1.7.0" }, "peerDependencies": { "mithril": ">=1.1.6" diff --git a/packages/polythene-react-base-spinner/package.json b/packages/polythene-react-base-spinner/package.json index 47e9b1cd7..e7e9bc859 100644 --- a/packages/polythene-react-base-spinner/package.json +++ b/packages/polythene-react-base-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-base-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-base-spinner", "module": "dist/polythene-react-base-spinner.mjs", @@ -18,9 +18,9 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-base-spinner": "^1.6.5", - "polythene-css-classes": "^1.6.5", - "polythene-react-shadow": "^1.6.5" + "polythene-core-base-spinner": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-react-shadow": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-button-group/package.json b/packages/polythene-react-button-group/package.json index 4d0d9831d..183476d0a 100644 --- a/packages/polythene-react-button-group/package.json +++ b/packages/polythene-react-button-group/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-button-group", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-button-group", "module": "dist/polythene-react-button-group.mjs", @@ -18,7 +18,7 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-button-group": "^1.6.5" + "polythene-core-button-group": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-button/package.json b/packages/polythene-react-button/package.json index 841300d74..1e08248bc 100644 --- a/packages/polythene-react-button/package.json +++ b/packages/polythene-react-button/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-button", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-button", "module": "dist/polythene-react-button.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-button": "^1.6.5", - "polythene-react-icon": "^1.6.5", - "polythene-react-ripple": "^1.6.5", - "polythene-react-shadow": "^1.6.5" + "polythene-core-button": "1.7.0", + "polythene-react-icon": "1.7.0", + "polythene-react-ripple": "1.7.0", + "polythene-react-shadow": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-card/package.json b/packages/polythene-react-card/package.json index c0e699065..5fcdef74d 100644 --- a/packages/polythene-react-card/package.json +++ b/packages/polythene-react-card/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-card", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-card", "module": "dist/polythene-react-card.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-card": "^1.6.5", - "polythene-react-icon": "^1.6.5", - "polythene-react-list-tile": "^1.6.5", - "polythene-react-shadow": "^1.6.5" + "polythene-core-card": "1.7.0", + "polythene-react-icon": "1.7.0", + "polythene-react-list-tile": "1.7.0", + "polythene-react-shadow": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-checkbox/package.json b/packages/polythene-react-checkbox/package.json index 6d1d5e8bb..e32c1a5f1 100644 --- a/packages/polythene-react-checkbox/package.json +++ b/packages/polythene-react-checkbox/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-checkbox", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-checkbox", "module": "dist/polythene-react-checkbox.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-checkbox": "^1.6.5", - "polythene-core-selection-control": "^1.6.5", - "polythene-react-icon": "^1.6.5", - "polythene-react-icon-button": "^1.6.5" + "polythene-core-checkbox": "1.7.0", + "polythene-core-selection-control": "1.7.0", + "polythene-react-icon": "1.7.0", + "polythene-react-icon-button": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-dialog-pane/package.json b/packages/polythene-react-dialog-pane/package.json index ccddfa755..74d5f4639 100644 --- a/packages/polythene-react-dialog-pane/package.json +++ b/packages/polythene-react-dialog-pane/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-dialog-pane", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-dialog-pane", "module": "dist/polythene-react-dialog-pane.mjs", @@ -18,7 +18,7 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-dialog-pane": "^1.6.5" + "polythene-core-dialog-pane": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-dialog/package.json b/packages/polythene-react-dialog/package.json index 5df44a29e..27c9b4520 100644 --- a/packages/polythene-react-dialog/package.json +++ b/packages/polythene-react-dialog/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-dialog", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-dialog", "module": "dist/polythene-react-dialog.mjs", @@ -18,11 +18,11 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-dialog": "^1.6.5", - "polythene-css-classes": "^1.6.5", - "polythene-react-dialog-pane": "^1.6.5", - "polythene-react-shadow": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-dialog": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-react-dialog-pane": "1.7.0", + "polythene-react-shadow": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-drawer/package.json b/packages/polythene-react-drawer/package.json index ff3c64596..e8db298e1 100644 --- a/packages/polythene-react-drawer/package.json +++ b/packages/polythene-react-drawer/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-drawer", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-drawer", "module": "dist/polythene-react-drawer.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-drawer": "^1.6.5", - "polythene-css-classes": "^1.6.5", - "polythene-react-dialog": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-drawer": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-react-dialog": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-fab/package.json b/packages/polythene-react-fab/package.json index 267374c2c..eac9daf01 100644 --- a/packages/polythene-react-fab/package.json +++ b/packages/polythene-react-fab/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-fab", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-fab", "module": "dist/polythene-react-fab.mjs", @@ -18,9 +18,9 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-fab": "^1.6.5", - "polythene-react-button": "^1.6.5", - "polythene-react-icon": "^1.6.5" + "polythene-core-fab": "1.7.0", + "polythene-react-button": "1.7.0", + "polythene-react-icon": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-icon-button/package.json b/packages/polythene-react-icon-button/package.json index 3b382bf75..72f174540 100644 --- a/packages/polythene-react-icon-button/package.json +++ b/packages/polythene-react-icon-button/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-icon-button", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-icon-button", "module": "dist/polythene-react-icon-button.mjs", @@ -18,9 +18,9 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-icon-button": "^1.6.5", - "polythene-react-button": "^1.6.5", - "polythene-react-icon": "^1.6.5" + "polythene-core-icon-button": "1.7.0", + "polythene-react-button": "1.7.0", + "polythene-react-icon": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-icon/package.json b/packages/polythene-react-icon/package.json index 68d00ea9b..9daec4a2a 100644 --- a/packages/polythene-react-icon/package.json +++ b/packages/polythene-react-icon/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-icon", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-icon", "module": "dist/polythene-react-icon.mjs", @@ -18,8 +18,8 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-icon": "^1.6.5", - "polythene-react-svg": "^1.6.5" + "polythene-core-icon": "1.7.0", + "polythene-react-svg": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-ios-spinner/package.json b/packages/polythene-react-ios-spinner/package.json index 6a8a92930..d5bb652f5 100644 --- a/packages/polythene-react-ios-spinner/package.json +++ b/packages/polythene-react-ios-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-ios-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-ios-spinner", "module": "dist/polythene-react-ios-spinner.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-ios-spinner": "^1.6.5", - "polythene-css-classes": "^1.6.5", - "polythene-react-base-spinner": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-ios-spinner": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-react-base-spinner": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-list-tile/package.json b/packages/polythene-react-list-tile/package.json index 4a9831611..b67b5fade 100644 --- a/packages/polythene-react-list-tile/package.json +++ b/packages/polythene-react-list-tile/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-list-tile", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-list-tile", "module": "dist/polythene-react-list-tile.mjs", @@ -18,9 +18,9 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-list-tile": "^1.6.5", - "polythene-react-icon": "^1.6.5", - "polythene-react-ripple": "^1.6.5" + "polythene-core-list-tile": "1.7.0", + "polythene-react-icon": "1.7.0", + "polythene-react-ripple": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-list/package.json b/packages/polythene-react-list/package.json index b9f7f69f4..f9589e8fd 100644 --- a/packages/polythene-react-list/package.json +++ b/packages/polythene-react-list/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-list", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-list", "module": "dist/polythene-react-list.mjs", @@ -18,8 +18,8 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-list": "^1.6.5", - "polythene-react-list-tile": "^1.6.5" + "polythene-core-list": "1.7.0", + "polythene-react-list-tile": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-material-design-progress-spinner/package.json b/packages/polythene-react-material-design-progress-spinner/package.json index 3acbc2303..f15d6c627 100644 --- a/packages/polythene-react-material-design-progress-spinner/package.json +++ b/packages/polythene-react-material-design-progress-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-material-design-progress-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-material-design-progress-spinner", "module": "dist/polythene-react-material-design-progress-spinner.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-material-design-progress-spinner": "^1.6.5", - "polythene-css-classes": "^1.6.5", - "polythene-react-base-spinner": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-material-design-progress-spinner": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-react-base-spinner": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-material-design-spinner/package.json b/packages/polythene-react-material-design-spinner/package.json index 216cdf526..4dab77841 100644 --- a/packages/polythene-react-material-design-spinner/package.json +++ b/packages/polythene-react-material-design-spinner/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-material-design-spinner", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-material-design-spinner", "module": "dist/polythene-react-material-design-spinner.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-material-design-spinner": "^1.6.5", - "polythene-css-classes": "^1.6.5", - "polythene-react-base-spinner": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-material-design-spinner": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-react-base-spinner": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-menu/package.json b/packages/polythene-react-menu/package.json index 279884de2..13fef6656 100644 --- a/packages/polythene-react-menu/package.json +++ b/packages/polythene-react-menu/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-menu", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-menu", "module": "dist/polythene-react-menu.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-menu": "^1.6.5", - "polythene-css-classes": "^1.6.5", - "polythene-react-shadow": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-menu": "1.7.0", + "polythene-css-classes": "1.7.0", + "polythene-react-shadow": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-notification/package.json b/packages/polythene-react-notification/package.json index 4d5a82197..45cdab5c4 100644 --- a/packages/polythene-react-notification/package.json +++ b/packages/polythene-react-notification/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-notification", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-notification", "module": "dist/polythene-react-notification.mjs", @@ -18,9 +18,9 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-notification": "^1.6.5", - "polythene-css-classes": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-notification": "1.7.0", + "polythene-css-classes": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-radio-button/package.json b/packages/polythene-react-radio-button/package.json index 9235ee4b7..07f8baaef 100644 --- a/packages/polythene-react-radio-button/package.json +++ b/packages/polythene-react-radio-button/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-radio-button", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-radio-button", "module": "dist/polythene-react-radio-button.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-radio-button": "^1.6.5", - "polythene-core-selection-control": "^1.6.5", - "polythene-react-icon": "^1.6.5", - "polythene-react-icon-button": "^1.6.5" + "polythene-core-radio-button": "1.7.0", + "polythene-core-selection-control": "1.7.0", + "polythene-react-icon": "1.7.0", + "polythene-react-icon-button": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-radio-group/package.json b/packages/polythene-react-radio-group/package.json index 47ec90faf..cd9ec1410 100644 --- a/packages/polythene-react-radio-group/package.json +++ b/packages/polythene-react-radio-group/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-radio-group", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-radio-group", "module": "dist/polythene-react-radio-group.mjs", @@ -18,8 +18,8 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-radio-group": "^1.6.5", - "polythene-react-radio-button": "^1.6.5" + "polythene-core-radio-group": "1.7.0", + "polythene-react-radio-button": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-raised-button/package.json b/packages/polythene-react-raised-button/package.json index bf4750be3..59f843652 100644 --- a/packages/polythene-react-raised-button/package.json +++ b/packages/polythene-react-raised-button/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-raised-button", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-raised-button", "module": "dist/polythene-react-raised-button.mjs", @@ -18,12 +18,12 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-react-button": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-react-button": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23", - "polythene-core-button": "^1.6.5" + "polythene-core-button": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-react-ripple/package.json b/packages/polythene-react-ripple/package.json index 1990ef8d8..b275f1494 100644 --- a/packages/polythene-react-ripple/package.json +++ b/packages/polythene-react-ripple/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-ripple", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-ripple", "module": "dist/polythene-react-ripple.mjs", @@ -18,7 +18,7 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-ripple": "^1.6.5" + "polythene-core-ripple": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-search/package.json b/packages/polythene-react-search/package.json index 6f7c71b7b..cd5642cf6 100644 --- a/packages/polythene-react-search/package.json +++ b/packages/polythene-react-search/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-search", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-search", "module": "dist/polythene-react-search.mjs", @@ -18,8 +18,8 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-search": "^1.6.5", - "polythene-react-textfield": "^1.6.5" + "polythene-core-search": "1.7.0", + "polythene-react-textfield": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-shadow/package.json b/packages/polythene-react-shadow/package.json index 80c05657b..2ce0d89ae 100644 --- a/packages/polythene-react-shadow/package.json +++ b/packages/polythene-react-shadow/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-shadow", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-shadow", "module": "dist/polythene-react-shadow.mjs", @@ -18,7 +18,7 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-shadow": "^1.6.5" + "polythene-core-shadow": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-slider/package.json b/packages/polythene-react-slider/package.json index 581b5e562..077883e1f 100644 --- a/packages/polythene-react-slider/package.json +++ b/packages/polythene-react-slider/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-slider", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-slider", "module": "dist/polythene-react-slider.mjs", @@ -18,7 +18,7 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-slider": "^1.6.5" + "polythene-core-slider": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-snackbar/package.json b/packages/polythene-react-snackbar/package.json index 35a5017a3..7f8516c3c 100644 --- a/packages/polythene-react-snackbar/package.json +++ b/packages/polythene-react-snackbar/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-snackbar", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-snackbar", "module": "dist/polythene-react-snackbar.mjs", @@ -18,9 +18,9 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core": "^1.6.5", - "polythene-core-snackbar": "^1.6.5", - "polythene-css-classes": "^1.6.5" + "polythene-core": "1.7.0", + "polythene-core-snackbar": "1.7.0", + "polythene-css-classes": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-svg/package.json b/packages/polythene-react-svg/package.json index 35dd6a4c8..509b122cb 100644 --- a/packages/polythene-react-svg/package.json +++ b/packages/polythene-react-svg/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-svg", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-svg", "module": "dist/polythene-react-svg.mjs", @@ -17,7 +17,7 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-svg": "^1.6.5" + "polythene-core-svg": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-switch/package.json b/packages/polythene-react-switch/package.json index df97d356c..70cae1dfd 100644 --- a/packages/polythene-react-switch/package.json +++ b/packages/polythene-react-switch/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-switch", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-switch", "module": "dist/polythene-react-switch.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-selection-control": "^1.6.5", - "polythene-core-switch": "^1.6.5", - "polythene-react-icon-button": "^1.6.5", - "polythene-react-shadow": "^1.6.5" + "polythene-core-selection-control": "1.7.0", + "polythene-core-switch": "1.7.0", + "polythene-react-icon-button": "1.7.0", + "polythene-react-shadow": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-tabs/package.json b/packages/polythene-react-tabs/package.json index 0724dde87..ebbb502b8 100644 --- a/packages/polythene-react-tabs/package.json +++ b/packages/polythene-react-tabs/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-tabs", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-tabs", "module": "dist/polythene-react-tabs.mjs", @@ -18,10 +18,10 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-tabs": "^1.6.5", - "polythene-react-button": "^1.6.5", - "polythene-react-icon": "^1.6.5", - "polythene-react-icon-button": "^1.6.5" + "polythene-core-tabs": "1.7.0", + "polythene-react-button": "1.7.0", + "polythene-react-icon": "1.7.0", + "polythene-react-icon-button": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-textfield/package.json b/packages/polythene-react-textfield/package.json index 374caad13..9b5d5ab3d 100644 --- a/packages/polythene-react-textfield/package.json +++ b/packages/polythene-react-textfield/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-textfield", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-textfield", "module": "dist/polythene-react-textfield.mjs", @@ -18,7 +18,7 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-textfield": "^1.6.5" + "polythene-core-textfield": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react-toolbar/package.json b/packages/polythene-react-toolbar/package.json index ce1c770e3..390bce603 100644 --- a/packages/polythene-react-toolbar/package.json +++ b/packages/polythene-react-toolbar/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react-toolbar", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react-toolbar", "module": "dist/polythene-react-toolbar.mjs", @@ -18,8 +18,8 @@ ], "dependencies": { "cyano-react": "^0.6.2", - "polythene-core-toolbar": "^1.6.5", - "polythene-react-shadow": "^1.6.5" + "polythene-core-toolbar": "1.7.0", + "polythene-react-shadow": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23" diff --git a/packages/polythene-react/package.json b/packages/polythene-react/package.json index 4f8daecdb..bb7ccc7b6 100644 --- a/packages/polythene-react/package.json +++ b/packages/polythene-react/package.json @@ -1,6 +1,6 @@ { "name": "polythene-react", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-react", "module": "dist/polythene-react.mjs", @@ -18,39 +18,39 @@ "README.md" ], "dependencies": { - "polythene-core-css": "1.6.5", - "polythene-core": "1.6.5", - "polythene-css": "1.6.5", - "polythene-react-button-group": "1.6.5", - "polythene-react-button": "1.6.5", - "polythene-react-card": "1.6.5", - "polythene-react-checkbox": "1.6.5", - "polythene-react-dialog-pane": "1.6.5", - "polythene-react-dialog": "1.6.5", - "polythene-react-drawer": "1.6.5", - "polythene-react-fab": "1.6.5", - "polythene-react-icon-button": "1.6.5", - "polythene-react-icon": "1.6.5", - "polythene-react-ios-spinner": "1.6.5", - "polythene-react-list-tile": "1.6.5", - "polythene-react-list": "1.6.5", - "polythene-react-material-design-progress-spinner": "1.6.5", - "polythene-react-material-design-spinner": "1.6.5", - "polythene-react-menu": "1.6.5", - "polythene-react-notification": "1.6.5", - "polythene-react-radio-button": "1.6.5", - "polythene-react-radio-group": "1.6.5", - "polythene-react-raised-button": "1.6.5", - "polythene-react-ripple": "1.6.5", - "polythene-react-search": "1.6.5", - "polythene-react-shadow": "1.6.5", - "polythene-react-slider": "1.6.5", - "polythene-react-snackbar": "1.6.5", - "polythene-react-svg": "1.6.5", - "polythene-react-switch": "1.6.5", - "polythene-react-tabs": "1.6.5", - "polythene-react-textfield": "1.6.5", - "polythene-react-toolbar": "1.6.5" + "polythene-core-css": "1.7.0", + "polythene-core": "1.7.0", + "polythene-css": "1.7.0", + "polythene-react-button-group": "1.7.0", + "polythene-react-button": "1.7.0", + "polythene-react-card": "1.7.0", + "polythene-react-checkbox": "1.7.0", + "polythene-react-dialog-pane": "1.7.0", + "polythene-react-dialog": "1.7.0", + "polythene-react-drawer": "1.7.0", + "polythene-react-fab": "1.7.0", + "polythene-react-icon-button": "1.7.0", + "polythene-react-icon": "1.7.0", + "polythene-react-ios-spinner": "1.7.0", + "polythene-react-list-tile": "1.7.0", + "polythene-react-list": "1.7.0", + "polythene-react-material-design-progress-spinner": "1.7.0", + "polythene-react-material-design-spinner": "1.7.0", + "polythene-react-menu": "1.7.0", + "polythene-react-notification": "1.7.0", + "polythene-react-radio-button": "1.7.0", + "polythene-react-radio-group": "1.7.0", + "polythene-react-raised-button": "1.7.0", + "polythene-react-ripple": "1.7.0", + "polythene-react-search": "1.7.0", + "polythene-react-shadow": "1.7.0", + "polythene-react-slider": "1.7.0", + "polythene-react-snackbar": "1.7.0", + "polythene-react-svg": "1.7.0", + "polythene-react-switch": "1.7.0", + "polythene-react-tabs": "1.7.0", + "polythene-react-textfield": "1.7.0", + "polythene-react-toolbar": "1.7.0" }, "devDependencies": { "@types/react": "^16.8.23", diff --git a/packages/polythene-scripts/package.json b/packages/polythene-scripts/package.json index 897c5cdec..105a69330 100644 --- a/packages/polythene-scripts/package.json +++ b/packages/polythene-scripts/package.json @@ -1,6 +1,6 @@ { "name": "polythene-scripts", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-scripts", "module": "dist/polythene-scripts.mjs", diff --git a/packages/polythene-style/package.json b/packages/polythene-style/package.json index 4fc53d0c7..3348800f7 100644 --- a/packages/polythene-style/package.json +++ b/packages/polythene-style/package.json @@ -1,6 +1,6 @@ { "name": "polythene-style", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-style", "module": "dist/polythene-style.mjs", @@ -17,7 +17,7 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5" + "polythene-core": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-theme/package.json b/packages/polythene-theme/package.json index bada9f070..d5bd51a5a 100644 --- a/packages/polythene-theme/package.json +++ b/packages/polythene-theme/package.json @@ -1,6 +1,6 @@ { "name": "polythene-theme", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-theme", "module": "dist/polythene-theme.mjs", @@ -17,7 +17,7 @@ "README.md" ], "dependencies": { - "polythene-style": "1.6.5" + "polythene-style": "1.7.0" }, "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/polythene-utilities/package.json b/packages/polythene-utilities/package.json index 2dcf7282c..bfc71cda5 100644 --- a/packages/polythene-utilities/package.json +++ b/packages/polythene-utilities/package.json @@ -1,6 +1,6 @@ { "name": "polythene-utilities", - "version": "1.6.5", + "version": "1.7.0", "description": "", "main": "dist/polythene-utilities", "module": "dist/polythene-utilities.mjs", @@ -17,8 +17,8 @@ "README.md" ], "dependencies": { - "polythene-core": "1.6.5", - "polythene-core-css": "1.6.5", + "polythene-core": "1.7.0", + "polythene-core-css": "1.7.0", "webfontloader": "^1.6.28" }, "author": "Arthur Clemens (http://arthurclemens.com)", diff --git a/packages/polythene/package.json b/packages/polythene/package.json index 62b3b6aa1..5ca20de27 100644 --- a/packages/polythene/package.json +++ b/packages/polythene/package.json @@ -1,6 +1,6 @@ { "name": "polythene", - "version": "1.6.5", + "version": "1.7.0", "description": "Material Design component library for Mithril and React", "author": "Arthur Clemens (http://arthurclemens.com)", "homepage": "https://github.com/ArthurClemens/polythene", diff --git a/packages/tests-build-rollup/dist/js/index.js b/packages/tests-build-rollup/dist/js/index.js index ead75243d..7a347e66f 100644 --- a/packages/tests-build-rollup/dist/js/index.js +++ b/packages/tests-build-rollup/dist/js/index.js @@ -1,2 +1,2 @@ -!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var t=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(t){!function(){function n(e,t,n,r,o,i){return{tag:e,key:t,attrs:n,children:r,text:o,dom:i,domSize:void 0,state:void 0,events:void 0,instance:void 0}}n.normalize=function(e){return Array.isArray(e)?n("[",void 0,void 0,n.normalizeChildren(e),void 0,void 0):null==e||"boolean"==typeof e?null:"object"==typeof e?e:n("#",void 0,void 0,String(e),void 0,void 0)},n.normalizeChildren=function(e){var t=[];if(e.length){for(var r=null!=e[0]&&null!=e[0].key,o=1;o0&&(a.className=r.join(" ")),i[e]={tag:n,attrs:a}}(e),t):(t.tag=e,t)}if(c.trust=function(e){return null==e&&(e=""),n("<",void 0,void 0,e,void 0,void 0)},c.fragment=function(){var e=r.apply(0,arguments);return e.tag="[",e.children=n.normalizeChildren(e.children),e},(s=function(e){if(!(this instanceof s))throw new Error("Promise must be called with `new`");if("function"!=typeof e)throw new TypeError("executor must be a function");var t=this,n=[],r=[],o=c(n,!0),i=c(r,!1),a=t._instance={resolvers:n,rejectors:r},l="function"==typeof setImmediate?setImmediate:setTimeout;function c(e,o){return function c(s){var d;try{if(!o||null==s||"object"!=typeof s&&"function"!=typeof s||"function"!=typeof(d=s.then))l(function(){o||0!==e.length||console.error("Possible unhandled promise rejection:",s);for(var t=0;t0||e(n)}}var r=n(i);try{e(n(o),r)}catch(e){r(e)}}u(e)}).prototype.then=function(e,t){var n,r,o=this._instance;function i(e,t,i,a){t.push(function(t){if("function"!=typeof e)i(t);else try{n(e(t))}catch(e){r&&r(e)}}),"function"==typeof o.retry&&a===o.state&&o.retry()}var a=new s(function(e,t){n=e,r=t});return i(e,o.resolvers,n,!0),i(t,o.rejectors,r,!1),a},s.prototype.catch=function(e){return this.then(null,e)},s.prototype.finally=function(e){return this.then(function(t){return s.resolve(e()).then(function(){return t})},function(t){return s.resolve(e()).then(function(){return s.reject(t)})})},s.resolve=function(e){return e instanceof s?e:new s(function(t){t(e)})},s.reject=function(e){return new s(function(t,n){n(e)})},s.all=function(e){return new s(function(t,n){var r=e.length,o=0,i=[];if(0===e.length)t([]);else for(var a=0;a'+t.children+"",a=a.firstChild):a.innerHTML=t.children,t.dom=a.firstChild,t.domSize=a.childNodes.length,t.instance=[];for(var l,c=r.createDocumentFragment();l=a.firstChild;)t.instance.push(l),c.appendChild(l);y(e,c,o)}function f(e,t,n,r,o,i){if(t!==n&&(null!=t||null!=n))if(null==t||0===t.length)s(e,n,0,n.length,r,o,i);else if(null==n||0===n.length)w(e,t,0,t.length);else{var a=null!=t[0]&&null!=t[0].key,l=null!=n[0]&&null!=n[0].key,c=0,d=0;if(!a)for(;d=d&&j>=c&&(y=t[O],v=n[j],y.key===v.key);)y!==v&&_(e,y,v,r,o,i),null!=v.dom&&(o=v.dom),O--,j--;for(;O>=d&&j>=c&&(p=t[d],f=n[c],p.key===f.key);)d++,c++,p!==f&&_(e,p,f,r,m(t,d,o),i);for(;O>=d&&j>=c&&c!==j&&p.key===v.key&&y.key===f.key;)b(e,y,k=m(t,d,o)),y!==f&&_(e,y,f,r,k,i),++c<=--j&&b(e,p,o),p!==v&&_(e,p,v,r,o,i),null!=v.dom&&(o=v.dom),d++,y=t[--O],v=n[j],p=t[d],f=n[c];for(;O>=d&&j>=c&&y.key===v.key;)y!==v&&_(e,y,v,r,o,i),null!=v.dom&&(o=v.dom),j--,y=t[--O],v=n[j];if(c>j)w(e,t,d,O+1);else if(d>O)s(e,n,c,j+1,r,o,i);else{var S,P,z=o,N=j-c+1,C=new Array(N),I=0,E=0,R=2147483647,T=0;for(E=0;E=c;E--){null==S&&(S=h(t,d,O+1));var F=S[(v=n[E]).key];null!=F&&(R=F>>1)+(r>>>1)+(n&r&1);e[t[l]]0&&(g[o]=t[n-1]),t[n]=o)}}for(n=t.length,r=t[n-1];n-- >0;)t[n]=r,r=g[r];return g.length=0,t}(C)).length-1,E=j;E>=c;E--)f=n[E],-1===C[E-c]?u(e,f,r,i,o):P[I]===E-c?I--:b(e,f,o),null!=f.dom&&(o=n[E].dom);else for(E=j;E>=c;E--)f=n[E],-1===C[E-c]&&u(e,f,r,i,o),null!=f.dom&&(o=n[E].dom)}}else{var D=t.lengthD&&w(e,t,c,t.length),n.length>D&&s(e,n,c,n.length,r,o,i)}}}function _(e,t,r,o,a,c){var s=t.tag;if(s===r.tag){if(r.state=t.state,r.events=t.events,function(e,t){do{if(null!=e.attrs&&"function"==typeof e.attrs.onbeforeupdate){var n=l.call(e.attrs.onbeforeupdate,e,t);if(void 0!==n&&!n)break}if("string"!=typeof e.tag&&"function"==typeof e.state.onbeforeupdate){var n=l.call(e.state.onbeforeupdate,e,t);if(void 0!==n&&!n)break}return!1}while(0);return e.dom=t.dom,e.domSize=t.domSize,e.instance=t.instance,e.attrs=t.attrs,e.children=t.children,e.text=t.text,!0}(r,t))return;if("string"==typeof s)switch(null!=r.attrs&&A(r.attrs,r,o),s){case"#":!function(e,t){e.children.toString()!==t.children.toString()&&(e.dom.nodeValue=t.children),t.dom=e.dom}(t,r);break;case"<":!function(e,t,n,r,o){t.children!==n.children?(k(e,t),p(e,n,r,o)):(n.dom=t.dom,n.domSize=t.domSize)}(e,t,r,c,a);break;case"[":!function(e,t,n,r,o,i){f(e,t.children,n.children,r,o,i);var a=0,l=n.children;if(n.dom=null,null!=l){for(var c=0;c-1||null!=e.attrs&&e.attrs.is||"href"!==t&&"list"!==t&&"form"!==t&&"width"!==t&&"height"!==t)&&t in e.dom}var C=/[A-Z]/g;function I(e){return"-"+e.toLowerCase()}function E(e){return"-"===e[0]&&"-"===e[1]?e:"cssFloat"===e?"float":e.replace(C,I)}function R(e,t,n){if(t===n);else if(null==n)e.style.cssText="";else if("object"!=typeof n)e.style.cssText=n;else if(null==t||"object"!=typeof t)for(var r in e.style.cssText="",n)null!=(o=n[r])&&e.style.setProperty(E(r),String(o));else{for(var r in n){var o;null!=(o=n[r])&&(o=String(o))!==String(t[r])&&e.style.setProperty(E(r),o)}for(var r in t)null!=t[r]&&null==n[r]&&e.style.removeProperty(E(r))}}function T(){this._=t}function F(e,t,n){if(null!=e.events){if(e.events[t]===n)return;null==n||"function"!=typeof n&&"object"!=typeof n?(null!=e.events[t]&&e.dom.removeEventListener(t.slice(2),e.events,!1),e.events[t]=void 0):(null==e.events[t]&&e.dom.addEventListener(t.slice(2),e.events,!1),e.events[t]=n)}else null==n||"function"!=typeof n&&"object"!=typeof n||(e.events=new T,e.dom.addEventListener(t.slice(2),e.events,!1),e.events[t]=n)}function D(e,t,n){"function"==typeof e.oninit&&l.call(e.oninit,t),"function"==typeof e.oncreate&&n.push(l.bind(e.oncreate,t))}function A(e,t,n){"function"==typeof e.onupdate&&n.push(l.bind(e.onupdate,t))}return T.prototype=Object.create(null),T.prototype.handleEvent=function(e){var t,n=this["on"+e.type];"function"==typeof n?t=n.call(e.currentTarget,e):"function"==typeof n.handleEvent&&n.handleEvent(e),this._&&!1!==e.redraw&&(0,this._)(),!1===t&&(e.preventDefault(),e.stopPropagation())},function(e,r,o){if(!e)throw new TypeError("Ensure the DOM element being passed to m.route/m.mount/m.render is not undefined.");var i=[],a=c(),l=e.namespaceURI;null==e.vnodes&&(e.textContent=""),r=n.normalizeChildren(Array.isArray(r)?r:[r]);var s=t;try{t="function"==typeof o?o:void 0,f(e,e.vnodes,r,i,null,"http://www.w3.org/1999/xhtml"===l?void 0:l)}finally{t=s}e.vnodes=r,null!=a&&c()!==a&&"function"==typeof a.focus&&a.focus();for(var u=0;u=0&&(o.splice(i,2),e(t,[],c)),null!=r&&(o.push(t,r),e(t,n(r),c))},redraw:c}}(u,requestAnimationFrame,console),p=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return"";var t=[];for(var n in e)r(n,e[n]);return t.join("&");function r(e,n){if(Array.isArray(n))for(var o=0;o=0&&(h+=e.slice(n,o)),s>=0&&(h+=(n<0?"?":"&")+c.slice(s,d));var g=p(l);return g&&(h+=(n<0&&s<0?"?":"&")+g),r>=0&&(h+=e.slice(r)),u>=0&&(h+=(r<0?"":"&")+c.slice(u)),h},h=function(e,t,n){var r=0;function o(e){return new t(e)}function i(e){return function(r,i){"string"!=typeof r?(i=r,r=r.url):null==i&&(i={});var a=new t(function(t,n){e(_(r,i.params),i,function(e){if("function"==typeof i.type)if(Array.isArray(e))for(var n=0;n=200&&e.target.status<300||304===e.target.status||/^file:\/\//i.test(t),l=e.target.response;if("json"===u?e.target.responseType||"function"==typeof n.extract||(l=JSON.parse(e.target.responseText)):u&&"text"!==u||null==l&&(l=e.target.responseText),"function"==typeof n.extract?(l=n.extract(e.target,n),a=!0):"function"==typeof n.deserialize&&(l=n.deserialize(l)),a)r(l);else{try{i=e.target.responseText}catch(e){i=l}var c=new Error(i);c.code=e.target.status,c.response=l,o(c)}}catch(e){o(e)}},"function"==typeof n.config&&(d=n.config(d,n,t)||d)!==f&&(i=d.abort,d.abort=function(){p=!0,i.call(this)}),null==c?d.send():"function"==typeof n.serialize?d.send(n.serialize(c)):c instanceof e.FormData?d.send(c):d.send(JSON.stringify(c))}),jsonp:i(function(t,n,o,i){var a=n.callbackName||"_mithril_"+Math.round(1e16*Math.random())+"_"+r++,l=e.document.createElement("script");e[a]=function(t){delete e[a],l.parentNode.removeChild(l),o(t)},l.onerror=function(){delete e[a],l.parentNode.removeChild(l),i(new Error("JSONP request failed"))},l.src=t+(t.indexOf("?")<0?"?":"&")+encodeURIComponent(n.callbackKey||"callback")+"="+encodeURIComponent(a),e.document.documentElement.appendChild(l)})}}(window,s,d.redraw),g=d,m=function(){return c.apply(this,arguments)};m.m=c,m.trust=c.trust,m.fragment=c.fragment,m.mount=g.mount;var b=c,y=s,v=function(e){if(""===e||null==e)return{};"?"===e.charAt(0)&&(e=e.slice(1));for(var t=e.split("&"),n={},r={},o=0;o-1&&c.pop();for(var u=0;u1&&"/"===i[i.length-1]&&(i=i.slice(0,-1))):i="/",{path:i,params:t<0?{}:v(e.slice(t+1,r))}},x=function(e){var t=w(e),n=Object.keys(t.params),r=[],o=new RegExp("^"+t.path.replace(/:([^\/.-]+)(\.{3}|\.(?!\.)|-)?|[\\^$*+.()|\[\]{}]/g,function(e,t,n){return null==t?"\\"+e:(r.push({k:t,r:"..."===n}),"..."===n?"(.*)":"."===n?"([^/]+)\\.":"([^/]+)"+(n||""))})+"$");return function(e){for(var i=0;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var d="hidden",p="visible",f="exposing",_="hiding",h=function(e,t){return e[t]=1,e},g=["key","style","href","id","data-index","tabIndex","tabindex","oninit","oncreate","onupdate","onbeforeremove","onremove","onbeforeupdate"],m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.add,r=t.remove,o=r?r.reduce(h,{}):{},i=n?g.concat(n):g,a=i.filter(function(e){return!o[e]}).reduce(h,{});return Object.keys(e).reduce(function(t,n){return a[n]&&(t[n]=e[n]),t},{})},b=function(e){return"function"==typeof e?e():e},y=function(e){return{small:e.small,regular:e.regular,medium:e.medium,large:e.large,fab:e.fab}},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"regular";return y(e)[t]},w="undefined"!=typeof document,x=!w,k={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"},O=function(e){var t=e.element,n=e.selector,r=e.pseudoSelector,o=e.prop,i=e.equals,a=e.contains,l=n?t.querySelector(n):t;if(!l)return!1;var c=document.defaultView;if(c){if(void 0!==i)return i===c.getComputedStyle(l,r).getPropertyValue(o);if(void 0!==a)return-1!==c.getComputedStyle(l,r).getPropertyValue(o).indexOf(a)}return!1},j=function(e){var t=parseFloat(e)*(-1===e.indexOf("ms")?1e3:1);return isNaN(t)?0:t},S=!x&&"ontouchstart"in document.documentElement,P=S?["click","mouseup"]:["mouseup"],z=S?["touchstart","mousedown"]:["mousedown"],N=S?["touchmove","mousemove"]:["mousemove"],C=S?["touchend","mouseup"]:["mouseup"];if(w){var I=document.querySelector("html");I&&I.classList.add(S?"pe-touch":"pe-no-touch")}var E={},R=function(e,t,n){E[e]=E[e]||[],E[e].push(n?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.05,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w?window:{},r=!1;return function(){for(var o=arguments.length,i=new Array(o),a=0;a-1&&E[e].splice(n,1)}},F=function(e,t){E[e]&&E[e].forEach(function(e){return e(t)})};w&&(window.addEventListener("resize",function(e){return F("resize",e)}),window.addEventListener("scroll",function(e){return F("scroll",e)}),window.addEventListener("keydown",function(e){return F("keydown",e)}),P.forEach(function(e){return window.addEventListener(e,function(t){return F(e,t)})}));var D=function(e){var t=e.options,n=[],r=function(e){F(t.name,e)},o=function(e){var t=l(e);return n.indexOf(t)},i=function(e){var t=o(e);-1!==t&&(n.splice(t,1),r({id:e,name:"removeItem"}))},a=function(e,t){var r=o(e);-1!==r&&(n[r]=t)},l=function(e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:t.defaultId;t.queue?(n.shift(),d()):i(e)},f=function(e,t){var n=l(t);n&&(n.pause=e,n.unpause=!e,r({id:t,name:e?"pause":"unpause"}))},_=function(e,n,o){var i,a,l=b(e),s=new Promise(function(e){return i=e}),u=new Promise(function(e){return a=e});return c({},t,{instanceId:n,spawn:o,props:e,show:!t.queue,showPromise:s,hidePromise:u,didShow:function(){return l.didShow&&l.didShow(n),r({id:n,name:"didShow"}),i(n)},didHide:function(){return l.didHide&&l.didHide(n),r({id:n,name:"didHide"}),p(n),a(n)}})},h=function(){n.length=0,r({id:null,name:"removeAll"})};return{clear:h,count:function(){return n.length},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e.id||t.defaultId,i=t.queue&&n.length?n[0]:l(o);return i&&(i.hide=!0),r({id:o,name:"hide"}),i?i.hidePromise:Promise.resolve(o)},pause:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.defaultId;return f(!0,e)},remove:p,show:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.id||t.defaultId,c=o.spawn||t.defaultId,s=_(e,i,c);if(r({id:i,name:"show"}),t.queue)n.push(s),1===n.length&&d();else{var u=l(i);u?a(i,s):n.push(s)}return s.showPromise},unpause:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.defaultId;return f(!1,e)},render:function(e){var r=e.h,o=e.useState,i=e.useEffect,a=s(e,["h","useState","useEffect"]),l=u(o(),2)[1];i(function(){return R(t.name,l),function(){T(t.name,l)}},[]);var d=a.spawn||t.defaultId,p=n.filter(function(e){return e.show&&e.spawn===d});return t.htmlShowClass&&w&&document.documentElement&&document.documentElement.classList[p.length?"add":"remove"](t.htmlShowClass),p.length?r(t.holderSelector,{className:"container"===a.position?"pe-multiple--container":"pe-multiple--screen"},p.map(function(e){return r(t.instance,c({},b(a),{fromMultipleClear:h,spawnId:d,fromMultipleClassName:t.className,holderSelector:t.holderSelector,transitions:t.transitions,fromMultipleDidHide:e.didHide,fromMultipleDidShow:e.didShow,hide:e.hide,instanceId:e.instanceId,key:void 0!==e.key?e.key:e.keyId,pause:e.pause,show:e.show,unpause:e.unpause},b(e.props)))})):r(t.placeholder)}}};D.displayName="Multi";var A="show",L="hide",q="show-done",B="hide-done",H={isVisible:!1,isTransitioning:!1},M=function(e,t){switch(t){case A:return c({},e,{isTransitioning:!0,isVisible:!0});case L:return c({},e,{isTransitioning:!0});case q:return c({},e,{isTransitioning:!1,isVisible:!0});case B:return c({},e,{isTransitioning:!1,isVisible:!1});default:throw new Error("Unhandled action type: ".concat(t))}},W=function(e){return J(e,"show")},V=function(e){return J(e,"hide")},J=function(e,t){var n=e.el;return n?new Promise(function(r){var o=n.style,i=w?window.getComputedStyle(n):{},a=e.hasDuration&&void 0!==e.duration?1e3*e.duration:j(i.transitionDuration),l=e.hasDelay&&void 0!==e.delay?1e3*e.delay:j(i.transitionDelay),c=e.timingFunction||i.transitionTimingFunction;e.transitionClass&&n.classList.add(e.transitionClass);var s=function(){o.transitionDuration="0ms",o.transitionDelay="0ms",e.before&&"function"==typeof e.before&&e.before()},u=e.before&&"show"===t?s:e.before&&"hide"===t?s:null,d=function(){e.after&&"function"==typeof e.after&&e.after()},p=function(){!function(){o.transitionDuration=a+"ms",o.transitionDelay=l+"ms",c&&(o.transitionTimingFunction=c),e.showClass&&(e.showClassElement||n).classList["show"===t?"add":"remove"](e.showClass);e.transition&&e.transition()}(),setTimeout(function(){d&&d(),e.transitionClass&&(n.classList.remove(e.transitionClass),n.offsetHeight),r()},a+l)},f=function(){0===a?p():setTimeout(p,0)};u?(u(),n.offsetHeight,setTimeout(function(){f()},0)):f()}):Promise.resolve()},$=function(e){var t=e.dispatchTransitionState,n=e.isTransitioning,r=e.instanceId,o=e.isShow,i=e.props,a=e.domElements,l=e.beforeTransition,s=e.afterTransition,u=e.showClass,d=e.transitionClass;e.referrer;if(n)return Promise.resolve();t(o?A:L),l&&l();var p=o?i.showDuration:i.hideDuration,f=o?i.showDelay:i.hideDelay,_=o?i.showTimingFunction:i.hideTimingFunction,h=i.transitions,g=o?W:V,m=c({},i,{},a,{showClass:u,transitionClass:d,duration:p,delay:f,timingFunction:_}),b=c({},m,{},h?(o?h.show:h.hide)(m):void 0);return g(c({},b,{},{duration:void 0!==b.duration?b.duration:.24,hasDuration:void 0!==b.duration,delay:void 0!==b.delay?b.delay:0,hasDelay:void 0!==b.delay})).then(function(){var e=r;s&&s(),(o?i.fromMultipleDidShow:i.fromMultipleDidHide)?(o?i.fromMultipleDidShow:i.fromMultipleDidHide)(e):(o?i.didShow:i.didHide)&&(o?i.didShow:i.didHide)(e),t(o?q:B)})};function Q(){return(Q=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Z={component:"pe-shadow",bottomShadow:"pe-shadow__bottom",topShadow:"pe-shadow__top",animated:"pe-shadow--animated",depth_n:"pe-shadow--depth-",with_active_shadow:"pe-with-active-shadow"},G=function(e){return void 0!==e?"".concat(Z.depth_n).concat(Math.min(5,e)):1};function X(e){return(X="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(){return(K=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var re={component:"pe-text-button",super:"pe-button",row:"pe-button-row",content:"pe-button__content",label:"pe-button__label",textLabel:"pe-button__text-label",wash:"pe-button__wash",washColor:"pe-button__wash-color",dropdown:"pe-button__dropdown",border:"pe-button--border",contained:"pe-button--contained",disabled:"pe-button--disabled",dropdownClosed:"pe-button--dropdown-closed",dropdownOpen:"pe-button--dropdown-open",extraWide:"pe-button--extra-wide",hasDropdown:"pe-button--dropdown",highLabel:"pe-button--high-label",inactive:"pe-button--inactive",raised:"pe-button--raised",selected:"pe-button--selected",separatorAtStart:"pe-button--separator-start",hasHover:"pe-button--has-hover"},oe="pe-with-active-shadow",ie={grid_unit:4,grid_unit_component:8,increment:56,increment_large:64,grid_unit_menu:56,grid_unit_icon_button:48,unit_block_border_radius:4,unit_item_border_radius:4,unit_indent:72,unit_indent_large:80,unit_side_padding:16,unit_touch_height:48,unit_icon_size_small:16,unit_icon_size:24,unit_icon_size_medium:32,unit_icon_size_large:40,unit_screen_size_extra_large:1280,unit_screen_size_large:960,unit_screen_size_medium:480,unit_screen_size_small:320,animation_duration:".18s",animation_curve_slow_in_fast_out:"cubic-bezier(.4, 0, .2, 1)",animation_curve_slow_in_linear_out:"cubic-bezier(0, 0, .2, 1)",animation_curve_linear_in_fast_out:"cubic-bezier(.4, 0, 1, 1)",animation_curve_default:"ease-out",font_weight_light:300,font_weight_normal:400,font_weight_medium:500,font_weight_bold:700,font_size_title:20,line_height:1.5,color_primary:"33, 150, 243",color_primary_active:"30, 136, 229",color_primary_dark:"25, 118, 210",color_primary_faded:"100, 181, 249",color_primary_foreground:"255, 255, 255",color_light_background:"255, 255, 255",color_light_foreground:"0, 0, 0",color_dark_background:"34, 34, 34",color_dark_foreground:"255, 255, 255",blend_light_text_primary:.87,blend_light_text_regular:.73,blend_light_text_secondary:.54,blend_light_text_tertiary:.4,blend_light_text_disabled:.26,blend_light_border_medium:.24,blend_light_border_light:.11,blend_light_background_active:.14,blend_light_background_hover:.06,blend_light_background_hover_medium:.12,blend_light_background_disabled:.09,blend_light_overlay_background:.3,blend_dark_text_primary:1,blend_dark_text_regular:.87,blend_dark_text_secondary:.7,blend_dark_text_tertiary:.4,blend_dark_text_disabled:.26,blend_dark_border_medium:.22,blend_dark_border_light:.1,blend_dark_background_active:.14,blend_dark_background_hover:.08,blend_dark_background_hoverMedium:.12,blend_dark_background_disabled:.12,blend_dark_overlay_background:.3,breakpoint_for_phone_only:599,breakpoint_for_tablet_portrait_up:600,breakpoint_for_tablet_landscape_up:840,breakpoint_for_desktop_up:1280,breakpoint_for_big_desktop_up:1600,breakpoint_for_tv_up:1920,z_toolbar:100,z_menu:1e3,z_app_bar:2e3,z_drawer:3e3,z_notification:5e3,z_dialog:7e3};function ae(){return(ae=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var se,ue=function(){if(w){var e=document.createElement("fakeelement");for(var t in k)if(void 0!==e.style[t])return k[t]}}(),de=function(e){var t=e.e,n=e.id,r=e.el,o=e.props,i=e.classes;return new Promise(function(e){var a=document.createElement("div");a.setAttribute("class",i.mask),r.appendChild(a);var l=document.createElement("div");l.setAttribute("class",i.waves),a.appendChild(l);var c=r.getBoundingClientRect(),s=S&&t.touches?t.touches[0].pageX:t.clientX,u=S&&t.touches?t.touches[0].pageY:t.clientY,d=r.offsetWidth,p=r.offsetHeight,f=Math.sqrt(d*d+p*p),_=o.center?c.left+c.width/2:s,h=o.center?c.top+c.height/2:u,g=_-c.left-f/2,m=h-c.top-f/2,b=void 0!==o.startOpacity?o.startOpacity:.2,y=void 0!==o.opacityDecayVelocity?o.opacityDecayVelocity:.35,v=o.endOpacity||0,w=o.startScale||.1,k=o.endScale||2,O=o.duration?o.duration:1/y*.2,j=window.getComputedStyle(r).color,P=l.style;P.width=P.height=f+"px",P.top=m+"px",P.left=g+"px",P["animation-duration"]=P["-webkit-animation-duration"]=P["-moz-animation-duration"]=P["-o-animation-duration"]=O+"s",P.backgroundColor=j,P.opacity=b,P.animationName=n,P.animationTimingFunction=o.animationTimingFunction||ie.animation_curve_default;var z="@keyframes ".concat(n," {\n 0% {\n transform:scale(").concat(w,");\n opacity: ").concat(b,"\n }\n 100% {\n transform:scale(").concat(k,");\n opacity: ").concat(v,";\n }\n }");!function(e,t){if(!x){var n=window.document,r=n.createElement("style");r.setAttribute("id",e),r.appendChild(n.createTextNode(t)),n.head.appendChild(r)}}(n,z);l.addEventListener(ue,function t(c){!function(e){if(!x){var t=document.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}}(n),l.removeEventListener(ue,t,!1),o.persistent?(P.opacity=v,P.transform="scale("+k+")"):(l.classList.remove(i.wavesAnimating),a.removeChild(l),r.removeChild(a)),e(c)},!1),l.classList.add(i.wavesAnimating)})},pe={component:"pe-ripple",mask:"pe-ripple__mask",waves:"pe-ripple__waves",unconstrained:"pe-ripple--unconstrained",wavesAnimating:"pe-ripple__waves--animating"};function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var he=Function.prototype.call.bind(Function.prototype.call),ge=function(){return t.redraw()},me=function(e){var t=se,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=se,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&ge()},r]},ye=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=se;if(me(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",ge))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),ve={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},we=t||{},xe=we.trust;we.trust=function(e,n){return n?t(n,xe(e)):xe(e)},we.displayName="mithril",we.fragment=t.fragment;var ke=function(e,t){var n=function(e){var t=se;se=e.state;try{e.state.updates.forEach(he)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),se=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=se;se=n.state;try{return e(function(e){for(var t=1;t0)){l.start&&l.start(e);var t="ripple_animation_".concat((new Date).getTime());de({e:e,id:t,el:s,props:l,classes:pe}).then(function(e){l.end&&l.end(e),d.current--}),d.current++}};a(function(){d.current=0},[]),a(function(){if(p&&p.addEventListener)return P.forEach(function(e){return p.addEventListener(e,f,!1)}),function(){P.forEach(function(e){return p.removeEventListener(e,f,!1)})}},[p]);var _=ae({},m(l),r(function(e){return e&&!s&&u(e)}),l.testId&&{"data-test-id":l.testId},{className:[pe.component,l.unconstrained?pe.unconstrained:null,"dark"===l.tone?"pe-dark-tone":null,"light"===l.tone?"pe-light-tone":null,l.className||l[n.class]].join(" ")}),h=[l.before,l.after];return t(l.element||"div",_,h)},{h:we,a:ve,getRef:function(e){return{oncreate:function(t){return e(t.dom)}}},useRef:function(e){return o(be({current:e}),1)[0]},useState:function(e){var t=se;return be(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:ye});function Oe(){return(Oe=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}ke.displayName="Ripple";var Se={component:"pe-icon",avatar:"pe-icon--avatar",large:"pe-icon--large",medium:"pe-icon--medium",regular:"pe-icon--regular",small:"pe-icon--small"};function Pe(){return(Pe=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ce,Ie={component:"pe-svg"};function Ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Te=Function.prototype.call.bind(Function.prototype.call),Fe=function(){return t.redraw()},De=function(e){var t=Ce,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},Ae=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=Ce;if(De(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",Fe))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),Le={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},qe=t||{},Be=qe.trust;qe.trust=function(e,n){return n?t(n,Be(e)):Be(e)},qe.displayName="mithril",qe.fragment=t.fragment;var He,Me=function(e,t){var n=function(e){var t=Ce;Ce=e.state;try{e.state.updates.forEach(Te)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Ce=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Ce;Ce=n.state;try{return e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=Ce,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&Fe()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},getRef:function(e){return{oncreate:function(t){return e(t.dom)}}}});function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Je=Function.prototype.call.bind(Function.prototype.call),$e={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Qe=t||{},Ue=Qe.trust;Qe.trust=function(e,n){return n?t(n,Ue(e)):Ue(e)},Qe.displayName="mithril",Qe.fragment=t.fragment;var Ze,Ge=function(e,t){var n=function(e){var t=He;He=e.state;try{e.state.updates.forEach(Je)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),He=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=He;He=n.state;try{return e(function(e){for(var t=1;t0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=rt,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&ct()},r]},dt=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=rt;if(st(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",ct))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),pt={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},ft=t||{},_t=ft.trust;ft.trust=function(e,n){return n?t(n,_t(e)):_t(e)},ft.displayName="mithril",ft.fragment=t.fragment;var ht=function(e,t){var n=function(e){var t=rt;rt=e.state;try{e.state.updates.forEach(lt)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),rt=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=rt;rt=n.state;try{return e(function(e){for(var t=1;t')}}):null]);return n(s.element||"a",S,[s.before,N,s.after])},{h:ft,a:pt,getRef:function(e){return{oncreate:function(t){return e(t.dom)}}},useState:function(e){var t=rt;return ut(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:dt,useRef:function(e){return o(ut({current:e}),1)[0]},Ripple:ke,Shadow:ot,Icon:Ge});function gt(){return(gt=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function yt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:"regular";return kt[e]},jt="pe-button-row",St={horizontal:wt.actionsHorizontal,vertical:wt.actionsVertical,justified:wt.actionsJustified},Pt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"horizontal";return St[e]};function zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Ct=Function.prototype.call.bind(Function.prototype.call),It=function(){return t.redraw()},Et=function(e){var t=vt,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},Rt=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=vt;if(Et(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",It))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),Tt={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Ft=t||{},Dt=Ft.trust;Ft.trust=function(e,n){return n?t(n,Dt(e)):Dt(e)},Ft.displayName="mithril",Ft.fragment=t.fragment;var At=function(e,t){var n=function(e){var t=vt;vt=e.state;try{e.state.updates.forEach(Ct)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),vt=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=vt;vt=n.state;try{return e(function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ht,Mt={component:"pe-list-tile",content:"pe-list-tile__content",highSubtitle:"pe-list-tile__high-subtitle",primary:"pe-list-tile__primary",secondary:"pe-list-tile__secondary",subtitle:"pe-list-tile__subtitle",title:"pe-list-tile__title",contentFront:"pe-list-tile__content-front",compact:"pe-list-tile--compact",compactFront:"pe-list-tile--compact-front",disabled:"pe-list-tile--disabled",hasFront:"pe-list-tile--front",hasHighSubtitle:"pe-list-tile--high-subtitle",hasSubtitle:"pe-list-tile--subtitle",header:"pe-list-tile--header",hoverable:"pe-list-tile--hoverable",insetH:"pe-list-tile--inset-h",insetV:"pe-list-tile--inset-v",selectable:"pe-list-tile--selectable",selected:"pe-list-tile--selected",rounded:"pe-list-tile--rounded",highlight:"pe-list-tile--highlight",sticky:"pe-list-tile--sticky",navigation:"pe-list-tile--navigation"},Wt=function(e){var t=e.h,n=e.a,r=e.props,o=r.keyboardControl?null:r.url,i=r.element?r.element:o?"a":"div",a=[Mt.content,Mt.contentFront,r.compactFront?Mt.compactFront:null].join(" "),l=r.front||r.indent?t("div",qt({},{className:a}),r.front):null,c=!r.header&&r.url,s=qt({},m(r),r.events,{className:Mt.primary,style:null},c&&Lt({},n.tabindex,r[n.tabindex]||0),o),u=r.content?r.content:[l,t("div",{className:Mt.content,style:r.style},[r.title&&!r.content?t("div",qt({},{className:Mt.title}),r.title):null,r.subtitle?t("div",qt({},{className:Mt.subtitle}),r.subtitle):null,r.highSubtitle?t("div",qt({},{className:Mt.subtitle+" "+Mt.highSubtitle}),r.highSubtitle):null,r.subContent?t("div",qt({},{className:Mt.subContent}),r.subContent):null,r.children])];return t(i,s,u)},Vt=function(e){var t=e.h,n=e.a,r=e.Icon,o=e.props,i=void 0===o?{}:o,a=i.keyboardControl?null:i.url,l=i.element?i.element:a?"a":"div",c=i.url;return t(l,qt({},a,{className:Mt.secondary},i.events,m(i),c&&Lt({},n.tabindex,i[n.tabindex]||0)),t("div",{className:Mt.content},[i.icon?t(r,i.icon):null,i.content?i.content:null]))};function Jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Qt=Function.prototype.call.bind(Function.prototype.call),Ut={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Zt=t||{},Gt=Zt.trust;Zt.trust=function(e,n){return n?t(n,Gt(e)):Gt(e)},Zt.displayName="mithril",Zt.fragment=t.fragment;var Xt=function(e,t){var n=function(e){var t=Ht;Ht=e.state;try{e.state.updates.forEach(Qt)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Ht=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Ht;Ht=n.state;try{return e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=vt,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&It()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:Rt,getRef:function(e){return{oncreate:function(t){return e(t.dom)}}}});Kt.displayName="CardMedia";var en=At(function(e){var t=e.h,n=e.a,r=mt(e,["h","a"]),o=Array.isArray(r.content)?r.content.reduce(function(e,t){return"media"===Object.keys(t)[0]||e},!1):r.media||!1,i=gt({},m(r),r.testId&&{"data-test-id":r.testId},{className:[wt.primary,r.tight?wt.primaryTight:null,o?wt.primaryHasMedia:null,r.className||r[n.class]].join(" ")},r.events),a=r.dispatcher,l={title:function(e){return e.attrs||e.props?e||e.props:t("div",{className:wt.title,style:e.style},[e.title,e.subtitle?t("div",{className:wt.subtitle},e.subtitle):null])},media:function(e){return t("div",{className:wt.primaryMedia,style:e.style},a({media:e}))},actions:function(e){return a({actions:e})}},c=Array.isArray(r.content)?r.content.map(function(e){var t=Object.keys(e)[0],n=e[t];return l[t]?l[t](n):e}):[r.title?l.title({title:r.title,subtitle:r.subtitle}):null,r.media?l.media(r.media):null,r.actions?l.actions(r.actions):null,r.content];return t(r.element||"div",i,c)},{h:Ft,a:Tt});en.displayName="CardPrimary";var tn=At(function(e){var t=e.h,n=e.a,r=e.CardActions,o=e.CardMedia,i=e.CardPrimary,a=e.Icon,l=e.ListTile,c=e.Shadow,s=mt(e,["h","a","CardActions","CardMedia","CardPrimary","Icon","ListTile","Shadow"]),u=gt({},m(s),s.testId&&{"data-test-id":s.testId},{className:[wt.component,"dark"===s.tone?"pe-dark-tone":null,"light"===s.tone?"pe-light-tone":null,s.className||s[n.class]].join(" ")},s.url,s.events),d=Array.isArray(s.content)?s.content.map(function e(c){var s=Object.keys(c)[0],u=gt({},c[s],{dispatcher:e,key:void 0});switch(s){case"actions":return t(r,u);case"header":return function(e){var t=e.props,n=e.h,r=e.a,o=e.Icon;return n(e.ListTile,gt({},t,{className:[wt.header,t.className||t[r.class]].join(" ")},t.icon?{front:n(o,t.icon)}:null))}({props:u,h:t,a:n,Icon:a,ListTile:l});case"media":return t(o,u);case"overlay":return function(e){var t=e.dispatcher,n=e.props,r=e.h,o=e.a,i=n.element||"div",a=n.content.map(t);return r("div",{style:n.style,className:[wt.overlay,n.sheet?wt.overlaySheet:null,"light"===n.tone?null:"pe-dark-tone","light"===n.tone?"pe-light-tone":null].join(" ")},[r(i,{className:[wt.overlayContent,n.className||n[o.class]].join(" ")},a),r("div",{className:wt.mediaDimmer})])}({dispatcher:e,props:u,h:t,a:n});case"primary":return t(i,u);case"text":return function(e){var t=e.props,n=e.h,r=e.a;return n(t.element||"div",gt({},m(t),{className:[wt.text,t.tight?wt.textTight:null,t.className||t[r.class]].join(" ")},t.events),t.content)}({props:u,h:t,a:n});case"any":return function(e){var t=e.props,n=e.h,r=e.a;return n(t.element||"div",gt({},m(t),{className:[wt.any,t.tight?wt.textTight:null,t.className||t[r.class]].join(" ")}),t.content)}({props:u,h:t,a:n});default:throw'Content type "'.concat(s,'" does not exist')}}):[s.content],p=[s.before].concat(yt(d),[s.after]),f=void 0!==s.shadowDepth?s.shadowDepth:s.z,_=[t(c,{shadowDepth:void 0!==f?f:1,animated:!0}),t("div",{className:wt.content},p),s.children],h=s.element||s.url?"a":"div";return t(h,u,_)},{h:Ft,a:Tt,CardActions:Yt,CardMedia:Kt,CardPrimary:en,Icon:Ge,ListTile:Xt,Shadow:ot});function nn(){return(nn=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}tn.displayName="Card";var on="pe-checkbox-control",an={iconOff:'',iconOn:''};function ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cn(){return(cn=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var dn,pn={component:"pe-control",formLabel:"pe-control__form-label",input:"pe-control__input",label:"pe-control__label",disabled:"pe-control--disabled",inactive:"pe-control--inactive",large:"pe-control--large",medium:"pe-control--medium",off:"pe-control--off",on:"pe-control--on",regular:"pe-control--regular",small:"pe-control--small",box:"pe-control__box",button:"pe-control__button",buttonOff:"pe-control__button--off",buttonOn:"pe-control__button--on"},fn=function(e){var t=e.h,n=e.a,r=e.useState,o=e.ViewControl,i=sn(e,["h","a","useState","ViewControl"]);delete i.key;var a=un(r(void 0!==i.defaultChecked?i.defaultChecked:i.checked||!1),2),l=a[0],c=a[1],s=void 0!==i.checked?i.checked:l,u=void 0!==i.selectable&&i.selectable(s),d=i.disabled||!u,p=function(e,t){i.onChange&&i.onChange({event:e,checked:t,value:i.value})},f=i.events&&i.events[n.onclick],_=i.events&&i.events[n.onkeydown]?i.events[n.onkeydown]:function(e){"Enter"!==e.key&&32!==e.keyCode||(e.preventDefault(),f?f(e):function(e){var t=!s;c(t),p(e,t)}(e))},h=cn({},m(i,{remove:["style"]}),i.testId&&{"data-test-id":i.testId},{className:[pn.component,i.instanceClass,s?pn.on:pn.off,i.disabled?pn.disabled:null,d?pn.inactive:null,v(pn,i.size),"dark"===i.tone?"pe-dark-tone":null,"light"===i.tone?"pe-light-tone":null,i.className||i[n.class]].join(" ")}),g=t("label",cn({},{className:pn.formLabel},f&&ln({},n.onclick,function(e){return e.preventDefault(),f(e)})),[i.before,t(o,cn({},i,{inactive:d,checked:s,events:ln({},n.onkeydown,_)})),i.label?t(".".concat(pn.label),i.label):null,t("input",cn({},i.events,{name:i.name,type:i.type,value:i.value,checked:s},i.disabled||d?ln({},n.readonly,"readonly"):ln({},n.onchange,function(e){var t=e.currentTarget.checked;"radio"===i.type||c(t),p(e,t)}))),i.after]);return t(i.element||"div",h,g)},_n=[{iconType:"iconOn",className:pn.buttonOn},{iconType:"iconOff",className:pn.buttonOff}],hn=function(e){var t=e.h,n=e.Icon,r=e.IconButton,o=sn(e,["h","Icon","IconButton"]),i=o.element||".".concat(pn.box),a=t(r,cn({},{element:"div",className:pn.button,style:o.style,content:_n.map(function(e){return t(n,function(e,t,n,r){return cn({},{className:r},n[t]?n[t]:{svg:{content:e.trust(n.icons[t])}},n.icon,n.size?{size:n.size}:null)}(t,e.iconType,o,e.className))}),ripple:{center:!0},disabled:o.disabled,events:o.events,inactive:o.inactive},o.iconButton));return t(i,null,a)};function gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var bn=Function.prototype.call.bind(Function.prototype.call),yn=function(){return t.redraw()},vn={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},wn=t||{},xn=wn.trust;wn.trust=function(e,n){return n?t(n,xn(e)):xn(e)},wn.displayName="mithril",wn.fragment=t.fragment;var kn=function(e,t){var n=function(e){var t=dn;dn=e.state;try{e.state.updates.forEach(bn)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),dn=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=dn;dn=n.state;try{return e(function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Sn,Pn="pe-button pe-icon-button",zn="pe-icon-button__content",Nn="pe-icon-button__label",Cn="pe-icon-button--compact";function In(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function En(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Rn=Function.prototype.call.bind(Function.prototype.call),Tn={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Fn=t||{},Dn=Fn.trust;Fn.trust=function(e,n){return n?t(n,Dn(e)):Dn(e)},Fn.displayName="mithril",Fn.fragment=t.fragment;var An=function(e,t){var n=function(e){var t=Sn;Sn=e.state;try{e.state.updates.forEach(Rn)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Sn=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Sn;Sn=n.state;try{return e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=dn,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&yn()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},ViewControl:Ln});qn.displayName="SelectionControl";var Bn,Hn=kn(function(e){var t=e.h,n=e.SelectionControl,r=rn(e,["h","SelectionControl"]);return t(n,nn({},r,{icons:an,selectable:r.selectable||function(){return!0},instanceClass:on,type:"checkbox"}))},{h:wn,a:vn,SelectionControl:qn});function Mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}Hn.displayName="Checkbox";var Vn=Function.prototype.call.bind(Function.prototype.call),Jn=function(){return t.redraw()},$n=function(e){var t=Bn,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},Qn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=Bn,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&Jn()},r]},Un=function(e){var t=Bn;return Qn(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},Zn=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=Bn;if($n(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",Jn))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),Gn={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Xn=t||{},Yn=Xn.trust;Xn.trust=function(e,n){return n?t(n,Yn(e)):Yn(e)},Xn.displayName="mithril",Xn.fragment=t.fragment;var Kn=function(e,t){var n=function(e){var t=Bn;Bn=e.state;try{e.state.updates.forEach(Vn)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Bn=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Bn;Bn=n.state;try{return e(function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function nr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var rr={component:"pe-dialog",placeholder:"pe-dialog__placeholder",holder:"pe-dialog__holder",content:"pe-dialog__content",backdrop:"pe-dialog__backdrop",touch:"pe-dialog__touch",fullScreen:"pe-dialog--full-screen",modal:"pe-dialog--modal",open:"pe-dialog--open",visible:"pe-dialog--visible",showBackdrop:"pe-dialog--backdrop",transition:"pe-dialog--transition",menuContent:"pe-menu__content"},or=".".concat(rr.component);function ir(){return(ir=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function lr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var cr,sr={component:"pe-dialog-pane",actions:"pe-dialog-pane__actions",body:"pe-dialog-pane__body",content:"pe-dialog-pane__content",footer:"pe-dialog-pane__footer",header:"pe-dialog-pane__header",title:"pe-dialog-pane__title",withHeader:"pe-dialog-pane--header",withFooter:"pe-dialog-pane--footer",headerWithTitle:"pe-dialog-pane__header--title",footerWithButtons:"pe-dialog-pane__footer--buttons",footerHigh:"pe-dialog-pane__footer--high",borderBottom:"pe-dialog-pane--border-bottom",borderTop:"pe-dialog-pane--border-top",fullBleed:"pe-dialog-pane--body-full-bleed"},ur={component:"pe-text-button",super:"pe-button",row:"pe-button-row",content:"pe-button__content",label:"pe-button__label",textLabel:"pe-button__text-label",wash:"pe-button__wash",washColor:"pe-button__wash-color",dropdown:"pe-button__dropdown",border:"pe-button--border",contained:"pe-button--contained",disabled:"pe-button--disabled",dropdownClosed:"pe-button--dropdown-closed",dropdownOpen:"pe-button--dropdown-open",extraWide:"pe-button--extra-wide",hasDropdown:"pe-button--dropdown",highLabel:"pe-button--high-label",inactive:"pe-button--inactive",raised:"pe-button--raised",selected:"pe-button--selected",separatorAtStart:"pe-button--separator-start",hasHover:"pe-button--has-hover"};function dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var fr=Function.prototype.call.bind(Function.prototype.call),_r=function(){return t.redraw()},hr=function(e){var t=cr,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},gr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=cr,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&_r()},r]},mr=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=cr;if(hr(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",_r))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),br={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},yr=t||{},vr=yr.trust;yr.trust=function(e,n){return n?t(n,vr(e)):vr(e)},yr.displayName="mithril",yr.fragment=t.fragment;var wr=function(e,t){var n=function(e){var t=cr;cr=e.state;try{e.state.updates.forEach(fr)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),cr=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=cr;cr=n.state;try{return e(function(e){for(var t=1;t0),x(e.scrollHeight-(e.scrollTop+e.getBoundingClientRect().height)>0))};o(function(){u&&(k.current=u.querySelector(".".concat(sr.header)),O.current=u.querySelector(".".concat(sr.footer)),j.current=u.querySelector(".".concat(sr.body)))},[u]),o(function(){if(j.current){var e=function(){P()};return R("resize",e),function(){T("resize",e)}}},[j.current]),o(function(){P()},[j.current,f]);var z,N,C,I=void 0!==c.header||void 0!==c.title,E=void 0!==c.footer||void 0!==c.footerButtons,F=c.borders||"overflow",D="always"===F||I&&"overflow"===F&&g,A="always"===F||E&&"overflow"===F&&w,L=ir({},m(c,{remove:["style"]}),c.testId&&{"data-test-id":c.testId},a(function(e){return e&&!u&&(d(e),c.ref&&c.ref(e))}),{className:[sr.component,c.fullBleed?sr.fullBleed:null,D?sr.borderTop:null,A?sr.borderBottom:null,I?sr.withHeader:null,E?sr.withFooter:null,"dark"===c.tone?"pe-dark-tone":null,"light"===c.tone?"pe-light-tone":null,c.className||c[n.class]].join(" ")},c.formOptions),q=t("div",{className:[sr.content,c.menu?sr.menuContent:null].join(" "),style:c.style},[c.header?c.header:c.title?t("div",{className:[sr.header,sr.headerWithTitle].join(" ")},t("div",{className:sr.title},c.title)):null,t("div",(z={className:sr.body},N=n.onscroll,C=function(){_(!0),clearTimeout(S.current),S.current=setTimeout(function(){_(!1)},50)},N in z?Object.defineProperty(z,N,{value:C,enumerable:!0,configurable:!0,writable:!0}):z[N]=C,z),c.content||c.body||c.menu),c.footer?t("div",{className:sr.footer},c.footer):c.footerButtons?t("div",{className:[sr.footer,sr.footerWithButtons,ur.row].join(" ")},t("div",{className:sr.actions},c.footerButtons)):null]),B=[c.before,q,c.after];return t(c.element||"form",L,B)},{h:yr,a:br,useState:function(e){var t=cr;return gr(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:mr,useRef:function(e){return o(gr({current:e}),1)[0]},getRef:function(e){return{oncreate:function(t){return e(t.dom)}}}});wr.displayName="DialogPane";var xr="pe-dialog__placeholder",kr="pe-dialog__holder",Or="pe-dialog--open",jr=Kn(function(e){var t=e.h,n=e.a,r=e.useState,o=e.useEffect,i=e.useRef,a=e.getRef,l=e.useReducer,c=e.Pane,s=e.Shadow,u=e.openDialogsSelector,d=tr(e,["h","a","useState","useEffect","useRef","getRef","useReducer","Pane","Shadow","openDialogsSelector"]),p=nr(l(M,H),2),f=p[0],_=p[1],h=nr(r(),2),g=h[0],b=h[1],y=i(),v=i(),w=i(),x=(f||H).isVisible,k=(f||H).isTransitioning,j=function(e){var t=e.isShow,n=e.hideDelay,r=void 0===n?d.hideDelay:n,o=e.referrer;return{transitionState:f,dispatchTransitionState:_,instanceId:d.instanceId,props:er({},d,{hideDelay:r}),isShow:t,domElements:{el:g,contentEl:w.current,backdropEl:y.current},showClass:rr.visible,transitionClass:rr.transition,referrer:o}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.hideDelay,n=e.referrer;return $(j({isShow:!1,hideDelay:t,referrer:n}))},P=function(){return d.modal||g&&g.classList.contains(rr.modal)||O({element:g,pseudoSelector:":before",prop:"content",contains:'"'.concat("modal",'"')})};o(function(){g&&(y.current=g.querySelector(".".concat(rr.backdrop)),v.current=g.querySelector(".".concat(rr.touch)),w.current=g.querySelector(".".concat(rr.content)))},[g]),o(function(){if(g&&!d.inactive){var e=function e(t){if(!(d.disableEscape&&(d.fullScreen||g&&g.classList.contains(rr.fullScreen)||O({element:g,pseudoSelector:":before",prop:"content",contains:'"'.concat("full_screen",'"')})||P())||"Escape"!==t.key&&"Esc"!==t.key)){var n=document.querySelectorAll(u);n[n.length-1]===g&&(S(),T("keydown",e))}};return R("keydown",e),function(){T("keydown",e)}}},[g,d.inactive]),o(function(){g&&!k&&(d.hide?x&&S():d.show&&(x||$(j({isShow:!0}))))},[g,k,x,d.hide,d.show]);var z,N,C,I=er({},m(d,{remove:["style"]}),a(function(e){return e&&!g&&(b(e),d.ref&&d.ref(e))}),(z={className:[d.parentClassName||rr.component,d.fromMultipleClassName,d.fullScreen?rr.fullScreen:null,d.modal?rr.modal:null,d.backdrop?rr.showBackdrop:null,"dark"===d.tone?"pe-dark-tone":null,"light"===d.tone?"pe-light-tone":null,d.className||d[n.class]].join(" "),"data-spawn-id":d.spawnId,"data-instance-id":d.instanceId},N=n.onclick,C=function(e){e.target!==g&&e.target!==y.current&&e.target!==v.current||P()||S()},N in z?Object.defineProperty(z,N,{value:C,enumerable:!0,configurable:!0,writable:!0}):z[N]=C,z)),E=d.panesOptions&&d.panesOptions.length?t(c,d.panesOptions[0]):d.panes&&d.panes.length?d.panes[0]:function(e){var t=e.h,n=e.Pane,r=e.props;return t(n,{body:r.content||r.body||r.menu||r.children,element:r.element,borders:r.borders,className:r.className,footer:r.footer,footerButtons:r.footerButtons,formOptions:r.formOptions,fullBleed:r.fullBleed,header:r.header,style:r.style,title:r.title})}({h:t,Pane:c,props:d}),F=d.shadowDepth,D=[t("div",{className:rr.backdrop}),t("div",{className:rr.touch}),t("div",{className:[rr.content,d.menu?rr.menuContent:null].join(" ")},[d.fullScreen?null:t(s,{shadowDepth:void 0!==F?F:3,animated:!0}),d.before,E,d.after])];return t("div",I,D)},{h:Xn,a:Gn,useState:Un,useEffect:Zn,useRef:function(e){return o(Qn({current:e}),1)[0]},getRef:function(e){return{oncreate:function(t){return e(t.dom)}}},useReducer:function(e,t,n){var r,i,a,l,c=Bn,s=!c.setup&&n?n(t):t;return r=o(Qn(s),3),i=r[0],a=r[1],l=r[2],[i,function(t){var n=c.states[l];return a(e(n,t))}]},Shadow:ot,Pane:wr,openDialogsSelector:or});jr.displayName="DialogInstance";var Sr=D({options:{name:"dialog",htmlShowClass:Or,defaultId:"default_dialog",holderSelector:"div.".concat(kr),instance:jr,placeholder:"span.".concat(xr)}}),Pr=Kn(Sr.render,{h:Xn,useState:Un,useEffect:Zn});function zr(){return(zr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Object.getOwnPropertyNames(Sr).filter(function(e){return"render"!==e}).forEach(function(e){return Pr[e]=Sr[e]}),Pr.displayName="Dialog";var Cr,Ir={component:"pe-fab",content:"pe-fab__content",mini:"pe-fab--mini"};function Er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Tr=Function.prototype.call.bind(Function.prototype.call),Fr={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Dr=t||{},Ar=Dr.trust;Dr.trust=function(e,n){return n?t(n,Ar(e)):Ar(e)},Dr.displayName="mithril",Dr.fragment=t.fragment;var Lr=function(e,t){var n=function(e){var t=Cr;Cr=e.state;try{e.state.updates.forEach(Tr)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Cr=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Cr;Cr=n.state;try{return e(function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Wr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Lr.displayName="FAB";var Vr,Jr={component:"pe-spinner",animation:"pe-spinner__animation",placeholder:"pe-spinner__placeholder",animated:"pe-spinner--animated",fab:"pe-spinner--fab",large:"pe-spinner--large",medium:"pe-spinner--medium",permanent:"pe-spinner--permanent",raised:"pe-spinner--raised",regular:"pe-spinner--regular",singleColor:"pe-spinner--single-color",small:"pe-spinner--small",visible:"pe-spinner--visible"},$r=function(e){return $(function(e){for(var t=1;t0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},Kr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=Vr,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&Xr()},r]},eo=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=Vr;if(Yr(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",Xr))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),to={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},no=t||{},ro=no.trust;no.trust=function(e,n){return n?t(n,ro(e)):ro(e)},no.displayName="mithril",no.fragment=t.fragment;var oo=function(e,t){var n=function(e){var t=Vr;Vr=e.state;try{e.state.updates.forEach(Gr)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Vr=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Vr;Vr=n.state;try{return e(function(e){for(var t=1;t0&&y.push(t(l,{shadowDepth:c.shadowDepth})),t("div",b,y)},{h:no,a:to,useReducer:function(e,t,n){var r,i,a,l,c=Vr,s=!c.setup&&n?n(t):t;return r=o(Kr(s),3),i=r[0],a=r[1],l=r[2],[i,function(t){var n=c.states[l];return a(e(n,t))}]},useState:function(e){var t=Vr;return Kr(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:eo,getRef:function(e){return{oncreate:function(t){return e(t.dom)}}},Shadow:ot});function io(){return(io=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var po,fo={component:"pe-md-spinner",animation:"pe-md-spinner__animation",circle:"pe-md-spinner__circle",circleClipper:"pe-md-spinner__circle-clipper",circleClipperLeft:"pe-md-spinner__circle-clipper-left",circleClipperRight:"pe-md-spinner__circle-clipper-right",gapPatch:"pe-md-spinner__gap-patch",layer:"pe-md-spinner__layer",layerN:"pe-md-spinner__layer-"};function _o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var go=Function.prototype.call.bind(Function.prototype.call),mo=function(){return t.redraw()},bo=function(e){var t=po,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},yo=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=po;if(bo(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",mo))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),vo=t||{},wo=vo.trust;vo.trust=function(e,n){return n?t(n,wo(e)):wo(e)},vo.displayName="mithril",vo.fragment=t.fragment;var xo=function(e,t){var n=function(e){var t=po;po=e.state;try{e.state.updates.forEach(go)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),po=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=po;po=n.state;try{return e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=po,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&mo()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:yo});Po.displayName="MaterialDesignSpinnerToggle";var zo,No={view:function(e){return vo(Po,function(e){for(var t=1;t0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},Fo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=zo,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&Ro()},r]},Do=function(e){var t=zo;return Fo(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},Ao=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=zo;if(To(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",Ro))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),Lo={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},qo=t||{},Bo=qo.trust;qo.trust=function(e,n){return n?t(n,Bo(e)):Bo(e)},qo.displayName="mithril",qo.fragment=t.fragment;var Ho=function(e,t){var n=function(e){var t=zo;zo=e.state;try{e.state.updates.forEach(Eo)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),zo=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=zo;zo=n.state;try{return e(function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Vo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Jo={component:"pe-notification",action:"pe-notification__action",content:"pe-notification__content",holder:"pe-notification__holder",placeholder:"pe-notification__placeholder",title:"pe-notification__title",hasContainer:"pe-notification--container",horizontal:"pe-notification--horizontal",multilineTitle:"pe-notification__title--multi-line",vertical:"pe-notification--vertical",visible:"pe-notification--visible"},$o=function(e){var t=e.h,n=e.a,r=e.useState,o=e.useEffect,i=e.useRef,a=e.getRef,l=e.useReducer,c=Wo(e,["h","a","useState","useEffect","useRef","getRef","useReducer"]),s=Vo(l(M,H),2),u=s[0],d=s[1],p=Vo(r(),2),f=p[0],_=p[1],h=Vo(r(!1),2),g=h[0],b=h[1],y=i(),v=i(),k=i(),O=(u||H).isVisible,j=(u||H).isTransitioning,S=(u||H).isHiding,P=function(e){var t=e.isShow,n=e.referrer;return{dispatchTransitionState:d,instanceId:c.instanceId,props:c,isShow:t,beforeTransition:N,afterTransition:t?function(){var e=c.timeout;if(0===e);else{var t=void 0!==e?e:3;k.current.start(function(){return z()},t)}}:null,domElements:{el:f,containerEl:y.current},showClass:Jo.visible,referrer:n}},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.referrer;return $(P({isShow:!1,referrer:t}))},N=function(){k.current&&k.current.stop()};o(function(){return function(){N()}},[]),o(function(){k.current=new co},[]),o(function(){var e;f&&(w&&(y.current=document.querySelector(c.containerSelector||c.holderSelector),y.current||console.error("No container element found"),c.containerSelector&&y.current&&y.current.classList.add(Jo.hasContainer)),v.current=f.querySelector(".".concat(Jo.title)),v.current&&(e=v.current,x||e.getBoundingClientRect().height>parseInt(window.getComputedStyle(e).lineHeight,10)+parseInt(window.getComputedStyle(e).paddingTop,10)+parseInt(window.getComputedStyle(e).paddingBottom,10)&&e.classList.add(Jo.multilineTitle)))},[f]),o(function(){!f||j||S||(c.hide?O&&z():c.show&&(O||$(P({isShow:!0}))))},[f,j,O,S,c.hide,c.show]),o(function(){!f||j||S||(c.unpause?g&&(b(!1),k.current&&k.current.resume()):c.pause&&(g||(b(!0),k.current&&k.current.pause())))},[f,j,S,c.pause,c.unpause]);var C,I,E,R=Mo({},m(c,{remove:["style"]}),a(function(e){return e&&!f&&(_(e),c.ref&&c.ref(e))}),c.testId&&{"data-test-id":c.testId},(C={className:[Jo.component,c.fromMultipleClassName,"light"===c.tone?null:"pe-dark-tone",c.containerSelector?Jo.hasContainer:null,"vertical"===c.layout?Jo.vertical:Jo.horizontal,"dark"===c.tone?"pe-dark-tone":null,"light"===c.tone?"pe-light-tone":null,c.className||c[n.class]].join(" ")},I=n.onclick,E=function(e){return e.preventDefault()},I in C?Object.defineProperty(C,I,{value:E,enumerable:!0,configurable:!0,writable:!0}):C[I]=E,C)),T=t("div",{className:Jo.content,style:c.style},c.content||[c.title?t("div",{className:Jo.title},c.title):null,c.action?t("div",{className:Jo.action},c.action):null]),F=[c.before,T,c.after];return t(c.element||"div",R,F)},Qo={component:"pe-notification",action:"pe-notification__action",content:"pe-notification__content",holder:"pe-notification__holder",placeholder:"pe-notification__placeholder",title:"pe-notification__title",hasContainer:"pe-notification--container",horizontal:"pe-notification--horizontal",multilineTitle:"pe-notification__title--multi-line",vertical:"pe-notification--vertical",visible:"pe-notification--visible"},Uo=Ho($o,{h:qo,a:Lo,useState:Do,useEffect:Ao,useRef:function(e){return o(Fo({current:e}),1)[0]},getRef:function(e){return{oncreate:function(t){return e(t.dom)}}},useReducer:function(e,t,n){var r,i,a,l,c=zo,s=!c.setup&&n?n(t):t;return r=o(Fo(s),3),i=r[0],a=r[1],l=r[2],[i,function(t){var n=c.states[l];return a(e(n,t))}]}});Uo.displayName="NotificationInstance";var Zo=D({options:{name:"notification",className:Qo.component,htmlShowClass:Qo.open,defaultId:"default_notification",holderSelector:".".concat(Qo.holder),instance:Uo,placeholder:"span.".concat(Qo.placeholder),queue:!0}}),Go=Ho(Zo.render,{h:qo,useState:Do,useEffect:Ao});function Xo(){return(Xo=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Object.getOwnPropertyNames(Zo).filter(function(e){return"render"!==e}).forEach(function(e){return Go[e]=Zo[e]}),Go.displayName="Notification";var Ko,ei="pe-radio-control",ti={iconOff:'',iconOn:''};function ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var oi=Function.prototype.call.bind(Function.prototype.call),ii=function(){return t.redraw()},ai={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},li=t||{},ci=li.trust;li.trust=function(e,n){return n?t(n,ci(e)):ci(e)},li.displayName="mithril",li.fragment=t.fragment;var si=function(e,t){var n=function(e){var t=Ko;Ko=e.state;try{e.state.updates.forEach(oi)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Ko=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Ko;Ko=n.state;try{return e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=Ko,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&ii()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},ViewControl:ui});di.displayName="SelectionControl";var pi=si(function(e){var t=e.h,n=e.SelectionControl,r=Yo(e,["h","SelectionControl"]);return t(n,Xo({},r,{icons:ti,selectable:r.selectable||function(e){return!e},instanceClass:ei,type:"radio"}))},{h:li,a:ai,SelectionControl:di});function fi(){return(fi=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function hi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}pi.displayName="RadioButton";var gi,mi={component:"pe-radio-group"};function bi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var vi=Function.prototype.call.bind(Function.prototype.call),wi=function(){return t.redraw()},xi=function(e){var t=gi,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},ki=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=gi;if(xi(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",wi))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),Oi={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},ji=t||{},Si=ji.trust;ji.trust=function(e,n){return n?t(n,Si(e)):Si(e)},ji.displayName="mithril",ji.fragment=t.fragment;var Pi=function(e,t){var n=function(e){var t=gi;gi=e.state;try{e.state.updates.forEach(vi)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),gi=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=gi;gi=n.state;try{return e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=gi,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&wi()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:ki,RadioButton:pi});function zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ni(){return(Ni=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ri(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Pi.displayName="RadioGroup";var Ti,Fi={component:"pe-textfield",counter:"pe-textfield__counter",error:"pe-textfield__error",errorPlaceholder:"pe-textfield__error-placeholder",focusHelp:"pe-textfield__help-focus",help:"pe-textfield__help",input:"pe-textfield__input",inputArea:"pe-textfield__input-area",label:"pe-textfield__label",optionalIndicator:"pe-textfield__optional-indicator",requiredIndicator:"pe-textfield__required-indicator",hasCounter:"pe-textfield--counter",hasFloatingLabel:"pe-textfield--floating-label",hasFullWidth:"pe-textfield--full-width",hideClear:"pe-textfield--hide-clear",hideSpinner:"pe-textfield--hide-spinner",hideValidation:"pe-textfield--hide-validation",isDense:"pe-textfield--dense",isRequired:"pe-textfield--required",stateDirty:"pe-textfield--dirty",stateDisabled:"pe-textfield--disabled",stateFocused:"pe-textfield--focused",stateInvalid:"pe-textfield--invalid",stateReadonly:"pe-textfield--readonly"},Di={invalid:!1,message:void 0},Ai=function(e,t){return e.ignoreEvents&&-1!==e.ignoreEvents.indexOf(t)};function Li(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Bi=Function.prototype.call.bind(Function.prototype.call),Hi=function(){return t.redraw()},Mi=function(e){var t=Ti,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},Wi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=Ti,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&Hi()},r]},Vi=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=Ti;if(Mi(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",Hi))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),Ji={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},$i=t||{},Qi=$i.trust;$i.trust=function(e,n){return n?t(n,Qi(e)):Qi(e)},$i.displayName="mithril",$i.fragment=t.fragment;var Ui=function(e,t){var n=function(e){var t=Ti;Ti=e.state;try{e.state.updates.forEach(Bi)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Ti=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Ti;Ti=n.state;try{return e(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.focus,r=e.value;y.current&&(void 0!==r&&(y.current.value=r),void 0!==n&&(k.current=n,n?y.current.focus():y.current.blur()),"input"===t&&(l.validateOnInput||l.counter)&&(O.current=y.current.value!==c),"input"!==t&&(O.current=y.current.value!==c),"onblur"===t&&(O.current=!0),x.current=""!==y.current.value,C(),I(),v.current!==y.current.value&&b(y.current.value))},N=function(){var e=Di;return O.current&&f&&0===y.current.value.length&&l.validateResetOnClear&&(O.current=!1,_(!1),j.current=void 0),l.counter&&(e={invalid:y.current.value.length>l.counter,message:l.error}),!e.invalid&&y.current.checkValidity&&(e={invalid:!y.current.checkValidity(),message:l.error}),!e.invalid&&l.validate&&(e=function(){if(!y.current)return Di;var e=l.validate(y.current.value);return{invalid:e&&!e.valid,message:e&&e.error}}()),e},C=function(){var e=void 0!==l.valid?{invalid:!l.valid,message:l.error}:O.current||l.validateAtStart?N():Di,t=f;j.current=e.message,e.invalid!==t&&_(e.invalid),e.invalid||(j.current=void 0)},I=function(){if(l.onChange){var e=N(),t={focus:k.current,dirty:x.current,invalid:e.invalid,error:e.error,value:y.current.value};JSON.stringify(t)!==JSON.stringify(w.current)&&(l.onChange(Ii({},t,{el:y.current,setInputState:function(e){var t=void 0!==e.value&&e.value!==y.current.value,n=void 0!==e.focus&&e.focus!==k.current;(t||n)&&z(e)}})),w.current=t)}};o(function(){x.current=""!==c,k.current=!1,O.current=!1,j.current=l.error},[]),o(function(){u&&(y.current=u.querySelector(S),y.current.value=c,z(),C(),I())},[u]),o(function(){if(y.current){var e=void 0!==l.value&&null!==l.value?l.value:y.current?y.current.value:v.current,t=null==e?"":e.toString();y.current&&v.current!==t&&(y.current.value=t,v.current=t,z({type:"input"}))}},[y.current,l.value]),o(function(){y.current&&(C(),I())},[l,y.current&&y.current.value]);var E=Ni({},m(l),l.testId&&{"data-test-id":l.testId},a(function(e){return e&&!u&&(d(e),l.ref&&l.ref(e))}),{className:[Fi.component,f?Fi.stateInvalid:"",k.current?Fi.stateFocused:"",x.current?Fi.stateDirty:"",l.floatingLabel?Fi.hasFloatingLabel:"",l.disabled?Fi.stateDisabled:"",l.readonly?Fi.stateReadonly:"",l.dense?Fi.isDense:"",l.required?Fi.isRequired:"",l.fullWidth?Fi.hasFullWidth:"",l.counter?Fi.hasCounter:"",!1!==l.hideSpinner&&void 0!==l.hideSpinner?Fi.hideSpinner:"",!1!==l.hideClear&&void 0!==l.hideClear?Fi.hideClear:"",l.hideValidation?Fi.hideValidation:"","dark"===l.tone?"pe-dark-tone":null,"light"===l.tone?"pe-light-tone":null,l.className||l[n.class]].join(" ")}),R=Ii({},l,{},l.domAttributes),T=l.error||j.current,F=R.multiLine?null:R.type&&"submit"!==R.type&&"search"!==R.type?R.type:"text",D=f&&void 0!==T,A=R.disabled||R[n.readonly],L=R.required&&""!==R.requiredIndicator?t("span",{className:Fi.requiredIndicator},R.requiredIndicator||"*"):null,q=!R.required&&R.optionalIndicator?t("span",{className:Fi.optionalIndicator},R.optionalIndicator):null,B=R.label?[R.label,L,q]:null,H=[t("div",{className:Fi.inputArea},[B?t("label",{className:Fi.label},B):null,t(S,Ni({},{className:Fi.input,disabled:R.disabled},F?{type:F}:null,R.name?{name:R.name}:null,Ai(R,n.onclick)?null:zi({},n.onclick,function(){A||z({focus:!0})}),Ai(R,n.onfocus)?null:zi({},n.onfocus,function(){A||(z({focus:!0}),u&&u.classList.add(Fi.stateFocused))}),Ai(R,n.onblur)?null:zi({},n.onblur,function(){z({type:"onblur",focus:!1}),u.classList.remove(Fi.stateFocused)}),Ai(R,n.oninput)?null:zi({},n.oninput,function(e){z({type:"input"})}),Ai(R,n.onkeydown)?null:zi({},n.onkeydown,function(e){"Enter"===e.key?O.current=!0:"Escape"!==e.key&&"Esc"!==e.key||z({focus:!1})}),R.events?R.events:null,void 0!==R.required&&R.required?{required:!0}:null,void 0!==R[n.readonly]&&R[n.readonly]?zi({},n.readonly,!0):null,void 0!==R.pattern?{pattern:R.pattern}:null,void 0!==R[n.maxlength]?zi({},n.maxlength,R[n.maxlength]):null,void 0!==R[n.minlength]?zi({},n.minlength,R[n.minlength]):null,void 0!==R.max?{max:R.max}:null,void 0!==R.min?{min:R.min}:null,void 0!==R[n.autofocus]?zi({},n.autofocus,R[n.autofocus]):null,void 0!==R[n.tabindex]?zi({},n.tabindex,R[n.tabindex]):null,void 0!==R.rows?{rows:R.rows}:null,void 0!==R.placeholder?{placeholder:R.placeholder}:null,void 0!==R.domAttributes?Ii({},R.domAttributes):null))]),R.counter?t("div",{className:Fi.counter},(g.length||0)+" / "+R.counter):null,R.help&&!D?t("div",{className:[Fi.help,R.focusHelp?Fi.focusHelp:null].join(" ")},R.help):null,D?t("div",{className:Fi.error},T):P&&!R.help?t("div",{className:Fi.errorPlaceholder}):null],M=[l.before].concat(H,[l.after]);return t(l.element||"div",E,M)},{h:$i,a:Ji,useEffect:Vi,useState:function(e){var t=Ti;return Wi(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useRef:function(e){return o(Wi({current:e}),1)[0]},getRef:function(e){return{oncreate:function(t){return e(t.dom)}}}});function Zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gi(){return(Gi=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Yi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Ui.displayName="TextField";var Ki,ea={component:"pe-slider",control:"pe-slider__control",label:"pe-slider__label",pin:"pe-slider__pin",thumb:"pe-slider__thumb",tick:"pe-slider__tick",ticks:"pe-slider__ticks",track:"pe-slider__track",trackBar:"pe-slider__track-bar",trackBarValue:"pe-slider__track-bar-value",trackPart:"pe-slider__track-part",trackPartRest:"pe-slider__track-rest",trackPartValue:"pe-slider__track-value",hasFocus:"pe-slider--focus",hasPin:"pe-slider--pin",hasTicks:"pe-slider--ticks",hasTrack:"pe-slider--track",isActive:"pe-slider--active",isAtMin:"pe-slider--min",isDisabled:"pe-slider--disabled",tickValue:"pe-slider__tick--value"},ta=function(e,t){return S&&e.touches?t?e.touches[0].pageY:e.touches[0].pageX:t?e.pageY:e.pageX};function na(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var oa=Function.prototype.call.bind(Function.prototype.call),ia=function(){return t.redraw()},aa=function(e){var t=Ki,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},la=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=Ki,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&ia()},r]},ca=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=Ki;if(aa(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",ia))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),sa={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},ua=t||{},da=ua.trust;ua.trust=function(e,n){return n?t(n,da(e)):da(e)},ua.displayName="mithril",ua.fragment=t.fragment;var pa,fa=function(e,t){var n=function(e){var t=Ki;Ki=e.state;try{e.state.updates.forEach(oa)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Ki=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Ki;Ki=n.state;try{return e(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;$.current=v.current.getBoundingClientRect().left-(U.current-Z.current/2)+e},Y=function(e){var t=ta(e)-$.current,n=s+(t-U.current)/Q.current*d;te(n)},K=function(e){if(!J.current){e.preventDefault(),J.current=!0,V(!0),oe();var t=function(e){J.current&&Y(e)},n=function e(){J.current&&(oe(),w&&(N.forEach(function(e){return window.removeEventListener(e,t)}),C.forEach(function(t){return window.removeEventListener(t,e)})),J.current=!1,V(!1))};w&&(N.forEach(function(e){return window.addEventListener(e,t)}),C.forEach(function(e){return window.addEventListener(e,n)})),G()}},ee=function(e){var t=e.value,n=e.shouldNotify,r=void 0!==n&&n;tu&&(t=u);var o=p?Math.round(t*f)/f:t;E((o-s)/d),H(o),L(o),r&&c.onChange&&c.onChange({value:o})},te=function(e){ee({value:e,shouldNotify:!0})},ne=function(e){return te(A+(e?10:1)*(p||1))},re=function(e){return te(A-(e?10:1)*(p||1))},oe=function(){y.current&&y.current.blur(),y.current=void 0,F(!1)};i(function(){J.current=!1,$.current=0,Q.current=0,U.current=0,Z.current=0},[]),i(function(){j&&(v.current=j.querySelector(".".concat(ea.track)),x.current=j.querySelector(".".concat(ea.control)),k.current=j.querySelector(".".concat(ea.pin)),G(),ee({value:b}))},[j]),i(function(){c.pin&&function(){if(x.current&&k.current){var e=I*Q.current;k.current.style.left=e+"px"}}()},[A]),i(function(){B!==c.value&&ee({value:c.value})},[c.value]);var ie=Gi({},m(c),l(function(e){return e&&!j&&S(e)}),c.testId&&{"data-test-id":c.testId},{className:[ea.component,c.disabled?ea.isDisabled:null,c.pin?ea.hasPin:null,h?ea.hasTrack:null,W?ea.isActive:null,T?ea.hasFocus:null,0===I?ea.isAtMin:null,_?ea.hasTicks:null,"dark"===c.tone?"pe-dark-tone":null,"light"===c.tone?"pe-light-tone":null,c.className||c[r.class]].join(" ")}),ae=function(e){e.preventDefault(),J.current||(G(),X(0),Y(e),K(e))},le=function(e){e.preventDefault(),G(),function(e){var t=x.current.getBoundingClientRect().left,n=ta(e)-t-Z.current/2;X(n)}(e),K(e)},ce=I+" 1 0%",se=1-I,ue=se+" 1 0%",de=[c.before,n("div",Gi({},{className:ea.track},h&&!c.disabled&&z.reduce(function(e,t){return e[r["on".concat(t)]]=ae,e},{})),[n("div",{className:ea.trackPart+" "+ea.trackPartValue,style:{flex:ce,msFlex:ce,WebkitFlex:ce}},n("div",{className:ea.trackBar},n("div",{className:ea.trackBarValue}))),n("div",Gi({},{className:ea.control},c.disabled?{disabled:!0}:(t={},Zi(t,r.tabindex,c[r.tabindex]||0),Zi(t,r.onfocus,function(){return e=x.current,oe(),y.current=e,void F(!0);var e}),Zi(t,r.onblur,function(){return oe()}),Zi(t,r.onkeydown,function(e){"Tab"!==e.key&&e.preventDefault(),"Escape"===e.key||"Esc"===e.key?x.current.blur(e):"ArrowLeft"===e.key||"ArrowDown"===e.key||"Left"===e.key||"Down"===e.key?re(!!e.shiftKey):"ArrowRight"===e.key||"ArrowUp"===e.key||"Right"===e.key||"Up"===e.key?ne(!!e.shiftKey):"Home"===e.key?te(s):"End"===e.key?te(u):"PageDown"===e.key?re(!0):"PageUp"===e.key&&ne(!0),G()}),t),!c.disabled&&z.reduce(function(e,t){return e[r["on".concat(t)]]=le,e},{}),c.events?c.events:null,_?{step:g}:null),c.icon?n("div",{className:ea.thumb},c.icon):null),n("div",{className:ea.trackPart+" "+ea.trackPartRest,style:{flex:ue,msFlex:ue,WebkitFlex:ue,maxWidth:100*se+"%"}},n("div",{className:ea.trackBar},n("div",{className:ea.trackBarValue}))),_&&!c.disabled?n("div",{className:ea.ticks},function(e,t,n,r){for(var o=[],i=r/n,a=0;a0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},ya=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=pa,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&ma()},r]},va=function(e){var t=pa;return ya(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},wa=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=pa;if(ba(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",ma))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),xa={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},ka=t||{},Oa=ka.trust;ka.trust=function(e,n){return n?t(n,Oa(e)):Oa(e)},ka.displayName="mithril",ka.fragment=t.fragment;var ja=function(e,t){var n=function(e){var t=pa;pa=e.state;try{e.state.updates.forEach(ga)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),pa=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=pa;pa=n.state;try{return e(function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Object.getOwnPropertyNames(Ia).filter(function(e){return"render"!==e}).forEach(function(e){return Ea[e]=Ia[e]}),Ea.displayName="Snackbar";var Fa,Da="pe-switch-control",Aa="pe-switch-control__knob",La="pe-switch-control__thumb",qa="pe-switch-control__track";function Ba(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Ma=Function.prototype.call.bind(Function.prototype.call),Wa=function(){return t.redraw()},Va={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Ja=t||{},$a=Ja.trust;Ja.trust=function(e,n){return n?t(n,$a(e)):$a(e)},Ja.displayName="mithril",Ja.fragment=t.fragment;var Qa=function(e,t){var n=function(e){var t=Fa;Fa=e.state;try{e.state.updates.forEach(Ma)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Fa=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Fa;Fa=n.state;try{return e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=Fa,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&Wa()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},ViewControl:Ua});Za.displayName="SelectionControl";var Ga=Qa(function(e){var t=e.h,n=e.SelectionControl,r=Ta(e,["h","SelectionControl"]);return t(n,Ra({},r,{selectable:r.selectable||function(){return!0},instanceClass:Da,type:"checkbox"}))},{h:Ja,a:Va,SelectionControl:Za});function Xa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ya(){return(Ya=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function el(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function tl(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);tt?-1:0},al='',ll='';function cl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var ul=Function.prototype.call.bind(Function.prototype.call),dl=function(){return t.redraw()},pl=function(e){var t=nl,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},fl=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=nl;if(pl(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",dl))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),_l={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},hl=t||{},gl=hl.trust;hl.trust=function(e,n){return n?t(n,gl(e)):gl(e)},hl.displayName="mithril",hl.fragment=t.fragment;var ml=function(e,t){var n=function(e){var t=nl;nl=e.state;try{e.state.updates.forEach(ul)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),nl=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=nl;nl=n.state;try{return e(function(e){for(var t=1;t=q.scrollWidth-d.getBoundingClientRect().width-1&&y===t;j(n),N(r)},V=function(e){var t=q,n=I.slice(0,e).reduce(function(e,t){return e+t.dom.getBoundingClientRect().width},0),r=t.getBoundingClientRect().width,o=t.scrollWidth-r,i=_?-1*Math.min(n,o):Math.min(n,o),a=t.scrollLeft;if(a!==i){var l=Math.abs(a-i)/600;setTimeout(function(){(function(e){if(!x){var t=e.element,n="horizontal"===e.direction?"scrollLeft":"scrollTop",r=e.to,o=1e3*e.duration,i=e.easing||ao.easeInOutCubic,a=t[n],l=r-a,c=(new Date).getTime(),s=!0;return new Promise(function(e){lo(function u(){if(s){lo(u);var d=((new Date).getTime()-c)/o,p=a+l*i(d);t[n]=p,d>=1&&(t[n]=r,s=!1,e())}})})}})({element:t,to:i,duration:Math.max(.5,l),direction:"horizontal"}).then(W)},150)}},J=function(e){var t=e.index,n=e.animate;if(I&&I.length){v(t);var r=I[t].dom;r&&function(e){var t=e.selectedTabElement,n=e.animate;if(B){var r=d.getBoundingClientRect(),o=t.getBoundingClientRect(),i=L?o.height:0,a=_?o.right-r.right+q.scrollLeft+i:o.left-r.left+q.scrollLeft-i,l=1/(r.width-2*i)*o.width,c="translate(".concat(a,"px, 0) scaleX(").concat(l,")"),s=n?.25:0,u=B.style;u["transition-duration"]=s+"s",u.opacity=1,u.transform=c}}({selectedTabElement:r,animate:n}),L&&W(),V(t),c.onChange&&c.onChange({index:t,options:I[t].options,el:r})}};i(function(){if(H){h(function(e){var t=e.element,n=void 0===t?document:t,r=e.selector;return O({element:n,selector:r,prop:"direction",equals:"rtl"})}({element:d}));var e=function(){return function(){if(c.largestWidth){var e=I.map(function(e){return e.dom.getBoundingClientRect().width}).sort(il)[0];I.forEach(function(t){return t.dom.style.width=e+"px"})}}(),J({index:y,animate:!1})},t=function(t){var n=t.name;return"active"===n||"inactive"===n?e():null};return R("resize",e),R("webfontloader",t),e(),function(){T("resize",e),T("webfontloader",t)}}},[H]);var $=!c.scrollable&&!c.centered&&!!c.autofit;void 0!==g&&D!==g&&J({index:g,animate:!0}),D!==g&&A(g);var Q=Ya({},r(function(e){return e&&!d&&setTimeout(function(){return p(e)},0)}),m(c),c.testId&&{"data-test-id":c.testId},{className:[rl.component,c.scrollable?rl.scrollable:null,k?rl.isAtStart:null,z?rl.isAtEnd:null,c.activeSelected?rl.activeSelectable:null,$?rl.isAutofit:null,c.compact?rl.compactTabs:null,c.menu?rl.isMenu:null,"dark"===c.tone?"pe-dark-tone":null,"light"===c.tone?"pe-light-tone":null,c.className||c[n.class]].join(" ")}),U=s.map(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=Ya({},e,{selected:n===y,animateOnTap:!1!==c.animateOnTap},c.all,{index:n,onSelect:function(){return J({index:n,animate:!c.noIndicatorSlide})}});return t(l,r)}),Z=null,G=null;c.scrollable&&(Z=t(a,Ya({},{icon:c.scrollIconBackward,className:rl.scrollButtonAtStart,position:"start",events:Xa({},n.onclick,function(e){return M(e,"backward")}),isRTL:_})),G=t(a,Ya({},{icon:c.scrollIconForward,className:rl.scrollButtonAtEnd,position:"end",events:Xa({},n.onclick,function(e){return M(e,"forward")}),isRTL:_})));var X=c.hideIndicator?null:t("div",{className:rl.indicator}),Y=[Z,t("div",{className:[rl.tabRow,c.centered?rl.tabRowCentered:null,c.scrollable?rl.tabRowIndent:null].join(" ")},[].concat(tl(U),[X])),G];return t("div",Q,[c.before].concat(Y,[c.after]))},{h:hl,a:_l,getRef:function(e){return{oncreate:function(t){return e(t.dom)}}},useState:function(e){var t=nl;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=nl,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&dl()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:fl,ScrollButton:bl,Tab:yl});vl.displayName="Tabs";var wl=[],xl={},kl=xl.toString,Ol=kl.call(wl),jl=kl.call(xl),Sl=kl.call(""),Pl=kl.call(kl),zl=xl.hasOwnProperty,Nl=Object.freeze||function(e){return e};function Cl(e,t){for(var n in t)zl.call(t,n)&&(!n.indexOf("$")||n in e||(e[n]=t[n]));return e}function Il(e,t){var n,r,o=[];for(r in t)if(zl.call(t,r))for(n in e)zl.call(e,n)&&o.push(e[n]+t[r]);return o}var El=/[(),]|"(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\//g;function Rl(e){for(var t,n=[],r=[],o=0;t=El.exec(e);)switch(t[0]){case"(":o++;break;case")":o--;break;case",":if(o)break;n.push(t.index)}for(t=n.length;t--;)r.unshift(e.slice(n[t]+1)),e=e.slice(0,n[t]);return r.unshift(e),r}var Tl=/&|"(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\//g;function Fl(e,t){for(var n,r,o=[],i=[];r=Tl.exec(e);)"&"==r[0]&&o.push(r.index);for(r=o.length;r--;)i.unshift(e.slice(o[r]+1)),e=e.slice(0,o[r]);for(i.unshift(e),1===i.length&&i.unshift(""),n=[i[0]],r=1;r0&&/^[-\w$]+$/.test(a))if(c||(c=1,t.rule(n)),/\$/.test(a))for(s in a=a.split("$"))zl.call(a,s)&&Ll(e,t,a[s],l,o);else Ll(e,t,a,l,o);else/^@/.test(a)?(c=0,ql(e,t,/^(.(?:-[\w]+-)?([_A-Za-z][-\w]*))\b\s*(.*?)\s*$/.exec(a)||[a,"@","",""],l,n,o,i)):(c=0,Bl(e,t,n.length>0&&(/,/.test(n)||/,/.test(a))?(s=Rl(n),Rl(o?a.replace(/("(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\/)|:global\(\s*(\.-?[_A-Za-z][-\w]*)\s*\)|(\.)(-?[_A-Za-z][-\w]*)/g,e.localizeReplacer):a).map(function(e){return/&/.test(e)?Fl(e,s):s.map(function(t){return t+e}).join(",")}).join(",")):/&/.test(a)?Fl(o?a.replace(/("(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\/)|:global\(\s*(\.-?[_A-Za-z][-\w]*)\s*\)|(\.)(-?[_A-Za-z][-\w]*)/g,e.localizeReplacer):a,[n]):n+(o?a.replace(/("(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\/)|:global\(\s*(\.-?[_A-Za-z][-\w]*)\s*\)|(\.)(-?[_A-Za-z][-\w]*)/g,e.localizeReplacer):a),l,o,i+1));break;case Ol:for(a=0;a0&&void 0!==arguments[0]?arguments[0]:1;return[{"-webkit-box-flex":e},{"-moz-box-flex":e},{"-webkit-flex":e},{"-ms-flex":e},{flex:e},1===e?{"-webkit-flex-basis":"0.000000001px"}:{},1===e?{"flex-basis":"0.000000001px"}:{}]},flexAuto:{"-ms-flex":"1 1 auto","-webkit-flex-basis":"auto","flex-basis":"auto"},flexAutoVertical:{"-ms-flex":"1 1 auto","-webkit-flex-basis":"auto","flex-basis":"auto"},flexIndex:function(e){return{"-ms-flex":e,"-webkit-flex":e,flex:e}},flexGrow:function(e){return{"-webkit-flex-grow":e,"flex-grow":e}},flexShrink:function(e){return{"-webkit-flex-shrink":e,"flex-shrink":e}},layout:$l,layoutAroundJustified:[$l,{"-ms-flex-pack":"distribute","-webkit-justify-content":"space-around","justify-content":"space-around"}],layoutCenter:Ql,layoutCenterCenter:[Ul,Ql],layoutCenterJustified:Ul,layoutEnd:[$l,{"-ms-flex-align":"end","-webkit-align-items":"flex-end","align-items":"flex-end"}],layoutEndJustified:[$l,{"-ms-flex-pack":"end","-webkit-justify-content":"flex-end","justify-content":"flex-end"}],layoutHorizontal:[$l,{"-ms-flex-direction":"row","-webkit-flex-direction":"row","flex-direction":"row"}],layoutHorizontalReverse:[$l,{"-ms-flex-direction":"row-reverse","-webkit-flex-direction":"row-reverse","flex-direction":"row-reverse"}],layoutInline:[$l,{display:"-ms-inline-flexbox"},{display:"-webkit-inline-flex"},{display:"inline-flex"}],layoutJustified:[$l,{"-ms-flex-pack":"justify","-webkit-justify-content":"space-between","justify-content":"space-between"}],layoutStart:[$l,{"-ms-flex-align":"start","-webkit-align-items":"flex-start","align-items":"flex-start"}],layoutStartJustified:[$l,{"-ms-flex-pack":"start","-webkit-justify-content":"flex-start","justify-content":"flex-start"}],layoutVertical:[$l,{"-ms-flex-direction":"column","-webkit-flex-direction":"column","flex-direction":"column"}],layoutVerticalReverse:[$l,{"-ms-flex-direction":"column-reverse","-webkit-flex-direction":"column-reverse","flex-direction":"column-reverse"}],layoutWrap:[$l,{"-ms-flex-wrap":"wrap","-webkit-flex-wrap":"wrap","flex-wrap":"wrap"}],layoutWrapReverse:[$l,{"-ms-flex-wrap":"wrap-reverse","-webkit-flex-wrap":"wrap-reverse","flex-wrap":"wrap-reverse"}],selfCenter:{"-ms-align-self":"center","-webkit-align-self":"center","align-self":"center"},selfEnd:{"-ms-align-self":"flex-end","-webkit-align-self":"flex-end","align-self":"flex-end"},selfStart:{"-ms-align-self":"flex-start","-webkit-align-self":"flex-start","align-self":"flex-start"},selfStretch:{"-ms-align-self":"stretch","-webkit-align-self":"stretch","align-self":"stretch"}};function Gl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yl(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ec=function(){return{"&:after":{content:'""',display:"table",clear:"both"}}},tc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".18s",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ease-out";return{transitionDelay:"0ms",transitionDuration:t,transitionTimingFunction:n,transitionProperty:e}},nc=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px";return"none"===e?{textOverflow:"initial",overflow:"initial",display:"block",height:"auto",maxHeight:"none",whiteSpace:"normal"}:[{"@supports (-webkit-line-clamp: 2)":void 0!==e?{"-webkit-line-clamp":e,"-webkit-box-orient":"vertical",display:"-webkit-box",wordBreak:"break-word"}:void 0},Yl({overflow:"hidden",textOverflow:"ellipsis",textRendering:"auto"},void 0!==t?{maxHeight:e*t+n}:void 0,{},1===t?{wordWrap:"nowrap"}:void 0)]},rc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e+"px";return{position:"absolute",top:t,right:t,bottom:t,left:t}},oc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return{position:"sticky",top:0,zIndex:e}};var ic,ac,lc=(function(e,t){var n,r,o,i,a;function l(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}).replace("-","")}function c(e,t){return r[e]="",r[e]=t,!!r[e]}function s(e,t){return o.textContent="@media ("+e+":"+t+"){}",!!~o.sheet.cssRules[0].cssText.indexOf(t)}function u(e){return e in r}function d(e){return o.textContent=e+"{}",!!o.sheet.cssRules.length}Object.defineProperty(t,"__esModule",{value:!0});var p=[{props:["cursor"],values:["grab","grabbing","zoom-in","zoom-out"]},{props:["display"],values:["box","inline-box","flexbox","inline-flexbox","flex","inline-flex","grid","inline-grid"]},{props:["position"],values:["sticky"]},{props:["width","column-width","height","max-height","max-width","min-height","min-width"],values:["contain-floats","fill-available","fit-content","max-content","min-content"]}],f={"align-items":"box-align",flex:"box-flex","box-direction":"box-direction","box-orient":"box-orient","flex-grow":"box-flex","flex-wrap":"box-lines","justify-content":"box-pack",order:"box-ordinal-group"},_={"flex-end":"end","flex-start":"start",nowrap:"single","space-around":"justify","space-between":"justify",wrap:"multiple","wrap-reverse":"multiple"},h={"align-content":"-ms-flex-line-pack","align-items":"-ms-flex-align","align-self":"-ms-flex-item-align","flex-basis":"-ms-preferred-size","flex-grow":"-ms-flex-positive","flex-shrink":"-ms-flex-negative","justify-content":"-ms-flex-pack",order:"-ms-flex-order"},g={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"};function m(e){n=getComputedStyle(document.documentElement,null),r=document.createElement("div").style,o=document.documentElement.appendChild(document.createElement("style")),a=c,i=u,"zIndex"in r&&!("z-index"in r)&&(a=function(e,t){return c(l(e),t)},i=function(e){return u(l(e))}),function(e){var t={};function r(e){if("-"===e.charAt(0)){var n=e.split("-")[1];t[n]=++t[n]||1}}if(n&&n.length>0)for(var o=0;o-1?k(e,t,"flex-wrap",n):""!==n&&k(e,t,"flex-direction",n)});if("flex-direction"===n)return t(e.properties["box-orient"],r.indexOf("column")>-1?"block-axis":"inline-axis"),void t(e.properties["box-direction"],r.indexOf("-reverse")>-1?"reverse":"normal")}e.WkBCTxt&&"background-clip"===n&&"text"===r?t("-webkit-background-clip",r):t(e.properties[n]||e.fixProperty(n),e.fixValue(r,n))}function O(e){var t=e.prefix;e.fixProperty=e.fixProperty||function(n){var r;return e.properties[n]=i(n)||!i(r=t+n)?n:r};var n=w("",e.selectorList,"(?:\\b|$|[^-])"),r=x("",e.selectorList,"(?:\\b|$|[^-])"),o=function(t,n){return null!=n?e.selectorMap[n]:t};e.fixSelector=function(e){return n.test(e)?e.replace(r,o):e};var a=e.functions.indexOf("linear-gradient")>-1,l=/\blinear-gradient\(/,c=/(^|\s|,|\()((?:repeating-)?linear-gradient\()\s*(-?\d*\.?\d*)deg/gi,s=function(e,t,n,r){return t+n+(90-r)+"deg"},u=!!e.functions.length,d=w("(?:^|\\s|,|\\()",e.functions,"\\s*\\("),p=x("(^|\\s|,|\\()",e.functions,"(?=\\s*\\()");function f(e,n,r){return n+t+r}var _=/^\s*([-\w]+)/gi,h=function(t,n){return e.properties[n]||e.fixProperty(n)};e.fixValue=function(t,n){var r;return null!=e.initial&&"initial"===t?e.initial:e.hasKeywords&&(r=(e.keywords[n]||y)[t])?r:(r=t,e.valueProperties.hasOwnProperty(n)&&(r=-1===t.indexOf(",")?t.replace(_,h):function(e){for(var t,n=[],r=[],o=0;t=v.exec(e);)switch(t[0]){case"(":o++;break;case")":o--;break;case",":if(o)break;n.push(t.index)}for(t=n.length;t--;)r.unshift(e.slice(n[t]+1)),e=e.slice(0,n[t]);return r.unshift(e),r}(t).map(function(e){return e.replace(_,h)}).join(",")),u&&d.test(t)&&(a&&l.test(t)&&(r=r.replace(c,s)),r=r.replace(p,f)),r)};var g,m,b=/((?:min-|max-)?resolution)\s*:\s*((?:\d*\.)?\d+)dppx/g,O=e.hasPixelRatio?function(t,n,r){return e.properties[n]+":"+r}:e.hasPixelRatioFraction?function(t,n,r){return e.properties[n]+":"+Math.round(10*r)+"/10"}:function(e,t,n){return t+":"+Math.round(96*n)+"dpi"};e.fixAtMediaParams=!1!==e.hasDppx?function(e){return e}:function(e){return-1!==e.indexOf("reso")?e.replace(b,O):e};var j=function(e,t){g=e,m=t},S=/\(\s*([-\w]+)\s*:\s*((?:'(?:\\[\S\s]|[^'])*'|"(?:\\[\S\s]|[^"])*"|\/\*[\S\s]*?\*\/|\((?:'(?:\\[\S\s]|[^'])*'|"(?:\\[\S\s]|[^"])*"|\/\*[\S\s]*?\*\/|\((?:'(?:\\[\S\s]|[^'])*'|"(?:\\[\S\s]|[^"])*"|\/\*[\S\s]*?\*\/|\((?:'(?:\\[\S\s]|[^'])*'|"(?:\\[\S\s]|[^"])*"|\/\*[\S\s]*?\*\/|\((?:'(?:\\[\S\s]|[^'])*'|"(?:\\[\S\s]|[^"])*"|\/\*[\S\s]*?\*\/|\((?:'(?:\\[\S\s]|[^'])*'|"(?:\\[\S\s]|[^"])*"|\/\*[\S\s]*?\*\/|\((?:'(?:\\[\S\s]|[^'])*'|"(?:\\[\S\s]|[^"])*"|\/\*[\S\s]*?\*\/|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*)/g;function P(t,n,r){return k(e,j,n,r),"("+g+":"+m}e.fixAtSupportsParams=function(e){return e.replace(S,P)}}b={atrules:{},hasAtrules:!1,hasDppx:null,hasKeywords:!1,hasPixelRatio:!1,hasPixelRatioFraction:!1,hasSelectors:!1,hasValues:!1,fixAtMediaParams:null,fixAtSupportsParams:null,fixProperty:null,fixSelector:null,fixValue:null,flexbox2009:!1,flexbox2012:!1,functions:[],initial:null,jsFlex:!1,keywords:{},placeholder:null,prefix:"",prefixes:[],Prefix:"",properties:{},selectorList:[],selectorMap:{},valueProperties:{transition:1,"transition-property":1,"will-change":1},WkBCTxt:!1},"function"==typeof getComputedStyle&&m(b),O(b),t.prefixPlugin=function e(){var t=b,n=[];return{set:{setPrefixDb:function(r){return-1===n.indexOf(r)&&(O(r),n.push(r)),t=r,e}},filter:function(e){return{atrule:function(n,r,o,i){e.atrule(t.hasAtrules&&t.atrules[n]||n,r,"@media"===n?t.fixAtMediaParams(o):"@supports"===n?t.fixAtSupportsParams(o):o,i)},decl:function(n,r){k(t,e.decl,n,r)},rule:function(n){e.rule(t.hasSelectors?t.fixSelector(n):n)}}}}}}(ic={exports:{}},ic.exports),ic.exports);(ac=lc)&&ac.__esModule&&Object.prototype.hasOwnProperty.call(ac,"default")&&ac.default;var cc=new Jl(lc.prefixPlugin),sc=/[^a-z0-9\\-]/g,uc=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?a-1:0),c=1;c0});if(0!==s.length){var u=l||c.trim().replace(/^[^a-z]?(.*)/,"$1");uc(u,fc({styles:fc({styles:s,scope:a}),scope:i}))}},hc=uc,gc=_c,mc=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.mediaQuery,l=i.scope;return _c({selectors:[e,r],fns:t,vars:n,customVars:o,mediaQuery:a,scope:l})}},bc=function(e,t){return Gl({},e,t)},yc=function(e){return"*[dir=rtl] ".concat(e,", .pe-rtl ").concat(e)},vc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"rgba(".concat(e,", ").concat(t,")")},wc=function(e){var t=e.varFns,n=e.customVarFns,r=e.superStyle,o=e.varMixin,i=e.selector,a=e.scopedSelector,l=e.componentVars,c=void 0===l?{}:l,s=e.customVars,u=Yl({},c,{},s),d=s||u,p=(c.general_styles,Kl(c,["general_styles"])),f=void 0!==r?void 0!==s?r(i,c,s):r(i,p):[],_=Yl({},s?n:{},{},t);return f.concat(Object.keys(o(d)).map(function(e){return _&&void 0!==_[e]?_[e](a,u):null}).filter(function(e){return e}))},xc=function(e){var t=e.varFns,n=e.customVarFns,r=e.superLayout,o=e.varMixin,i=void 0===o?function(e){return e}:o;return function(e,o,a){return wc({varFns:t,customVarFns:n,superStyle:r,varMixin:i,selector:e,scopedSelector:e,componentVars:o,customVars:a})}},kc=function(e){var t=e.scopes,n=e.selector,r=e.isNoTouch,o=void 0!==r&&r;return n.split(/\s*,\s*/).map(function(e){return function(e){var t=e.scopes,n=e.selector;return e.isNoTouch?t.map(function(e){return e+n+":hover"}).join(","):t.map(function(e){return e+n}).join(",")}({scopes:t,selector:e,isNoTouch:o})}).join("")},Oc=[{scopes:[".pe-dark-tone",".pe-dark-tone "],varFnName:"darkTintFns",isNoTouch:!1},{scopes:["",".pe-light-tone",".pe-light-tone "],varFnName:"lightTintFns",isNoTouch:!1},{scopes:[".pe-no-touch .pe-dark-tone "],varFnName:"darkTintHoverFns",isNoTouch:!0},{scopes:[".pe-no-touch ",".pe-no-touch .pe-light-tone "],varFnName:"lightTintHoverFns",isNoTouch:!0}],jc=function(e){var t=e.varFns,n=void 0===t?{}:t,r=e.superColor,o=e.varMixin,i=void 0===o?function(e){return e}:o;return function(e,t,o){return Oc.map(function(a){var l=a.scopes,c=a.varFnName,s=a.isNoTouch;return function(e){var t=e.selector,n=e.scopedSelector,r=e.componentVars,o=e.customVars,i=e.varFns,a=e.superColor,l=e.varMixin;return wc({varFns:i,superStyle:a,varMixin:l,selector:t,scopedSelector:n,componentVars:r,customVars:o})}({selector:e,scopedSelector:kc({scopes:l,selector:e,isNoTouch:s}),componentVars:t,customVars:o,varFns:n[c],superColor:r,varMixin:i})})}},Sc=function(e,t){e||console.error("createMarker requires param `vars`");var n=function(e,t){var n=Object.keys(t).filter(function(t){return!0===e[t]}).join(".");return n?'"'.concat(n,'"'):void 0}(e,t);return n?{":before":{content:n,display:"none"}}:void 0};function Pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zc(){return(zc=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=n.mediaQuery,o=void 0===r?"":r,i=n.scope,a=void 0===i?"":i,l=t&&t.contained?Ss:Os;e&&gc({selectors:[Ns,e],fns:zs,vars:l,customVars:t,mediaQuery:o,scope:a}),e&&gc({selectors:[Cs,e],fns:Ps,vars:l,customVars:t,mediaQuery:o,scope:a})},Es=jc({superColor:us}),Rs=[xc({superLayout:vs}),Es],Ts=[es.component,es.contained].join(" "),Fs=".".concat(Ts.split(/\s/).join(".")),Ds=Os,As=xc({varFns:{general_styles:function(e){return[bc(e,{display:"flex"})]}}}),Ls={general_styles:!0},qs=[As],Bs=".".concat("pe-button-group"),Hs="pe-card",Ms="pe-card__content",Ws="pe-card__overlay__content",Vs="pe-card__overlay--sheet";function Js(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $s(){return($s=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:ie.unit_icon_size,r=n+e.label_height,o=(r-n)/2;return{" .pe-control__form-label":{height:t+"px"}," .pe-control__box":{width:n+"px",height:n+"px"}," .pe-button__content":{width:r+"px",height:r+"px",flexShrink:0," .pe-icon":[rc(o)]}}},Su=function(e,t,n){var r;return bc(e,{" .pe-button.pe-control__button":(r={top:-(t.button_size-t.icon_size)/2+"px"},bu(r,n?"right":"left",-(t.button_size-t.icon_size)/2+"px"),bu(r,n?"left":"right","auto"),r)})},Pu=function(e,t,n){return bc(e,{" .pe-control__label":bu({},n?"paddingRight":"paddingLeft",t.label_padding_before+"px")})},zu=function(e,t,n){return bc(e,{" .pe-control__label":bu({},n?"paddingLeft":"paddingRight",t.label_padding_after+"px")})},Nu=xc({varFns:{general_styles:function(e,t){return[bc(e,[ku(t),{display:"inline-block",boxSizing:"border-box",margin:0,padding:0," input[type=checkbox], input[type=radio]":{display:"none"}," .pe-control__form-label":[Zl.layoutHorizontal,Zl.layoutCenter,{position:"relative",cursor:"pointer",margin:0,color:"inherit",":focus":{outline:0}}],".pe-control--inactive":{" .pe-control__form-label":{cursor:"default"}}," .pe-control__box":{position:"relative",display:"inline-block",boxSizing:"border-box",color:"inherit",flexShrink:0,":focus":{outline:0}}," .pe-button.pe-control__button":{position:"absolute"},".pe-control--off":{" .pe-control__button--on":{opacity:0,zIndex:-1}," .pe-control__button--off":{opacity:1,zIndex:0}},".pe-control--on":{" .pe-control__button--on":{opacity:1,zIndex:0}," .pe-control__button--off":{opacity:0,zIndex:-1}}," .pe-control__label":{alignSelf:"center"},".pe-control--disabled":{" .pe-control__form-label":{cursor:"auto"}," .pe-control__button":{pointerEvents:"none"}}," .pe-button__content":{" .pe-icon":{position:"absolute"}}},bu({},"*[dir=rtl] ".concat(e,", .pe-rtl ").concat(e),[Ou(t)])])]},label_font_size:function(e,t){return[bc(e,{" .pe-control__form-label":{fontSize:t.label_font_size+"px"}})]},label_height:function(e,t){return[bc(e,{" .pe-control__box":{width:t.label_height+"px",height:t.label_height+"px"},".pe-control--small":ju(t,ie.unit_icon_size_small,ie.unit_icon_size_small),".pe-control--regular":ju(t,t.label_height,ie.unit_icon_size),".pe-control--medium":ju(t,ie.unit_icon_size_medium,ie.unit_icon_size_medium),".pe-control--large":ju(t,ie.unit_icon_size_large,ie.unit_icon_size_large)})]},animation_duration:function(e,t){return[bc(e,{" .pe-button.pe-control__button":[tc("opacity",t.animation_duration)]," .pe-control__label":[tc("all",t.animation_duration)]})]},button_size:function(e,t){return[bc(e,{}),Su(e,t,!1),Su(yc(e),t,!0)]},icon_size:function(e,t){return[bc(e,{}),Su(e,t,!1),Su(yc(e),t,!0)]},label_padding_after:function(e,t){return[bc(e,{}),zu(e,t,!1),zu(yc(e),t,!0)]},label_padding_before:function(e,t){return[bc(e,{}),Pu(e,t,!1),Pu(yc(e),t,!0)]}}}),Cu={general_styles:!0,animation_duration:ie.animation_duration,button_size:6*ie.grid_unit_component,icon_size:3*ie.grid_unit_component,label_font_size:2*ie.grid_unit_component,label_height:3*ie.grid_unit_component,label_padding_after:0,label_padding_before:4*ie.grid_unit,color_light_on:vc(ie.color_primary),color_light_off:vc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_label:vc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_disabled:vc(ie.color_light_foreground,ie.blend_light_text_disabled),color_light_on_icon:"inherit",color_light_off_icon:"inherit",color_light_on_label:vc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_off_label:vc(ie.color_light_foreground,ie.blend_light_text_secondary),color_dark_on:vc(ie.color_primary),color_dark_off:vc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_label:vc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_disabled:vc(ie.color_dark_foreground,ie.blend_dark_text_disabled),color_dark_on_icon:"inherit",color_dark_off_icon:"inherit",color_dark_on_label:vc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_off_label:vc(ie.color_dark_foreground,ie.blend_dark_text_secondary)},Iu=[Nu,xu],Eu=".".concat("pe-control"),Ru=jc({superColor:xu}),Tu=xc({superLayout:Nu}),Fu={general_styles:!0},Du=[Tu,Ru],Au=".".concat("pe-checkbox-control");function Lu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qu(){return(qu=Object.assign||function(e){for(var t=1;t *":{flexShrink:0}," > .pe-dialog-pane__body":{flexShrink:1,maxHeight:"none"}}," .pe-dialog-pane, .pe-dialog-pane__body":{height:"100vh",maxHeight:"100vh",borderTopStyle:"none",maxWidth:"none"}})},Qu=xc({varFns:{general_styles:function(e){return[bc(e,[Zl.layoutVertical,{position:"relative",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit",margin:0," .pe-dialog-pane__content":{width:"100%",display:"flex",flexDirection:"column",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}," .pe-dialog-pane__title":{fontSize:ie.font_size_title+"px",fontWeight:ie.font_weight_medium,"& + div":{marginTop:"16px"}}," .pe-dialog-pane__header, .pe-dialog-pane__content > .pe-toolbar":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"," .pe-dialog-pane__title":{width:"100%",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}," .pe-dialog-pane__body":[{overflowY:"auto","-webkit-overflow-scrolling":"touch",borderTopStyle:"solid",borderBottomStyle:"solid"," p":{margin:0}," p + p":{marginTop:"16px"}}],".pe-dialog-pane--body-full-bleed .pe-dialog-pane__body":{padding:0,borderStyle:"none"}," .pe-dialog-pane__header--title + .pe-dialog-pane__body":{paddingTop:0}," .pe-dialog-pane__footer":{display:"flex",flexDirection:"column",flexGrow:1,justifyContent:"center","&, > .pe-toolbar":{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},".pe-dialog-pane__footer--high":{paddingBottom:"8px"},".pe-dialog-pane__footer--buttons":{padding:"0 8px",fontSize:0}}," .pe-dialog-pane__actions":[Zl.layoutHorizontal,Zl.layoutEndJustified,Zl.layoutWrap,{alignItems:"center"}]}]),{" .pe-dialog__content.pe-menu__content":Lu({}," ".concat(e),{" .pe-dialog-pane__body":{padding:0,border:"none"}})}]},max_width:function(e,t){return[void 0!==t.side_padding_mobile&&Wu(e,t)]},side_padding_mobile:function(e,t){return[void 0!==t.side_padding_mobile&&Wu(e,t)]},min_width:function(e,t){return[bc(e,{minWidth:t.min_width+"px"})]},margin_vertical:function(e,t){return[bc(e,{maxHeight:"calc(100vh - 2 * ".concat(t.margin_vertical,"px)")}),void 0!==t.header_height&&void 0!==t.footer_height&&Ju(e,t)]},line_height_title:function(e,t){return[bc(e,{" .pe-dialog-pane__title":{lineHeight:t.line_height_title+"px"}})]},header_height:function(e,t){return[bc(e,{" .pe-dialog-pane__header":{height:t.header_height+"px"}}),void 0!==t.footer_height&&void 0!==t.margin_vertical&&Ju(e,t)]},footer_height:function(e,t){return[bc(e,{" .pe-dialog-pane__footer--buttons .pe-dialog-pane__actions":{minHeight:t.footer_height+"px"}}),void 0!==t.header_height&&void 0!==t.footer_height&&void 0!==t.margin_vertical&&Ju(e,t)]},padding:function(e,t){return[bc(e,{" .pe-dialog-pane__body":{padding:t.padding+"px"},".pe-dialog-pane--footer":{" .pe-dialog-pane__body":{paddingBottom:t.padding-10+"px"}}}),void 0!==t.header_bottom&&Vu(e,t)]},header_bottom:function(e,t){return[Vu(e,t)]},border_width:function(e,t){return[bc(e,{" .pe-dialog-pane__body":{borderWidth:t.border_width+"px"}})]}}}),Uu={general_styles:!0,border_width:1,footer_height:52,header_bottom:20,header_height:64,line_height_title:24,max_width:7*ie.grid_unit_menu,min_width:5*ie.grid_unit_menu,padding:3*ie.grid_unit_component,side_padding_mobile:6*ie.grid_unit,max_height:8*ie.grid_unit_component,margin_vertical:8*ie.grid_unit_component,color_light_title_text:"inherit",color_light_body_text:"inherit",color_light_body_border:vc(ie.color_light_foreground,ie.blend_light_border_light),color_light_background:"inherit",color_dark_title_text:"inherit",color_dark_body_text:"inherit",color_dark_body_border:vc(ie.color_dark_foreground,ie.blend_dark_border_light),color_dark_background:"inherit"},Zu=[Qu,Mu],Gu=".".concat("pe-dialog-pane"),Xu="pe-dialog";function Yu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ku(){return(Ku=Object.assign||function(e){for(var t=1;t div":{width:"inherit",height:"inherit"}})]}},["small","regular","medium","large"].reduce(function(e,t){return e["size_".concat(t)]=function(e){return function(t,n){return bc(t,ep({},".pe-icon--".concat(e),{width:n["size_".concat(e)]+"px",height:n["size_".concat(e)]+"px"}))}}(t),e},{}))}),ap={general_styles:!0,size_small:ie.unit_icon_size_small,size_regular:ie.unit_icon_size,size_medium:ie.unit_icon_size_medium,size_large:ie.unit_icon_size_large,color_light_avatar_background:vc(ie.color_light_foreground,ie.blend_light_background_disabled),color_dark_avatar_background:vc(ie.color_dark_foreground,ie.blend_dark_background_disabled),color_light:"currentcolor",color_dark:"currentcolor"},lp=[ip,op],cp=".".concat("pe-icon");function sp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function up(){return(up=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e;return{"padding-left":e+"px","padding-right":t+"px"}},of=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return{"padding-top":e+"px","padding-bottom":t+"px"}},af=function(e,t){return bc(e,{lineHeight:t.single_line_height+"px",".pe-list-tile--navigation":{" .pe-list-tile__title":{minHeight:t.single_line_height+"px"}}," .pe-list-tile__title":[nc(t.title_line_count,t.single_line_height,"px")]})},lf=function(e,t){return bc(e,{"&, a":{pointerEvents:"none"}})},cf=function(e,t){return sf(e,t),uf(e,t)},sf=function(e,t){var n=t.inset_h_size;return bc(e,{marginLeft:n+"px",marginRight:n+"px"," .pe-list-tile__content":{marginLeft:-n+"px",marginRight:-n+"px"}})},uf=function(e,t){var n=t.inset_v_size;return bc(e,{marginTop:n+"px",marginBottom:n+"px"})},df=function(e,t){return bc(e,{"&, .pe-list-tile__primary":{borderRadius:t.rounded_border_radius+"px"}})},pf=xc({varFns:{general_styles:function(e,t){return[bc(e,[tf(t),Zl.layout,{position:"relative",".pe-list-tile--navigation":{" .pe-list-tile__title":{whiteSpace:"pre-wrap"}},".pe-list-tile--sticky":oc(2),".pe-list-tile--inset-h":sf(e,t),".pe-list-tile--inset-v":uf(e,t)," .pe-list-tile__primary":{width:"100%"}," .pe-list-tile__primary, .pe-list-tile__secondary":[Zl.layoutHorizontal,tc("background",".200s"),{textDecoration:"none",color:"inherit",border:"none"}],":not(.pe-list-tile--header) .pe-list-tile__primary":[Zl.flex(),{position:"relative"," .pe-list-tile__content:not(.pe-list-tile__content-front)":[Zl.flex()]}],":not(.pe-list-tile--disabled)":{outline:"none"}," .pe-list-tile__secondary":{textAlign:"right",position:"relative"}," .pe-list-tile__content":[Zl.layoutVertical,Zl.selfCenter,{width:"100%",".pe-list-tile__content-front":{flexShrink:0}}]," .pe-list-tile__title":{whiteSpace:"normal"}," .pe-list-tile__subtitle":[nc(t.subtitle_line_count,t.line_height_subtitle,"px"),{fontSize:t.font_size_subtitle+"px",fontWeight:t.font_weight_subtitle,lineHeight:t.line_height_subtitle+"px",".pe-list-tile__high-subtitle":[nc(t.high_subtitle_line_count,t.line_height_subtitle,"px"),{whiteSpace:"normal"}]}],".pe-list-tile--selected, &.pe-list-tile--disabled":lf(e),".pe-list-tile--subtitle":{" .pe-list-tile__content":{" .pe-list-tile__title":{padding:0}}},".pe-list-tile--high-subtitle":{" .pe-list-tile--high-subtitle .pe-list-tile__secondary":[Zl.layoutHorizontal,Zl.layoutStart]," .pe-list-tile__content":[Zl.selfStart,{" .pe-list-tile__title":{padding:0}}]},".pe-list-tile--header":{pointerEvents:"none"," .pe-list-tile__content":{paddingTop:0,paddingBottom:0}," .pe-list-tile__title":{padding:0}},"@supports (-moz-appearance:none) and (display:contents)":{" .pe-list-tile__primary, .pe-list-tile__content":{overflow:"hidden"}},".pe-dialog .pe-menu__content &":{" .pe-list-tile__content":{paddingLeft:"24px",paddingRight:"24px"}," .pe-list-tile__content-front":{paddingRight:0,width:"64px",marginRight:"-7px"}," .pe-list-tile__title":nc("none")},".pe-menu__content &":{":not(.pe-list-tile--disabled)":{cursor:"default","&, .pe-list-tile__primary, .pe-list-tile__secondary":{" .pe-list-tile__title, .pe-list-tile__subtitle":{userSelect:"none","-moz-user-select":"none"}}}},"html.pe-no-touch &.pe-list-tile--hoverable, html.pe-no-touch &.pe-list-tile--selectable":{":not(.pe-list-tile--header):not(.pe-list-tile--disabled):not(.pe-list-tile--selected):hover":{cursor:"pointer"}}}]),Vp({},yc(e),nf(t))]},title_line_count:function(e,t){return[af(e,t)]},single_line_height:function(e,t){return[af(e,t)]},font_size_title:function(e,t){return[bc(e,{fontSize:t.font_size_title+"px"," .pe-list-tile__secondary":{fontSize:t.font_size_title+"px"}})]},font_weight_title:function(e,t){return[bc(e,{fontWeight:t.font_weight_title})]},font_size_navigation_title:function(e,t){return[bc(e,{".pe-list-tile--navigation":{fontSize:t.font_size_navigation_title+"px"}})]},font_weight_navigation_title:function(e,t){return[bc(e,{".pe-list-tile--navigation":{fontWeight:t.font_weight_navigation_title}})]},padding:function(e,t){return[bc(e,{":not(.pe-list-tile--header)":{" .pe-list-tile__content:not(.pe-list-tile__content-front)":[of(t.padding,t.padding+1)]}," .pe-list-tile__content":{".pe-list-tile__content-front":[of(t.padding-5)]}})]},side_padding:function(e,t){return[bc(e,{" .pe-list-tile__content":[rf(t.side_padding)]})]},inset_size:function(e,t){return[bc(e,{".pe-list-tile--inset":cf(e,t)})]},rounded_border_radius:function(e,t){return[bc(e,{".pe-list-tile--rounded":df(e,t)})]},compact_front_item_width:function(e,t){return[bc(e,{" .pe-list-tile__content-front":{".pe-list-tile--compact-front":{width:t.compact_front_item_width+"px"}}})]},front_item_width:function(e,t){return[bc(e,{" .pe-list-tile__content-front":{":not(.pe-list-tile--compact-front)":{width:t.front_item_width+"px"}}})]},font_size_small:function(e,t){return[bc(e,{" .pe-list-tile__content":{" small":{fontSize:t.font_size_small+"px"}}})]},has_high_subtitle_padding:function(e,t){return[bc(e,{".pe-list-tile--high-subtitle":{" .pe-list-tile__content":[of(t.has_high_subtitle_padding,t.has_high_subtitle_padding+1)]}})]},has_subtitle_padding:function(e,t){return[bc(e,{".pe-list-tile--subtitle":{" .pe-list-tile__content":[of(t.has_subtitle_padding,t.has_subtitle_padding+1)]}})]},single_height:function(e,t){return[bc(e,{".pe-list-tile--header":{height:t.single_height+"px"," .pe-list-tile__title":[nc(1,t.single_height,"px"),{lineHeight:t.single_height+"px",padding:0}]}})]},font_size_list_header:function(e,t){return[bc(e,{".pe-list-tile--header":{" .pe-list-tile__title":{fontSize:t.font_size_list_header+"px"}}})]},font_weight_list_header:function(e,t){return[bc(e,{".pe-list-tile--header":{" .pe-list-tile__title":{fontWeight:t.font_weight_list_header}}})]},compact_padding:function(e,t){return[bc(e,{" .pe-list--compact &, &.pe-list-tile--compact":{":not(.pe-list-tile--header)":{" .pe-list-tile__content:not(.pe-list-tile__content-front)":of(t.compact_padding,t.compact_padding+1)}}})]},inset:function(e,t){return t.inset&&cf(e,t)},inset_h:function(e,t){return t.inset_h&&sf(e,t)},inset_v:function(e,t){return t.inset_h&&uf(e,t)},rounded:function(e,t){return t.rounded&&df(e,t)},selected:function(e,t){return t.selected&&lf(e)}}}),ff=Qp({general_styles:!0,compact_front_item_width:64,compact_padding:9,compact_side_padding:1*ie.grid_unit_component,font_size_list_header:14,font_size_navigation_title:14,font_size_small:12,font_size_subtitle:14,font_size_title:16,font_weight_list_header:ie.font_weight_medium,font_weight_navigation_title:ie.font_weight_medium,font_weight_subtitle:ie.font_weight_normal,font_weight_title:ie.font_weight_normal,front_item_width:72,has_high_subtitle_padding:13,has_subtitle_padding:15,high_subtitle_line_count:2,inset_h_size:1*ie.grid_unit_component,inset_v_size:1*ie.grid_unit_component,line_height_subtitle:20,padding:13,rounded_border_radius:ie.unit_item_border_radius,side_padding:2*ie.grid_unit_component,single_height:48,single_line_height:21,single_with_icon_height:56,single_with_icon_line_height:29,subtitle_line_count:1,title_line_count:1,color_light_title:vc(ie.color_light_foreground,ie.blend_light_text_primary),color_light_subtitle:vc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_info:vc(ie.color_light_foreground,ie.blend_light_text_tertiary),color_light_front:vc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_text_disabled:vc(ie.color_light_foreground,ie.blend_light_text_disabled),color_light_list_header:vc(ie.color_light_foreground,ie.blend_light_text_tertiary),color_light_secondary:vc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_hover:vc(ie.color_light_foreground,ie.blend_light_text_primary),color_light_hover_front:vc(ie.color_light_foreground,ie.blend_light_text_primary),color_light_hover_background:vc(ie.color_light_foreground,ie.blend_light_background_hover),color_light_focus_background:vc(ie.color_light_foreground,ie.blend_light_background_hover),color_light_selected_text:"inherit",color_light_selected_background:vc(ie.color_light_foreground,ie.blend_light_background_hover),color_light_highlight_background:vc(ie.color_light_foreground,ie.blend_light_background_hover),color_dark_title:vc(ie.color_dark_foreground,ie.blend_dark_text_primary),color_dark_subtitle:vc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_info:vc(ie.color_dark_foreground,ie.blend_dark_text_tertiary),color_dark_front:vc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_text_disabled:vc(ie.color_dark_foreground,ie.blend_dark_text_disabled),color_dark_list_header:vc(ie.color_dark_foreground,ie.blend_dark_text_tertiary),color_dark_secondary:vc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_hover:vc(ie.color_dark_foreground,ie.blend_dark_text_primary),color_dark_hover_front:vc(ie.color_dark_foreground,ie.blend_dark_text_primary),color_dark_hover_background:vc(ie.color_dark_foreground,ie.blend_dark_background_hover),color_dark_selected_text:"inherit",color_dark_selected_background:vc(ie.color_dark_foreground,ie.blend_dark_background_hover),color_dark_highlight_background:vc(ie.color_dark_foreground,ie.blend_dark_background_hover)},{inset:!1,inset_h:!1,inset_v:!1,selected:!1,rounded:!1}),_f=[pf,Kp],hf=".".concat("pe-list-tile");function gf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mf(){return(mf=Object.assign||function(e){for(var t=1;t *":[Zl.layoutVertical,Zl.selfCenter],".pe-search--inset":{"&, .pe-textfield__input-area, .pe-textfield__input, .pe-textfield__label":{padding:0}}}])]},font_size_input:function(e,t){return[bc(e,{" .pe-textfield":{" .pe-textfield__input, .pe-textfield__label":{fontSize:t.font_size_input+"px"}}})]},line_height_input:function(e,t){return[bc(e,{" .pe-textfield__input, .pe-textfield__label":{lineHeight:t.line_height_input+"px"}}),A_(e,t)]},inset_border_radius:function(e,t){return[bc(e,{".pe-search--inset":{"border-radius":t.inset_border_radius+"px"}})]},inset_side_padding:function(e,t){return[bc(e,{".pe-search--inset":{padding:"0 "+t.inset_side_padding+"px"}})]},inset_height:function(e,t){return[bc(e,{".pe-search--inset":{"&, .pe-textfield__input-area, .pe-textfield__input, .pe-textfield__label":{padding:0,height:t.inset_height+"px"}}}),A_(e,t)]},full_width_height:function(e,t){return[bc(e,{".pe-search--full-width":{"&, .pe-textfield__input-area, .pe-textfield__input, .pe-textfield__label":{height:t.full_width_height+"px"}}}),L_(e,t)]},inset_input_indent:function(e,t){return[bc(e,{".pe-search--inset":{" .pe-textfield__input, .pe-textfield__label":{paddingLeft:t.inset_input_indent+"px"}}})]},inset_input_right_padding:function(e,t){return[bc(e,{".pe-search--inset":{" .pe-textfield__input, .pe-textfield__label":{paddingRight:t.inset_input_right_padding+"px"}}})]},full_width_side_padding:function(e,t){var n=ie.unit_indent-t.full_width_side_padding-ie.grid_unit_icon_button;return bc(e,{".pe-search--full-width":{padding:"0 "+t.full_width_side_padding+"px"," .pe-textfield__input, .pe-textfield__label":{paddingLeft:n+"px"}},".pe-search--full-width + .pe-list .pe-list-tile":{"> :first-child":{paddingLeft:t.full_width_side_padding+"px"},"> :last-child":{paddingRight:t.full_width_side_padding+"px"}}})},full_width_border_radius:function(e,t){return[bc(e,{".pe-search--full-width":{borderRadius:t.full_width_border_radius+"px"}})]},full_width_input_right_padding:function(e,t){return[bc(e,{".pe-search--full-width":{" .pe-textfield__input, .pe-textfield__label":{paddingRight:t.full_width_input_right_padding+"px"}}})]}}}),B_={general_styles:!0,font_size_input:20,full_width_border_radius:0,full_width_height:56,full_width_input_right_padding:0,full_width_side_margin:0,full_width_side_padding:8,inset_border_radius:ie.unit_block_border_radius,inset_height:48,inset_input_indent:16,inset_input_right_padding:0,inset_side_padding:0,line_height_input:20,color_light_label_text:vc(ie.color_light_foreground,ie.blend_light_text_disabled),color_light_input_text:vc(ie.color_light_foreground,ie.blend_light_text_primary),color_light_background:vc(ie.color_light_background),color_dark_label_text:vc(ie.color_dark_foreground,ie.blend_dark_text_disabled),color_dark_input_text:vc(ie.color_dark_foreground,ie.blend_dark_text_primary),color_dark_background:vc(ie.color_dark_background)},H_=[q_,D_],M_=".".concat("pe-search");function W_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V_(){return(V_=Object.assign||function(e){for(var t=1;t .pe-icon":Zl.layoutCenter," .pe-slider__track":[Zl.layoutHorizontal,Zl.flexGrow(1),{userSelect:"none","-moz-user-select":"none",position:"relative",outline:0}]," .pe-slider__control":[Zl.selfCenter,tc("transform, background",".200s"),{transform:"scale(1)",userSelect:"none","-moz-user-select":"none",lineHeight:0,borderRadius:"50%",outline:0,zIndex:1,position:"relative",":before":{content:'""',position:"absolute",borderRadius:"50%"},":after":{content:'""',position:"absolute",borderRadius:"50%",borderStyle:"solid"}}]," .pe-slider__thumb":[rc(),{"&, .pe-icon":{width:"inherit",height:"inherit"}}]," .pe-slider__label":{minWidth:ie.unit_icon_size+"px",textAlign:"center",fontSize:"16px",fontWeight:ie.font_weight_medium}," .pe-slider__track-part":[Zl.flex(),{userSelect:"none","-moz-user-select":"none",overflow:"hidden"}]," .pe-slider__track-value, .pe-slider__track-rest":Zl.layoutHorizontal," .pe-slider__track-bar":[Zl.flex(),{position:"relative",overflow:"hidden"}]," .pe-slider__track-bar-value":Zl.flex()," .pe-slider__ticks":[Zl.layoutJustified,{userSelect:"none","-moz-user-select":"none",position:"absolute",left:0,pointerEvents:"none"}]," .pe-slider__pin":[tc("transform",".11s"),{transform:"translateZ(0) scale(0) translate(0, 0)",transformOrigin:"bottom",position:"absolute",zIndex:1,height:0,left:0,top:0,pointerEvents:"none","&::before, &::after":{position:"absolute",top:0,left:0},"::before":{transform:"rotate(-45deg)",content:'""',borderRadius:"50% 50% 50% 0"},"::after":{content:"attr(value)",textAlign:"center"}}],".pe-slider--pin.pe-slider--active, &.pe-slider--pin.pe-slider--focus":{" .pe-slider__pin":{transform:"translateZ(0) scale(1) translate(0, -24px)"}},":not(.pe-slider--disabled)":{" .pe-slider__control":{cursor:"pointer"},".pe-slider--track":{" .pe-slider__track":{cursor:"pointer"}}},".pe-slider--disabled":{" .pe-slider__control":{borderWidth:0}}}])]},thumb_size:function(e,t){var n=U_(t),r=n.normalThumbSize,o=n.barOffset,i=n.stepsOffset;return[bc(e,{" .pe-slider__control":{width:r+"px",height:r+"px"}," .pe-slider__track-value .pe-slider__track-bar":{marginLeft:o+"px"}," .pe-slider__track-rest .pe-slider__track-bar":{marginRight:o+"px"}," .pe-slider__ticks":{width:"calc(100% - "+2*i+"px)",margin:"0 "+i+"px"}}),G_(e,t),K_(e,t),eh(e,t),th(e,t)]},active_thumb_scale:function(e,t){return[bc(e,{".pe-slider--active:not(.pe-slider--ticks)":{" .pe-slider__control":{transform:"scale("+t.active_thumb_scale+")"}}}),eh(e,t)]},thumb_touch_size:function(e,t){return[bc(e,{" .pe-slider__control":{":before":{width:t.thumb_touch_size+"px",height:t.thumb_touch_size+"px"}}}),K_(e,t)]},thumb_border_width:function(e,t){return[bc(e,{}),G_(e,t)]},disabled_thumb_scale:function(e,t){return[bc(e,{".pe-slider--disabled":{" .pe-slider__control":{transform:"scale("+t.disabled_thumb_scale+")"}}}),G_(e,t)]},active_pin_thumb_scale:function(e,t){return[bc(e,{".pe-slider--pin.pe-slider--active, &.pe-slider--pin.pe-slider--focus":{" .pe-slider__control":{transform:"scale("+t.active_pin_thumb_scale+")"}}})]},height:function(e,t){return[bc(e,{height:t.height+"px"," > .pe-icon":{height:t.height+"px"}," .pe-slider__label":{height:t.height+"px",lineHeight:t.height+"px"}," .pe-slider__ticks":{top:t.height/2-1+"px"}}),X_(e,t)]},track_height:function(e,t){return[bc(e,{" .pe-slider__track":{height:t.track_height+"px"}}),X_(e,t),Y_(e,t)]},animation_duration:function(e,t){return[bc(e,{" .pe-slider__track":tc("transform",t.animation_duration)," .pe-slider__control:before":tc("background-color",t.animation_duration)," .pe-slider__control:after":tc("border",t.animation_duration)," .pe-slider__thumb":tc("opacity",t.animation_duration)," .pe-slider__track-bar-value":tc("transform, background-color",t.animation_duration)})]},side_spacing:function(e,t){return[bc(e,{" .pe-slider__track":{margin:"0 "+t.side_spacing+"px"}})]},horizontal_layout_side_spacing:function(e,t){return[bc(e,{" div + .pe-slider__track":{margin:"0 "+t.horizontal_layout_side_spacing+"px"}})]},bar_height:function(e,t){return[bc(e,{" .pe-slider__track-part, .pe-slider__track-bar-value, .pe-slider__ticks, .pe-slider__tick":{height:t.bar_height+"px"}}),Y_(e,t)]},step_width:function(e,t){return[bc(e,{" .pe-slider__tick":{width:t.step_width+"px"}})]},pin_width:function(e,t){return[bc(e,{" .pe-slider__pin":{width:t.pin_width+"px","::before":{width:t.pin_width+"px",height:t.pin_width+"px"},"::after":{width:t.pin_width+"px",height:t.pin_height+"px",lineHeight:t.pin_width+"px"}}}),th(e,t)]},pin_font_size:function(e,t){return[bc(e,{" .pe-slider__pin::after":{fontSize:t.pin_font_size+"px"}})]}}}),rh=ie.color_light_foreground,oh=ie.color_dark_foreground,ih=ie.color_primary,ah=Math.max(40,12),lh=Math.max(ah,18),ch=Math.max(52,18),sh=Math.max(10,lh/2-6),uh={general_styles:!0,active_pin_thumb_scale:2/6,active_thumb_scale:1.5,animation_duration:ie.animation_duration,bar_height:2,disabled_thumb_scale:.5,height:ch,horizontal_layout_side_spacing:sh+4,pin_font_size:10,pin_height:32,pin_width:26,side_spacing:sh,step_width:2,thumb_border_width:2,thumb_size:12,thumb_touch_size:ah,track_height:ch,color_light_track_active:vc(rh,.38),color_light_track_inactive:vc(rh,.26),color_light_track_value:"currentColor",color_light_thumb_off:vc(rh,.26),color_light_thumb_off_focus:vc(rh),color_light_thumb_off_focus_opacity:.08,color_light_thumb_on:vc(ih),color_light_thumb_on_focus_opacity:.11,color_light_thumb_inactive:vc(rh,.26),color_light_tick:vc(rh,1),color_light_tick_value:vc(rh,1),color_light_icon:vc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_disabled_icon:vc(ie.color_light_foreground,ie.blend_light_text_disabled),color_light_label:vc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_disabled_label:vc(ie.color_light_foreground,ie.blend_light_text_disabled),color_light_pin_label:"#fff",color_light_pin_background:"currentColor",color_dark_track_active:vc(oh,.3),color_dark_track_inactive:vc(oh,.2),color_dark_track_value:"currentColor",color_dark_thumb_off:vc(oh,.2),color_dark_thumb_off_focus:vc(oh),color_dark_thumb_off_focus_opacity:.08,color_dark_thumb_on:vc(ih),color_dark_thumb_on_focus_opacity:.11,color_dark_thumb_inactive:vc(oh,.2),color_dark_tick:vc(oh,1),color_dark_tick_value:vc(oh,1),color_dark_icon:vc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_disabled_icon:vc(ie.color_dark_foreground,ie.blend_dark_text_disabled),color_dark_label:vc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_disabled_label:vc(ie.color_dark_foreground,ie.blend_dark_text_disabled),color_dark_pin_label:"#fff",color_dark_pin_background:"currentColor"},dh=[nh,Q_],ph=".".concat("pe-slider");function fh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var hh,gh=function(e){for(var t=1;t div, svg":{width:"inherit",height:"inherit"}})]}}}),Ih={general_styles:!0,color_light:"currentcolor",color_dark:"currentcolor"},Eh=[Ch,Nh],Rh=".".concat("pe-svg"),Th=mc(Rh,Eh,Ih);function Fh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dh(){return(Dh=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:e.animation_duration;return tc(t,n,"ease-out")},Hh=function(e,t){var n=t/ie.unit_icon_size,r=2*Math.floor(.5*e.thumb_size*n),o=2*Math.floor(.5*e.track_height*n),i=2*Math.floor(.5*e.track_length*n),a=2*Math.floor(.5*e.thumb_size*n),l=(e.label_height*n-o)/2,c=e.icon_button_padding,s=(t-a)/2,u=-(t+2*c)/2+r/2;return{factor:n,scaledThumbSize:a,scaledTrackHeight:o,scaledTrackWidth:i,size:t,thumbMargin:s,thumbOffsetMax:u+i-r,thumbOffsetMin:u,thumbOffsetY:u+s,thumbPadding:c,trackTop:l,trackVisualOffset:.3}},Mh=function(e,t){var n=t.scaledThumbSize,r=t.scaledTrackHeight,o=t.scaledTrackWidth,i=t.size,a=t.thumbMargin,l=t.thumbOffsetY,c=t.thumbPadding,s=t.trackTop;return{" .pe-control__form-label":{height:i+"px",minWidth:o+"px"}," .pe-switch-control__track":{height:r+"px",width:o-2*t.trackVisualOffset+"px",top:s+"px",borderRadius:r+"px"}," .pe-switch-control__thumb":{top:l+"px"}," .pe-switch-control__knob":{width:n+"px",height:n+"px",margin:a+"px"}," .pe-button__content":{padding:c+"px"}}},Wh=function(e,t,n){var r,o,i,a,l=t.factor,c=t.scaledTrackWidth,s=t.thumbOffsetMax,u=t.thumbOffsetMin,d=t.trackVisualOffset;return{" .pe-control__label":(r={},Fh(r,n?"paddingRight":"paddingLeft",e.padding*l+8+c+"px"),Fh(r,n?"paddingLeft":"paddingRight",0),r)," .pe-switch-control__track":(o={},Fh(o,n?"right":"left",d+"px"),Fh(o,n?"left":"right","auto"),o)," .pe-switch-control__thumb":(i={},Fh(i,n?"right":"left",u+"px"),Fh(i,n?"left":"right","auto"),i),".pe-control--on":{" .pe-switch-control__thumb":(a={},Fh(a,n?"right":"left",s+"px"),Fh(a,n?"left":"right","auto"),a)}}},Vh=function(e){return function(){var t;return{" .pe-switch-control__track":(t={},Fh(t,e?"right":"left",0),Fh(t,e?"left":"right","auto"),t)}}},Jh=Vh(!1),$h=Vh(!0),Qh=xc({varFns:{general_styles:function(e){return[bc(e,[Jh(),{" .pe-switch-control__track":[{position:"absolute"}]," .pe-switch-control__thumb":{position:"absolute",zIndex:1,color:"inherit",":focus":{outline:0}}," .pe-switch-control__knob":{position:"relative",borderRadius:"50%"}," .pe-icon-button .pe-button__content":{transition:"none"," .pe-switch-control__knob .pe-icon":[rc(),{width:"100%",height:"100%"}]}}]),Fh({},"_:-ms-fullscreen, :root ".concat(e),{" input":{position:"absolute",zIndex:1,width:"100%",height:"100%",left:0,top:0,right:0,bottom:0,display:"block",opacity:0,cursor:"pointer"}," label":{cursor:"auto"}})]},animation_duration:function(e,t){return[bc(e,{" .pe-switch-control__track, .pe-switch-control__thumb, .pe-control__label":Bh(t,"all")})]},createSize:function(e,t){var n={small:Hh(t,ie.unit_icon_size_small),regular:Hh(t,ie.unit_icon_size),medium:Hh(t,ie.unit_icon_size_medium),large:Hh(t,ie.unit_icon_size_large)};return[bc(e,{".pe-control--small":[Mh(0,n.small),Wh(t,n.small,!1)],".pe-control--regular":[Mh(0,n.regular),Wh(t,n.regular,!1)],".pe-control--medium":[Mh(0,n.medium),Wh(t,n.medium,!1)],".pe-control--large":[Mh(0,n.large),Wh(t,n.large,!1)]}),Fh({},"*[dir=rtl] ".concat(e,", .pe-rtl ").concat(e),[$h(),{".pe-control--small":[Wh(t,n.small,!0)],".pe-control--regular":[Wh(t,n.regular,!0)],".pe-control--medium":[Wh(t,n.medium,!0)],".pe-control--large":[Wh(t,n.large,!0)]}])]}},superLayout:Nu,varMixin:function(e){return e.thumb_size||e.track_height||e.track_length||e.label_height||e.icon_button_padding?Dh({},e,{createSize:!0}):e}}),Uh={general_styles:!0,animation_duration:ie.animation_duration,hit_area_padding:(ie.grid_unit_icon_button-ie.unit_icon_size)/2,icon_button_padding:vp.padding,padding:ie.grid_unit_component,thumb_size:20,track_height:14,track_length:36,label_height:Cu.label_height,color_light_thumb_on:vc(ie.color_primary),color_light_thumb_off:"#f1f1f1",color_light_thumb_disabled:"#eee",color_light_wash_on:vc(ie.color_primary,ie.blend_light_background_active),color_light_wash_off:vp.color_light_wash_background,color_light_track_on:vc(ie.color_primary_faded),color_light_track_on_opacity:.55,color_light_track_off:vc(ie.color_light_foreground,ie.blend_light_text_regular),color_light_track_off_opacity:.55,color_light_track_disabled:vc(ie.color_light_foreground,ie.blend_light_background_disabled),color_light_track_disabled_opacity:1,color_dark_thumb_on:vc(ie.color_primary),color_dark_thumb_off:"#bdbdbd",color_dark_thumb_disabled:"#555",color_dark_wash_on:vc(ie.color_primary,ie.blend_dark_background_active),color_dark_wash_off:vp.color_dark_wash_background,color_dark_track_on:vc(ie.color_primary_faded,ie.blend_dark_text_tertiary),color_dark_track_on_opacity:9,color_dark_track_off:"#717171",color_dark_track_off_opacity:.55,color_dark_track_disabled:"#717171",color_dark_track_disabled_opacity:.3},Zh=[Qh,qh],Gh=".".concat("pe-switch-control"),Xh="pe-tabs",Yh="pe-tab";function Kh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eg(){return(eg=Object.assign||function(e){for(var t=1;t span, .pe-toolbar__title":(t={},Bg(t,o?"marginLeft":"marginRight",0),Bg(t,o?"marginRight":"marginLeft",a+"px"),t)," .pe-toolbar__title--center":{marginLeft:a+"px",marginRight:a+"px"}})},Ug=function(e){var t,n=e.selector,r=e.vars,o=e.isRTL,i=e.isLarge,a=i?r.title_after_icon_padding_large:r.title_after_icon_padding;return(i?Gg:bc)(n,{" > :not(.pe-toolbar__title):first-child:not(.pe-toolbar__title--indent):first-child":(t={},Bg(t,o?"marginRight":"marginLeft",0),Bg(t,o?"marginLeft":"marginRight",a+"px"),t)})},Zg=Jg("@media (min-width: ".concat(ie.breakpoint_for_phone_only,"px) and (orientation: landscape)")),Gg=Jg("@media (min-width: ".concat(ie.breakpoint_for_tablet_portrait_up,"px)")),Xg=xc({varFns:{general_styles:function(e){return[bc(e,[Zl.layout,Zl.layoutHorizontal,Zl.layoutCenter,{position:"relative",zIndex:ie.z_toolbar," > a":{textDecoration:"none"},".pe-toolbar--fullbleed":{padding:0},".pe-toolbar--border":{borderWidth:"1px",borderStyle:"none none solid none"}," > *":{flexShrink:0}," > span, .pe-toolbar__title, .pe-toolbar__title--indent":{width:"100%",display:"block",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flexShrink:1}," .pe-toolbar__title--center":{textAlign:"center",justifyContent:"center"}," > .pe-action":{paddingLeft:"12px",paddingRight:"12px"}," .pe-fit":[rc(),{margin:0}]}])]},height:function(e,t){return[bc(e,{height:t.height+"px"})]},height_compact:function(e,t){return[bc(e,{".pe-toolbar--compact":{height:t.height_compact+"px"}}),Zg(e,{height:t.height+"px"})]},line_height:function(e,t){return[bc(e,{lineHeight:t.line_height+"em"," > span, .pe-toolbar__title, .pe-toolbar__title--indent":{lineHeight:t.line_height}})]},font_size:function(e,t){return[bc(e,{" > span, .pe-toolbar__title, .pe-toolbar__title--indent, .pe-action":{fontSize:t.font_size+"px"}})]},font_weight:function(e,t){return[bc(e,{" > span, .pe-toolbar__title, .pe-toolbar__title--indent":{fontWeight:t.font_weight}})]},padding_side:function(e,t){return[bc(e,{padding:"0 "+t.padding_side+"px"}),$g({selector:e,vars:t}),$g({selector:yc(e),vars:t,isRTL:!0})]},indent:function(e,t){return[$g({selector:e,vars:t}),$g({selector:yc(e),vars:t,isRTL:!0})]},indent_large:function(e,t){return[$g({selector:e,vars:t,isLarge:!0}),$g({selector:yc(e),vars:t,isRTL:!0,isLarge:!0})]},title_padding:function(e,t){return[Qg({selector:e,vars:t}),Qg({selector:yc(e),vars:t,isRTL:!0})]},title_padding_large:function(e,t){return[Qg({selector:e,vars:t,isLarge:!0}),Qg({selector:yc(e),vars:t,isRTL:!0,isLarge:!0})]},title_after_icon_padding:function(e,t){return[Ug({selector:e,vars:t}),Ug({selector:yc(e),vars:t,isRTL:!0})]},title_after_icon_padding_large:function(e,t){return[Ug({selector:e,vars:t,isLarge:!0}),Ug({selector:yc(e),vars:t,isRTL:!0,isLarge:!0})]},height_large:function(e,t){return[Gg(e,{height:t.height_large+"px"})]},padding_side_large:function(e,t){return[Gg(e,{padding:"0 "+t.padding_side_large+"px"})]}}}),Yg=2*ie.grid_unit_component-12,Kg=3*ie.grid_unit_component-12,em={general_styles:!0,font_size:20,font_weight:400,height:7*ie.grid_unit_component,height_compact:6*ie.grid_unit_component,height_large:8*ie.grid_unit_component,line_height:ie.line_height,padding_side:Yg,padding_side_large:Kg,indent:ie.unit_indent-Yg,indent_large:ie.unit_indent_large-Kg,title_after_icon_padding:4,title_after_icon_padding_large:12,title_padding:16,title_padding_large:8,color_light_text:vc(ie.color_light_foreground,ie.blend_light_text_primary),color_light_border:vc(ie.color_light_foreground,ie.blend_light_border_light),color_light_background:vc(ie.color_light_background),color_dark_text:vc(ie.color_dark_foreground,ie.blend_dark_text_primary),color_dark_border:vc(ie.color_dark_foreground,ie.blend_dark_border_light),color_dark_background:vc(ie.color_dark_background)},tm=[Xg,Vg],nm=".".concat("pe-toolbar"),rm=[function(){return[{" html":{"box-sizing":"border-box"}," *, *:before, *:after":{"box-sizing":"inherit"}," *":[{"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},{"-webkit-tap-highlight-color":"transparent"}]," a, a:active, a:focus, input:active, *:focus":{outline:0}," input:disabled":{opacity:1}}]}],om={},im=[function(){return[{"html, body, button, input, select, textarea":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"}}]},function(){return[{" h1, h2, h3, h4, h5, h6, p":{margin:0,padding:0}},{" h1, h2, h3, h4, h5, h6":{" small":{"font-weight":ie.font_weight_normal,"line-height":ie.line_height,"letter-spacing":"-0.02em","font-size":"0.6em"}}},{" h1":{"font-size":"56px","font-weight":ie.font_weight_normal,"line-height":ie.line_height,"margin-top":"24px","margin-bottom":"24px"}},{" h2":{"font-size":"45px","font-weight":ie.font_weight_normal,"line-height":ie.line_height,"margin-top":"24px","margin-bottom":"24px"}},{" h3":{"font-size":"34px","font-weight":ie.font_weight_normal,"line-height":ie.line_height,"margin-top":"24px","margin-bottom":"24px"}},{" h4":{"font-size":"24px","font-weight":ie.font_weight_normal,"line-height":ie.line_height,"-moz-osx-font-smoothing":"grayscale","margin-top":"24px","margin-bottom":"16px"}},{" h5":{"font-size":"20px","font-weight":ie.font_weight_medium,"line-height":ie.line_height,"letter-spacing":"-0.02em","margin-top":"24px","margin-bottom":"16px"}},{" h6":{"font-size":"16px","font-weight":ie.font_weight_normal,"line-height":ie.line_height,"letter-spacing":"0.04em","margin-top":"24px","margin-bottom":"16px"}},{" html, body":{"font-size":"14px","line-height":ie.line_height,"font-weight":ie.font_weight_normal}," p":{"font-size":"14px","font-weight":ie.font_weight_normal,"line-height":ie.line_height,"letter-spacing":"0","margin-bottom":"16px"}," blockquote":{position:"relative","font-size":"24px","font-weight":ie.font_weight_normal,"font-style":"italic","line-height":ie.line_height,"letter-spacing":"0.08em","margin-top":"24px","margin-bottom":"16px"}," ul, ol":{"font-size":"14px","font-weight":ie.font_weight_normal,"line-height":ie.line_height,"letter-spacing":0}," b, strong":{"font-weight":ie.font_weight_medium}}]}],am=function(){!function(e,t){if(!x){if(!window.WebFontConfig){var n=function(n){var r=n.name,o=n.familyName,i=n.fvd;return F("webfontloader",{name:r,familyName:o,fvd:i,vendor:e,config:t})};window.WebFontConfig={loading:function(){return n({name:"loading"})},active:function(){return n({name:"active"})},inactive:function(){return n({name:"inactive"})},fontloading:function(e,t){return n({name:"fontloading",familyName:e,fvd:t})},fontactive:function(e,t){return n({name:"fontactive",familyName:e,fvd:t})},fontinactive:function(e,t){return n({name:"fontinactive",familyName:e,fvd:t})}},function(){var e=document.createElement("script");e.src=("https:"===document.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js",e.type="text/javascript",e.async=!0;var t=document.getElementsByTagName("script")[0];t&&t.parentNode&&t.parentNode.insertBefore(e,t)}()}var r=window.WebFontConfig[e]||{};t&&io(r,t),window.WebFontConfig[e]=r}}("google",{families:["Roboto:400,500,700,400italic:latin"]})};gc({selectors:[Ac],fns:Dc,vars:Fc}),gc({selectors:[Fs],fns:Rs,vars:Ss}),gc({selectors:[Ns],fns:zs,vars:Os}),gc({selectors:[Cs],fns:Ps,vars:Os}),gc({selectors:[Bs],fns:qs,vars:Ls}),gc({selectors:[du],fns:hu,vars:uu}),gc({selectors:[fu],fns:gu,vars:uu}),gc({selectors:[pu],fns:mu,vars:uu}),gc({selectors:[_u],fns:mu,vars:uu}),gc({selectors:[Au],fns:Du,vars:Fu}),gc({selectors:[pd],fns:dd,vars:ld}),gc({selectors:[Gu],fns:Zu,vars:Uu}),gc({selectors:[Vd],fns:Wd,vars:Md}),gc({selectors:[Kd],fns:Yd,vars:Xd}),gc({selectors:[cp],fns:lp,vars:ap}),gc({selectors:[xp],fns:wp,vars:vp}),gc({selectors:[Ep],fns:Ip,vars:Cp}),gc({selectors:[Wp],fns:Mp,vars:Hp}),gc({selectors:[hf],fns:_f,vars:ff}),gc({selectors:[Tf],fns:Rf,vars:Ef}),gc({selectors:[Sf],fns:jf,vars:Of}),gc({selectors:[t_],fns:e_,vars:Jf}),gc({selectors:[m_],fns:g_,vars:f_}),gc({selectors:[h_],fns:__,vars:f_}),gc({selectors:[x_],fns:w_,vars:v_}),gc({selectors:[I_],fns:C_,vars:N_}),gc({selectors:[M_],fns:H_,vars:B_}),gc({selectors:[Eu],fns:Iu,vars:Cu}),gc({selectors:[Kc],fns:Yc,vars:Xc}),gc({selectors:[ph],fns:dh,vars:uh}),gc({selectors:[jh],fns:Oh,vars:wh}),gc({selectors:[kh],fns:xh,vars:wh}),gc({selectors:[Rh],fns:Eh,vars:Ih}),gc({selectors:[Gh],fns:Zh,vars:Uh}),gc({selectors:[yg],fns:mg,vars:gg}),gc({selectors:[wg],fns:bg,vars:gg}),gc({selectors:[qg],fns:Lg,vars:Ag}),gc({selectors:[nm],fns:tm,vars:em}),gc({identifier:"pe-core",selectors:[""],fns:rm,vars:om}),am(),hc("pe-material-design-typography",im.map(function(e){return e()}));var lm='';!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.mediaQuery,o=void 0===r?"":r,i=n.scope,a=void 0===i?"":i;Is(e,t,{mediaQuery:o,scope:a})}(".themed-button",{color_light_background:"#FF1744",color_light_text:"#fff"}),Th(".themed-svg",{color_light:"#2196f3"}),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.mediaQuery,o=void 0===r?"":r,i=n.scope,a=void 0===i?"":i;e&&gc({selectors:[e,du],fns:hu,vars:uu,customVars:t,mediaQuery:o,scope:a}),e&&gc({selectors:[e," "+fu],fns:gu,vars:uu,customVars:t,mediaQuery:o,scope:a}),e&&gc({selectors:[e," "+pu],fns:mu,vars:uu,customVars:t,mediaQuery:o,scope:a}),e&&gc({selectors:[e," "+_u],fns:mu,vars:uu,customVars:t,mediaQuery:o,scope:a})}(".themed-card",{color_dark_main_background:"#B89E58",color_dark_title_text:"#fff",color_dark_subtitle_text:"#fff"});var cm={view:function(){return t(".page",[t(".row",[t("h3","Polythene for Mithril built with Rollup")]),t(".row",[t("h6","SVG"),t(".component",t(Me,{content:t.trust(lm),className:"themed-svg",style:{width:"24px",height:"24px"}}))]),t(".row",[t("h6","Raised Button"),t(".component",t(ht,{raised:!0,label:"Button"}))]),t(".row",[t("h6","Text Button"),t(".component",t(ht,{label:"Button"}))]),t(".row",[t("h6","Themed Regular Button"),t(".component",t(ht,{label:"Button",className:"themed-button"}))]),t(".row",[t("h6","Icon"),t(".component",t(Ge,{size:"large",src:"http://arthurclemens.github.io/assets/polythene/examples/avatar-1.png",avatar:!0}))]),t(".row",[t("h6","Icon Button"),t(".component",t(An,{icon:{svg:{content:t.trust(lm)}}}))]),t(".row",[t("h6","FAB"),t(".component",t(Lr,{icon:{svg:{content:t.trust(lm)}}}))]),t(".row",[t("h6","Tabs"),t(".component",t(vl,{tabs:[{label:"New"},{label:"Favorites"},{label:"Saved"}],autofit:!0}))]),t(".row",[t("h6","Card"),t(".component",t(tn,{className:"themed-card",tone:"dark",content:[{primary:{title:"Get Ready",subtitle:"2 Unlimited",media:{ratio:"square",size:"medium",content:t("img",{src:"http://arthurclemens.github.io/assets/polythene/examples/2-unlimited.jpg"})}}},{actions:{content:[t(ht,{label:"Listen now"})]}}]}))]),t(".row",[t("h6","Checkbox"),t(".component",t(Hn,{label:"Label"}))]),t(".row",[t("h6","Switch"),t(".component",t(Ga,{label:"Label"}))]),t(".row",[t("h6","Radio Button"),t(".component",t(Pi,{name:"defaultChecked",content:[{value:"One",label:"One"},{value:"Two",label:"Two",defaultChecked:!0}]}))]),t(".row",[t("h6","TextField"),t(".component",t(Ui,{defaultValue:"abC",validate:function(e){return e!==e.toLowerCase()?{valid:!1,error:"Only use lowercase characters."}:null},validateAtStart:!0}))]),t(".row",[t("h6","Slider"),t(".component",t(fa,{defaultValue:50}))]),t(".row",[t("h6","Spinner"),t(".component",t(No,{permanent:!0}))]),t(".row",[t("h6","Dialog"),t(".component",t(ht,{raised:!0,label:"Show dialog",events:{onclick:function(){return Pr.show({title:"Hello",body:"Click outside to close, or press ESCAPE",backdrop:!0})}}}))]),t(".row",[t("h6","Notification"),t(".component",t(ht,{raised:!0,label:"Show Notification",events:{onclick:function(){return Go.show({title:"Hello"})}}}))]),t(".row",[t("h6","Snackbar"),t(".component",t(ht,{raised:!0,label:"Show Snackbar",events:{onclick:function(){return Ea.show({title:"Hello"})}}}))]),t(Pr),t(Ea),t(Go)])}};t.mount(document.querySelector("#root"),cm)}); +!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var t=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(t){!function(){function n(e,t,n,r,o,i){return{tag:e,key:t,attrs:n,children:r,text:o,dom:i,domSize:void 0,state:void 0,events:void 0,instance:void 0}}n.normalize=function(e){return Array.isArray(e)?n("[",void 0,void 0,n.normalizeChildren(e),void 0,void 0):null==e||"boolean"==typeof e?null:"object"==typeof e?e:n("#",void 0,void 0,String(e),void 0,void 0)},n.normalizeChildren=function(e){var t=[];if(e.length){for(var r=null!=e[0]&&null!=e[0].key,o=1;o0&&(a.className=r.join(" ")),i[e]={tag:n,attrs:a}}(e),t):(t.tag=e,t)}if(c.trust=function(e){return null==e&&(e=""),n("<",void 0,void 0,e,void 0,void 0)},c.fragment=function(){var e=r.apply(0,arguments);return e.tag="[",e.children=n.normalizeChildren(e.children),e},(s=function(e){if(!(this instanceof s))throw new Error("Promise must be called with `new`");if("function"!=typeof e)throw new TypeError("executor must be a function");var t=this,n=[],r=[],o=c(n,!0),i=c(r,!1),a=t._instance={resolvers:n,rejectors:r},l="function"==typeof setImmediate?setImmediate:setTimeout;function c(e,o){return function c(s){var d;try{if(!o||null==s||"object"!=typeof s&&"function"!=typeof s||"function"!=typeof(d=s.then))l(function(){o||0!==e.length||console.error("Possible unhandled promise rejection:",s);for(var t=0;t0||e(n)}}var r=n(i);try{e(n(o),r)}catch(e){r(e)}}u(e)}).prototype.then=function(e,t){var n,r,o=this._instance;function i(e,t,i,a){t.push(function(t){if("function"!=typeof e)i(t);else try{n(e(t))}catch(e){r&&r(e)}}),"function"==typeof o.retry&&a===o.state&&o.retry()}var a=new s(function(e,t){n=e,r=t});return i(e,o.resolvers,n,!0),i(t,o.rejectors,r,!1),a},s.prototype.catch=function(e){return this.then(null,e)},s.prototype.finally=function(e){return this.then(function(t){return s.resolve(e()).then(function(){return t})},function(t){return s.resolve(e()).then(function(){return s.reject(t)})})},s.resolve=function(e){return e instanceof s?e:new s(function(t){t(e)})},s.reject=function(e){return new s(function(t,n){n(e)})},s.all=function(e){return new s(function(t,n){var r=e.length,o=0,i=[];if(0===e.length)t([]);else for(var a=0;a'+t.children+"",a=a.firstChild):a.innerHTML=t.children,t.dom=a.firstChild,t.domSize=a.childNodes.length,t.instance=[];for(var l,c=r.createDocumentFragment();l=a.firstChild;)t.instance.push(l),c.appendChild(l);y(e,c,o)}function f(e,t,n,r,o,i){if(t!==n&&(null!=t||null!=n))if(null==t||0===t.length)s(e,n,0,n.length,r,o,i);else if(null==n||0===n.length)w(e,t,0,t.length);else{var a=null!=t[0]&&null!=t[0].key,l=null!=n[0]&&null!=n[0].key,c=0,d=0;if(!a)for(;d=d&&j>=c&&(y=t[O],v=n[j],y.key===v.key);)y!==v&&_(e,y,v,r,o,i),null!=v.dom&&(o=v.dom),O--,j--;for(;O>=d&&j>=c&&(p=t[d],f=n[c],p.key===f.key);)d++,c++,p!==f&&_(e,p,f,r,m(t,d,o),i);for(;O>=d&&j>=c&&c!==j&&p.key===v.key&&y.key===f.key;)b(e,y,k=m(t,d,o)),y!==f&&_(e,y,f,r,k,i),++c<=--j&&b(e,p,o),p!==v&&_(e,p,v,r,o,i),null!=v.dom&&(o=v.dom),d++,y=t[--O],v=n[j],p=t[d],f=n[c];for(;O>=d&&j>=c&&y.key===v.key;)y!==v&&_(e,y,v,r,o,i),null!=v.dom&&(o=v.dom),j--,y=t[--O],v=n[j];if(c>j)w(e,t,d,O+1);else if(d>O)s(e,n,c,j+1,r,o,i);else{var S,P,z=o,N=j-c+1,C=new Array(N),E=0,I=0,R=2147483647,T=0;for(I=0;I=c;I--){null==S&&(S=h(t,d,O+1));var F=S[(v=n[I]).key];null!=F&&(R=F>>1)+(r>>>1)+(n&r&1);e[t[l]]0&&(g[o]=t[n-1]),t[n]=o)}}for(n=t.length,r=t[n-1];n-- >0;)t[n]=r,r=g[r];return g.length=0,t}(C)).length-1,I=j;I>=c;I--)f=n[I],-1===C[I-c]?u(e,f,r,i,o):P[E]===I-c?E--:b(e,f,o),null!=f.dom&&(o=n[I].dom);else for(I=j;I>=c;I--)f=n[I],-1===C[I-c]&&u(e,f,r,i,o),null!=f.dom&&(o=n[I].dom)}}else{var D=t.lengthD&&w(e,t,c,t.length),n.length>D&&s(e,n,c,n.length,r,o,i)}}}function _(e,t,r,o,a,c){var s=t.tag;if(s===r.tag){if(r.state=t.state,r.events=t.events,function(e,t){do{if(null!=e.attrs&&"function"==typeof e.attrs.onbeforeupdate){var n=l.call(e.attrs.onbeforeupdate,e,t);if(void 0!==n&&!n)break}if("string"!=typeof e.tag&&"function"==typeof e.state.onbeforeupdate){var n=l.call(e.state.onbeforeupdate,e,t);if(void 0!==n&&!n)break}return!1}while(0);return e.dom=t.dom,e.domSize=t.domSize,e.instance=t.instance,e.attrs=t.attrs,e.children=t.children,e.text=t.text,!0}(r,t))return;if("string"==typeof s)switch(null!=r.attrs&&A(r.attrs,r,o),s){case"#":!function(e,t){e.children.toString()!==t.children.toString()&&(e.dom.nodeValue=t.children),t.dom=e.dom}(t,r);break;case"<":!function(e,t,n,r,o){t.children!==n.children?(k(e,t),p(e,n,r,o)):(n.dom=t.dom,n.domSize=t.domSize)}(e,t,r,c,a);break;case"[":!function(e,t,n,r,o,i){f(e,t.children,n.children,r,o,i);var a=0,l=n.children;if(n.dom=null,null!=l){for(var c=0;c-1||null!=e.attrs&&e.attrs.is||"href"!==t&&"list"!==t&&"form"!==t&&"width"!==t&&"height"!==t)&&t in e.dom}var C=/[A-Z]/g;function E(e){return"-"+e.toLowerCase()}function I(e){return"-"===e[0]&&"-"===e[1]?e:"cssFloat"===e?"float":e.replace(C,E)}function R(e,t,n){if(t===n);else if(null==n)e.style.cssText="";else if("object"!=typeof n)e.style.cssText=n;else if(null==t||"object"!=typeof t)for(var r in e.style.cssText="",n)null!=(o=n[r])&&e.style.setProperty(I(r),String(o));else{for(var r in n){var o;null!=(o=n[r])&&(o=String(o))!==String(t[r])&&e.style.setProperty(I(r),o)}for(var r in t)null!=t[r]&&null==n[r]&&e.style.removeProperty(I(r))}}function T(){this._=t}function F(e,t,n){if(null!=e.events){if(e.events[t]===n)return;null==n||"function"!=typeof n&&"object"!=typeof n?(null!=e.events[t]&&e.dom.removeEventListener(t.slice(2),e.events,!1),e.events[t]=void 0):(null==e.events[t]&&e.dom.addEventListener(t.slice(2),e.events,!1),e.events[t]=n)}else null==n||"function"!=typeof n&&"object"!=typeof n||(e.events=new T,e.dom.addEventListener(t.slice(2),e.events,!1),e.events[t]=n)}function D(e,t,n){"function"==typeof e.oninit&&l.call(e.oninit,t),"function"==typeof e.oncreate&&n.push(l.bind(e.oncreate,t))}function A(e,t,n){"function"==typeof e.onupdate&&n.push(l.bind(e.onupdate,t))}return T.prototype=Object.create(null),T.prototype.handleEvent=function(e){var t,n=this["on"+e.type];"function"==typeof n?t=n.call(e.currentTarget,e):"function"==typeof n.handleEvent&&n.handleEvent(e),this._&&!1!==e.redraw&&(0,this._)(),!1===t&&(e.preventDefault(),e.stopPropagation())},function(e,r,o){if(!e)throw new TypeError("Ensure the DOM element being passed to m.route/m.mount/m.render is not undefined.");var i=[],a=c(),l=e.namespaceURI;null==e.vnodes&&(e.textContent=""),r=n.normalizeChildren(Array.isArray(r)?r:[r]);var s=t;try{t="function"==typeof o?o:void 0,f(e,e.vnodes,r,i,null,"http://www.w3.org/1999/xhtml"===l?void 0:l)}finally{t=s}e.vnodes=r,null!=a&&c()!==a&&"function"==typeof a.focus&&a.focus();for(var u=0;u=0&&(o.splice(i,2),e(t,[],c)),null!=r&&(o.push(t,r),e(t,n(r),c))},redraw:c}}(u,requestAnimationFrame,console),p=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return"";var t=[];for(var n in e)r(n,e[n]);return t.join("&");function r(e,n){if(Array.isArray(n))for(var o=0;o=0&&(h+=e.slice(n,o)),s>=0&&(h+=(n<0?"?":"&")+c.slice(s,d));var g=p(l);return g&&(h+=(n<0&&s<0?"?":"&")+g),r>=0&&(h+=e.slice(r)),u>=0&&(h+=(r<0?"":"&")+c.slice(u)),h},h=function(e,t,n){var r=0;function o(e){return new t(e)}function i(e){return function(r,i){"string"!=typeof r?(i=r,r=r.url):null==i&&(i={});var a=new t(function(t,n){e(_(r,i.params),i,function(e){if("function"==typeof i.type)if(Array.isArray(e))for(var n=0;n=200&&e.target.status<300||304===e.target.status||/^file:\/\//i.test(t),l=e.target.response;if("json"===u?e.target.responseType||"function"==typeof n.extract||(l=JSON.parse(e.target.responseText)):u&&"text"!==u||null==l&&(l=e.target.responseText),"function"==typeof n.extract?(l=n.extract(e.target,n),a=!0):"function"==typeof n.deserialize&&(l=n.deserialize(l)),a)r(l);else{try{i=e.target.responseText}catch(e){i=l}var c=new Error(i);c.code=e.target.status,c.response=l,o(c)}}catch(e){o(e)}},"function"==typeof n.config&&(d=n.config(d,n,t)||d)!==f&&(i=d.abort,d.abort=function(){p=!0,i.call(this)}),null==c?d.send():"function"==typeof n.serialize?d.send(n.serialize(c)):c instanceof e.FormData?d.send(c):d.send(JSON.stringify(c))}),jsonp:i(function(t,n,o,i){var a=n.callbackName||"_mithril_"+Math.round(1e16*Math.random())+"_"+r++,l=e.document.createElement("script");e[a]=function(t){delete e[a],l.parentNode.removeChild(l),o(t)},l.onerror=function(){delete e[a],l.parentNode.removeChild(l),i(new Error("JSONP request failed"))},l.src=t+(t.indexOf("?")<0?"?":"&")+encodeURIComponent(n.callbackKey||"callback")+"="+encodeURIComponent(a),e.document.documentElement.appendChild(l)})}}(window,s,d.redraw),g=d,m=function(){return c.apply(this,arguments)};m.m=c,m.trust=c.trust,m.fragment=c.fragment,m.mount=g.mount;var b=c,y=s,v=function(e){if(""===e||null==e)return{};"?"===e.charAt(0)&&(e=e.slice(1));for(var t=e.split("&"),n={},r={},o=0;o-1&&c.pop();for(var u=0;u1&&"/"===i[i.length-1]&&(i=i.slice(0,-1))):i="/",{path:i,params:t<0?{}:v(e.slice(t+1,r))}},x=function(e){var t=w(e),n=Object.keys(t.params),r=[],o=new RegExp("^"+t.path.replace(/:([^\/.-]+)(\.{3}|\.(?!\.)|-)?|[\\^$*+.()|\[\]{}]/g,function(e,t,n){return null==t?"\\"+e:(r.push({k:t,r:"..."===n}),"..."===n?"(.*)":"."===n?"([^/]+)\\.":"([^/]+)"+(n||""))})+"$");return function(e){for(var i=0;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var d="hidden",p="visible",f="exposing",_="hiding",h=function(e,t){return e[t]=1,e},g=["key","style","href","id","data-index","tabIndex","tabindex","oninit","oncreate","onupdate","onbeforeremove","onremove","onbeforeupdate"],m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.add,r=t.remove,o=r?r.reduce(h,{}):{},i=n?g.concat(n):g,a=i.filter(function(e){return!o[e]}).reduce(h,{});return Object.keys(e).reduce(function(t,n){return a[n]&&(t[n]=e[n]),t},{})},b=function(e){return"function"==typeof e?e():e},y=function(e){return{small:e.small,regular:e.regular,medium:e.medium,large:e.large,fab:e.fab}},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"regular";return y(e)[t]},w="undefined"!=typeof document,x=!w,k={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"},O=function(e){var t=e.element,n=e.selector,r=e.pseudoSelector,o=e.prop,i=e.equals,a=e.contains,l=n?t.querySelector(n):t;if(!l)return!1;var c=document.defaultView;if(c){if(void 0!==i)return i===c.getComputedStyle(l,r).getPropertyValue(o);if(void 0!==a)return-1!==c.getComputedStyle(l,r).getPropertyValue(o).indexOf(a)}return!1},j=function(e){var t=parseFloat(e)*(-1===e.indexOf("ms")?1e3:1);return isNaN(t)?0:t},S=!x&&"ontouchstart"in document.documentElement,P=S?["click","mouseup"]:["mouseup"],z=S?["touchstart","mousedown"]:["mousedown"],N=S?["touchmove","mousemove"]:["mousemove"],C=S?["touchend","mouseup"]:["mouseup"];if(w){var E=document.querySelector("html");E&&E.classList.add(S?"pe-touch":"pe-no-touch")}var I={},R=function(e,t,n){I[e]=I[e]||[],I[e].push(n?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.05,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w?window:{},r=!1;return function(){for(var o=arguments.length,i=new Array(o),a=0;a-1&&I[e].splice(n,1)}},F=function(e,t){I[e]&&I[e].forEach(function(e){return e(t)})};w&&(window.addEventListener("resize",function(e){return F("resize",e)}),window.addEventListener("scroll",function(e){return F("scroll",e)}),window.addEventListener("keydown",function(e){return F("keydown",e)}),P.forEach(function(e){return window.addEventListener(e,function(t){return F(e,t)})}));var D=function(e){var t=e.options,n=[],r=function(e){F(t.name,e)},o=function(e){var t=l(e);return n.indexOf(t)},i=function(e){var t=o(e);-1!==t&&(n.splice(t,1),r({id:e,name:"removeItem"}))},a=function(e,t){var r=o(e);-1!==r&&(n[r]=t)},l=function(e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:t.defaultId;t.queue?(n.shift(),d()):i(e)},f=function(e,t){var n=l(t);n&&(n.pause=e,n.unpause=!e,r({id:t,name:e?"pause":"unpause"}))},_=function(e,n,o){var i,a,l=b(e),s=new Promise(function(e){return i=e}),u=new Promise(function(e){return a=e});return c({},t,{instanceId:n,spawn:o,props:e,show:!t.queue,showPromise:s,hidePromise:u,didShow:function(){return l.didShow&&l.didShow(n),r({id:n,name:"didShow"}),i(n)},didHide:function(){return l.didHide&&l.didHide(n),r({id:n,name:"didHide"}),p(n),a(n)}})},h=function(){n.length=0,r({id:null,name:"removeAll"})};return{clear:h,count:function(){return n.length},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e.id||t.defaultId,i=t.queue&&n.length?n[0]:l(o);return i&&(i.hide=!0),r({id:o,name:"hide"}),i?i.hidePromise:Promise.resolve(o)},pause:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.defaultId;return f(!0,e)},remove:p,show:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.id||t.defaultId,c=o.spawn||t.defaultId,s=_(e,i,c);if(r({id:i,name:"show"}),t.queue)n.push(s),1===n.length&&d();else{var u=l(i);u?a(i,s):n.push(s)}return s.showPromise},unpause:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.defaultId;return f(!1,e)},render:function(e){var r=e.h,o=e.useState,i=e.useEffect,a=s(e,["h","useState","useEffect"]),l=u(o(),2)[1];i(function(){return R(t.name,l),function(){T(t.name,l)}},[]);var d=a.spawn||t.defaultId,p=n.filter(function(e){return e.show&&e.spawn===d});return t.htmlShowClass&&w&&document.documentElement&&document.documentElement.classList[p.length?"add":"remove"](t.htmlShowClass),p.length?r(t.holderSelector,{className:"container"===a.position?"pe-multiple--container":"pe-multiple--screen"},p.map(function(e){return r(t.instance,c({},b(a),{fromMultipleClear:h,spawnId:d,fromMultipleClassName:t.className,holderSelector:t.holderSelector,transitions:t.transitions,fromMultipleDidHide:e.didHide,fromMultipleDidShow:e.didShow,hide:e.hide,instanceId:e.instanceId,key:void 0!==e.key?e.key:e.keyId,pause:e.pause,show:e.show,unpause:e.unpause},b(e.props)))})):r(t.placeholder)}}};D.displayName="Multi";var A="show",L="hide",q="show-done",B="hide-done",H={isVisible:!1,isTransitioning:!1},M=function(e,t){switch(t){case A:return c({},e,{isTransitioning:!0,isVisible:!0});case L:return c({},e,{isTransitioning:!0});case q:return c({},e,{isTransitioning:!1,isVisible:!0});case B:return c({},e,{isTransitioning:!1,isVisible:!1});default:throw new Error("Unhandled action type: ".concat(t))}},W=function(e){return J(e,"show")},V=function(e){return J(e,"hide")},J=function(e,t){var n=e.el;return n?new Promise(function(r){var o=n.style,i=w?window.getComputedStyle(n):{},a=e.hasDuration&&void 0!==e.duration?1e3*e.duration:j(i.transitionDuration),l=e.hasDelay&&void 0!==e.delay?1e3*e.delay:j(i.transitionDelay),c=e.timingFunction||i.transitionTimingFunction;e.transitionClass&&n.classList.add(e.transitionClass);var s=function(){o.transitionDuration="0ms",o.transitionDelay="0ms",e.before&&"function"==typeof e.before&&e.before()},u=e.before&&"show"===t?s:e.before&&"hide"===t?s:null,d=function(){e.after&&"function"==typeof e.after&&e.after()},p=function(){!function(){o.transitionDuration=a+"ms",o.transitionDelay=l+"ms",c&&(o.transitionTimingFunction=c),e.showClass&&(e.showClassElement||n).classList["show"===t?"add":"remove"](e.showClass);e.transition&&e.transition()}(),setTimeout(function(){d&&d(),e.transitionClass&&(n.classList.remove(e.transitionClass),n.offsetHeight),r()},a+l)},f=function(){0===a?p():setTimeout(p,0)};u?(u(),n.offsetHeight,setTimeout(function(){f()},0)):f()}):Promise.resolve()},$=function(e){var t=e.dispatchTransitionState,n=e.isTransitioning,r=e.instanceId,o=e.isShow,i=e.props,a=e.domElements,l=e.beforeTransition,s=e.afterTransition,u=e.showClass,d=e.transitionClass;e.referrer;if(n)return Promise.resolve();t(o?A:L),l&&l();var p=o?i.showDuration:i.hideDuration,f=o?i.showDelay:i.hideDelay,_=o?i.showTimingFunction:i.hideTimingFunction,h=i.transitions,g=o?W:V,m=c({},i,{},a,{showClass:u,transitionClass:d,duration:p,delay:f,timingFunction:_}),b=c({},m,{},h?(o?h.show:h.hide)(m):void 0);return g(c({},b,{},{duration:void 0!==b.duration?b.duration:.24,hasDuration:void 0!==b.duration,delay:void 0!==b.delay?b.delay:0,hasDelay:void 0!==b.delay})).then(function(){var e=r;s&&s(),(o?i.fromMultipleDidShow:i.fromMultipleDidHide)?(o?i.fromMultipleDidShow:i.fromMultipleDidHide)(e):(o?i.didShow:i.didHide)&&(o?i.didShow:i.didHide)(e),t(o?q:B)})};function Q(){return(Q=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Z={component:"pe-shadow",bottomShadow:"pe-shadow__bottom",topShadow:"pe-shadow__top",animated:"pe-shadow--animated",depth_n:"pe-shadow--depth-",with_active_shadow:"pe-with-active-shadow"},G=function(e){return void 0!==e?"".concat(Z.depth_n).concat(Math.min(5,e)):1};function X(e){return(X="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(){return(K=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var re={component:"pe-text-button",super:"pe-button",row:"pe-button-row",content:"pe-button__content",label:"pe-button__label",textLabel:"pe-button__text-label",wash:"pe-button__wash",washColor:"pe-button__wash-color",dropdown:"pe-button__dropdown",border:"pe-button--border",contained:"pe-button--contained",disabled:"pe-button--disabled",dropdownClosed:"pe-button--dropdown-closed",dropdownOpen:"pe-button--dropdown-open",extraWide:"pe-button--extra-wide",hasDropdown:"pe-button--dropdown",highLabel:"pe-button--high-label",inactive:"pe-button--inactive",raised:"pe-button--raised",selected:"pe-button--selected",separatorAtStart:"pe-button--separator-start",hasHover:"pe-button--has-hover"},oe="pe-with-active-shadow",ie={grid_unit:4,grid_unit_component:8,increment:56,increment_large:64,grid_unit_menu:56,grid_unit_icon_button:48,unit_block_border_radius:4,unit_item_border_radius:4,unit_indent:72,unit_indent_large:80,unit_side_padding:16,unit_touch_height:48,unit_icon_size_small:16,unit_icon_size:24,unit_icon_size_medium:32,unit_icon_size_large:40,unit_screen_size_extra_large:1280,unit_screen_size_large:960,unit_screen_size_medium:480,unit_screen_size_small:320,animation_duration:".18s",animation_curve_slow_in_fast_out:"cubic-bezier(.4, 0, .2, 1)",animation_curve_slow_in_linear_out:"cubic-bezier(0, 0, .2, 1)",animation_curve_linear_in_fast_out:"cubic-bezier(.4, 0, 1, 1)",animation_curve_default:"ease-out",font_weight_light:300,font_weight_normal:400,font_weight_medium:500,font_weight_bold:700,font_size_title:20,line_height:1.5,color_primary:"33, 150, 243",color_primary_active:"30, 136, 229",color_primary_dark:"25, 118, 210",color_primary_faded:"100, 181, 249",color_primary_foreground:"255, 255, 255",color_light_background:"255, 255, 255",color_light_foreground:"0, 0, 0",color_dark_background:"34, 34, 34",color_dark_foreground:"255, 255, 255",blend_light_text_primary:.87,blend_light_text_regular:.73,blend_light_text_secondary:.54,blend_light_text_tertiary:.4,blend_light_text_disabled:.26,blend_light_border_medium:.24,blend_light_border_light:.11,blend_light_background_active:.14,blend_light_background_hover:.06,blend_light_background_hover_medium:.12,blend_light_background_disabled:.09,blend_light_overlay_background:.3,blend_dark_text_primary:1,blend_dark_text_regular:.87,blend_dark_text_secondary:.7,blend_dark_text_tertiary:.4,blend_dark_text_disabled:.26,blend_dark_border_medium:.22,blend_dark_border_light:.1,blend_dark_background_active:.14,blend_dark_background_hover:.08,blend_dark_background_hoverMedium:.12,blend_dark_background_disabled:.12,blend_dark_overlay_background:.3,breakpoint_for_phone_only:599,breakpoint_for_tablet_portrait_up:600,breakpoint_for_tablet_landscape_up:840,breakpoint_for_desktop_up:1280,breakpoint_for_big_desktop_up:1600,breakpoint_for_tv_up:1920,z_toolbar:100,z_menu:1e3,z_app_bar:2e3,z_drawer:3e3,z_notification:5e3,z_dialog:7e3};function ae(){return(ae=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var se,ue=function(){if(w){var e=document.createElement("fakeelement");for(var t in k)if(void 0!==e.style[t])return k[t]}}(),de=function(e){var t=e.e,n=e.id,r=e.el,o=e.props,i=e.classes;return new Promise(function(e){var a=document.createElement("div");a.setAttribute("class",i.mask),r.appendChild(a);var l=document.createElement("div");l.setAttribute("class",i.waves),a.appendChild(l);var c=r.getBoundingClientRect(),s=S&&t.touches?t.touches[0].pageX:t.clientX,u=S&&t.touches?t.touches[0].pageY:t.clientY,d=r.offsetWidth,p=r.offsetHeight,f=Math.sqrt(d*d+p*p),_=o.center?c.left+c.width/2:s,h=o.center?c.top+c.height/2:u,g=_-c.left-f/2,m=h-c.top-f/2,b=void 0!==o.startOpacity?o.startOpacity:.2,y=void 0!==o.opacityDecayVelocity?o.opacityDecayVelocity:.35,v=o.endOpacity||0,w=o.startScale||.1,k=o.endScale||2,O=o.duration?o.duration:1/y*.2,j=window.getComputedStyle(r).color,P=l.style;P.width=P.height=f+"px",P.top=m+"px",P.left=g+"px",P["animation-duration"]=P["-webkit-animation-duration"]=P["-moz-animation-duration"]=P["-o-animation-duration"]=O+"s",P.backgroundColor=j,P.opacity=b,P.animationName=n,P.animationTimingFunction=o.animationTimingFunction||ie.animation_curve_default;var z="@keyframes ".concat(n," {\n 0% {\n transform:scale(").concat(w,");\n opacity: ").concat(b,"\n }\n 100% {\n transform:scale(").concat(k,");\n opacity: ").concat(v,";\n }\n }");!function(e,t){if(!x){var n=window.document,r=n.createElement("style");r.setAttribute("id",e),r.appendChild(n.createTextNode(t)),n.head.appendChild(r)}}(n,z);l.addEventListener(ue,function t(c){!function(e){if(!x){var t=document.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}}(n),l.removeEventListener(ue,t,!1),o.persistent?(P.opacity=v,P.transform="scale("+k+")"):(l.classList.remove(i.wavesAnimating),a.removeChild(l),r.removeChild(a)),e(c)},!1),l.classList.add(i.wavesAnimating)})},pe={component:"pe-ripple",mask:"pe-ripple__mask",waves:"pe-ripple__waves",unconstrained:"pe-ripple--unconstrained",wavesAnimating:"pe-ripple__waves--animating"};function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var he=Function.prototype.call.bind(Function.prototype.call),ge=function(){return t.redraw()},me=function(e){var t=se,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=se,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&ge()},r]},ye=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=se;if(me(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",ge))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),ve={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},we=t||{},xe=we.trust;we.trust=function(e,n){return n?t(n,xe(e)):xe(e)},we.displayName="mithril",we.fragment=t.fragment;var ke=function(e,t){var n=function(e){var t=se;se=e.state;try{e.state.updates.forEach(he)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),se=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=se;se=n.state;try{return e(function(e){for(var t=1;t0)){l.start&&l.start(e);var t="ripple_animation_".concat((new Date).getTime());de({e:e,id:t,el:s,props:l,classes:pe}).then(function(e){l.end&&l.end(e),d.current--}),d.current++}};a(function(){d.current=0},[]),a(function(){if(p&&p.addEventListener)return P.forEach(function(e){return p.addEventListener(e,f,!1)}),function(){P.forEach(function(e){return p.removeEventListener(e,f,!1)})}},[p]);var _=ae({},m(l),r(function(e){return e&&!s&&u(e)}),l.testId&&{"data-test-id":l.testId},{className:[pe.component,l.unconstrained?pe.unconstrained:null,"dark"===l.tone?"pe-dark-tone":null,"light"===l.tone?"pe-light-tone":null,l.className||l[n.class]].join(" ")}),h=[l.before,l.after];return t(l.element||"div",_,h)},{h:we,a:ve,getRef:function(e){return{oncreate:function(t){return e(t.dom)}}},useRef:function(e){return o(be({current:e}),1)[0]},useState:function(e){var t=se;return be(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:ye});function Oe(){return(Oe=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}ke.displayName="Ripple";var Se={component:"pe-icon",avatar:"pe-icon--avatar",large:"pe-icon--large",medium:"pe-icon--medium",regular:"pe-icon--regular",small:"pe-icon--small"};function Pe(){return(Pe=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ce,Ee={component:"pe-svg"};function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Te=Function.prototype.call.bind(Function.prototype.call),Fe=function(){return t.redraw()},De=function(e){var t=Ce,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},Ae=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=Ce;if(De(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",Fe))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),Le={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},qe=t||{},Be=qe.trust;qe.trust=function(e,n){return n?t(n,Be(e)):Be(e)},qe.displayName="mithril",qe.fragment=t.fragment;var He,Me=function(e,t){var n=function(e){var t=Ce;Ce=e.state;try{e.state.updates.forEach(Te)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Ce=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Ce;Ce=n.state;try{return e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=Ce,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&Fe()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},getRef:function(e){return{oncreate:function(t){return e(t.dom)}}}});function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Je=Function.prototype.call.bind(Function.prototype.call),$e={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Qe=t||{},Ue=Qe.trust;Qe.trust=function(e,n){return n?t(n,Ue(e)):Ue(e)},Qe.displayName="mithril",Qe.fragment=t.fragment;var Ze,Ge=function(e,t){var n=function(e){var t=He;He=e.state;try{e.state.updates.forEach(Je)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),He=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=He;He=n.state;try{return e(function(e){for(var t=1;t0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=rt,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&ct()},r]},dt=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=rt;if(st(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",ct))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),pt={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},ft=t||{},_t=ft.trust;ft.trust=function(e,n){return n?t(n,_t(e)):_t(e)},ft.displayName="mithril",ft.fragment=t.fragment;var ht=function(e,t){var n=function(e){var t=rt;rt=e.state;try{e.state.updates.forEach(lt)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),rt=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=rt;rt=n.state;try{return e(function(e){for(var t=1;t')}}):null]);return n(s.element||"a",S,[s.before,N,s.after])},{h:ft,a:pt,getRef:function(e){return{oncreate:function(t){return e(t.dom)}}},useState:function(e){var t=rt;return ut(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:dt,useRef:function(e){return o(ut({current:e}),1)[0]},Ripple:ke,Shadow:ot,Icon:Ge});function gt(){return(gt=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function yt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:"regular";return kt[e]},jt="pe-button-row",St={horizontal:wt.actionsHorizontal,vertical:wt.actionsVertical,justified:wt.actionsJustified},Pt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"horizontal";return St[e]};function zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Ct=Function.prototype.call.bind(Function.prototype.call),Et=function(){return t.redraw()},It=function(e){var t=vt,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},Rt=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=vt;if(It(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",Et))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),Tt={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Ft=t||{},Dt=Ft.trust;Ft.trust=function(e,n){return n?t(n,Dt(e)):Dt(e)},Ft.displayName="mithril",Ft.fragment=t.fragment;var At=function(e,t){var n=function(e){var t=vt;vt=e.state;try{e.state.updates.forEach(Ct)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),vt=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=vt;vt=n.state;try{return e(function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ht,Mt={component:"pe-list-tile",content:"pe-list-tile__content",highSubtitle:"pe-list-tile__high-subtitle",primary:"pe-list-tile__primary",secondary:"pe-list-tile__secondary",subtitle:"pe-list-tile__subtitle",title:"pe-list-tile__title",contentFront:"pe-list-tile__content-front",compact:"pe-list-tile--compact",compactFront:"pe-list-tile--compact-front",disabled:"pe-list-tile--disabled",hasFront:"pe-list-tile--front",hasHighSubtitle:"pe-list-tile--high-subtitle",hasSubtitle:"pe-list-tile--subtitle",header:"pe-list-tile--header",hoverable:"pe-list-tile--hoverable",insetH:"pe-list-tile--inset-h",insetV:"pe-list-tile--inset-v",selectable:"pe-list-tile--selectable",selected:"pe-list-tile--selected",rounded:"pe-list-tile--rounded",highlight:"pe-list-tile--highlight",sticky:"pe-list-tile--sticky",navigation:"pe-list-tile--navigation"},Wt=function(e){var t=e.h,n=e.a,r=e.props,o=r.keyboardControl?null:r.url,i=r.element?r.element:o?"a":"div",a=[Mt.content,Mt.contentFront,r.compactFront?Mt.compactFront:null].join(" "),l=r.front||r.indent?t("div",qt({},{className:a}),r.front):null,c=!r.header&&r.url,s=qt({},m(r),r.events,{className:Mt.primary,style:null},c&&Lt({},n.tabindex,r[n.tabindex]||0),o),u=r.content?r.content:[l,t("div",{className:Mt.content,style:r.style},[r.title&&!r.content?t("div",qt({},{className:Mt.title}),r.title):null,r.subtitle?t("div",qt({},{className:Mt.subtitle}),r.subtitle):null,r.highSubtitle?t("div",qt({},{className:Mt.subtitle+" "+Mt.highSubtitle}),r.highSubtitle):null,r.subContent?t("div",qt({},{className:Mt.subContent}),r.subContent):null,r.children])];return t(i,s,u)},Vt=function(e){var t=e.h,n=e.a,r=e.Icon,o=e.props,i=void 0===o?{}:o,a=i.keyboardControl?null:i.url,l=i.element?i.element:a?"a":"div",c=i.url;return t(l,qt({},a,{className:Mt.secondary},i.events,m(i),c&&Lt({},n.tabindex,i[n.tabindex]||0)),t("div",{className:Mt.content},[i.icon?t(r,i.icon):null,i.content?i.content:null]))};function Jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Qt=Function.prototype.call.bind(Function.prototype.call),Ut={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Zt=t||{},Gt=Zt.trust;Zt.trust=function(e,n){return n?t(n,Gt(e)):Gt(e)},Zt.displayName="mithril",Zt.fragment=t.fragment;var Xt=function(e,t){var n=function(e){var t=Ht;Ht=e.state;try{e.state.updates.forEach(Qt)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Ht=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Ht;Ht=n.state;try{return e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=vt,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&Et()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:Rt,getRef:function(e){return{oncreate:function(t){return e(t.dom)}}}});Kt.displayName="CardMedia";var en=At(function(e){var t=e.h,n=e.a,r=mt(e,["h","a"]),o=Array.isArray(r.content)?r.content.reduce(function(e,t){return"media"===Object.keys(t)[0]||e},!1):r.media||!1,i=gt({},m(r),r.testId&&{"data-test-id":r.testId},{className:[wt.primary,r.tight?wt.primaryTight:null,o?wt.primaryHasMedia:null,r.className||r[n.class]].join(" ")},r.events),a=r.dispatcher,l={title:function(e){return e.attrs||e.props?e||e.props:t("div",{className:wt.title,style:e.style},[e.title,e.subtitle?t("div",{className:wt.subtitle},e.subtitle):null])},media:function(e){return t("div",{className:wt.primaryMedia,style:e.style},a({media:e}))},actions:function(e){return a({actions:e})}},c=Array.isArray(r.content)?r.content.map(function(e){var t=Object.keys(e)[0],n=e[t];return l[t]?l[t](n):e}):[r.title?l.title({title:r.title,subtitle:r.subtitle}):null,r.media?l.media(r.media):null,r.actions?l.actions(r.actions):null,r.content];return t(r.element||"div",i,c)},{h:Ft,a:Tt});en.displayName="CardPrimary";var tn=At(function(e){var t=e.h,n=e.a,r=e.CardActions,o=e.CardMedia,i=e.CardPrimary,a=e.Icon,l=e.ListTile,c=e.Shadow,s=mt(e,["h","a","CardActions","CardMedia","CardPrimary","Icon","ListTile","Shadow"]),u=gt({},m(s),s.testId&&{"data-test-id":s.testId},{className:[wt.component,"dark"===s.tone?"pe-dark-tone":null,"light"===s.tone?"pe-light-tone":null,s.className||s[n.class]].join(" ")},s.url,s.events),d=Array.isArray(s.content)?s.content.map(function e(c){var s=Object.keys(c)[0],u=gt({},c[s],{dispatcher:e,key:void 0});switch(s){case"actions":return t(r,u);case"header":return function(e){var t=e.props,n=e.h,r=e.a,o=e.Icon;return n(e.ListTile,gt({},t,{className:[wt.header,t.className||t[r.class]].join(" ")},t.icon?{front:n(o,t.icon)}:null))}({props:u,h:t,a:n,Icon:a,ListTile:l});case"media":return t(o,u);case"overlay":return function(e){var t=e.dispatcher,n=e.props,r=e.h,o=e.a,i=n.element||"div",a=n.content.map(t);return r("div",{style:n.style,className:[wt.overlay,n.sheet?wt.overlaySheet:null,"light"===n.tone?null:"pe-dark-tone","light"===n.tone?"pe-light-tone":null].join(" ")},[r(i,{className:[wt.overlayContent,n.className||n[o.class]].join(" ")},a),r("div",{className:wt.mediaDimmer})])}({dispatcher:e,props:u,h:t,a:n});case"primary":return t(i,u);case"text":return function(e){var t=e.props,n=e.h,r=e.a;return n(t.element||"div",gt({},m(t),{className:[wt.text,t.tight?wt.textTight:null,t.className||t[r.class]].join(" ")},t.events),t.content)}({props:u,h:t,a:n});case"any":return function(e){var t=e.props,n=e.h,r=e.a;return n(t.element||"div",gt({},m(t),{className:[wt.any,t.tight?wt.textTight:null,t.className||t[r.class]].join(" ")}),t.content)}({props:u,h:t,a:n});default:throw'Content type "'.concat(s,'" does not exist')}}):[s.content],p=[s.before].concat(yt(d),[s.after]),f=void 0!==s.shadowDepth?s.shadowDepth:s.z,_=[t(c,{shadowDepth:void 0!==f?f:1,animated:!0}),t("div",{className:wt.content},p),s.children],h=s.element||s.url?"a":"div";return t(h,u,_)},{h:Ft,a:Tt,CardActions:Yt,CardMedia:Kt,CardPrimary:en,Icon:Ge,ListTile:Xt,Shadow:ot});function nn(){return(nn=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}tn.displayName="Card";var on="pe-checkbox-control",an={iconOff:'',iconOn:''};function ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cn(){return(cn=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var dn,pn={component:"pe-control",formLabel:"pe-control__form-label",input:"pe-control__input",label:"pe-control__label",disabled:"pe-control--disabled",inactive:"pe-control--inactive",large:"pe-control--large",medium:"pe-control--medium",off:"pe-control--off",on:"pe-control--on",regular:"pe-control--regular",small:"pe-control--small",box:"pe-control__box",button:"pe-control__button",buttonOff:"pe-control__button--off",buttonOn:"pe-control__button--on"},fn=function(e){var t=e.h,n=e.a,r=e.useState,o=e.useEffect,i=e.ViewControl,a=sn(e,["h","a","useState","useEffect","ViewControl"]);delete a.key;var l=un(r(void 0!==a.defaultChecked?a.defaultChecked:a.checked||!1),2),c=l[0],s=l[1],u=un(r(a.selectable),2),d=u[0],p=u[1],f=void 0!==a.checked?a.checked:c,_=a.disabled||!d;o(function(){var e=void 0!==a.selectable&&a.selectable(f);e!==d&&p(e)},[a.selectable,f]);var h=function(e,t){a.onChange&&a.onChange({event:e,checked:t,value:a.value})},g=a.events&&a.events[n.onclick],b=a.events&&a.events[n.onkeydown]?a.events[n.onkeydown]:function(e){"Enter"!==e.key&&32!==e.keyCode||(e.preventDefault(),g?g(e):function(e){var t=!f;s(t),h(e,t)}(e))},y=cn({},m(a,{remove:["style"]}),a.testId&&{"data-test-id":a.testId},{className:[pn.component,a.instanceClass,f?pn.on:pn.off,a.disabled?pn.disabled:null,_?pn.inactive:null,v(pn,a.size),"dark"===a.tone?"pe-dark-tone":null,"light"===a.tone?"pe-light-tone":null,a.className||a[n.class]].join(" ")}),w=t("label",cn({},{className:pn.formLabel},g&&ln({},n.onclick,function(e){return e.preventDefault(),g(e)})),[a.before,t(i,cn({},a,{inactive:_,checked:f,events:ln({},n.onkeydown,b)})),a.label?t(".".concat(pn.label),a.label):null,t("input",cn({},a.events,{name:a.name,type:a.type,value:a.value,checked:f},a.disabled||_?ln({},n.readonly,"readonly"):ln({},n.onchange,function(e){var t=e.currentTarget.checked;"radio"===a.type||s(t),h(e,t)}))),a.after]);return t(a.element||"div",y,w)},_n=[{iconType:"iconOn",className:pn.buttonOn},{iconType:"iconOff",className:pn.buttonOff}],hn=function(e){var t=e.h,n=e.Icon,r=e.IconButton,o=sn(e,["h","Icon","IconButton"]),i=o.element||".".concat(pn.box),a=t(r,cn({},{element:"div",className:pn.button,style:o.style,content:_n.map(function(e){return t(n,function(e,t,n,r){return cn({},{className:r},n[t]?n[t]:{svg:{content:e.trust(n.icons[t])}},n.icon,n.size?{size:n.size}:null)}(t,e.iconType,o,e.className))}),ripple:{center:!0},disabled:o.disabled,events:o.events,inactive:o.inactive},o.iconButton));return t(i,null,a)};function gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var bn=Function.prototype.call.bind(Function.prototype.call),yn=function(){return t.redraw()},vn=function(e){var t=dn,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},wn=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=dn;if(vn(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",yn))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),xn={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},kn=t||{},On=kn.trust;kn.trust=function(e,n){return n?t(n,On(e)):On(e)},kn.displayName="mithril",kn.fragment=t.fragment;var jn=function(e,t){var n=function(e){var t=dn;dn=e.state;try{e.state.updates.forEach(bn)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),dn=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=dn;dn=n.state;try{return e(function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var zn,Nn="pe-button pe-icon-button",Cn="pe-icon-button__content",En="pe-icon-button__label",In="pe-icon-button--compact";function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Fn=Function.prototype.call.bind(Function.prototype.call),Dn={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},An=t||{},Ln=An.trust;An.trust=function(e,n){return n?t(n,Ln(e)):Ln(e)},An.displayName="mithril",An.fragment=t.fragment;var qn=function(e,t){var n=function(e){var t=zn;zn=e.state;try{e.state.updates.forEach(Fn)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),zn=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=zn;zn=n.state;try{return e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=dn,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&yn()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:wn,ViewControl:Bn});Hn.displayName="SelectionControl";var Mn,Wn=jn(function(e){var t=e.h,n=e.SelectionControl,r=rn(e,["h","SelectionControl"]);return t(n,nn({},r,{icons:an,selectable:r.selectable||function(){return!0},instanceClass:on,type:"checkbox"}))},{h:kn,a:xn,SelectionControl:Hn});function Vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}Wn.displayName="Checkbox";var $n=Function.prototype.call.bind(Function.prototype.call),Qn=function(){return t.redraw()},Un=function(e){var t=Mn,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},Zn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=Mn,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&Qn()},r]},Gn=function(e){var t=Mn;return Zn(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},Xn=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=Mn;if(Un(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",Qn))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),Yn={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Kn=t||{},er=Kn.trust;Kn.trust=function(e,n){return n?t(n,er(e)):er(e)},Kn.displayName="mithril",Kn.fragment=t.fragment;var tr=function(e,t){var n=function(e){var t=Mn;Mn=e.state;try{e.state.updates.forEach($n)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Mn=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Mn;Mn=n.state;try{return e(function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function or(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ir={component:"pe-dialog",placeholder:"pe-dialog__placeholder",holder:"pe-dialog__holder",content:"pe-dialog__content",backdrop:"pe-dialog__backdrop",touch:"pe-dialog__touch",fullScreen:"pe-dialog--full-screen",modal:"pe-dialog--modal",open:"pe-dialog--open",visible:"pe-dialog--visible",showBackdrop:"pe-dialog--backdrop",transition:"pe-dialog--transition",menuContent:"pe-menu__content"},ar=".".concat(ir.component);function lr(){return(lr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ur,dr={component:"pe-dialog-pane",actions:"pe-dialog-pane__actions",body:"pe-dialog-pane__body",content:"pe-dialog-pane__content",footer:"pe-dialog-pane__footer",header:"pe-dialog-pane__header",title:"pe-dialog-pane__title",withHeader:"pe-dialog-pane--header",withFooter:"pe-dialog-pane--footer",headerWithTitle:"pe-dialog-pane__header--title",footerWithButtons:"pe-dialog-pane__footer--buttons",footerHigh:"pe-dialog-pane__footer--high",borderBottom:"pe-dialog-pane--border-bottom",borderTop:"pe-dialog-pane--border-top",fullBleed:"pe-dialog-pane--body-full-bleed"},pr={component:"pe-text-button",super:"pe-button",row:"pe-button-row",content:"pe-button__content",label:"pe-button__label",textLabel:"pe-button__text-label",wash:"pe-button__wash",washColor:"pe-button__wash-color",dropdown:"pe-button__dropdown",border:"pe-button--border",contained:"pe-button--contained",disabled:"pe-button--disabled",dropdownClosed:"pe-button--dropdown-closed",dropdownOpen:"pe-button--dropdown-open",extraWide:"pe-button--extra-wide",hasDropdown:"pe-button--dropdown",highLabel:"pe-button--high-label",inactive:"pe-button--inactive",raised:"pe-button--raised",selected:"pe-button--selected",separatorAtStart:"pe-button--separator-start",hasHover:"pe-button--has-hover"};function fr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var hr=Function.prototype.call.bind(Function.prototype.call),gr=function(){return t.redraw()},mr=function(e){var t=ur,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},br=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=ur,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&gr()},r]},yr=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=ur;if(mr(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",gr))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),vr={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},wr=t||{},xr=wr.trust;wr.trust=function(e,n){return n?t(n,xr(e)):xr(e)},wr.displayName="mithril",wr.fragment=t.fragment;var kr=function(e,t){var n=function(e){var t=ur;ur=e.state;try{e.state.updates.forEach(hr)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),ur=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=ur;ur=n.state;try{return e(function(e){for(var t=1;t0),x(e.scrollHeight-(e.scrollTop+e.getBoundingClientRect().height)>0))};o(function(){u&&(k.current=u.querySelector(".".concat(dr.header)),O.current=u.querySelector(".".concat(dr.footer)),j.current=u.querySelector(".".concat(dr.body)))},[u]),o(function(){if(j.current){var e=function(){P()};return R("resize",e),function(){T("resize",e)}}},[j.current]),o(function(){P()},[j.current,f]);var z,N,C,E=void 0!==c.header||void 0!==c.title,I=void 0!==c.footer||void 0!==c.footerButtons,F=c.borders||"overflow",D="always"===F||E&&"overflow"===F&&g,A="always"===F||I&&"overflow"===F&&w,L=lr({},m(c,{remove:["style"]}),c.testId&&{"data-test-id":c.testId},a(function(e){return e&&!u&&(d(e),c.ref&&c.ref(e))}),{className:[dr.component,c.fullBleed?dr.fullBleed:null,D?dr.borderTop:null,A?dr.borderBottom:null,E?dr.withHeader:null,I?dr.withFooter:null,"dark"===c.tone?"pe-dark-tone":null,"light"===c.tone?"pe-light-tone":null,c.className||c[n.class]].join(" ")},c.formOptions),q=t("div",{className:[dr.content,c.menu?dr.menuContent:null].join(" "),style:c.style},[c.header?c.header:c.title?t("div",{className:[dr.header,dr.headerWithTitle].join(" ")},t("div",{className:dr.title},c.title)):null,t("div",(z={className:dr.body},N=n.onscroll,C=function(){_(!0),clearTimeout(S.current),S.current=setTimeout(function(){_(!1)},50)},N in z?Object.defineProperty(z,N,{value:C,enumerable:!0,configurable:!0,writable:!0}):z[N]=C,z),c.content||c.body||c.menu),c.footer?t("div",{className:dr.footer},c.footer):c.footerButtons?t("div",{className:[dr.footer,dr.footerWithButtons,pr.row].join(" ")},t("div",{className:dr.actions},c.footerButtons)):null]),B=[c.before,q,c.after];return t(c.element||"form",L,B)},{h:wr,a:vr,useState:function(e){var t=ur;return br(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:yr,useRef:function(e){return o(br({current:e}),1)[0]},getRef:function(e){return{oncreate:function(t){return e(t.dom)}}}});kr.displayName="DialogPane";var Or="pe-dialog__placeholder",jr="pe-dialog__holder",Sr="pe-dialog--open",Pr=tr(function(e){var t=e.h,n=e.a,r=e.useState,o=e.useEffect,i=e.useRef,a=e.getRef,l=e.useReducer,c=e.Pane,s=e.Shadow,u=e.openDialogsSelector,d=rr(e,["h","a","useState","useEffect","useRef","getRef","useReducer","Pane","Shadow","openDialogsSelector"]),p=or(l(M,H),2),f=p[0],_=p[1],h=or(r(),2),g=h[0],b=h[1],y=i(),v=i(),w=i(),x=(f||H).isVisible,k=(f||H).isTransitioning,j=function(e){var t=e.isShow,n=e.hideDelay,r=void 0===n?d.hideDelay:n,o=e.referrer;return{transitionState:f,dispatchTransitionState:_,instanceId:d.instanceId,props:nr({},d,{hideDelay:r}),isShow:t,domElements:{el:g,contentEl:w.current,backdropEl:y.current},showClass:ir.visible,transitionClass:ir.transition,referrer:o}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.hideDelay,n=e.referrer;return $(j({isShow:!1,hideDelay:t,referrer:n}))},P=function(){return d.modal||g&&g.classList.contains(ir.modal)||O({element:g,pseudoSelector:":before",prop:"content",contains:'"'.concat("modal",'"')})};o(function(){g&&(y.current=g.querySelector(".".concat(ir.backdrop)),v.current=g.querySelector(".".concat(ir.touch)),w.current=g.querySelector(".".concat(ir.content)))},[g]),o(function(){if(g&&!d.inactive){var e=function e(t){if(!(d.disableEscape&&(d.fullScreen||g&&g.classList.contains(ir.fullScreen)||O({element:g,pseudoSelector:":before",prop:"content",contains:'"'.concat("full_screen",'"')})||P())||"Escape"!==t.key&&"Esc"!==t.key)){var n=document.querySelectorAll(u);n[n.length-1]===g&&(S(),T("keydown",e))}};return R("keydown",e),function(){T("keydown",e)}}},[g,d.inactive]),o(function(){g&&!k&&(d.hide?x&&S():d.show&&(x||$(j({isShow:!0}))))},[g,k,x,d.hide,d.show]);var z,N,C,E=nr({},m(d,{remove:["style"]}),a(function(e){return e&&!g&&(b(e),d.ref&&d.ref(e))}),(z={className:[d.parentClassName||ir.component,d.fromMultipleClassName,d.fullScreen?ir.fullScreen:null,d.modal?ir.modal:null,d.backdrop?ir.showBackdrop:null,"dark"===d.tone?"pe-dark-tone":null,"light"===d.tone?"pe-light-tone":null,d.className||d[n.class]].join(" "),"data-spawn-id":d.spawnId,"data-instance-id":d.instanceId},N=n.onclick,C=function(e){e.target!==g&&e.target!==y.current&&e.target!==v.current||P()||S()},N in z?Object.defineProperty(z,N,{value:C,enumerable:!0,configurable:!0,writable:!0}):z[N]=C,z)),I=d.panesOptions&&d.panesOptions.length?t(c,d.panesOptions[0]):d.panes&&d.panes.length?d.panes[0]:function(e){var t=e.h,n=e.Pane,r=e.props;return t(n,{body:r.content||r.body||r.menu||r.children,element:r.element,borders:r.borders,className:r.className,footer:r.footer,footerButtons:r.footerButtons,formOptions:r.formOptions,fullBleed:r.fullBleed,header:r.header,style:r.style,title:r.title})}({h:t,Pane:c,props:d}),F=d.shadowDepth,D=[t("div",{className:ir.backdrop}),t("div",{className:ir.touch}),t("div",{className:[ir.content,d.menu?ir.menuContent:null].join(" ")},[d.fullScreen?null:t(s,{shadowDepth:void 0!==F?F:3,animated:!0}),d.before,I,d.after])];return t("div",E,D)},{h:Kn,a:Yn,useState:Gn,useEffect:Xn,useRef:function(e){return o(Zn({current:e}),1)[0]},getRef:function(e){return{oncreate:function(t){return e(t.dom)}}},useReducer:function(e,t,n){var r,i,a,l,c=Mn,s=!c.setup&&n?n(t):t;return r=o(Zn(s),3),i=r[0],a=r[1],l=r[2],[i,function(t){var n=c.states[l];return a(e(n,t))}]},Shadow:ot,Pane:kr,openDialogsSelector:ar});Pr.displayName="DialogInstance";var zr=D({options:{name:"dialog",htmlShowClass:Sr,defaultId:"default_dialog",holderSelector:"div.".concat(jr),instance:Pr,placeholder:"span.".concat(Or)}}),Nr=tr(zr.render,{h:Kn,useState:Gn,useEffect:Xn});function Cr(){return(Cr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Object.getOwnPropertyNames(zr).filter(function(e){return"render"!==e}).forEach(function(e){return Nr[e]=zr[e]}),Nr.displayName="Dialog";var Ir,Rr={component:"pe-fab",content:"pe-fab__content",mini:"pe-fab--mini"};function Tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Dr=Function.prototype.call.bind(Function.prototype.call),Ar={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Lr=t||{},qr=Lr.trust;Lr.trust=function(e,n){return n?t(n,qr(e)):qr(e)},Lr.displayName="mithril",Lr.fragment=t.fragment;var Br=function(e,t){var n=function(e){var t=Ir;Ir=e.state;try{e.state.updates.forEach(Dr)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Ir=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Ir;Ir=n.state;try{return e(function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Jr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Br.displayName="FAB";var $r,Qr={component:"pe-spinner",animation:"pe-spinner__animation",placeholder:"pe-spinner__placeholder",animated:"pe-spinner--animated",fab:"pe-spinner--fab",large:"pe-spinner--large",medium:"pe-spinner--medium",permanent:"pe-spinner--permanent",raised:"pe-spinner--raised",regular:"pe-spinner--regular",singleColor:"pe-spinner--single-color",small:"pe-spinner--small",visible:"pe-spinner--visible"},Ur=function(e){return $(function(e){for(var t=1;t0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},to=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=$r,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&Kr()},r]},no=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=$r;if(eo(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",Kr))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),ro={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},oo=t||{},io=oo.trust;oo.trust=function(e,n){return n?t(n,io(e)):io(e)},oo.displayName="mithril",oo.fragment=t.fragment;var ao=function(e,t){var n=function(e){var t=$r;$r=e.state;try{e.state.updates.forEach(Yr)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),$r=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=$r;$r=n.state;try{return e(function(e){for(var t=1;t0&&y.push(t(l,{shadowDepth:c.shadowDepth})),t("div",b,y)},{h:oo,a:ro,useReducer:function(e,t,n){var r,i,a,l,c=$r,s=!c.setup&&n?n(t):t;return r=o(to(s),3),i=r[0],a=r[1],l=r[2],[i,function(t){var n=c.states[l];return a(e(n,t))}]},useState:function(e){var t=$r;return to(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:no,getRef:function(e){return{oncreate:function(t){return e(t.dom)}}},Shadow:ot});function lo(){return(lo=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var _o,ho={component:"pe-md-spinner",animation:"pe-md-spinner__animation",circle:"pe-md-spinner__circle",circleClipper:"pe-md-spinner__circle-clipper",circleClipperLeft:"pe-md-spinner__circle-clipper-left",circleClipperRight:"pe-md-spinner__circle-clipper-right",gapPatch:"pe-md-spinner__gap-patch",layer:"pe-md-spinner__layer",layerN:"pe-md-spinner__layer-"};function go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var bo=Function.prototype.call.bind(Function.prototype.call),yo=function(){return t.redraw()},vo=function(e){var t=_o,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},wo=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=_o;if(vo(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",yo))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),xo=t||{},ko=xo.trust;xo.trust=function(e,n){return n?t(n,ko(e)):ko(e)},xo.displayName="mithril",xo.fragment=t.fragment;var Oo=function(e,t){var n=function(e){var t=_o;_o=e.state;try{e.state.updates.forEach(bo)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),_o=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=_o;_o=n.state;try{return e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=_o,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&yo()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:wo});No.displayName="MaterialDesignSpinnerToggle";var Co,Eo={view:function(e){return xo(No,function(e){for(var t=1;t0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},Ao=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=Co,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&Fo()},r]},Lo=function(e){var t=Co;return Ao(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},qo=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=Co;if(Do(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",Fo))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),Bo={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Ho=t||{},Mo=Ho.trust;Ho.trust=function(e,n){return n?t(n,Mo(e)):Mo(e)},Ho.displayName="mithril",Ho.fragment=t.fragment;var Wo=function(e,t){var n=function(e){var t=Co;Co=e.state;try{e.state.updates.forEach(To)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Co=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Co;Co=n.state;try{return e(function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Qo={component:"pe-notification",action:"pe-notification__action",content:"pe-notification__content",holder:"pe-notification__holder",placeholder:"pe-notification__placeholder",title:"pe-notification__title",hasContainer:"pe-notification--container",horizontal:"pe-notification--horizontal",multilineTitle:"pe-notification__title--multi-line",vertical:"pe-notification--vertical",visible:"pe-notification--visible"},Uo=function(e){var t=e.h,n=e.a,r=e.useState,o=e.useEffect,i=e.useRef,a=e.getRef,l=e.useReducer,c=Jo(e,["h","a","useState","useEffect","useRef","getRef","useReducer"]),s=$o(l(M,H),2),u=s[0],d=s[1],p=$o(r(),2),f=p[0],_=p[1],h=$o(r(!1),2),g=h[0],b=h[1],y=i(),v=i(),k=i(),O=(u||H).isVisible,j=(u||H).isTransitioning,S=(u||H).isHiding,P=function(e){var t=e.isShow,n=e.referrer;return{dispatchTransitionState:d,instanceId:c.instanceId,props:c,isShow:t,beforeTransition:N,afterTransition:t?function(){var e=c.timeout;if(0===e);else{var t=void 0!==e?e:3;k.current.start(function(){return z()},t)}}:null,domElements:{el:f,containerEl:y.current},showClass:Qo.visible,referrer:n}},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.referrer;return $(P({isShow:!1,referrer:t}))},N=function(){k.current&&k.current.stop()};o(function(){return function(){N()}},[]),o(function(){k.current=new uo},[]),o(function(){var e;f&&(w&&(y.current=document.querySelector(c.containerSelector||c.holderSelector),y.current||console.error("No container element found"),c.containerSelector&&y.current&&y.current.classList.add(Qo.hasContainer)),v.current=f.querySelector(".".concat(Qo.title)),v.current&&(e=v.current,x||e.getBoundingClientRect().height>parseInt(window.getComputedStyle(e).lineHeight,10)+parseInt(window.getComputedStyle(e).paddingTop,10)+parseInt(window.getComputedStyle(e).paddingBottom,10)&&e.classList.add(Qo.multilineTitle)))},[f]),o(function(){!f||j||S||(c.hide?O&&z():c.show&&(O||$(P({isShow:!0}))))},[f,j,O,S,c.hide,c.show]),o(function(){!f||j||S||(c.unpause?g&&(b(!1),k.current&&k.current.resume()):c.pause&&(g||(b(!0),k.current&&k.current.pause())))},[f,j,S,c.pause,c.unpause]);var C,E,I,R=Vo({},m(c,{remove:["style"]}),a(function(e){return e&&!f&&(_(e),c.ref&&c.ref(e))}),c.testId&&{"data-test-id":c.testId},(C={className:[Qo.component,c.fromMultipleClassName,"light"===c.tone?null:"pe-dark-tone",c.containerSelector?Qo.hasContainer:null,"vertical"===c.layout?Qo.vertical:Qo.horizontal,"dark"===c.tone?"pe-dark-tone":null,"light"===c.tone?"pe-light-tone":null,c.className||c[n.class]].join(" ")},E=n.onclick,I=function(e){return e.preventDefault()},E in C?Object.defineProperty(C,E,{value:I,enumerable:!0,configurable:!0,writable:!0}):C[E]=I,C)),T=t("div",{className:Qo.content,style:c.style},c.content||[c.title?t("div",{className:Qo.title},c.title):null,c.action?t("div",{className:Qo.action},c.action):null]),F=[c.before,T,c.after];return t(c.element||"div",R,F)},Zo={component:"pe-notification",action:"pe-notification__action",content:"pe-notification__content",holder:"pe-notification__holder",placeholder:"pe-notification__placeholder",title:"pe-notification__title",hasContainer:"pe-notification--container",horizontal:"pe-notification--horizontal",multilineTitle:"pe-notification__title--multi-line",vertical:"pe-notification--vertical",visible:"pe-notification--visible"},Go=Wo(Uo,{h:Ho,a:Bo,useState:Lo,useEffect:qo,useRef:function(e){return o(Ao({current:e}),1)[0]},getRef:function(e){return{oncreate:function(t){return e(t.dom)}}},useReducer:function(e,t,n){var r,i,a,l,c=Co,s=!c.setup&&n?n(t):t;return r=o(Ao(s),3),i=r[0],a=r[1],l=r[2],[i,function(t){var n=c.states[l];return a(e(n,t))}]}});Go.displayName="NotificationInstance";var Xo=D({options:{name:"notification",className:Zo.component,htmlShowClass:Zo.open,defaultId:"default_notification",holderSelector:".".concat(Zo.holder),instance:Go,placeholder:"span.".concat(Zo.placeholder),queue:!0}}),Yo=Wo(Xo.render,{h:Ho,useState:Lo,useEffect:qo});function Ko(){return(Ko=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Object.getOwnPropertyNames(Xo).filter(function(e){return"render"!==e}).forEach(function(e){return Yo[e]=Xo[e]}),Yo.displayName="Notification";var ti,ni="pe-radio-control",ri={iconOff:'',iconOn:''};function oi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var ai=Function.prototype.call.bind(Function.prototype.call),li=function(){return t.redraw()},ci=function(e){var t=ti,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},si=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=ti;if(ci(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",li))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),ui={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},di=t||{},pi=di.trust;di.trust=function(e,n){return n?t(n,pi(e)):pi(e)},di.displayName="mithril",di.fragment=t.fragment;var fi=function(e,t){var n=function(e){var t=ti;ti=e.state;try{e.state.updates.forEach(ai)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),ti=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=ti;ti=n.state;try{return e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=ti,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&li()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:si,ViewControl:_i});hi.displayName="SelectionControl";var gi=fi(function(e){var t=e.h,n=e.SelectionControl,r=ei(e,["h","SelectionControl"]);return t(n,Ko({},r,{icons:ri,selectable:r.selectable||function(e){return!e},instanceClass:ni,type:"radio"}))},{h:di,a:ui,SelectionControl:hi});function mi(){return(mi=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}gi.displayName="RadioButton";var vi,wi={component:"pe-radio-group"};function xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Oi=Function.prototype.call.bind(Function.prototype.call),ji=function(){return t.redraw()},Si=function(e){var t=vi,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},Pi=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=vi;if(Si(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",ji))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),zi={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Ni=t||{},Ci=Ni.trust;Ni.trust=function(e,n){return n?t(n,Ci(e)):Ci(e)},Ni.displayName="mithril",Ni.fragment=t.fragment;var Ei=function(e,t){var n=function(e){var t=vi;vi=e.state;try{e.state.updates.forEach(Oi)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),vi=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=vi;vi=n.state;try{return e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=vi,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&ji()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:Pi,RadioButton:gi});function Ii(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ri(){return(Ri=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ai(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Ei.displayName="RadioGroup";var Li,qi={component:"pe-textfield",counter:"pe-textfield__counter",error:"pe-textfield__error",errorPlaceholder:"pe-textfield__error-placeholder",focusHelp:"pe-textfield__help-focus",help:"pe-textfield__help",input:"pe-textfield__input",inputArea:"pe-textfield__input-area",label:"pe-textfield__label",optionalIndicator:"pe-textfield__optional-indicator",requiredIndicator:"pe-textfield__required-indicator",hasCounter:"pe-textfield--counter",hasFloatingLabel:"pe-textfield--floating-label",hasFullWidth:"pe-textfield--full-width",hideClear:"pe-textfield--hide-clear",hideSpinner:"pe-textfield--hide-spinner",hideValidation:"pe-textfield--hide-validation",isDense:"pe-textfield--dense",isRequired:"pe-textfield--required",stateDirty:"pe-textfield--dirty",stateDisabled:"pe-textfield--disabled",stateFocused:"pe-textfield--focused",stateInvalid:"pe-textfield--invalid",stateReadonly:"pe-textfield--readonly"},Bi={invalid:!1,message:void 0},Hi=function(e,t){return e.ignoreEvents&&-1!==e.ignoreEvents.indexOf(t)};function Mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Vi=Function.prototype.call.bind(Function.prototype.call),Ji=function(){return t.redraw()},$i=function(e){var t=Li,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},Qi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=Li,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&Ji()},r]},Ui=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=Li;if($i(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",Ji))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),Zi={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Gi=t||{},Xi=Gi.trust;Gi.trust=function(e,n){return n?t(n,Xi(e)):Xi(e)},Gi.displayName="mithril",Gi.fragment=t.fragment;var Yi=function(e,t){var n=function(e){var t=Li;Li=e.state;try{e.state.updates.forEach(Vi)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),Li=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=Li;Li=n.state;try{return e(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.focus,r=e.value;y.current&&(void 0!==r&&(y.current.value=r),void 0!==n&&(k.current=n,n?y.current.focus():y.current.blur()),"input"===t&&(l.validateOnInput||l.counter)&&(O.current=y.current.value!==c),"input"!==t&&(O.current=y.current.value!==c),"onblur"===t&&(O.current=!0),x.current=""!==y.current.value,C(),E(),v.current!==y.current.value&&b(y.current.value))},N=function(){var e=Bi;return O.current&&f&&0===y.current.value.length&&l.validateResetOnClear&&(O.current=!1,_(!1),j.current=void 0),l.counter&&(e={invalid:y.current.value.length>l.counter,message:l.error}),!e.invalid&&y.current.checkValidity&&(e={invalid:!y.current.checkValidity(),message:l.error}),!e.invalid&&l.validate&&(e=function(){if(!y.current)return Bi;var e=l.validate(y.current.value);return{invalid:e&&!e.valid,message:e&&e.error}}()),e},C=function(){var e=void 0!==l.valid?{invalid:!l.valid,message:l.error}:O.current||l.validateAtStart?N():Bi,t=f;j.current=e.message,e.invalid!==t&&_(e.invalid),e.invalid||(j.current=void 0)},E=function(){if(l.onChange){var e=N(),t={focus:k.current,dirty:x.current,invalid:e.invalid,error:e.error,value:y.current.value};JSON.stringify(t)!==JSON.stringify(w.current)&&(l.onChange(Fi({},t,{el:y.current,setInputState:function(e){var t=void 0!==e.value&&e.value!==y.current.value,n=void 0!==e.focus&&e.focus!==k.current;(t||n)&&z(e)}})),w.current=t)}};o(function(){x.current=""!==c,k.current=!1,O.current=!1,j.current=l.error},[]),o(function(){u&&(y.current=u.querySelector(S),y.current.value=c,z(),C(),E())},[u]),o(function(){if(y.current){var e=void 0!==l.value&&null!==l.value?l.value:y.current?y.current.value:v.current,t=null==e?"":e.toString();y.current&&v.current!==t&&(y.current.value=t,v.current=t,z({type:"input"}))}},[y.current,l.value]),o(function(){y.current&&(C(),E())},[l,y.current&&y.current.value]);var I=Ri({},m(l),l.testId&&{"data-test-id":l.testId},a(function(e){return e&&!u&&(d(e),l.ref&&l.ref(e))}),{className:[qi.component,f?qi.stateInvalid:"",k.current?qi.stateFocused:"",x.current?qi.stateDirty:"",l.floatingLabel?qi.hasFloatingLabel:"",l.disabled?qi.stateDisabled:"",l.readonly?qi.stateReadonly:"",l.dense?qi.isDense:"",l.required?qi.isRequired:"",l.fullWidth?qi.hasFullWidth:"",l.counter?qi.hasCounter:"",!1!==l.hideSpinner&&void 0!==l.hideSpinner?qi.hideSpinner:"",!1!==l.hideClear&&void 0!==l.hideClear?qi.hideClear:"",l.hideValidation?qi.hideValidation:"","dark"===l.tone?"pe-dark-tone":null,"light"===l.tone?"pe-light-tone":null,l.className||l[n.class]].join(" ")}),R=Fi({},l,{},l.domAttributes),T=l.error||j.current,F=R.multiLine?null:R.type&&"submit"!==R.type&&"search"!==R.type?R.type:"text",D=f&&void 0!==T,A=R.disabled||R[n.readonly],L=R.required&&""!==R.requiredIndicator?t("span",{className:qi.requiredIndicator},R.requiredIndicator||"*"):null,q=!R.required&&R.optionalIndicator?t("span",{className:qi.optionalIndicator},R.optionalIndicator):null,B=R.label?[R.label,L,q]:null,H=[t("div",{className:qi.inputArea},[B?t("label",{className:qi.label},B):null,t(S,Ri({},{className:qi.input,disabled:R.disabled},F?{type:F}:null,R.name?{name:R.name}:null,Hi(R,n.onclick)?null:Ii({},n.onclick,function(){A||z({focus:!0})}),Hi(R,n.onfocus)?null:Ii({},n.onfocus,function(){A||(z({focus:!0}),u&&u.classList.add(qi.stateFocused))}),Hi(R,n.onblur)?null:Ii({},n.onblur,function(){z({type:"onblur",focus:!1}),u.classList.remove(qi.stateFocused)}),Hi(R,n.oninput)?null:Ii({},n.oninput,function(e){z({type:"input"})}),Hi(R,n.onkeydown)?null:Ii({},n.onkeydown,function(e){"Enter"===e.key?O.current=!0:"Escape"!==e.key&&"Esc"!==e.key||z({focus:!1})}),R.events?R.events:null,void 0!==R.required&&R.required?{required:!0}:null,void 0!==R[n.readonly]&&R[n.readonly]?Ii({},n.readonly,!0):null,void 0!==R.pattern?{pattern:R.pattern}:null,void 0!==R[n.maxlength]?Ii({},n.maxlength,R[n.maxlength]):null,void 0!==R[n.minlength]?Ii({},n.minlength,R[n.minlength]):null,void 0!==R.max?{max:R.max}:null,void 0!==R.min?{min:R.min}:null,void 0!==R[n.autofocus]?Ii({},n.autofocus,R[n.autofocus]):null,void 0!==R[n.tabindex]?Ii({},n.tabindex,R[n.tabindex]):null,void 0!==R.rows?{rows:R.rows}:null,void 0!==R.placeholder?{placeholder:R.placeholder}:null,void 0!==R.domAttributes?Fi({},R.domAttributes):null))]),R.counter?t("div",{className:qi.counter},(g.length||0)+" / "+R.counter):null,R.help&&!D?t("div",{className:[qi.help,R.focusHelp?qi.focusHelp:null].join(" ")},R.help):null,D?t("div",{className:qi.error},T):P&&!R.help?t("div",{className:qi.errorPlaceholder}):null],M=[l.before].concat(H,[l.after]);return t(l.element||"div",I,M)},{h:Gi,a:Zi,useEffect:Ui,useState:function(e){var t=Li;return Qi(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useRef:function(e){return o(Qi({current:e}),1)[0]},getRef:function(e){return{oncreate:function(t){return e(t.dom)}}}});function Ki(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ea(){return(ea=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function na(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Yi.displayName="TextField";var ra,oa={component:"pe-slider",control:"pe-slider__control",label:"pe-slider__label",pin:"pe-slider__pin",thumb:"pe-slider__thumb",tick:"pe-slider__tick",ticks:"pe-slider__ticks",track:"pe-slider__track",trackBar:"pe-slider__track-bar",trackBarValue:"pe-slider__track-bar-value",trackPart:"pe-slider__track-part",trackPartRest:"pe-slider__track-rest",trackPartValue:"pe-slider__track-value",hasFocus:"pe-slider--focus",hasPin:"pe-slider--pin",hasTicks:"pe-slider--ticks",hasTrack:"pe-slider--track",isActive:"pe-slider--active",isAtMin:"pe-slider--min",isDisabled:"pe-slider--disabled",tickValue:"pe-slider__tick--value"},ia=function(e,t){return S&&e.touches?t?e.touches[0].pageY:e.touches[0].pageX:t?e.pageY:e.pageX};function aa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function la(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var ca=Function.prototype.call.bind(Function.prototype.call),sa=function(){return t.redraw()},ua=function(e){var t=ra,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},da=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=ra,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&sa()},r]},pa=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=ra;if(ua(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",sa))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),fa={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},_a=t||{},ha=_a.trust;_a.trust=function(e,n){return n?t(n,ha(e)):ha(e)},_a.displayName="mithril",_a.fragment=t.fragment;var ga,ma=function(e,t){var n=function(e){var t=ra;ra=e.state;try{e.state.updates.forEach(ca)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),ra=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=ra;ra=n.state;try{return e(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;$.current=v.current.getBoundingClientRect().left-(U.current-Z.current/2)+e},Y=function(e){var t=ia(e)-$.current,n=s+(t-U.current)/Q.current*d;te(n)},K=function(e){if(!J.current){e.preventDefault(),J.current=!0,V(!0),oe();var t=function(e){J.current&&Y(e)},n=function e(){J.current&&(oe(),w&&(N.forEach(function(e){return window.removeEventListener(e,t)}),C.forEach(function(t){return window.removeEventListener(t,e)})),J.current=!1,V(!1))};w&&(N.forEach(function(e){return window.addEventListener(e,t)}),C.forEach(function(e){return window.addEventListener(e,n)})),G()}},ee=function(e){var t=e.value,n=e.shouldNotify,r=void 0!==n&&n;tu&&(t=u);var o=p?Math.round(t*f)/f:t;I((o-s)/d),H(o),L(o),r&&c.onChange&&c.onChange({value:o})},te=function(e){ee({value:e,shouldNotify:!0})},ne=function(e){return te(A+(e?10:1)*(p||1))},re=function(e){return te(A-(e?10:1)*(p||1))},oe=function(){y.current&&y.current.blur(),y.current=void 0,F(!1)};i(function(){J.current=!1,$.current=0,Q.current=0,U.current=0,Z.current=0},[]),i(function(){j&&(v.current=j.querySelector(".".concat(oa.track)),x.current=j.querySelector(".".concat(oa.control)),k.current=j.querySelector(".".concat(oa.pin)),G(),ee({value:b}))},[j]),i(function(){c.pin&&function(){if(x.current&&k.current){var e=E*Q.current;k.current.style.left=e+"px"}}()},[A]),i(function(){B!==c.value&&ee({value:c.value})},[c.value]);var ie=ea({},m(c),l(function(e){return e&&!j&&S(e)}),c.testId&&{"data-test-id":c.testId},{className:[oa.component,c.disabled?oa.isDisabled:null,c.pin?oa.hasPin:null,h?oa.hasTrack:null,W?oa.isActive:null,T?oa.hasFocus:null,0===E?oa.isAtMin:null,_?oa.hasTicks:null,"dark"===c.tone?"pe-dark-tone":null,"light"===c.tone?"pe-light-tone":null,c.className||c[r.class]].join(" ")}),ae=function(e){e.preventDefault(),J.current||(G(),X(0),Y(e),K(e))},le=function(e){e.preventDefault(),G(),function(e){var t=x.current.getBoundingClientRect().left,n=ia(e)-t-Z.current/2;X(n)}(e),K(e)},ce=E+" 1 0%",se=1-E,ue=se+" 1 0%",de=[c.before,n("div",ea({},{className:oa.track},h&&!c.disabled&&z.reduce(function(e,t){return e[r["on".concat(t)]]=ae,e},{})),[n("div",{className:oa.trackPart+" "+oa.trackPartValue,style:{flex:ce,msFlex:ce,WebkitFlex:ce}},n("div",{className:oa.trackBar},n("div",{className:oa.trackBarValue}))),n("div",ea({},{className:oa.control},c.disabled?{disabled:!0}:(t={},Ki(t,r.tabindex,c[r.tabindex]||0),Ki(t,r.onfocus,function(){return e=x.current,oe(),y.current=e,void F(!0);var e}),Ki(t,r.onblur,function(){return oe()}),Ki(t,r.onkeydown,function(e){"Tab"!==e.key&&e.preventDefault(),"Escape"===e.key||"Esc"===e.key?x.current.blur(e):"ArrowLeft"===e.key||"ArrowDown"===e.key||"Left"===e.key||"Down"===e.key?re(!!e.shiftKey):"ArrowRight"===e.key||"ArrowUp"===e.key||"Right"===e.key||"Up"===e.key?ne(!!e.shiftKey):"Home"===e.key?te(s):"End"===e.key?te(u):"PageDown"===e.key?re(!0):"PageUp"===e.key&&ne(!0),G()}),t),!c.disabled&&z.reduce(function(e,t){return e[r["on".concat(t)]]=le,e},{}),c.events?c.events:null,_?{step:g}:null),c.icon?n("div",{className:oa.thumb},c.icon):null),n("div",{className:oa.trackPart+" "+oa.trackPartRest,style:{flex:ue,msFlex:ue,WebkitFlex:ue,maxWidth:100*se+"%"}},n("div",{className:oa.trackBar},n("div",{className:oa.trackBarValue}))),_&&!c.disabled?n("div",{className:oa.ticks},function(e,t,n,r){for(var o=[],i=r/n,a=0;a0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},ka=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=ga,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&wa()},r]},Oa=function(e){var t=ga;return ka(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},ja=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=ga;if(xa(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",wa))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),Sa={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Pa=t||{},za=Pa.trust;Pa.trust=function(e,n){return n?t(n,za(e)):za(e)},Pa.displayName="mithril",Pa.fragment=t.fragment;var Na=function(e,t){var n=function(e){var t=ga;ga=e.state;try{e.state.updates.forEach(va)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),ga=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=ga;ga=n.state;try{return e(function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Object.getOwnPropertyNames(Fa).filter(function(e){return"render"!==e}).forEach(function(e){return Da[e]=Fa[e]}),Da.displayName="Snackbar";var qa,Ba="pe-switch-control",Ha="pe-switch-control__knob",Ma="pe-switch-control__thumb",Wa="pe-switch-control__track";function Va(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var $a=Function.prototype.call.bind(Function.prototype.call),Qa=function(){return t.redraw()},Ua=function(e){var t=qa,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},Za=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=qa;if(Ua(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",Qa))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),Ga={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Xa=t||{},Ya=Xa.trust;Xa.trust=function(e,n){return n?t(n,Ya(e)):Ya(e)},Xa.displayName="mithril",Xa.fragment=t.fragment;var Ka=function(e,t){var n=function(e){var t=qa;qa=e.state;try{e.state.updates.forEach($a)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),qa=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=qa;qa=n.state;try{return e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=qa,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&Qa()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:Za,ViewControl:el});tl.displayName="SelectionControl";var nl=Ka(function(e){var t=e.h,n=e.SelectionControl,r=La(e,["h","SelectionControl"]);return t(n,Aa({},r,{selectable:r.selectable||function(){return!0},instanceClass:Ba,type:"checkbox"}))},{h:Xa,a:Ga,SelectionControl:tl});function rl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ol(){return(ol=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function al(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ll(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);tt?-1:0},pl='',fl='';function _l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var gl=Function.prototype.call.bind(Function.prototype.call),ml=function(){return t.redraw()},bl=function(e){var t=cl,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},yl=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=cl;if(bl(n)){var o=function(){var e=t();"function"==typeof e&&(r.teardowns.set(t,e),r.teardowns.set("_",ml))};r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(o)}:o)}}}(!0),vl={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},wl=t||{},xl=wl.trust;wl.trust=function(e,n){return n?t(n,xl(e)):xl(e)},wl.displayName="mithril",wl.fragment=t.fragment;var kl=function(e,t){var n=function(e){var t=cl;cl=e.state;try{e.state.updates.forEach(gl)}finally{r(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),cl=t}};return{oninit:function(e){r(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=cl;cl=n.state;try{return e(function(e){for(var t=1;t=q.scrollWidth-d.getBoundingClientRect().width-1&&y===t;j(n),N(r)},V=function(e){var t=q,n=E.slice(0,e).reduce(function(e,t){return e+t.dom.getBoundingClientRect().width},0),r=t.getBoundingClientRect().width,o=t.scrollWidth-r,i=_?-1*Math.min(n,o):Math.min(n,o),a=t.scrollLeft;if(a!==i){var l=Math.abs(a-i)/600;setTimeout(function(){(function(e){if(!x){var t=e.element,n="horizontal"===e.direction?"scrollLeft":"scrollTop",r=e.to,o=1e3*e.duration,i=e.easing||co.easeInOutCubic,a=t[n],l=r-a,c=(new Date).getTime(),s=!0;return new Promise(function(e){so(function u(){if(s){so(u);var d=((new Date).getTime()-c)/o,p=a+l*i(d);t[n]=p,d>=1&&(t[n]=r,s=!1,e())}})})}})({element:t,to:i,duration:Math.max(.5,l),direction:"horizontal"}).then(W)},150)}},J=function(e){var t=e.index,n=e.animate;if(E&&E.length){v(t);var r=E[t].dom;r&&function(e){var t=e.selectedTabElement,n=e.animate;if(B){var r=d.getBoundingClientRect(),o=t.getBoundingClientRect(),i=L?o.height:0,a=_?o.right-r.right+q.scrollLeft+i:o.left-r.left+q.scrollLeft-i,l=1/(r.width-2*i)*o.width,c="translate(".concat(a,"px, 0) scaleX(").concat(l,")"),s=n?.25:0,u=B.style;u["transition-duration"]=s+"s",u.opacity=1,u.transform=c}}({selectedTabElement:r,animate:n}),L&&W(),V(t),c.onChange&&c.onChange({index:t,options:E[t].options,el:r})}};i(function(){if(H){h(function(e){var t=e.element,n=void 0===t?document:t,r=e.selector;return O({element:n,selector:r,prop:"direction",equals:"rtl"})}({element:d}));var e=function(){return function(){if(c.largestWidth){var e=E.map(function(e){return e.dom.getBoundingClientRect().width}).sort(dl)[0];E.forEach(function(t){return t.dom.style.width=e+"px"})}}(),J({index:y,animate:!1})},t=function(t){var n=t.name;return"active"===n||"inactive"===n?e():null};return R("resize",e),R("webfontloader",t),e(),function(){T("resize",e),T("webfontloader",t)}}},[H]);var $=!c.scrollable&&!c.centered&&!!c.autofit;void 0!==g&&D!==g&&J({index:g,animate:!0}),D!==g&&A(g);var Q=ol({},r(function(e){return e&&!d&&setTimeout(function(){return p(e)},0)}),m(c),c.testId&&{"data-test-id":c.testId},{className:[sl.component,c.scrollable?sl.scrollable:null,k?sl.isAtStart:null,z?sl.isAtEnd:null,c.activeSelected?sl.activeSelectable:null,$?sl.isAutofit:null,c.compact?sl.compactTabs:null,c.menu?sl.isMenu:null,"dark"===c.tone?"pe-dark-tone":null,"light"===c.tone?"pe-light-tone":null,c.className||c[n.class]].join(" ")}),U=s.map(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=ol({},e,{selected:n===y,animateOnTap:!1!==c.animateOnTap},c.all,{index:n,onSelect:function(){return J({index:n,animate:!c.noIndicatorSlide})}});return t(l,r)}),Z=null,G=null;c.scrollable&&(Z=t(a,ol({},{icon:c.scrollIconBackward,className:sl.scrollButtonAtStart,position:"start",events:rl({},n.onclick,function(e){return M(e,"backward")}),isRTL:_})),G=t(a,ol({},{icon:c.scrollIconForward,className:sl.scrollButtonAtEnd,position:"end",events:rl({},n.onclick,function(e){return M(e,"forward")}),isRTL:_})));var X=c.hideIndicator?null:t("div",{className:sl.indicator}),Y=[Z,t("div",{className:[sl.tabRow,c.centered?sl.tabRowCentered:null,c.scrollable?sl.tabRowIndent:null].join(" ")},[].concat(ll(U),[X])),G];return t("div",Q,[c.before].concat(Y,[c.after]))},{h:wl,a:vl,getRef:function(e){return{oncreate:function(t){return e(t.dom)}}},useState:function(e){var t=cl;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=cl,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],i=t(e,r);n.states[r]=i,JSON.stringify(i)!==JSON.stringify(o)&&ml()},r]}(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},useEffect:yl,ScrollButton:Ol,Tab:jl});Sl.displayName="Tabs";var Pl=[],zl={},Nl=zl.toString,Cl=Nl.call(Pl),El=Nl.call(zl),Il=Nl.call(""),Rl=Nl.call(Nl),Tl=zl.hasOwnProperty,Fl=Object.freeze||function(e){return e};function Dl(e,t){for(var n in t)Tl.call(t,n)&&(!n.indexOf("$")||n in e||(e[n]=t[n]));return e}function Al(e,t){var n,r,o=[];for(r in t)if(Tl.call(t,r))for(n in e)Tl.call(e,n)&&o.push(e[n]+t[r]);return o}var Ll=/[(),]|"(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\//g;function ql(e){for(var t,n=[],r=[],o=0;t=Ll.exec(e);)switch(t[0]){case"(":o++;break;case")":o--;break;case",":if(o)break;n.push(t.index)}for(t=n.length;t--;)r.unshift(e.slice(n[t]+1)),e=e.slice(0,n[t]);return r.unshift(e),r}var Bl=/&|"(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\//g;function Hl(e,t){for(var n,r,o=[],i=[];r=Bl.exec(e);)"&"==r[0]&&o.push(r.index);for(r=o.length;r--;)i.unshift(e.slice(o[r]+1)),e=e.slice(0,o[r]);for(i.unshift(e),1===i.length&&i.unshift(""),n=[i[0]],r=1;r0&&/^[-\w$]+$/.test(a))if(c||(c=1,t.rule(n)),/\$/.test(a))for(s in a=a.split("$"))Tl.call(a,s)&&Vl(e,t,a[s],l,o);else Vl(e,t,a,l,o);else/^@/.test(a)?(c=0,Jl(e,t,/^(.(?:-[\w]+-)?([_A-Za-z][-\w]*))\b\s*(.*?)\s*$/.exec(a)||[a,"@","",""],l,n,o,i)):(c=0,$l(e,t,n.length>0&&(/,/.test(n)||/,/.test(a))?(s=ql(n),ql(o?a.replace(/("(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\/)|:global\(\s*(\.-?[_A-Za-z][-\w]*)\s*\)|(\.)(-?[_A-Za-z][-\w]*)/g,e.localizeReplacer):a).map(function(e){return/&/.test(e)?Hl(e,s):s.map(function(t){return t+e}).join(",")}).join(",")):/&/.test(a)?Hl(o?a.replace(/("(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\/)|:global\(\s*(\.-?[_A-Za-z][-\w]*)\s*\)|(\.)(-?[_A-Za-z][-\w]*)/g,e.localizeReplacer):a,[n]):n+(o?a.replace(/("(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\/)|:global\(\s*(\.-?[_A-Za-z][-\w]*)\s*\)|(\.)(-?[_A-Za-z][-\w]*)/g,e.localizeReplacer):a),l,o,i+1));break;case Cl:for(a=0;a0&&void 0!==arguments[0]?arguments[0]:1;return[{"-webkit-box-flex":e},{"-moz-box-flex":e},{"-webkit-flex":e},{"-ms-flex":e},{flex:e},1===e?{"-webkit-flex-basis":"0.000000001px"}:{},1===e?{"flex-basis":"0.000000001px"}:{}]},flexAuto:{"-ms-flex":"1 1 auto","-webkit-flex-basis":"auto","flex-basis":"auto"},flexAutoVertical:{"-ms-flex":"1 1 auto","-webkit-flex-basis":"auto","flex-basis":"auto"},flexIndex:function(e){return{"-ms-flex":e,"-webkit-flex":e,flex:e}},flexGrow:function(e){return{"-webkit-flex-grow":e,"flex-grow":e}},flexShrink:function(e){return{"-webkit-flex-shrink":e,"flex-shrink":e}},layout:Yl,layoutAroundJustified:[Yl,{"-ms-flex-pack":"distribute","-webkit-justify-content":"space-around","justify-content":"space-around"}],layoutCenter:Kl,layoutCenterCenter:[ec,Kl],layoutCenterJustified:ec,layoutEnd:[Yl,{"-ms-flex-align":"end","-webkit-align-items":"flex-end","align-items":"flex-end"}],layoutEndJustified:[Yl,{"-ms-flex-pack":"end","-webkit-justify-content":"flex-end","justify-content":"flex-end"}],layoutHorizontal:[Yl,{"-ms-flex-direction":"row","-webkit-flex-direction":"row","flex-direction":"row"}],layoutHorizontalReverse:[Yl,{"-ms-flex-direction":"row-reverse","-webkit-flex-direction":"row-reverse","flex-direction":"row-reverse"}],layoutInline:[Yl,{display:"-ms-inline-flexbox"},{display:"-webkit-inline-flex"},{display:"inline-flex"}],layoutJustified:[Yl,{"-ms-flex-pack":"justify","-webkit-justify-content":"space-between","justify-content":"space-between"}],layoutStart:[Yl,{"-ms-flex-align":"start","-webkit-align-items":"flex-start","align-items":"flex-start"}],layoutStartJustified:[Yl,{"-ms-flex-pack":"start","-webkit-justify-content":"flex-start","justify-content":"flex-start"}],layoutVertical:[Yl,{"-ms-flex-direction":"column","-webkit-flex-direction":"column","flex-direction":"column"}],layoutVerticalReverse:[Yl,{"-ms-flex-direction":"column-reverse","-webkit-flex-direction":"column-reverse","flex-direction":"column-reverse"}],layoutWrap:[Yl,{"-ms-flex-wrap":"wrap","-webkit-flex-wrap":"wrap","flex-wrap":"wrap"}],layoutWrapReverse:[Yl,{"-ms-flex-wrap":"wrap-reverse","-webkit-flex-wrap":"wrap-reverse","flex-wrap":"wrap-reverse"}],selfCenter:{"-ms-align-self":"center","-webkit-align-self":"center","align-self":"center"},selfEnd:{"-ms-align-self":"flex-end","-webkit-align-self":"flex-end","align-self":"flex-end"},selfStart:{"-ms-align-self":"flex-start","-webkit-align-self":"flex-start","align-self":"flex-start"},selfStretch:{"-ms-align-self":"stretch","-webkit-align-self":"stretch","align-self":"stretch"}};function nc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oc(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ac=function(){return{"&:after":{content:'""',display:"table",clear:"both"}}},lc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".18s",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ease-out";return{transitionDelay:"0ms",transitionDuration:t,transitionTimingFunction:n,transitionProperty:e}},cc=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px";return"none"===e?{textOverflow:"initial",overflow:"initial",display:"block",height:"auto",maxHeight:"none",whiteSpace:"normal"}:[{"@supports (-webkit-line-clamp: 2)":void 0!==e?{"-webkit-line-clamp":e,"-webkit-box-orient":"vertical",display:"-webkit-box",wordBreak:"break-word"}:void 0},oc({overflow:"hidden",textOverflow:"ellipsis",textRendering:"auto"},void 0!==t?{maxHeight:e*t+n}:void 0,{},1===t?{wordWrap:"nowrap"}:void 0)]},sc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e+"px";return{position:"absolute",top:t,right:t,bottom:t,left:t}},uc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return{position:"sticky",top:0,zIndex:e}};var dc,pc,fc=(function(e,t){var n,r,o,i,a;function l(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}).replace("-","")}function c(e,t){return r[e]="",r[e]=t,!!r[e]}function s(e,t){return o.textContent="@media ("+e+":"+t+"){}",!!~o.sheet.cssRules[0].cssText.indexOf(t)}function u(e){return e in r}function d(e){return o.textContent=e+"{}",!!o.sheet.cssRules.length}Object.defineProperty(t,"__esModule",{value:!0});var p=[{props:["cursor"],values:["grab","grabbing","zoom-in","zoom-out"]},{props:["display"],values:["box","inline-box","flexbox","inline-flexbox","flex","inline-flex","grid","inline-grid"]},{props:["position"],values:["sticky"]},{props:["width","column-width","height","max-height","max-width","min-height","min-width"],values:["contain-floats","fill-available","fit-content","max-content","min-content"]}],f={"align-items":"box-align",flex:"box-flex","box-direction":"box-direction","box-orient":"box-orient","flex-grow":"box-flex","flex-wrap":"box-lines","justify-content":"box-pack",order:"box-ordinal-group"},_={"flex-end":"end","flex-start":"start",nowrap:"single","space-around":"justify","space-between":"justify",wrap:"multiple","wrap-reverse":"multiple"},h={"align-content":"-ms-flex-line-pack","align-items":"-ms-flex-align","align-self":"-ms-flex-item-align","flex-basis":"-ms-preferred-size","flex-grow":"-ms-flex-positive","flex-shrink":"-ms-flex-negative","justify-content":"-ms-flex-pack",order:"-ms-flex-order"},g={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"};function m(e){n=getComputedStyle(document.documentElement,null),r=document.createElement("div").style,o=document.documentElement.appendChild(document.createElement("style")),a=c,i=u,"zIndex"in r&&!("z-index"in r)&&(a=function(e,t){return c(l(e),t)},i=function(e){return u(l(e))}),function(e){var t={};function r(e){if("-"===e.charAt(0)){var n=e.split("-")[1];t[n]=++t[n]||1}}if(n&&n.length>0)for(var o=0;o-1?k(e,t,"flex-wrap",n):""!==n&&k(e,t,"flex-direction",n)});if("flex-direction"===n)return t(e.properties["box-orient"],r.indexOf("column")>-1?"block-axis":"inline-axis"),void t(e.properties["box-direction"],r.indexOf("-reverse")>-1?"reverse":"normal")}e.WkBCTxt&&"background-clip"===n&&"text"===r?t("-webkit-background-clip",r):t(e.properties[n]||e.fixProperty(n),e.fixValue(r,n))}function O(e){var t=e.prefix;e.fixProperty=e.fixProperty||function(n){var r;return e.properties[n]=i(n)||!i(r=t+n)?n:r};var n=w("",e.selectorList,"(?:\\b|$|[^-])"),r=x("",e.selectorList,"(?:\\b|$|[^-])"),o=function(t,n){return null!=n?e.selectorMap[n]:t};e.fixSelector=function(e){return n.test(e)?e.replace(r,o):e};var a=e.functions.indexOf("linear-gradient")>-1,l=/\blinear-gradient\(/,c=/(^|\s|,|\()((?:repeating-)?linear-gradient\()\s*(-?\d*\.?\d*)deg/gi,s=function(e,t,n,r){return t+n+(90-r)+"deg"},u=!!e.functions.length,d=w("(?:^|\\s|,|\\()",e.functions,"\\s*\\("),p=x("(^|\\s|,|\\()",e.functions,"(?=\\s*\\()");function f(e,n,r){return n+t+r}var _=/^\s*([-\w]+)/gi,h=function(t,n){return e.properties[n]||e.fixProperty(n)};e.fixValue=function(t,n){var r;return null!=e.initial&&"initial"===t?e.initial:e.hasKeywords&&(r=(e.keywords[n]||y)[t])?r:(r=t,e.valueProperties.hasOwnProperty(n)&&(r=-1===t.indexOf(",")?t.replace(_,h):function(e){for(var t,n=[],r=[],o=0;t=v.exec(e);)switch(t[0]){case"(":o++;break;case")":o--;break;case",":if(o)break;n.push(t.index)}for(t=n.length;t--;)r.unshift(e.slice(n[t]+1)),e=e.slice(0,n[t]);return r.unshift(e),r}(t).map(function(e){return e.replace(_,h)}).join(",")),u&&d.test(t)&&(a&&l.test(t)&&(r=r.replace(c,s)),r=r.replace(p,f)),r)};var g,m,b=/((?:min-|max-)?resolution)\s*:\s*((?:\d*\.)?\d+)dppx/g,O=e.hasPixelRatio?function(t,n,r){return e.properties[n]+":"+r}:e.hasPixelRatioFraction?function(t,n,r){return e.properties[n]+":"+Math.round(10*r)+"/10"}:function(e,t,n){return t+":"+Math.round(96*n)+"dpi"};e.fixAtMediaParams=!1!==e.hasDppx?function(e){return e}:function(e){return-1!==e.indexOf("reso")?e.replace(b,O):e};var j=function(e,t){g=e,m=t},S=/\(\s*([-\w]+)\s*:\s*((?:'(?:\\[\S\s]|[^'])*'|"(?:\\[\S\s]|[^"])*"|\/\*[\S\s]*?\*\/|\((?:'(?:\\[\S\s]|[^'])*'|"(?:\\[\S\s]|[^"])*"|\/\*[\S\s]*?\*\/|\((?:'(?:\\[\S\s]|[^'])*'|"(?:\\[\S\s]|[^"])*"|\/\*[\S\s]*?\*\/|\((?:'(?:\\[\S\s]|[^'])*'|"(?:\\[\S\s]|[^"])*"|\/\*[\S\s]*?\*\/|\((?:'(?:\\[\S\s]|[^'])*'|"(?:\\[\S\s]|[^"])*"|\/\*[\S\s]*?\*\/|\((?:'(?:\\[\S\s]|[^'])*'|"(?:\\[\S\s]|[^"])*"|\/\*[\S\s]*?\*\/|\((?:'(?:\\[\S\s]|[^'])*'|"(?:\\[\S\s]|[^"])*"|\/\*[\S\s]*?\*\/|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*)/g;function P(t,n,r){return k(e,j,n,r),"("+g+":"+m}e.fixAtSupportsParams=function(e){return e.replace(S,P)}}b={atrules:{},hasAtrules:!1,hasDppx:null,hasKeywords:!1,hasPixelRatio:!1,hasPixelRatioFraction:!1,hasSelectors:!1,hasValues:!1,fixAtMediaParams:null,fixAtSupportsParams:null,fixProperty:null,fixSelector:null,fixValue:null,flexbox2009:!1,flexbox2012:!1,functions:[],initial:null,jsFlex:!1,keywords:{},placeholder:null,prefix:"",prefixes:[],Prefix:"",properties:{},selectorList:[],selectorMap:{},valueProperties:{transition:1,"transition-property":1,"will-change":1},WkBCTxt:!1},"function"==typeof getComputedStyle&&m(b),O(b),t.prefixPlugin=function e(){var t=b,n=[];return{set:{setPrefixDb:function(r){return-1===n.indexOf(r)&&(O(r),n.push(r)),t=r,e}},filter:function(e){return{atrule:function(n,r,o,i){e.atrule(t.hasAtrules&&t.atrules[n]||n,r,"@media"===n?t.fixAtMediaParams(o):"@supports"===n?t.fixAtSupportsParams(o):o,i)},decl:function(n,r){k(t,e.decl,n,r)},rule:function(n){e.rule(t.hasSelectors?t.fixSelector(n):n)}}}}}}(dc={exports:{}},dc.exports),dc.exports);(pc=fc)&&pc.__esModule&&Object.prototype.hasOwnProperty.call(pc,"default")&&pc.default;var _c=new Xl(fc.prefixPlugin),hc=/[^a-z0-9\\-]/g,gc=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?a-1:0),c=1;c0});if(0!==s.length){var u=l||c.trim().replace(/^[^a-z]?(.*)/,"$1");gc(u,yc({styles:yc({styles:s,scope:a}),scope:i}))}},wc=gc,xc=vc,kc=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.mediaQuery,l=i.scope;return vc({selectors:[e,r],fns:t,vars:n,customVars:o,mediaQuery:a,scope:l})}},Oc=function(e,t){return nc({},e,t)},jc=function(e){return"*[dir=rtl] ".concat(e,", .pe-rtl ").concat(e)},Sc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"rgba(".concat(e,", ").concat(t,")")},Pc=function(e){var t=e.varFns,n=e.customVarFns,r=e.superStyle,o=e.varMixin,i=e.selector,a=e.scopedSelector,l=e.componentVars,c=void 0===l?{}:l,s=e.customVars,u=oc({},c,{},s),d=s||u,p=(c.general_styles,ic(c,["general_styles"])),f=void 0!==r?void 0!==s?r(i,c,s):r(i,p):[],_=oc({},s?n:{},{},t);return f.concat(Object.keys(o(d)).map(function(e){return _&&void 0!==_[e]?_[e](a,u):null}).filter(function(e){return e}))},zc=function(e){var t=e.varFns,n=e.customVarFns,r=e.superLayout,o=e.varMixin,i=void 0===o?function(e){return e}:o;return function(e,o,a){return Pc({varFns:t,customVarFns:n,superStyle:r,varMixin:i,selector:e,scopedSelector:e,componentVars:o,customVars:a})}},Nc=function(e){var t=e.scopes,n=e.selector,r=e.isNoTouch,o=void 0!==r&&r;return n.split(/\s*,\s*/).map(function(e){return function(e){var t=e.scopes,n=e.selector;return e.isNoTouch?t.map(function(e){return e+n+":hover"}).join(","):t.map(function(e){return e+n}).join(",")}({scopes:t,selector:e,isNoTouch:o})}).join("")},Cc=[{scopes:[".pe-dark-tone",".pe-dark-tone "],varFnName:"darkTintFns",isNoTouch:!1},{scopes:["",".pe-light-tone",".pe-light-tone "],varFnName:"lightTintFns",isNoTouch:!1},{scopes:[".pe-no-touch .pe-dark-tone "],varFnName:"darkTintHoverFns",isNoTouch:!0},{scopes:[".pe-no-touch ",".pe-no-touch .pe-light-tone "],varFnName:"lightTintHoverFns",isNoTouch:!0}],Ec=function(e){var t=e.varFns,n=void 0===t?{}:t,r=e.superColor,o=e.varMixin,i=void 0===o?function(e){return e}:o;return function(e,t,o){return Cc.map(function(a){var l=a.scopes,c=a.varFnName,s=a.isNoTouch;return function(e){var t=e.selector,n=e.scopedSelector,r=e.componentVars,o=e.customVars,i=e.varFns,a=e.superColor,l=e.varMixin;return Pc({varFns:i,superStyle:a,varMixin:l,selector:t,scopedSelector:n,componentVars:r,customVars:o})}({selector:e,scopedSelector:Nc({scopes:l,selector:e,isNoTouch:s}),componentVars:t,customVars:o,varFns:n[c],superColor:r,varMixin:i})})}},Ic=function(e,t){e||console.error("createMarker requires param `vars`");var n=function(e,t){var n=Object.keys(t).filter(function(t){return!0===e[t]}).join(".");return n?'"'.concat(n,'"'):void 0}(e,t);return n?{":before":{content:n,display:"none"}}:void 0};function Rc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tc(){return(Tc=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=n.mediaQuery,o=void 0===r?"":r,i=n.scope,a=void 0===i?"":i,l=t&&t.contained?Is:Cs;e&&xc({selectors:[Fs,e],fns:Ts,vars:l,customVars:t,mediaQuery:o,scope:a}),e&&xc({selectors:[Ds,e],fns:Rs,vars:l,customVars:t,mediaQuery:o,scope:a})},Ls=Ec({superColor:gs}),qs=[zc({superLayout:Ss}),Ls],Bs=[as.component,as.contained].join(" "),Hs=".".concat(Bs.split(/\s/).join(".")),Ms=Cs,Ws=zc({varFns:{general_styles:function(e){return[Oc(e,{display:"flex"})]}}}),Vs={general_styles:!0},Js=[Ws],$s=".".concat("pe-button-group"),Qs="pe-card",Us="pe-card__content",Zs="pe-card__overlay__content",Gs="pe-card__overlay--sheet";function Xs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ys(){return(Ys=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:ie.unit_icon_size,r=n+e.label_height,o=(r-n)/2;return{" .pe-control__form-label":{height:t+"px"}," .pe-control__box":{width:n+"px",height:n+"px"}," .pe-button__content":{width:r+"px",height:r+"px",flexShrink:0," .pe-icon":[sc(o)]}}},Iu=function(e,t,n){var r;return Oc(e,{" .pe-button.pe-control__button":(r={top:-(t.button_size-t.icon_size)/2+"px"},Ou(r,n?"right":"left",-(t.button_size-t.icon_size)/2+"px"),Ou(r,n?"left":"right","auto"),r)})},Ru=function(e,t,n){return Oc(e,{" .pe-control__label":Ou({},n?"paddingRight":"paddingLeft",t.label_padding_before+"px")})},Tu=function(e,t,n){return Oc(e,{" .pe-control__label":Ou({},n?"paddingLeft":"paddingRight",t.label_padding_after+"px")})},Fu=zc({varFns:{general_styles:function(e,t){return[Oc(e,[Nu(t),{display:"inline-block",boxSizing:"border-box",margin:0,padding:0," input[type=checkbox], input[type=radio]":{display:"none"}," .pe-control__form-label":[tc.layoutHorizontal,tc.layoutCenter,{position:"relative",cursor:"pointer",margin:0,color:"inherit",":focus":{outline:0}}],".pe-control--inactive":{" .pe-control__form-label":{cursor:"default"}}," .pe-control__box":{position:"relative",display:"inline-block",boxSizing:"border-box",color:"inherit",flexShrink:0,":focus":{outline:0}}," .pe-button.pe-control__button":{position:"absolute"},".pe-control--off":{" .pe-control__button--on":{opacity:0,zIndex:-1}," .pe-control__button--off":{opacity:1,zIndex:0}},".pe-control--on":{" .pe-control__button--on":{opacity:1,zIndex:0}," .pe-control__button--off":{opacity:0,zIndex:-1}}," .pe-control__label":{alignSelf:"center"},".pe-control--disabled":{" .pe-control__form-label":{cursor:"auto"}," .pe-control__button":{pointerEvents:"none"}}," .pe-button__content":{" .pe-icon":{position:"absolute"}}},Ou({},"*[dir=rtl] ".concat(e,", .pe-rtl ").concat(e),[Cu(t)])])]},label_font_size:function(e,t){return[Oc(e,{" .pe-control__form-label":{fontSize:t.label_font_size+"px"}})]},label_height:function(e,t){return[Oc(e,{" .pe-control__box":{width:t.label_height+"px",height:t.label_height+"px"},".pe-control--small":Eu(t,ie.unit_icon_size_small,ie.unit_icon_size_small),".pe-control--regular":Eu(t,t.label_height,ie.unit_icon_size),".pe-control--medium":Eu(t,ie.unit_icon_size_medium,ie.unit_icon_size_medium),".pe-control--large":Eu(t,ie.unit_icon_size_large,ie.unit_icon_size_large)})]},animation_duration:function(e,t){return[Oc(e,{" .pe-button.pe-control__button":[lc("opacity",t.animation_duration)]," .pe-control__label":[lc("all",t.animation_duration)]})]},button_size:function(e,t){return[Oc(e,{}),Iu(e,t,!1),Iu(jc(e),t,!0)]},icon_size:function(e,t){return[Oc(e,{}),Iu(e,t,!1),Iu(jc(e),t,!0)]},label_padding_after:function(e,t){return[Oc(e,{}),Tu(e,t,!1),Tu(jc(e),t,!0)]},label_padding_before:function(e,t){return[Oc(e,{}),Ru(e,t,!1),Ru(jc(e),t,!0)]}}}),Du={general_styles:!0,animation_duration:ie.animation_duration,button_size:6*ie.grid_unit_component,icon_size:3*ie.grid_unit_component,label_font_size:2*ie.grid_unit_component,label_height:3*ie.grid_unit_component,label_padding_after:0,label_padding_before:4*ie.grid_unit,color_light_on:Sc(ie.color_primary),color_light_off:Sc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_label:Sc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_disabled:Sc(ie.color_light_foreground,ie.blend_light_text_disabled),color_light_on_icon:"inherit",color_light_off_icon:"inherit",color_light_on_label:Sc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_off_label:Sc(ie.color_light_foreground,ie.blend_light_text_secondary),color_dark_on:Sc(ie.color_primary),color_dark_off:Sc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_label:Sc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_disabled:Sc(ie.color_dark_foreground,ie.blend_dark_text_disabled),color_dark_on_icon:"inherit",color_dark_off_icon:"inherit",color_dark_on_label:Sc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_off_label:Sc(ie.color_dark_foreground,ie.blend_dark_text_secondary)},Au=[Fu,zu],Lu=".".concat("pe-control"),qu=Ec({superColor:zu}),Bu=zc({superLayout:Fu}),Hu={general_styles:!0},Mu=[Bu,qu],Wu=".".concat("pe-checkbox-control");function Vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ju(){return(Ju=Object.assign||function(e){for(var t=1;t *":{flexShrink:0}," > .pe-dialog-pane__body":{flexShrink:1,maxHeight:"none"}}," .pe-dialog-pane, .pe-dialog-pane__body":{height:"100vh",maxHeight:"100vh",borderTopStyle:"none",maxWidth:"none"}})},Ku=zc({varFns:{general_styles:function(e){return[Oc(e,[tc.layoutVertical,{position:"relative",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit",margin:0," .pe-dialog-pane__content":{width:"100%",display:"flex",flexDirection:"column",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}," .pe-dialog-pane__title":{fontSize:ie.font_size_title+"px",fontWeight:ie.font_weight_medium,"& + div":{marginTop:"16px"}}," .pe-dialog-pane__header, .pe-dialog-pane__content > .pe-toolbar":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"," .pe-dialog-pane__title":{width:"100%",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}," .pe-dialog-pane__body":[{overflowY:"auto","-webkit-overflow-scrolling":"touch",borderTopStyle:"solid",borderBottomStyle:"solid"," p":{margin:0}," p + p":{marginTop:"16px"}}],".pe-dialog-pane--body-full-bleed .pe-dialog-pane__body":{padding:0,borderStyle:"none"}," .pe-dialog-pane__header--title + .pe-dialog-pane__body":{paddingTop:0}," .pe-dialog-pane__footer":{display:"flex",flexDirection:"column",flexGrow:1,justifyContent:"center","&, > .pe-toolbar":{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},".pe-dialog-pane__footer--high":{paddingBottom:"8px"},".pe-dialog-pane__footer--buttons":{padding:"0 8px",fontSize:0}}," .pe-dialog-pane__actions":[tc.layoutHorizontal,tc.layoutEndJustified,tc.layoutWrap,{alignItems:"center"}]}]),{" .pe-dialog__content.pe-menu__content":Vu({}," ".concat(e),{" .pe-dialog-pane__body":{padding:0,border:"none"}})}]},max_width:function(e,t){return[void 0!==t.side_padding_mobile&&Zu(e,t)]},side_padding_mobile:function(e,t){return[void 0!==t.side_padding_mobile&&Zu(e,t)]},min_width:function(e,t){return[Oc(e,{minWidth:t.min_width+"px"})]},margin_vertical:function(e,t){return[Oc(e,{maxHeight:"calc(100vh - 2 * ".concat(t.margin_vertical,"px)")}),void 0!==t.header_height&&void 0!==t.footer_height&&Xu(e,t)]},line_height_title:function(e,t){return[Oc(e,{" .pe-dialog-pane__title":{lineHeight:t.line_height_title+"px"}})]},header_height:function(e,t){return[Oc(e,{" .pe-dialog-pane__header":{height:t.header_height+"px"}}),void 0!==t.footer_height&&void 0!==t.margin_vertical&&Xu(e,t)]},footer_height:function(e,t){return[Oc(e,{" .pe-dialog-pane__footer--buttons .pe-dialog-pane__actions":{minHeight:t.footer_height+"px"}}),void 0!==t.header_height&&void 0!==t.footer_height&&void 0!==t.margin_vertical&&Xu(e,t)]},padding:function(e,t){return[Oc(e,{" .pe-dialog-pane__body":{padding:t.padding+"px"},".pe-dialog-pane--footer":{" .pe-dialog-pane__body":{paddingBottom:t.padding-10+"px"}}}),void 0!==t.header_bottom&&Gu(e,t)]},header_bottom:function(e,t){return[Gu(e,t)]},border_width:function(e,t){return[Oc(e,{" .pe-dialog-pane__body":{borderWidth:t.border_width+"px"}})]}}}),ed={general_styles:!0,border_width:1,footer_height:52,header_bottom:20,header_height:64,line_height_title:24,max_width:7*ie.grid_unit_menu,min_width:5*ie.grid_unit_menu,padding:3*ie.grid_unit_component,side_padding_mobile:6*ie.grid_unit,max_height:8*ie.grid_unit_component,margin_vertical:8*ie.grid_unit_component,color_light_title_text:"inherit",color_light_body_text:"inherit",color_light_body_border:Sc(ie.color_light_foreground,ie.blend_light_border_light),color_light_background:"inherit",color_dark_title_text:"inherit",color_dark_body_text:"inherit",color_dark_body_border:Sc(ie.color_dark_foreground,ie.blend_dark_border_light),color_dark_background:"inherit"},td=[Ku,Uu],nd=".".concat("pe-dialog-pane"),rd="pe-dialog";function od(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function id(){return(id=Object.assign||function(e){for(var t=1;t div":{width:"inherit",height:"inherit"}})]}},["small","regular","medium","large"].reduce(function(e,t){return e["size_".concat(t)]=function(e){return function(t,n){return Oc(t,ap({},".pe-icon--".concat(e),{width:n["size_".concat(e)]+"px",height:n["size_".concat(e)]+"px"}))}}(t),e},{}))}),pp={general_styles:!0,size_small:ie.unit_icon_size_small,size_regular:ie.unit_icon_size,size_medium:ie.unit_icon_size_medium,size_large:ie.unit_icon_size_large,color_light_avatar_background:Sc(ie.color_light_foreground,ie.blend_light_background_disabled),color_dark_avatar_background:Sc(ie.color_dark_foreground,ie.blend_dark_background_disabled),color_light:"currentcolor",color_dark:"currentcolor"},fp=[dp,up],_p=".".concat("pe-icon");function hp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gp(){return(gp=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e;return{"padding-left":e+"px","padding-right":t+"px"}},df=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return{"padding-top":e+"px","padding-bottom":t+"px"}},pf=function(e,t){return Oc(e,{lineHeight:t.single_line_height+"px",".pe-list-tile--navigation":{" .pe-list-tile__title":{minHeight:t.single_line_height+"px"}}," .pe-list-tile__title":[cc(t.title_line_count,t.single_line_height,"px")]})},ff=function(e,t){return Oc(e,{"&, a":{pointerEvents:"none"}})},_f=function(e,t){return hf(e,t),gf(e,t)},hf=function(e,t){var n=t.inset_h_size;return Oc(e,{marginLeft:n+"px",marginRight:n+"px"," .pe-list-tile__content":{marginLeft:-n+"px",marginRight:-n+"px"}})},gf=function(e,t){var n=t.inset_v_size;return Oc(e,{marginTop:n+"px",marginBottom:n+"px"})},mf=function(e,t){return Oc(e,{"&, .pe-list-tile__primary":{borderRadius:t.rounded_border_radius+"px"}})},bf=zc({varFns:{general_styles:function(e,t){return[Oc(e,[cf(t),tc.layout,{position:"relative",".pe-list-tile--navigation":{" .pe-list-tile__title":{whiteSpace:"pre-wrap"}},".pe-list-tile--sticky":uc(2),".pe-list-tile--inset-h":hf(e,t),".pe-list-tile--inset-v":gf(e,t)," .pe-list-tile__primary":{width:"100%"}," .pe-list-tile__primary, .pe-list-tile__secondary":[tc.layoutHorizontal,lc("background",".200s"),{textDecoration:"none",color:"inherit",border:"none"}],":not(.pe-list-tile--header) .pe-list-tile__primary":[tc.flex(),{position:"relative"," .pe-list-tile__content:not(.pe-list-tile__content-front)":[tc.flex()]}],":not(.pe-list-tile--disabled)":{outline:"none"}," .pe-list-tile__secondary":{textAlign:"right",position:"relative"}," .pe-list-tile__content":[tc.layoutVertical,tc.selfCenter,{width:"100%",".pe-list-tile__content-front":{flexShrink:0}}]," .pe-list-tile__title":{whiteSpace:"normal"}," .pe-list-tile__subtitle":[cc(t.subtitle_line_count,t.line_height_subtitle,"px"),{fontSize:t.font_size_subtitle+"px",fontWeight:t.font_weight_subtitle,lineHeight:t.line_height_subtitle+"px",".pe-list-tile__high-subtitle":[cc(t.high_subtitle_line_count,t.line_height_subtitle,"px"),{whiteSpace:"normal"}]}],".pe-list-tile--selected, &.pe-list-tile--disabled":ff(e),".pe-list-tile--subtitle":{" .pe-list-tile__content":{" .pe-list-tile__title":{padding:0}}},".pe-list-tile--high-subtitle":{" .pe-list-tile--high-subtitle .pe-list-tile__secondary":[tc.layoutHorizontal,tc.layoutStart]," .pe-list-tile__content":[tc.selfStart,{" .pe-list-tile__title":{padding:0}}]},".pe-list-tile--header":{pointerEvents:"none"," .pe-list-tile__content":{paddingTop:0,paddingBottom:0}," .pe-list-tile__title":{padding:0}},"@supports (-moz-appearance:none) and (display:contents)":{" .pe-list-tile__primary, .pe-list-tile__content":{overflow:"hidden"}},".pe-dialog .pe-menu__content &":{" .pe-list-tile__content":{paddingLeft:"24px",paddingRight:"24px"}," .pe-list-tile__content-front":{paddingRight:0,width:"64px",marginRight:"-7px"}," .pe-list-tile__title":cc("none")},".pe-menu__content &":{":not(.pe-list-tile--disabled)":{cursor:"default","&, .pe-list-tile__primary, .pe-list-tile__secondary":{" .pe-list-tile__title, .pe-list-tile__subtitle":{userSelect:"none","-moz-user-select":"none"}}}},"html.pe-no-touch &.pe-list-tile--hoverable, html.pe-no-touch &.pe-list-tile--selectable":{":not(.pe-list-tile--header):not(.pe-list-tile--disabled):not(.pe-list-tile--selected):hover":{cursor:"pointer"}}}]),Gp({},jc(e),sf(t))]},title_line_count:function(e,t){return[pf(e,t)]},single_line_height:function(e,t){return[pf(e,t)]},font_size_title:function(e,t){return[Oc(e,{fontSize:t.font_size_title+"px"," .pe-list-tile__secondary":{fontSize:t.font_size_title+"px"}})]},font_weight_title:function(e,t){return[Oc(e,{fontWeight:t.font_weight_title})]},font_size_navigation_title:function(e,t){return[Oc(e,{".pe-list-tile--navigation":{fontSize:t.font_size_navigation_title+"px"}})]},font_weight_navigation_title:function(e,t){return[Oc(e,{".pe-list-tile--navigation":{fontWeight:t.font_weight_navigation_title}})]},padding:function(e,t){return[Oc(e,{":not(.pe-list-tile--header)":{" .pe-list-tile__content:not(.pe-list-tile__content-front)":[df(t.padding,t.padding+1)]}," .pe-list-tile__content":{".pe-list-tile__content-front":[df(t.padding-5)]}})]},side_padding:function(e,t){return[Oc(e,{" .pe-list-tile__content":[uf(t.side_padding)]})]},inset_size:function(e,t){return[Oc(e,{".pe-list-tile--inset":_f(e,t)})]},rounded_border_radius:function(e,t){return[Oc(e,{".pe-list-tile--rounded":mf(e,t)})]},compact_front_item_width:function(e,t){return[Oc(e,{" .pe-list-tile__content-front":{".pe-list-tile--compact-front":{width:t.compact_front_item_width+"px"}}})]},front_item_width:function(e,t){return[Oc(e,{" .pe-list-tile__content-front":{":not(.pe-list-tile--compact-front)":{width:t.front_item_width+"px"}}})]},font_size_small:function(e,t){return[Oc(e,{" .pe-list-tile__content":{" small":{fontSize:t.font_size_small+"px"}}})]},has_high_subtitle_padding:function(e,t){return[Oc(e,{".pe-list-tile--high-subtitle":{" .pe-list-tile__content":[df(t.has_high_subtitle_padding,t.has_high_subtitle_padding+1)]}})]},has_subtitle_padding:function(e,t){return[Oc(e,{".pe-list-tile--subtitle":{" .pe-list-tile__content":[df(t.has_subtitle_padding,t.has_subtitle_padding+1)]}})]},single_height:function(e,t){return[Oc(e,{".pe-list-tile--header":{height:t.single_height+"px"," .pe-list-tile__title":[cc(1,t.single_height,"px"),{lineHeight:t.single_height+"px",padding:0}]}})]},font_size_list_header:function(e,t){return[Oc(e,{".pe-list-tile--header":{" .pe-list-tile__title":{fontSize:t.font_size_list_header+"px"}}})]},font_weight_list_header:function(e,t){return[Oc(e,{".pe-list-tile--header":{" .pe-list-tile__title":{fontWeight:t.font_weight_list_header}}})]},compact_padding:function(e,t){return[Oc(e,{" .pe-list--compact &, &.pe-list-tile--compact":{":not(.pe-list-tile--header)":{" .pe-list-tile__content:not(.pe-list-tile__content-front)":df(t.compact_padding,t.compact_padding+1)}}})]},inset:function(e,t){return t.inset&&_f(e,t)},inset_h:function(e,t){return t.inset_h&&hf(e,t)},inset_v:function(e,t){return t.inset_h&&gf(e,t)},rounded:function(e,t){return t.rounded&&mf(e,t)},selected:function(e,t){return t.selected&&ff(e)}}}),yf=Kp({general_styles:!0,compact_front_item_width:64,compact_padding:9,compact_side_padding:1*ie.grid_unit_component,font_size_list_header:14,font_size_navigation_title:14,font_size_small:12,font_size_subtitle:14,font_size_title:16,font_weight_list_header:ie.font_weight_medium,font_weight_navigation_title:ie.font_weight_medium,font_weight_subtitle:ie.font_weight_normal,font_weight_title:ie.font_weight_normal,front_item_width:72,has_high_subtitle_padding:13,has_subtitle_padding:15,high_subtitle_line_count:2,inset_h_size:1*ie.grid_unit_component,inset_v_size:1*ie.grid_unit_component,line_height_subtitle:20,padding:13,rounded_border_radius:ie.unit_item_border_radius,side_padding:2*ie.grid_unit_component,single_height:48,single_line_height:21,single_with_icon_height:56,single_with_icon_line_height:29,subtitle_line_count:1,title_line_count:1,color_light_title:Sc(ie.color_light_foreground,ie.blend_light_text_primary),color_light_subtitle:Sc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_info:Sc(ie.color_light_foreground,ie.blend_light_text_tertiary),color_light_front:Sc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_text_disabled:Sc(ie.color_light_foreground,ie.blend_light_text_disabled),color_light_list_header:Sc(ie.color_light_foreground,ie.blend_light_text_tertiary),color_light_secondary:Sc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_hover:Sc(ie.color_light_foreground,ie.blend_light_text_primary),color_light_hover_front:Sc(ie.color_light_foreground,ie.blend_light_text_primary),color_light_hover_background:Sc(ie.color_light_foreground,ie.blend_light_background_hover),color_light_focus_background:Sc(ie.color_light_foreground,ie.blend_light_background_hover),color_light_selected_text:"inherit",color_light_selected_background:Sc(ie.color_light_foreground,ie.blend_light_background_hover),color_light_highlight_background:Sc(ie.color_light_foreground,ie.blend_light_background_hover),color_dark_title:Sc(ie.color_dark_foreground,ie.blend_dark_text_primary),color_dark_subtitle:Sc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_info:Sc(ie.color_dark_foreground,ie.blend_dark_text_tertiary),color_dark_front:Sc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_text_disabled:Sc(ie.color_dark_foreground,ie.blend_dark_text_disabled),color_dark_list_header:Sc(ie.color_dark_foreground,ie.blend_dark_text_tertiary),color_dark_secondary:Sc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_hover:Sc(ie.color_dark_foreground,ie.blend_dark_text_primary),color_dark_hover_front:Sc(ie.color_dark_foreground,ie.blend_dark_text_primary),color_dark_hover_background:Sc(ie.color_dark_foreground,ie.blend_dark_background_hover),color_dark_selected_text:"inherit",color_dark_selected_background:Sc(ie.color_dark_foreground,ie.blend_dark_background_hover),color_dark_highlight_background:Sc(ie.color_dark_foreground,ie.blend_dark_background_hover)},{inset:!1,inset_h:!1,inset_v:!1,selected:!1,rounded:!1}),vf=[bf,af],wf=".".concat("pe-list-tile");function xf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kf(){return(kf=Object.assign||function(e){for(var t=1;t *":[tc.layoutVertical,tc.selfCenter],".pe-search--inset":{"&, .pe-textfield__input-area, .pe-textfield__input, .pe-textfield__label":{padding:0}}}])]},font_size_input:function(e,t){return[Oc(e,{" .pe-textfield":{" .pe-textfield__input, .pe-textfield__label":{fontSize:t.font_size_input+"px"}}})]},line_height_input:function(e,t){return[Oc(e,{" .pe-textfield__input, .pe-textfield__label":{lineHeight:t.line_height_input+"px"}}),W_(e,t)]},inset_border_radius:function(e,t){return[Oc(e,{".pe-search--inset":{"border-radius":t.inset_border_radius+"px"}})]},inset_side_padding:function(e,t){return[Oc(e,{".pe-search--inset":{padding:"0 "+t.inset_side_padding+"px"}})]},inset_height:function(e,t){return[Oc(e,{".pe-search--inset":{"&, .pe-textfield__input-area, .pe-textfield__input, .pe-textfield__label":{padding:0,height:t.inset_height+"px"}}}),W_(e,t)]},full_width_height:function(e,t){return[Oc(e,{".pe-search--full-width":{"&, .pe-textfield__input-area, .pe-textfield__input, .pe-textfield__label":{height:t.full_width_height+"px"}}}),V_(e,t)]},inset_input_indent:function(e,t){return[Oc(e,{".pe-search--inset":{" .pe-textfield__input, .pe-textfield__label":{paddingLeft:t.inset_input_indent+"px"}}})]},inset_input_right_padding:function(e,t){return[Oc(e,{".pe-search--inset":{" .pe-textfield__input, .pe-textfield__label":{paddingRight:t.inset_input_right_padding+"px"}}})]},full_width_side_padding:function(e,t){var n=ie.unit_indent-t.full_width_side_padding-ie.grid_unit_icon_button;return Oc(e,{".pe-search--full-width":{padding:"0 "+t.full_width_side_padding+"px"," .pe-textfield__input, .pe-textfield__label":{paddingLeft:n+"px"}},".pe-search--full-width + .pe-list .pe-list-tile":{"> :first-child":{paddingLeft:t.full_width_side_padding+"px"},"> :last-child":{paddingRight:t.full_width_side_padding+"px"}}})},full_width_border_radius:function(e,t){return[Oc(e,{".pe-search--full-width":{borderRadius:t.full_width_border_radius+"px"}})]},full_width_input_right_padding:function(e,t){return[Oc(e,{".pe-search--full-width":{" .pe-textfield__input, .pe-textfield__label":{paddingRight:t.full_width_input_right_padding+"px"}}})]}}}),$_={general_styles:!0,font_size_input:20,full_width_border_radius:0,full_width_height:56,full_width_input_right_padding:0,full_width_side_margin:0,full_width_side_padding:8,inset_border_radius:ie.unit_block_border_radius,inset_height:48,inset_input_indent:16,inset_input_right_padding:0,inset_side_padding:0,line_height_input:20,color_light_label_text:Sc(ie.color_light_foreground,ie.blend_light_text_disabled),color_light_input_text:Sc(ie.color_light_foreground,ie.blend_light_text_primary),color_light_background:Sc(ie.color_light_background),color_dark_label_text:Sc(ie.color_dark_foreground,ie.blend_dark_text_disabled),color_dark_input_text:Sc(ie.color_dark_foreground,ie.blend_dark_text_primary),color_dark_background:Sc(ie.color_dark_background)},Q_=[J_,M_],U_=".".concat("pe-search");function Z_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G_(){return(G_=Object.assign||function(e){for(var t=1;t .pe-icon":tc.layoutCenter," .pe-slider__track":[tc.layoutHorizontal,tc.flexGrow(1),{userSelect:"none","-moz-user-select":"none",position:"relative",outline:0}]," .pe-slider__control":[tc.selfCenter,lc("transform, background",".200s"),{transform:"scale(1)",userSelect:"none","-moz-user-select":"none",lineHeight:0,borderRadius:"50%",outline:0,zIndex:1,position:"relative",":before":{content:'""',position:"absolute",borderRadius:"50%"},":after":{content:'""',position:"absolute",borderRadius:"50%",borderStyle:"solid"}}]," .pe-slider__thumb":[sc(),{"&, .pe-icon":{width:"inherit",height:"inherit"}}]," .pe-slider__label":{minWidth:ie.unit_icon_size+"px",textAlign:"center",fontSize:"16px",fontWeight:ie.font_weight_medium}," .pe-slider__track-part":[tc.flex(),{userSelect:"none","-moz-user-select":"none",overflow:"hidden"}]," .pe-slider__track-value, .pe-slider__track-rest":tc.layoutHorizontal," .pe-slider__track-bar":[tc.flex(),{position:"relative",overflow:"hidden"}]," .pe-slider__track-bar-value":tc.flex()," .pe-slider__ticks":[tc.layoutJustified,{userSelect:"none","-moz-user-select":"none",position:"absolute",left:0,pointerEvents:"none"}]," .pe-slider__pin":[lc("transform",".11s"),{transform:"translateZ(0) scale(0) translate(0, 0)",transformOrigin:"bottom",position:"absolute",zIndex:1,height:0,left:0,top:0,pointerEvents:"none","&::before, &::after":{position:"absolute",top:0,left:0},"::before":{transform:"rotate(-45deg)",content:'""',borderRadius:"50% 50% 50% 0"},"::after":{content:"attr(value)",textAlign:"center"}}],".pe-slider--pin.pe-slider--active, &.pe-slider--pin.pe-slider--focus":{" .pe-slider__pin":{transform:"translateZ(0) scale(1) translate(0, -24px)"}},":not(.pe-slider--disabled)":{" .pe-slider__control":{cursor:"pointer"},".pe-slider--track":{" .pe-slider__track":{cursor:"pointer"}}},".pe-slider--disabled":{" .pe-slider__control":{borderWidth:0}}}])]},thumb_size:function(e,t){var n=eh(t),r=n.normalThumbSize,o=n.barOffset,i=n.stepsOffset;return[Oc(e,{" .pe-slider__control":{width:r+"px",height:r+"px"}," .pe-slider__track-value .pe-slider__track-bar":{marginLeft:o+"px"}," .pe-slider__track-rest .pe-slider__track-bar":{marginRight:o+"px"}," .pe-slider__ticks":{width:"calc(100% - "+2*i+"px)",margin:"0 "+i+"px"}}),nh(e,t),ih(e,t),ah(e,t),lh(e,t)]},active_thumb_scale:function(e,t){return[Oc(e,{".pe-slider--active:not(.pe-slider--ticks)":{" .pe-slider__control":{transform:"scale("+t.active_thumb_scale+")"}}}),ah(e,t)]},thumb_touch_size:function(e,t){return[Oc(e,{" .pe-slider__control":{":before":{width:t.thumb_touch_size+"px",height:t.thumb_touch_size+"px"}}}),ih(e,t)]},thumb_border_width:function(e,t){return[Oc(e,{}),nh(e,t)]},disabled_thumb_scale:function(e,t){return[Oc(e,{".pe-slider--disabled":{" .pe-slider__control":{transform:"scale("+t.disabled_thumb_scale+")"}}}),nh(e,t)]},active_pin_thumb_scale:function(e,t){return[Oc(e,{".pe-slider--pin.pe-slider--active, &.pe-slider--pin.pe-slider--focus":{" .pe-slider__control":{transform:"scale("+t.active_pin_thumb_scale+")"}}})]},height:function(e,t){return[Oc(e,{height:t.height+"px"," > .pe-icon":{height:t.height+"px"}," .pe-slider__label":{height:t.height+"px",lineHeight:t.height+"px"}," .pe-slider__ticks":{top:t.height/2-1+"px"}}),rh(e,t)]},track_height:function(e,t){return[Oc(e,{" .pe-slider__track":{height:t.track_height+"px"}}),rh(e,t),oh(e,t)]},animation_duration:function(e,t){return[Oc(e,{" .pe-slider__track":lc("transform",t.animation_duration)," .pe-slider__control:before":lc("background-color",t.animation_duration)," .pe-slider__control:after":lc("border",t.animation_duration)," .pe-slider__thumb":lc("opacity",t.animation_duration)," .pe-slider__track-bar-value":lc("transform, background-color",t.animation_duration)})]},side_spacing:function(e,t){return[Oc(e,{" .pe-slider__track":{margin:"0 "+t.side_spacing+"px"}})]},horizontal_layout_side_spacing:function(e,t){return[Oc(e,{" div + .pe-slider__track":{margin:"0 "+t.horizontal_layout_side_spacing+"px"}})]},bar_height:function(e,t){return[Oc(e,{" .pe-slider__track-part, .pe-slider__track-bar-value, .pe-slider__ticks, .pe-slider__tick":{height:t.bar_height+"px"}}),oh(e,t)]},step_width:function(e,t){return[Oc(e,{" .pe-slider__tick":{width:t.step_width+"px"}})]},pin_width:function(e,t){return[Oc(e,{" .pe-slider__pin":{width:t.pin_width+"px","::before":{width:t.pin_width+"px",height:t.pin_width+"px"},"::after":{width:t.pin_width+"px",height:t.pin_height+"px",lineHeight:t.pin_width+"px"}}}),lh(e,t)]},pin_font_size:function(e,t){return[Oc(e,{" .pe-slider__pin::after":{fontSize:t.pin_font_size+"px"}})]}}}),sh=ie.color_light_foreground,uh=ie.color_dark_foreground,dh=ie.color_primary,ph=Math.max(40,12),fh=Math.max(ph,18),_h=Math.max(52,18),hh=Math.max(10,fh/2-6),gh={general_styles:!0,active_pin_thumb_scale:2/6,active_thumb_scale:1.5,animation_duration:ie.animation_duration,bar_height:2,disabled_thumb_scale:.5,height:_h,horizontal_layout_side_spacing:hh+4,pin_font_size:10,pin_height:32,pin_width:26,side_spacing:hh,step_width:2,thumb_border_width:2,thumb_size:12,thumb_touch_size:ph,track_height:_h,color_light_track_active:Sc(sh,.38),color_light_track_inactive:Sc(sh,.26),color_light_track_value:"currentColor",color_light_thumb_off:Sc(sh,.26),color_light_thumb_off_focus:Sc(sh),color_light_thumb_off_focus_opacity:.08,color_light_thumb_on:Sc(dh),color_light_thumb_on_focus_opacity:.11,color_light_thumb_inactive:Sc(sh,.26),color_light_tick:Sc(sh,1),color_light_tick_value:Sc(sh,1),color_light_icon:Sc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_disabled_icon:Sc(ie.color_light_foreground,ie.blend_light_text_disabled),color_light_label:Sc(ie.color_light_foreground,ie.blend_light_text_secondary),color_light_disabled_label:Sc(ie.color_light_foreground,ie.blend_light_text_disabled),color_light_pin_label:"#fff",color_light_pin_background:"currentColor",color_dark_track_active:Sc(uh,.3),color_dark_track_inactive:Sc(uh,.2),color_dark_track_value:"currentColor",color_dark_thumb_off:Sc(uh,.2),color_dark_thumb_off_focus:Sc(uh),color_dark_thumb_off_focus_opacity:.08,color_dark_thumb_on:Sc(dh),color_dark_thumb_on_focus_opacity:.11,color_dark_thumb_inactive:Sc(uh,.2),color_dark_tick:Sc(uh,1),color_dark_tick_value:Sc(uh,1),color_dark_icon:Sc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_disabled_icon:Sc(ie.color_dark_foreground,ie.blend_dark_text_disabled),color_dark_label:Sc(ie.color_dark_foreground,ie.blend_dark_text_secondary),color_dark_disabled_label:Sc(ie.color_dark_foreground,ie.blend_dark_text_disabled),color_dark_pin_label:"#fff",color_dark_pin_background:"currentColor"},mh=[ch,K_],bh=".".concat("pe-slider");function yh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var wh,xh=function(e){for(var t=1;t div, svg":{width:"inherit",height:"inherit"}})]}}}),Ah={general_styles:!0,color_light:"currentcolor",color_dark:"currentcolor"},Lh=[Dh,Fh],qh=".".concat("pe-svg"),Bh=kc(qh,Lh,Ah);function Hh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mh(){return(Mh=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:e.animation_duration;return lc(t,n,"ease-out")},Qh=function(e,t){var n=t/ie.unit_icon_size,r=2*Math.floor(.5*e.thumb_size*n),o=2*Math.floor(.5*e.track_height*n),i=2*Math.floor(.5*e.track_length*n),a=2*Math.floor(.5*e.thumb_size*n),l=(e.label_height*n-o)/2,c=e.icon_button_padding,s=(t-a)/2,u=-(t+2*c)/2+r/2;return{factor:n,scaledThumbSize:a,scaledTrackHeight:o,scaledTrackWidth:i,size:t,thumbMargin:s,thumbOffsetMax:u+i-r,thumbOffsetMin:u,thumbOffsetY:u+s,thumbPadding:c,trackTop:l,trackVisualOffset:.3}},Uh=function(e,t){var n=t.scaledThumbSize,r=t.scaledTrackHeight,o=t.scaledTrackWidth,i=t.size,a=t.thumbMargin,l=t.thumbOffsetY,c=t.thumbPadding,s=t.trackTop;return{" .pe-control__form-label":{height:i+"px",minWidth:o+"px"}," .pe-switch-control__track":{height:r+"px",width:o-2*t.trackVisualOffset+"px",top:s+"px",borderRadius:r+"px"}," .pe-switch-control__thumb":{top:l+"px"}," .pe-switch-control__knob":{width:n+"px",height:n+"px",margin:a+"px"}," .pe-button__content":{padding:c+"px"}}},Zh=function(e,t,n){var r,o,i,a,l=t.factor,c=t.scaledTrackWidth,s=t.thumbOffsetMax,u=t.thumbOffsetMin,d=t.trackVisualOffset;return{" .pe-control__label":(r={},Hh(r,n?"paddingRight":"paddingLeft",e.padding*l+8+c+"px"),Hh(r,n?"paddingLeft":"paddingRight",0),r)," .pe-switch-control__track":(o={},Hh(o,n?"right":"left",d+"px"),Hh(o,n?"left":"right","auto"),o)," .pe-switch-control__thumb":(i={},Hh(i,n?"right":"left",u+"px"),Hh(i,n?"left":"right","auto"),i),".pe-control--on":{" .pe-switch-control__thumb":(a={},Hh(a,n?"right":"left",s+"px"),Hh(a,n?"left":"right","auto"),a)}}},Gh=function(e){return function(){var t;return{" .pe-switch-control__track":(t={},Hh(t,e?"right":"left",0),Hh(t,e?"left":"right","auto"),t)}}},Xh=Gh(!1),Yh=Gh(!0),Kh=zc({varFns:{general_styles:function(e){return[Oc(e,[Xh(),{" .pe-switch-control__track":[{position:"absolute"}]," .pe-switch-control__thumb":{position:"absolute",zIndex:1,color:"inherit",":focus":{outline:0}}," .pe-switch-control__knob":{position:"relative",borderRadius:"50%"}," .pe-icon-button .pe-button__content":{transition:"none"," .pe-switch-control__knob .pe-icon":[sc(),{width:"100%",height:"100%"}]}}]),Hh({},"_:-ms-fullscreen, :root ".concat(e),{" input":{position:"absolute",zIndex:1,width:"100%",height:"100%",left:0,top:0,right:0,bottom:0,display:"block",opacity:0,cursor:"pointer"}," label":{cursor:"auto"}})]},animation_duration:function(e,t){return[Oc(e,{" .pe-switch-control__track, .pe-switch-control__thumb, .pe-control__label":$h(t,"all")})]},createSize:function(e,t){var n={small:Qh(t,ie.unit_icon_size_small),regular:Qh(t,ie.unit_icon_size),medium:Qh(t,ie.unit_icon_size_medium),large:Qh(t,ie.unit_icon_size_large)};return[Oc(e,{".pe-control--small":[Uh(0,n.small),Zh(t,n.small,!1)],".pe-control--regular":[Uh(0,n.regular),Zh(t,n.regular,!1)],".pe-control--medium":[Uh(0,n.medium),Zh(t,n.medium,!1)],".pe-control--large":[Uh(0,n.large),Zh(t,n.large,!1)]}),Hh({},"*[dir=rtl] ".concat(e,", .pe-rtl ").concat(e),[Yh(),{".pe-control--small":[Zh(t,n.small,!0)],".pe-control--regular":[Zh(t,n.regular,!0)],".pe-control--medium":[Zh(t,n.medium,!0)],".pe-control--large":[Zh(t,n.large,!0)]}])]}},superLayout:Fu,varMixin:function(e){return e.thumb_size||e.track_height||e.track_length||e.label_height||e.icon_button_padding?Mh({},e,{createSize:!0}):e}}),eg={general_styles:!0,animation_duration:ie.animation_duration,hit_area_padding:(ie.grid_unit_icon_button-ie.unit_icon_size)/2,icon_button_padding:Sp.padding,padding:ie.grid_unit_component,thumb_size:20,track_height:14,track_length:36,label_height:Du.label_height,color_light_thumb_on:Sc(ie.color_primary),color_light_thumb_off:"#f1f1f1",color_light_thumb_disabled:"#eee",color_light_wash_on:Sc(ie.color_primary,ie.blend_light_background_active),color_light_wash_off:Sp.color_light_wash_background,color_light_track_on:Sc(ie.color_primary_faded),color_light_track_on_opacity:.55,color_light_track_off:Sc(ie.color_light_foreground,ie.blend_light_text_regular),color_light_track_off_opacity:.55,color_light_track_disabled:Sc(ie.color_light_foreground,ie.blend_light_background_disabled),color_light_track_disabled_opacity:1,color_dark_thumb_on:Sc(ie.color_primary),color_dark_thumb_off:"#bdbdbd",color_dark_thumb_disabled:"#555",color_dark_wash_on:Sc(ie.color_primary,ie.blend_dark_background_active),color_dark_wash_off:Sp.color_dark_wash_background,color_dark_track_on:Sc(ie.color_primary_faded,ie.blend_dark_text_tertiary),color_dark_track_on_opacity:9,color_dark_track_off:"#717171",color_dark_track_off_opacity:.55,color_dark_track_disabled:"#717171",color_dark_track_disabled_opacity:.3},tg=[Kh,Jh],ng=".".concat("pe-switch-control"),rg="pe-tabs",og="pe-tab";function ig(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ag(){return(ag=Object.assign||function(e){for(var t=1;t span, .pe-toolbar__title":(t={},$g(t,o?"marginLeft":"marginRight",0),$g(t,o?"marginRight":"marginLeft",a+"px"),t)," .pe-toolbar__title--center":{marginLeft:a+"px",marginRight:a+"px"}})},em=function(e){var t,n=e.selector,r=e.vars,o=e.isRTL,i=e.isLarge,a=i?r.title_after_icon_padding_large:r.title_after_icon_padding;return(i?nm:Oc)(n,{" > :not(.pe-toolbar__title):first-child:not(.pe-toolbar__title--indent):first-child":(t={},$g(t,o?"marginRight":"marginLeft",0),$g(t,o?"marginLeft":"marginRight",a+"px"),t)})},tm=Xg("@media (min-width: ".concat(ie.breakpoint_for_phone_only,"px) and (orientation: landscape)")),nm=Xg("@media (min-width: ".concat(ie.breakpoint_for_tablet_portrait_up,"px)")),rm=zc({varFns:{general_styles:function(e){return[Oc(e,[tc.layout,tc.layoutHorizontal,tc.layoutCenter,{position:"relative",zIndex:ie.z_toolbar," > a":{textDecoration:"none"},".pe-toolbar--fullbleed":{padding:0},".pe-toolbar--border":{borderWidth:"1px",borderStyle:"none none solid none"}," > *":{flexShrink:0}," > span, .pe-toolbar__title, .pe-toolbar__title--indent":{width:"100%",display:"block",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flexShrink:1}," .pe-toolbar__title--center":{textAlign:"center",justifyContent:"center"}," > .pe-action":{paddingLeft:"12px",paddingRight:"12px"}," .pe-fit":[sc(),{margin:0}]}])]},height:function(e,t){return[Oc(e,{height:t.height+"px"})]},height_compact:function(e,t){return[Oc(e,{".pe-toolbar--compact":{height:t.height_compact+"px"}}),tm(e,{height:t.height+"px"})]},line_height:function(e,t){return[Oc(e,{lineHeight:t.line_height+"em"," > span, .pe-toolbar__title, .pe-toolbar__title--indent":{lineHeight:t.line_height}})]},font_size:function(e,t){return[Oc(e,{" > span, .pe-toolbar__title, .pe-toolbar__title--indent, .pe-action":{fontSize:t.font_size+"px"}})]},font_weight:function(e,t){return[Oc(e,{" > span, .pe-toolbar__title, .pe-toolbar__title--indent":{fontWeight:t.font_weight}})]},padding_side:function(e,t){return[Oc(e,{padding:"0 "+t.padding_side+"px"}),Yg({selector:e,vars:t}),Yg({selector:jc(e),vars:t,isRTL:!0})]},indent:function(e,t){return[Yg({selector:e,vars:t}),Yg({selector:jc(e),vars:t,isRTL:!0})]},indent_large:function(e,t){return[Yg({selector:e,vars:t,isLarge:!0}),Yg({selector:jc(e),vars:t,isRTL:!0,isLarge:!0})]},title_padding:function(e,t){return[Kg({selector:e,vars:t}),Kg({selector:jc(e),vars:t,isRTL:!0})]},title_padding_large:function(e,t){return[Kg({selector:e,vars:t,isLarge:!0}),Kg({selector:jc(e),vars:t,isRTL:!0,isLarge:!0})]},title_after_icon_padding:function(e,t){return[em({selector:e,vars:t}),em({selector:jc(e),vars:t,isRTL:!0})]},title_after_icon_padding_large:function(e,t){return[em({selector:e,vars:t,isLarge:!0}),em({selector:jc(e),vars:t,isRTL:!0,isLarge:!0})]},height_large:function(e,t){return[nm(e,{height:t.height_large+"px"})]},padding_side_large:function(e,t){return[nm(e,{padding:"0 "+t.padding_side_large+"px"})]}}}),om=2*ie.grid_unit_component-12,im=3*ie.grid_unit_component-12,am={general_styles:!0,font_size:20,font_weight:400,height:7*ie.grid_unit_component,height_compact:6*ie.grid_unit_component,height_large:8*ie.grid_unit_component,line_height:ie.line_height,padding_side:om,padding_side_large:im,indent:ie.unit_indent-om,indent_large:ie.unit_indent_large-im,title_after_icon_padding:4,title_after_icon_padding_large:12,title_padding:16,title_padding_large:8,color_light_text:Sc(ie.color_light_foreground,ie.blend_light_text_primary),color_light_border:Sc(ie.color_light_foreground,ie.blend_light_border_light),color_light_background:Sc(ie.color_light_background),color_dark_text:Sc(ie.color_dark_foreground,ie.blend_dark_text_primary),color_dark_border:Sc(ie.color_dark_foreground,ie.blend_dark_border_light),color_dark_background:Sc(ie.color_dark_background)},lm=[rm,Gg],cm=".".concat("pe-toolbar"),sm=[function(){return[{" html":{"box-sizing":"border-box"}," *, *:before, *:after":{"box-sizing":"inherit"}," *":[{"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},{"-webkit-tap-highlight-color":"transparent"}]," a, a:active, a:focus, input:active, *:focus":{outline:0}," input:disabled":{opacity:1}}]}],um={},dm=[function(){return[{"html, body, button, input, select, textarea":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"}}]},function(){return[{" h1, h2, h3, h4, h5, h6, p":{margin:0,padding:0}},{" h1, h2, h3, h4, h5, h6":{" small":{"font-weight":ie.font_weight_normal,"line-height":ie.line_height,"letter-spacing":"-0.02em","font-size":"0.6em"}}},{" h1":{"font-size":"56px","font-weight":ie.font_weight_normal,"line-height":ie.line_height,"margin-top":"24px","margin-bottom":"24px"}},{" h2":{"font-size":"45px","font-weight":ie.font_weight_normal,"line-height":ie.line_height,"margin-top":"24px","margin-bottom":"24px"}},{" h3":{"font-size":"34px","font-weight":ie.font_weight_normal,"line-height":ie.line_height,"margin-top":"24px","margin-bottom":"24px"}},{" h4":{"font-size":"24px","font-weight":ie.font_weight_normal,"line-height":ie.line_height,"-moz-osx-font-smoothing":"grayscale","margin-top":"24px","margin-bottom":"16px"}},{" h5":{"font-size":"20px","font-weight":ie.font_weight_medium,"line-height":ie.line_height,"letter-spacing":"-0.02em","margin-top":"24px","margin-bottom":"16px"}},{" h6":{"font-size":"16px","font-weight":ie.font_weight_normal,"line-height":ie.line_height,"letter-spacing":"0.04em","margin-top":"24px","margin-bottom":"16px"}},{" html, body":{"font-size":"14px","line-height":ie.line_height,"font-weight":ie.font_weight_normal}," p":{"font-size":"14px","font-weight":ie.font_weight_normal,"line-height":ie.line_height,"letter-spacing":"0","margin-bottom":"16px"}," blockquote":{position:"relative","font-size":"24px","font-weight":ie.font_weight_normal,"font-style":"italic","line-height":ie.line_height,"letter-spacing":"0.08em","margin-top":"24px","margin-bottom":"16px"}," ul, ol":{"font-size":"14px","font-weight":ie.font_weight_normal,"line-height":ie.line_height,"letter-spacing":0}," b, strong":{"font-weight":ie.font_weight_medium}}]}],pm=function(){!function(e,t){if(!x){if(!window.WebFontConfig){var n=function(n){var r=n.name,o=n.familyName,i=n.fvd;return F("webfontloader",{name:r,familyName:o,fvd:i,vendor:e,config:t})};window.WebFontConfig={loading:function(){return n({name:"loading"})},active:function(){return n({name:"active"})},inactive:function(){return n({name:"inactive"})},fontloading:function(e,t){return n({name:"fontloading",familyName:e,fvd:t})},fontactive:function(e,t){return n({name:"fontactive",familyName:e,fvd:t})},fontinactive:function(e,t){return n({name:"fontinactive",familyName:e,fvd:t})}},function(){var e=document.createElement("script");e.src=("https:"===document.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js",e.type="text/javascript",e.async=!0;var t=document.getElementsByTagName("script")[0];t&&t.parentNode&&t.parentNode.insertBefore(e,t)}()}var r=window.WebFontConfig[e]||{};t&&lo(r,t),window.WebFontConfig[e]=r}}("google",{families:["Roboto:400,500,700,400italic:latin"]})};xc({selectors:[Wc],fns:Mc,vars:Hc}),xc({selectors:[Hs],fns:qs,vars:Is}),xc({selectors:[Fs],fns:Ts,vars:Cs}),xc({selectors:[Ds],fns:Rs,vars:Cs}),xc({selectors:[$s],fns:Js,vars:Vs}),xc({selectors:[mu],fns:wu,vars:gu}),xc({selectors:[yu],fns:xu,vars:gu}),xc({selectors:[bu],fns:ku,vars:gu}),xc({selectors:[vu],fns:ku,vars:gu}),xc({selectors:[Wu],fns:Mu,vars:Hu}),xc({selectors:[bd],fns:md,vars:fd}),xc({selectors:[nd],fns:td,vars:ed}),xc({selectors:[Gd],fns:Zd,vars:Ud}),xc({selectors:[ip],fns:op,vars:rp}),xc({selectors:[_p],fns:fp,vars:pp}),xc({selectors:[zp],fns:Pp,vars:Sp}),xc({selectors:[Lp],fns:Ap,vars:Dp}),xc({selectors:[Zp],fns:Up,vars:Qp}),xc({selectors:[wf],fns:vf,vars:yf}),xc({selectors:[Bf],fns:qf,vars:Lf}),xc({selectors:[If],fns:Ef,vars:Cf}),xc({selectors:[l_],fns:a_,vars:Xf}),xc({selectors:[k_],fns:x_,vars:y_}),xc({selectors:[w_],fns:v_,vars:y_}),xc({selectors:[z_],fns:P_,vars:S_}),xc({selectors:[A_],fns:D_,vars:F_}),xc({selectors:[U_],fns:Q_,vars:$_}),xc({selectors:[Lu],fns:Au,vars:Du}),xc({selectors:[is],fns:os,vars:rs}),xc({selectors:[bh],fns:mh,vars:gh}),xc({selectors:[Eh],fns:Ch,vars:Ph}),xc({selectors:[Nh],fns:zh,vars:Ph}),xc({selectors:[qh],fns:Lh,vars:Ah}),xc({selectors:[ng],fns:tg,vars:eg}),xc({selectors:[jg],fns:kg,vars:xg}),xc({selectors:[Pg],fns:Og,vars:xg}),xc({selectors:[Jg],fns:Vg,vars:Wg}),xc({selectors:[cm],fns:lm,vars:am}),xc({identifier:"pe-core",selectors:[""],fns:sm,vars:um}),pm(),wc("pe-material-design-typography",dm.map(function(e){return e()}));var fm='';!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.mediaQuery,o=void 0===r?"":r,i=n.scope,a=void 0===i?"":i;As(e,t,{mediaQuery:o,scope:a})}(".themed-button",{color_light_background:"#FF1744",color_light_text:"#fff"}),Bh(".themed-svg",{color_light:"#2196f3"}),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.mediaQuery,o=void 0===r?"":r,i=n.scope,a=void 0===i?"":i;e&&xc({selectors:[e,mu],fns:wu,vars:gu,customVars:t,mediaQuery:o,scope:a}),e&&xc({selectors:[e," "+yu],fns:xu,vars:gu,customVars:t,mediaQuery:o,scope:a}),e&&xc({selectors:[e," "+bu],fns:ku,vars:gu,customVars:t,mediaQuery:o,scope:a}),e&&xc({selectors:[e," "+vu],fns:ku,vars:gu,customVars:t,mediaQuery:o,scope:a})}(".themed-card",{color_dark_main_background:"#B89E58",color_dark_title_text:"#fff",color_dark_subtitle_text:"#fff"});var _m={view:function(){return t(".page",[t(".row",[t("h3","Polythene for Mithril built with Rollup")]),t(".row",[t("h6","SVG"),t(".component",t(Me,{content:t.trust(fm),className:"themed-svg",style:{width:"24px",height:"24px"}}))]),t(".row",[t("h6","Raised Button"),t(".component",t(ht,{raised:!0,label:"Button"}))]),t(".row",[t("h6","Text Button"),t(".component",t(ht,{label:"Button"}))]),t(".row",[t("h6","Themed Regular Button"),t(".component",t(ht,{label:"Button",className:"themed-button"}))]),t(".row",[t("h6","Icon"),t(".component",t(Ge,{size:"large",src:"http://arthurclemens.github.io/assets/polythene/examples/avatar-1.png",avatar:!0}))]),t(".row",[t("h6","Icon Button"),t(".component",t(qn,{icon:{svg:{content:t.trust(fm)}}}))]),t(".row",[t("h6","FAB"),t(".component",t(Br,{icon:{svg:{content:t.trust(fm)}}}))]),t(".row",[t("h6","Tabs"),t(".component",t(Sl,{tabs:[{label:"New"},{label:"Favorites"},{label:"Saved"}],autofit:!0}))]),t(".row",[t("h6","Card"),t(".component",t(tn,{className:"themed-card",tone:"dark",content:[{primary:{title:"Get Ready",subtitle:"2 Unlimited",media:{ratio:"square",size:"medium",content:t("img",{src:"http://arthurclemens.github.io/assets/polythene/examples/2-unlimited.jpg"})}}},{actions:{content:[t(ht,{label:"Listen now"})]}}]}))]),t(".row",[t("h6","Checkbox"),t(".component",t(Wn,{label:"Label"}))]),t(".row",[t("h6","Switch"),t(".component",t(nl,{label:"Label"}))]),t(".row",[t("h6","Radio Button"),t(".component",t(Ei,{name:"defaultChecked",content:[{value:"One",label:"One"},{value:"Two",label:"Two",defaultChecked:!0}]}))]),t(".row",[t("h6","TextField"),t(".component",t(Yi,{defaultValue:"abC",validate:function(e){return e!==e.toLowerCase()?{valid:!1,error:"Only use lowercase characters."}:null},validateAtStart:!0}))]),t(".row",[t("h6","Slider"),t(".component",t(ma,{defaultValue:50}))]),t(".row",[t("h6","Spinner"),t(".component",t(Eo,{permanent:!0}))]),t(".row",[t("h6","Dialog"),t(".component",t(ht,{raised:!0,label:"Show dialog",events:{onclick:function(){return Nr.show({title:"Hello",body:"Click outside to close, or press ESCAPE",backdrop:!0})}}}))]),t(".row",[t("h6","Notification"),t(".component",t(ht,{raised:!0,label:"Show Notification",events:{onclick:function(){return Yo.show({title:"Hello"})}}}))]),t(".row",[t("h6","Snackbar"),t(".component",t(ht,{raised:!0,label:"Show Snackbar",events:{onclick:function(){return Da.show({title:"Hello"})}}}))]),t(Nr),t(Da),t(Yo)])}};t.mount(document.querySelector("#root"),_m)}); //# sourceMappingURL=index.js.map diff --git a/packages/tests-build-rollup/dist/js/index.js.map b/packages/tests-build-rollup/dist/js/index.js.map index 523789a7d..27cd38078 100644 --- a/packages/tests-build-rollup/dist/js/index.js.map +++ b/packages/tests-build-rollup/dist/js/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../../node_modules/mithril/mithril.js","../../../polythene-core/dist/polythene-core.mjs","../../../polythene-core-shadow/dist/polythene-core-shadow.mjs","../../../polythene-core-button/dist/polythene-core-button.mjs","../../../polythene-style/dist/polythene-style.mjs","../../../polythene-core-ripple/dist/polythene-core-ripple.mjs","../../../polythene-mithril-ripple/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-ripple/dist/polythene-mithril-ripple.mjs","../../../polythene-core-icon/dist/polythene-core-icon.mjs","../../../polythene-core-svg/dist/polythene-core-svg.mjs","../../../polythene-mithril-svg/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-icon/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-svg/dist/polythene-mithril-svg.mjs","../../../polythene-mithril-shadow/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-icon/dist/polythene-mithril-icon.mjs","../../../polythene-mithril-button/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-shadow/dist/polythene-mithril-shadow.mjs","../../../polythene-mithril-button/dist/polythene-mithril-button.mjs","../../../polythene-core-card/dist/polythene-core-card.mjs","../../../polythene-mithril-card/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-core-list-tile/dist/polythene-core-list-tile.mjs","../../../polythene-mithril-list-tile/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-list-tile/dist/polythene-mithril-list-tile.mjs","../../../polythene-mithril-card/dist/polythene-mithril-card.mjs","../../../polythene-core-checkbox/dist/polythene-core-checkbox.mjs","../../../polythene-core-selection-control/dist/polythene-core-selection-control.mjs","../../../polythene-mithril-checkbox/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-core-icon-button/dist/polythene-core-icon-button.mjs","../../../polythene-mithril-icon-button/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-icon-button/dist/polythene-mithril-icon-button.mjs","../../../polythene-mithril-checkbox/dist/polythene-mithril-checkbox.mjs","../../../polythene-mithril-dialog/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-core-dialog/dist/polythene-core-dialog.mjs","../../../polythene-core-dialog-pane/dist/polythene-core-dialog-pane.mjs","../../../polythene-mithril-dialog-pane/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-dialog-pane/dist/polythene-mithril-dialog-pane.mjs","../../../polythene-mithril-dialog/dist/polythene-mithril-dialog.mjs","../../../polythene-core-fab/dist/polythene-core-fab.mjs","../../../polythene-mithril-fab/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-fab/dist/polythene-mithril-fab.mjs","../../../polythene-core-base-spinner/dist/polythene-core-base-spinner.mjs","../../../polythene-mithril-base-spinner/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-base-spinner/dist/polythene-mithril-base-spinner.mjs","../../../polythene-utilities/dist/polythene-utilities.mjs","../../../polythene-core-material-design-spinner/dist/polythene-core-material-design-spinner.mjs","../../../polythene-mithril-material-design-spinner/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-material-design-spinner/dist/polythene-mithril-material-design-spinner.mjs","../../../polythene-mithril-notification/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-core-notification/dist/polythene-core-notification.mjs","../../../polythene-mithril-notification/dist/polythene-mithril-notification.mjs","../../../polythene-core-radio-button/dist/polythene-core-radio-button.mjs","../../../polythene-mithril-radio-button/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-radio-button/dist/polythene-mithril-radio-button.mjs","../../../polythene-core-radio-group/dist/polythene-core-radio-group.mjs","../../../polythene-mithril-radio-group/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-radio-group/dist/polythene-mithril-radio-group.mjs","../../../polythene-core-textfield/dist/polythene-core-textfield.mjs","../../../polythene-mithril-textfield/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-textfield/dist/polythene-mithril-textfield.mjs","../../../polythene-core-slider/dist/polythene-core-slider.mjs","../../../polythene-mithril-slider/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-snackbar/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-slider/dist/polythene-mithril-slider.mjs","../../../polythene-core-snackbar/dist/polythene-core-snackbar.mjs","../../../polythene-mithril-snackbar/dist/polythene-mithril-snackbar.mjs","../../../polythene-core-switch/dist/polythene-core-switch.mjs","../../../polythene-mithril-switch/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-switch/dist/polythene-mithril-switch.mjs","../../../polythene-core-tabs/dist/polythene-core-tabs.mjs","../../../polythene-mithril-tabs/node_modules/cyano-mithril/dist/cyano-mithril.mjs","../../../polythene-mithril-tabs/dist/polythene-mithril-tabs.mjs","../../../polythene-core-css/node_modules/j2c/dist/j2c.commonjs.js","../../../polythene-core-css/dist/polythene-core-css.mjs","../../../polythene-css-base-spinner/dist/polythene-css-base-spinner.mjs","../../../polythene-css-shadow/dist/polythene-css-shadow.mjs","../../../polythene-css-button/dist/polythene-css-button.mjs","../../../polythene-css-button-group/dist/polythene-css-button-group.mjs","../../../polythene-css-card/dist/polythene-css-card.mjs","../../../polythene-css-selection-control/dist/polythene-css-selection-control.mjs","../../../polythene-css-checkbox/dist/polythene-css-checkbox.mjs","../../../polythene-css-dialog-pane/dist/polythene-css-dialog-pane.mjs","../../../polythene-css-dialog/dist/polythene-css-dialog.mjs","../../../polythene-css-drawer/dist/polythene-css-drawer.mjs","../../../polythene-css-fab/dist/polythene-css-fab.mjs","../../../polythene-css-icon/dist/polythene-css-icon.mjs","../../../polythene-css-icon-button/dist/polythene-css-icon-button.mjs","../../../polythene-css-ios-spinner/dist/polythene-css-ios-spinner.mjs","../../../polythene-css-list/dist/polythene-css-list.mjs","../../../polythene-css-list-tile/dist/polythene-css-list-tile.mjs","../../../polythene-css-material-design-spinner/dist/polythene-css-material-design-spinner.mjs","../../../polythene-css-material-design-progress-spinner/dist/polythene-css-material-design-progress-spinner.mjs","../../../polythene-css-menu/dist/polythene-css-menu.mjs","../../../polythene-css-notification/dist/polythene-css-notification.mjs","../../../polythene-css-radio-button/dist/polythene-css-radio-button.mjs","../../../polythene-css-ripple/dist/polythene-css-ripple.mjs","../../../polythene-css-search/dist/polythene-css-search.mjs","../../../polythene-css-slider/dist/polythene-css-slider.mjs","../../../polythene-css-snackbar/dist/polythene-css-snackbar.mjs","../../../polythene-css-svg/dist/polythene-css-svg.mjs","../../../polythene-css-switch/dist/polythene-css-switch.mjs","../../../polythene-css-tabs/dist/polythene-css-tabs.mjs","../../../polythene-css-textfield/dist/polythene-css-textfield.mjs","../../../polythene-css-toolbar/dist/polythene-css-toolbar.mjs","../../../polythene-css-core/dist/polythene-css-core.mjs","../../../polythene-css-typography/dist/polythene-css-typography.mjs","../../src/index.js"],"sourcesContent":[";(function() {\n\"use strict\"\nfunction Vnode(tag, key, attrs0, children0, text, dom) {\n\treturn {tag: tag, key: key, attrs: attrs0, children: children0, text: text, dom: dom, domSize: undefined, state: undefined, events: undefined, instance: undefined}\n}\nVnode.normalize = function(node) {\n\tif (Array.isArray(node)) return Vnode(\"[\", undefined, undefined, Vnode.normalizeChildren(node), undefined, undefined)\n\tif (node == null || typeof node === \"boolean\") return null\n\tif (typeof node === \"object\") return node\n\treturn Vnode(\"#\", undefined, undefined, String(node), undefined, undefined)\n}\nVnode.normalizeChildren = function(input) {\n\tvar children0 = []\n\tif (input.length) {\n\t\tvar isKeyed = input[0] != null && input[0].key != null\n\t\t// Note: this is a *very* perf-sensitive check.\n\t\t// Fun fact: merging the loop like this is somehow faster than splitting\n\t\t// it, noticeably so.\n\t\tfor (var i = 1; i < input.length; i++) {\n\t\t\tif ((input[i] != null && input[i].key != null) !== isKeyed) {\n\t\t\t\tthrow new TypeError(\"Vnodes must either always have keys or never have keys!\")\n\t\t\t}\n\t\t}\n\t\tfor (var i = 0; i < input.length; i++) {\n\t\t\tchildren0[i] = Vnode.normalize(input[i])\n\t\t}\n\t}\n\treturn children0\n}\n// Call via `hyperscriptVnode0.apply(startOffset, arguments)`\n//\n// The reason I do it this way, forwarding the arguments and passing the start\n// offset in `this`, is so I don't have to create a temporary array in a\n// performance-critical path.\n//\n// In native ES6, I'd instead add a final `...args` parameter to the\n// `hyperscript0` and `fragment` factories and define this as\n// `hyperscriptVnode0(...args)`, since modern engines do optimize that away. But\n// ES5 (what Mithril requires thanks to IE support) doesn't give me that luxury,\n// and engines aren't nearly intelligent enough to do either of these:\n//\n// 1. Elide the allocation for `[].slice.call(arguments, 1)` when it's passed to\n// another function only to be indexed.\n// 2. Elide an `arguments` allocation when it's passed to any function other\n// than `Function.prototype.apply` or `Reflect.apply`.\n//\n// In ES6, it'd probably look closer to this (I'd need to profile it, though):\n// var hyperscriptVnode = function(attrs1, ...children1) {\n// if (attrs1 == null || typeof attrs1 === \"object\" && attrs1.tag == null && !Array.isArray(attrs1)) {\n// if (children1.length === 1 && Array.isArray(children1[0])) children1 = children1[0]\n// } else {\n// children1 = children1.length === 0 && Array.isArray(attrs1) ? attrs1 : [attrs1, ...children1]\n// attrs1 = undefined\n// }\n//\n// if (attrs1 == null) attrs1 = {}\n// return Vnode(\"\", attrs1.key, attrs1, children1)\n// }\nvar hyperscriptVnode = function() {\n\tvar attrs1 = arguments[this], start = this + 1, children1\n\tif (attrs1 == null) {\n\t\tattrs1 = {}\n\t} else if (typeof attrs1 !== \"object\" || attrs1.tag != null || Array.isArray(attrs1)) {\n\t\tattrs1 = {}\n\t\tstart = this\n\t}\n\tif (arguments.length === start + 1) {\n\t\tchildren1 = arguments[start]\n\t\tif (!Array.isArray(children1)) children1 = [children1]\n\t} else {\n\t\tchildren1 = []\n\t\twhile (start < arguments.length) children1.push(arguments[start++])\n\t}\n\treturn Vnode(\"\", attrs1.key, attrs1, children1)\n}\nvar selectorParser = /(?:(^|#|\\.)([^#\\.\\[\\]]+))|(\\[(.+?)(?:\\s*=\\s*(\"|'|)((?:\\\\[\"'\\]]|.)*?)\\5)?\\])/g\nvar selectorCache = {}\nvar hasOwn = {}.hasOwnProperty\nfunction isEmpty(object) {\n\tfor (var key in object) if (hasOwn.call(object, key)) return false\n\treturn true\n}\nfunction compileSelector(selector) {\n\tvar match, tag = \"div\", classes = [], attrs = {}\n\twhile (match = selectorParser.exec(selector)) {\n\t\tvar type = match[1], value = match[2]\n\t\tif (type === \"\" && value !== \"\") tag = value\n\t\telse if (type === \"#\") attrs.id = value\n\t\telse if (type === \".\") classes.push(value)\n\t\telse if (match[3][0] === \"[\") {\n\t\t\tvar attrValue = match[6]\n\t\t\tif (attrValue) attrValue = attrValue.replace(/\\\\([\"'])/g, \"$1\").replace(/\\\\\\\\/g, \"\\\\\")\n\t\t\tif (match[4] === \"class\") classes.push(attrValue)\n\t\t\telse attrs[match[4]] = attrValue === \"\" ? attrValue : attrValue || true\n\t\t}\n\t}\n\tif (classes.length > 0) attrs.className = classes.join(\" \")\n\treturn selectorCache[selector] = {tag: tag, attrs: attrs}\n}\nfunction execSelector(state, vnode) {\n\tvar attrs = vnode.attrs\n\tvar children = Vnode.normalizeChildren(vnode.children)\n\tvar hasClass = hasOwn.call(attrs, \"class\")\n\tvar className = hasClass ? attrs.class : attrs.className\n\tvnode.tag = state.tag\n\tvnode.attrs = null\n\tvnode.children = undefined\n\tif (!isEmpty(state.attrs) && !isEmpty(attrs)) {\n\t\tvar newAttrs = {}\n\t\tfor (var key in attrs) {\n\t\t\tif (hasOwn.call(attrs, key)) newAttrs[key] = attrs[key]\n\t\t}\n\t\tattrs = newAttrs\n\t}\n\tfor (var key in state.attrs) {\n\t\tif (hasOwn.call(state.attrs, key) && key !== \"className\" && !hasOwn.call(attrs, key)){\n\t\t\tattrs[key] = state.attrs[key]\n\t\t}\n\t}\n\tif (className != null || state.attrs.className != null) attrs.className =\n\t\tclassName != null\n\t\t\t? state.attrs.className != null\n\t\t\t\t? String(state.attrs.className) + \" \" + String(className)\n\t\t\t\t: className\n\t\t\t: state.attrs.className != null\n\t\t\t\t? state.attrs.className\n\t\t\t\t: null\n\tif (hasClass) attrs.class = null\n\tfor (var key in attrs) {\n\t\tif (hasOwn.call(attrs, key) && key !== \"key\") {\n\t\t\tvnode.attrs = attrs\n\t\t\tbreak\n\t\t}\n\t}\n\tif (Array.isArray(children) && children.length === 1 && children[0] != null && children[0].tag === \"#\") {\n\t\tvnode.text = children[0].children\n\t} else {\n\t\tvnode.children = children\n\t}\n\treturn vnode\n}\nfunction hyperscript(selector) {\n\tif (selector == null || typeof selector !== \"string\" && typeof selector !== \"function\" && typeof selector.view !== \"function\") {\n\t\tthrow Error(\"The selector must be either a string or a component.\");\n\t}\n\tvar vnode = hyperscriptVnode.apply(1, arguments)\n\tif (typeof selector === \"string\") {\n\t\tvnode.children = Vnode.normalizeChildren(vnode.children)\n\t\tif (selector !== \"[\") return execSelector(selectorCache[selector] || compileSelector(selector), vnode)\n\t}\n\tvnode.tag = selector\n\treturn vnode\n}\nhyperscript.trust = function(html) {\n\tif (html == null) html = \"\"\n\treturn Vnode(\"<\", undefined, undefined, html, undefined, undefined)\n}\nhyperscript.fragment = function() {\n\tvar vnode2 = hyperscriptVnode.apply(0, arguments)\n\tvnode2.tag = \"[\"\n\tvnode2.children = Vnode.normalizeChildren(vnode2.children)\n\treturn vnode2\n}\n/** @constructor */\nvar PromisePolyfill = function(executor) {\n\tif (!(this instanceof PromisePolyfill)) throw new Error(\"Promise must be called with `new`\")\n\tif (typeof executor !== \"function\") throw new TypeError(\"executor must be a function\")\n\tvar self = this, resolvers = [], rejectors = [], resolveCurrent = handler(resolvers, true), rejectCurrent = handler(rejectors, false)\n\tvar instance = self._instance = {resolvers: resolvers, rejectors: rejectors}\n\tvar callAsync = typeof setImmediate === \"function\" ? setImmediate : setTimeout\n\tfunction handler(list, shouldAbsorb) {\n\t\treturn function execute(value) {\n\t\t\tvar then\n\t\t\ttry {\n\t\t\t\tif (shouldAbsorb && value != null && (typeof value === \"object\" || typeof value === \"function\") && typeof (then = value.then) === \"function\") {\n\t\t\t\t\tif (value === self) throw new TypeError(\"Promise can't be resolved w/ itself\")\n\t\t\t\t\texecuteOnce(then.bind(value))\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcallAsync(function() {\n\t\t\t\t\t\tif (!shouldAbsorb && list.length === 0) console.error(\"Possible unhandled promise rejection:\", value)\n\t\t\t\t\t\tfor (var i = 0; i < list.length; i++) list[i](value)\n\t\t\t\t\t\tresolvers.length = 0, rejectors.length = 0\n\t\t\t\t\t\tinstance.state = shouldAbsorb\n\t\t\t\t\t\tinstance.retry = function() {execute(value)}\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (e) {\n\t\t\t\trejectCurrent(e)\n\t\t\t}\n\t\t}\n\t}\n\tfunction executeOnce(then) {\n\t\tvar runs = 0\n\t\tfunction run(fn) {\n\t\t\treturn function(value) {\n\t\t\t\tif (runs++ > 0) return\n\t\t\t\tfn(value)\n\t\t\t}\n\t\t}\n\t\tvar onerror = run(rejectCurrent)\n\t\ttry {then(run(resolveCurrent), onerror)} catch (e) {onerror(e)}\n\t}\n\texecuteOnce(executor)\n}\nPromisePolyfill.prototype.then = function(onFulfilled, onRejection) {\n\tvar self = this, instance = self._instance\n\tfunction handle(callback, list, next, state) {\n\t\tlist.push(function(value) {\n\t\t\tif (typeof callback !== \"function\") next(value)\n\t\t\telse try {resolveNext(callback(value))} catch (e) {if (rejectNext) rejectNext(e)}\n\t\t})\n\t\tif (typeof instance.retry === \"function\" && state === instance.state) instance.retry()\n\t}\n\tvar resolveNext, rejectNext\n\tvar promise = new PromisePolyfill(function(resolve, reject) {resolveNext = resolve, rejectNext = reject})\n\thandle(onFulfilled, instance.resolvers, resolveNext, true), handle(onRejection, instance.rejectors, rejectNext, false)\n\treturn promise\n}\nPromisePolyfill.prototype.catch = function(onRejection) {\n\treturn this.then(null, onRejection)\n}\nPromisePolyfill.prototype.finally = function(callback) {\n\treturn this.then(\n\t\tfunction(value) {\n\t\t\treturn PromisePolyfill.resolve(callback()).then(function() {\n\t\t\t\treturn value\n\t\t\t})\n\t\t},\n\t\tfunction(reason) {\n\t\t\treturn PromisePolyfill.resolve(callback()).then(function() {\n\t\t\t\treturn PromisePolyfill.reject(reason);\n\t\t\t})\n\t\t}\n\t)\n}\nPromisePolyfill.resolve = function(value) {\n\tif (value instanceof PromisePolyfill) return value\n\treturn new PromisePolyfill(function(resolve) {resolve(value)})\n}\nPromisePolyfill.reject = function(value) {\n\treturn new PromisePolyfill(function(resolve, reject) {reject(value)})\n}\nPromisePolyfill.all = function(list) {\n\treturn new PromisePolyfill(function(resolve, reject) {\n\t\tvar total = list.length, count = 0, values = []\n\t\tif (list.length === 0) resolve([])\n\t\telse for (var i = 0; i < list.length; i++) {\n\t\t\t(function(i) {\n\t\t\t\tfunction consume(value) {\n\t\t\t\t\tcount++\n\t\t\t\t\tvalues[i] = value\n\t\t\t\t\tif (count === total) resolve(values)\n\t\t\t\t}\n\t\t\t\tif (list[i] != null && (typeof list[i] === \"object\" || typeof list[i] === \"function\") && typeof list[i].then === \"function\") {\n\t\t\t\t\tlist[i].then(consume, reject)\n\t\t\t\t}\n\t\t\t\telse consume(list[i])\n\t\t\t})(i)\n\t\t}\n\t})\n}\nPromisePolyfill.race = function(list) {\n\treturn new PromisePolyfill(function(resolve, reject) {\n\t\tfor (var i = 0; i < list.length; i++) {\n\t\t\tlist[i].then(resolve, reject)\n\t\t}\n\t})\n}\nif (typeof window !== \"undefined\") {\n\tif (typeof window.Promise === \"undefined\") {\n\t\twindow.Promise = PromisePolyfill\n\t} else if (!window.Promise.prototype.finally) {\n\t\twindow.Promise.prototype.finally = PromisePolyfill.prototype.finally\n\t}\n\tvar PromisePolyfill = window.Promise\n} else if (typeof global !== \"undefined\") {\n\tif (typeof global.Promise === \"undefined\") {\n\t\tglobal.Promise = PromisePolyfill\n\t} else if (!global.Promise.prototype.finally) {\n\t\tglobal.Promise.prototype.finally = PromisePolyfill.prototype.finally\n\t}\n\tvar PromisePolyfill = global.Promise\n} else {\n}\nvar _12 = function($window) {\n\tvar $doc = $window && $window.document\n\tvar currentRedraw\n\tvar nameSpace = {\n\t\tsvg: \"http://www.w3.org/2000/svg\",\n\t\tmath: \"http://www.w3.org/1998/Math/MathML\"\n\t}\n\tfunction getNameSpace(vnode3) {\n\t\treturn vnode3.attrs && vnode3.attrs.xmlns || nameSpace[vnode3.tag]\n\t}\n\t//sanity check to discourage people from doing `vnode3.state = ...`\n\tfunction checkState(vnode3, original) {\n\t\tif (vnode3.state !== original) throw new Error(\"`vnode.state` must not be modified\")\n\t}\n\t//Note: the hook is passed as the `this` argument to allow proxying the\n\t//arguments without requiring a full array allocation to do so. It also\n\t//takes advantage of the fact the current `vnode3` is the first argument in\n\t//all lifecycle methods.\n\tfunction callHook(vnode3) {\n\t\tvar original = vnode3.state\n\t\ttry {\n\t\t\treturn this.apply(original, arguments)\n\t\t} finally {\n\t\t\tcheckState(vnode3, original)\n\t\t}\n\t}\n\t// IE11 (at least) throws an UnspecifiedError when accessing document.activeElement when\n\t// inside an iframe. Catch and swallow this error, and heavy-handidly return null.\n\tfunction activeElement() {\n\t\ttry {\n\t\t\treturn $doc.activeElement\n\t\t} catch (e) {\n\t\t\treturn null\n\t\t}\n\t}\n\t//create\n\tfunction createNodes(parent, vnodes, start, end, hooks, nextSibling, ns) {\n\t\tfor (var i = start; i < end; i++) {\n\t\t\tvar vnode3 = vnodes[i]\n\t\t\tif (vnode3 != null) {\n\t\t\t\tcreateNode(parent, vnode3, hooks, ns, nextSibling)\n\t\t\t}\n\t\t}\n\t}\n\tfunction createNode(parent, vnode3, hooks, ns, nextSibling) {\n\t\tvar tag = vnode3.tag\n\t\tif (typeof tag === \"string\") {\n\t\t\tvnode3.state = {}\n\t\t\tif (vnode3.attrs != null) initLifecycle(vnode3.attrs, vnode3, hooks)\n\t\t\tswitch (tag) {\n\t\t\t\tcase \"#\": createText(parent, vnode3, nextSibling); break\n\t\t\t\tcase \"<\": createHTML(parent, vnode3, ns, nextSibling); break\n\t\t\t\tcase \"[\": createFragment(parent, vnode3, hooks, ns, nextSibling); break\n\t\t\t\tdefault: createElement(parent, vnode3, hooks, ns, nextSibling)\n\t\t\t}\n\t\t}\n\t\telse createComponent(parent, vnode3, hooks, ns, nextSibling)\n\t}\n\tfunction createText(parent, vnode3, nextSibling) {\n\t\tvnode3.dom = $doc.createTextNode(vnode3.children)\n\t\tinsertNode(parent, vnode3.dom, nextSibling)\n\t}\n\tvar possibleParents = {caption: \"table\", thead: \"table\", tbody: \"table\", tfoot: \"table\", tr: \"tbody\", th: \"tr\", td: \"tr\", colgroup: \"table\", col: \"colgroup\"}\n\tfunction createHTML(parent, vnode3, ns, nextSibling) {\n\t\tvar match0 = vnode3.children.match(/^\\s*?<(\\w+)/im) || []\n\t\t// not using the proper parent makes the child element(s) vanish.\n\t\t// var div = document.createElement(\"div\")\n\t\t// div.innerHTML = \"ij\"\n\t\t// console.log(div.innerHTML)\n\t\t// --> \"ij\", no in sight.\n\t\tvar temp = $doc.createElement(possibleParents[match0[1]] || \"div\")\n\t\tif (ns === \"http://www.w3.org/2000/svg\") {\n\t\t\ttemp.innerHTML = \"\" + vnode3.children + \"\"\n\t\t\ttemp = temp.firstChild\n\t\t} else {\n\t\t\ttemp.innerHTML = vnode3.children\n\t\t}\n\t\tvnode3.dom = temp.firstChild\n\t\tvnode3.domSize = temp.childNodes.length\n\t\t// Capture nodes to remove, so we don't confuse them.\n\t\tvnode3.instance = []\n\t\tvar fragment = $doc.createDocumentFragment()\n\t\tvar child\n\t\twhile (child = temp.firstChild) {\n\t\t\tvnode3.instance.push(child)\n\t\t\tfragment.appendChild(child)\n\t\t}\n\t\tinsertNode(parent, fragment, nextSibling)\n\t}\n\tfunction createFragment(parent, vnode3, hooks, ns, nextSibling) {\n\t\tvar fragment = $doc.createDocumentFragment()\n\t\tif (vnode3.children != null) {\n\t\t\tvar children3 = vnode3.children\n\t\t\tcreateNodes(fragment, children3, 0, children3.length, hooks, null, ns)\n\t\t}\n\t\tvnode3.dom = fragment.firstChild\n\t\tvnode3.domSize = fragment.childNodes.length\n\t\tinsertNode(parent, fragment, nextSibling)\n\t}\n\tfunction createElement(parent, vnode3, hooks, ns, nextSibling) {\n\t\tvar tag = vnode3.tag\n\t\tvar attrs2 = vnode3.attrs\n\t\tvar is = attrs2 && attrs2.is\n\t\tns = getNameSpace(vnode3) || ns\n\t\tvar element = ns ?\n\t\t\tis ? $doc.createElementNS(ns, tag, {is: is}) : $doc.createElementNS(ns, tag) :\n\t\t\tis ? $doc.createElement(tag, {is: is}) : $doc.createElement(tag)\n\t\tvnode3.dom = element\n\t\tif (attrs2 != null) {\n\t\t\tsetAttrs(vnode3, attrs2, ns)\n\t\t}\n\t\tinsertNode(parent, element, nextSibling)\n\t\tif (!maybeSetContentEditable(vnode3)) {\n\t\t\tif (vnode3.text != null) {\n\t\t\t\tif (vnode3.text !== \"\") element.textContent = vnode3.text\n\t\t\t\telse vnode3.children = [Vnode(\"#\", undefined, undefined, vnode3.text, undefined, undefined)]\n\t\t\t}\n\t\t\tif (vnode3.children != null) {\n\t\t\t\tvar children3 = vnode3.children\n\t\t\t\tcreateNodes(element, children3, 0, children3.length, hooks, null, ns)\n\t\t\t\tif (vnode3.tag === \"select\" && attrs2 != null) setLateSelectAttrs(vnode3, attrs2)\n\t\t\t}\n\t\t}\n\t}\n\tfunction initComponent(vnode3, hooks) {\n\t\tvar sentinel\n\t\tif (typeof vnode3.tag.view === \"function\") {\n\t\t\tvnode3.state = Object.create(vnode3.tag)\n\t\t\tsentinel = vnode3.state.view\n\t\t\tif (sentinel.$$reentrantLock$$ != null) return\n\t\t\tsentinel.$$reentrantLock$$ = true\n\t\t} else {\n\t\t\tvnode3.state = void 0\n\t\t\tsentinel = vnode3.tag\n\t\t\tif (sentinel.$$reentrantLock$$ != null) return\n\t\t\tsentinel.$$reentrantLock$$ = true\n\t\t\tvnode3.state = (vnode3.tag.prototype != null && typeof vnode3.tag.prototype.view === \"function\") ? new vnode3.tag(vnode3) : vnode3.tag(vnode3)\n\t\t}\n\t\tinitLifecycle(vnode3.state, vnode3, hooks)\n\t\tif (vnode3.attrs != null) initLifecycle(vnode3.attrs, vnode3, hooks)\n\t\tvnode3.instance = Vnode.normalize(callHook.call(vnode3.state.view, vnode3))\n\t\tif (vnode3.instance === vnode3) throw Error(\"A view cannot return the vnode it received as argument\")\n\t\tsentinel.$$reentrantLock$$ = null\n\t}\n\tfunction createComponent(parent, vnode3, hooks, ns, nextSibling) {\n\t\tinitComponent(vnode3, hooks)\n\t\tif (vnode3.instance != null) {\n\t\t\tcreateNode(parent, vnode3.instance, hooks, ns, nextSibling)\n\t\t\tvnode3.dom = vnode3.instance.dom\n\t\t\tvnode3.domSize = vnode3.dom != null ? vnode3.instance.domSize : 0\n\t\t}\n\t\telse {\n\t\t\tvnode3.domSize = 0\n\t\t}\n\t}\n\t//update\n\t/**\n\t * @param {Element|Fragment} parent - the parent element\n\t * @param {Vnode[] | null} old - the list of vnodes of the last `render0()` call for\n\t * this part of the tree\n\t * @param {Vnode[] | null} vnodes - as above, but for the current `render0()` call.\n\t * @param {Function[]} hooks - an accumulator of post-render0 hooks (oncreate/onupdate)\n\t * @param {Element | null} nextSibling - the next DOM node if we're dealing with a\n\t * fragment that is not the last item in its\n\t * parent\n\t * @param {'svg' | 'math' | String | null} ns) - the current XML namespace, if any\n\t * @returns void\n\t */\n\t// This function diffs and patches lists of vnodes, both keyed and unkeyed.\n\t//\n\t// We will:\n\t//\n\t// 1. describe its general structure\n\t// 2. focus on the diff algorithm optimizations\n\t// 3. discuss DOM node operations.\n\t// ## Overview:\n\t//\n\t// The updateNodes() function:\n\t// - deals with trivial cases\n\t// - determines whether the lists are keyed or unkeyed based on the first non-null node\n\t// of each list.\n\t// - diffs them and patches the DOM if needed (that's the brunt of the code)\n\t// - manages the leftovers: after diffing, are there:\n\t// - old nodes left to remove?\n\t// \t - new nodes to insert?\n\t// \t deal with them!\n\t//\n\t// The lists are only iterated over once, with an exception for the nodes in `old` that\n\t// are visited in the fourth part of the diff and in the `removeNodes` loop.\n\t// ## Diffing\n\t//\n\t// Reading https://github.com/localvoid/ivi/blob/ddc09d06abaef45248e6133f7040d00d3c6be853/packages/ivi/src/vdom/implementation.ts#L617-L837\n\t// may be good for context on longest increasing subsequence-based logic for moving nodes.\n\t//\n\t// In order to diff keyed lists, one has to\n\t//\n\t// 1) match0 nodes in both lists, per key, and update them accordingly\n\t// 2) create the nodes present in the new list, but absent in the old one\n\t// 3) remove the nodes present in the old list, but absent in the new one\n\t// 4) figure out what nodes in 1) to move in order to minimize the DOM operations.\n\t//\n\t// To achieve 1) one can create a dictionary of keys => index (for the old list), then0 iterate\n\t// over the new list and for each new vnode3, find the corresponding vnode3 in the old list using\n\t// the map.\n\t// 2) is achieved in the same step: if a new node has no corresponding entry in the map, it is new\n\t// and must be created.\n\t// For the removals, we actually remove the nodes that have been updated from the old list.\n\t// The nodes that remain in that list after 1) and 2) have been performed can be safely removed.\n\t// The fourth step is a bit more complex and relies on the longest increasing subsequence (LIS)\n\t// algorithm.\n\t//\n\t// the longest increasing subsequence is the list of nodes that can remain in place. Imagine going\n\t// from `1,2,3,4,5` to `4,5,1,2,3` where the numbers are not necessarily the keys, but the indices\n\t// corresponding to the keyed nodes in the old list (keyed nodes `e,d,c,b,a` => `b,a,e,d,c` would\n\t// match0 the above lists, for example).\n\t//\n\t// In there are two increasing subsequences: `4,5` and `1,2,3`, the latter being the longest. We\n\t// can update those nodes without moving them, and only call `insertNode` on `4` and `5`.\n\t//\n\t// @localvoid adapted the algo to also support node deletions and insertions (the `lis` is actually\n\t// the longest increasing subsequence *of old nodes still present in the new list*).\n\t//\n\t// It is a general algorithm that is fireproof in all circumstances, but it requires the allocation\n\t// and the construction of a `key => oldIndex` map, and three arrays (one with `newIndex => oldIndex`,\n\t// the `LIS` and a temporary one to create the LIS).\n\t//\n\t// So we cheat where we can: if the tails of the lists are identical, they are guaranteed to be part of\n\t// the LIS and can be updated without moving them.\n\t//\n\t// If two nodes are swapped, they are guaranteed not to be part of the LIS, and must be moved (with\n\t// the exception of the last node if the list is fully reversed).\n\t//\n\t// ## Finding the next sibling.\n\t//\n\t// `updateNode()` and `createNode()` expect a nextSibling parameter to perform DOM operations.\n\t// When the list is being traversed top-down, at any index, the DOM nodes up to the previous\n\t// vnode3 reflect the content of the new list, whereas the rest of the DOM nodes reflect the old\n\t// list. The next sibling must be looked for in the old list using `getNextSibling(... oldStart + 1 ...)`.\n\t//\n\t// In the other scenarios (swaps, upwards traversal, map-based diff),\n\t// the new vnodes list is traversed upwards. The DOM nodes at the bottom of the list reflect the\n\t// bottom part of the new vnodes list, and we can use the `v.dom` value of the previous node\n\t// as the next sibling (cached in the `nextSibling` variable).\n\t// ## DOM node moves\n\t//\n\t// In most scenarios `updateNode()` and `createNode()` perform the DOM operations. However,\n\t// this is not the case if the node moved (second and fourth part of the diff algo). We move\n\t// the old DOM nodes before updateNode runs0 because it enables us to use the cached `nextSibling`\n\t// variable rather than fetching it using `getNextSibling()`.\n\t//\n\t// The fourth part of the diff currently inserts nodes unconditionally, leading to issues\n\t// like #1791 and #1999. We need to be smarter about those situations where adjascent old\n\t// nodes remain together in the new list in a way that isn't covered by parts one and\n\t// three of the diff algo.\n\tfunction updateNodes(parent, old, vnodes, hooks, nextSibling, ns) {\n\t\tif (old === vnodes || old == null && vnodes == null) return\n\t\telse if (old == null || old.length === 0) createNodes(parent, vnodes, 0, vnodes.length, hooks, nextSibling, ns)\n\t\telse if (vnodes == null || vnodes.length === 0) removeNodes(parent, old, 0, old.length)\n\t\telse {\n\t\t\tvar isOldKeyed = old[0] != null && old[0].key != null\n\t\t\tvar isKeyed0 = vnodes[0] != null && vnodes[0].key != null\n\t\t\tvar start = 0, oldStart = 0\n\t\t\tif (!isOldKeyed) while (oldStart < old.length && old[oldStart] == null) oldStart++\n\t\t\tif (!isKeyed0) while (start < vnodes.length && vnodes[start] == null) start++\n\t\t\tif (isKeyed0 === null && isOldKeyed == null) return // both lists are full of nulls\n\t\t\tif (isOldKeyed !== isKeyed0) {\n\t\t\t\tremoveNodes(parent, old, oldStart, old.length)\n\t\t\t\tcreateNodes(parent, vnodes, start, vnodes.length, hooks, nextSibling, ns)\n\t\t\t} else if (!isKeyed0) {\n\t\t\t\t// Don't index past the end of either list (causes deopts).\n\t\t\t\tvar commonLength = old.length < vnodes.length ? old.length : vnodes.length\n\t\t\t\t// Rewind if necessary to the first non-null index on either side.\n\t\t\t\t// We could alternatively either explicitly create or remove nodes when `start !== oldStart`\n\t\t\t\t// but that would be optimizing for sparse lists which are more rare than dense ones.\n\t\t\t\tstart = start < oldStart ? start : oldStart\n\t\t\t\tfor (; start < commonLength; start++) {\n\t\t\t\t\to = old[start]\n\t\t\t\t\tv = vnodes[start]\n\t\t\t\t\tif (o === v || o == null && v == null) continue\n\t\t\t\t\telse if (o == null) createNode(parent, v, hooks, ns, getNextSibling(old, start + 1, nextSibling))\n\t\t\t\t\telse if (v == null) removeNode(parent, o)\n\t\t\t\t\telse updateNode(parent, o, v, hooks, getNextSibling(old, start + 1, nextSibling), ns)\n\t\t\t\t}\n\t\t\t\tif (old.length > commonLength) removeNodes(parent, old, start, old.length)\n\t\t\t\tif (vnodes.length > commonLength) createNodes(parent, vnodes, start, vnodes.length, hooks, nextSibling, ns)\n\t\t\t} else {\n\t\t\t\t// keyed diff\n\t\t\t\tvar oldEnd = old.length - 1, end = vnodes.length - 1, map, o, v, oe, ve, topSibling\n\t\t\t\t// bottom-up\n\t\t\t\twhile (oldEnd >= oldStart && end >= start) {\n\t\t\t\t\toe = old[oldEnd]\n\t\t\t\t\tve = vnodes[end]\n\t\t\t\t\tif (oe.key !== ve.key) break\n\t\t\t\t\tif (oe !== ve) updateNode(parent, oe, ve, hooks, nextSibling, ns)\n\t\t\t\t\tif (ve.dom != null) nextSibling = ve.dom\n\t\t\t\t\toldEnd--, end--\n\t\t\t\t}\n\t\t\t\t// top-down\n\t\t\t\twhile (oldEnd >= oldStart && end >= start) {\n\t\t\t\t\to = old[oldStart]\n\t\t\t\t\tv = vnodes[start]\n\t\t\t\t\tif (o.key !== v.key) break\n\t\t\t\t\toldStart++, start++\n\t\t\t\t\tif (o !== v) updateNode(parent, o, v, hooks, getNextSibling(old, oldStart, nextSibling), ns)\n\t\t\t\t}\n\t\t\t\t// swaps and list reversals\n\t\t\t\twhile (oldEnd >= oldStart && end >= start) {\n\t\t\t\t\tif (start === end) break\n\t\t\t\t\tif (o.key !== ve.key || oe.key !== v.key) break\n\t\t\t\t\ttopSibling = getNextSibling(old, oldStart, nextSibling)\n\t\t\t\t\tmoveNodes(parent, oe, topSibling)\n\t\t\t\t\tif (oe !== v) updateNode(parent, oe, v, hooks, topSibling, ns)\n\t\t\t\t\tif (++start <= --end) moveNodes(parent, o, nextSibling)\n\t\t\t\t\tif (o !== ve) updateNode(parent, o, ve, hooks, nextSibling, ns)\n\t\t\t\t\tif (ve.dom != null) nextSibling = ve.dom\n\t\t\t\t\toldStart++; oldEnd--\n\t\t\t\t\toe = old[oldEnd]\n\t\t\t\t\tve = vnodes[end]\n\t\t\t\t\to = old[oldStart]\n\t\t\t\t\tv = vnodes[start]\n\t\t\t\t}\n\t\t\t\t// bottom up once again\n\t\t\t\twhile (oldEnd >= oldStart && end >= start) {\n\t\t\t\t\tif (oe.key !== ve.key) break\n\t\t\t\t\tif (oe !== ve) updateNode(parent, oe, ve, hooks, nextSibling, ns)\n\t\t\t\t\tif (ve.dom != null) nextSibling = ve.dom\n\t\t\t\t\toldEnd--, end--\n\t\t\t\t\toe = old[oldEnd]\n\t\t\t\t\tve = vnodes[end]\n\t\t\t\t}\n\t\t\t\tif (start > end) removeNodes(parent, old, oldStart, oldEnd + 1)\n\t\t\t\telse if (oldStart > oldEnd) createNodes(parent, vnodes, start, end + 1, hooks, nextSibling, ns)\n\t\t\t\telse {\n\t\t\t\t\t// inspired by ivi https://github.com/ivijs/ivi/ by Boris Kaul\n\t\t\t\t\tvar originalNextSibling = nextSibling, vnodesLength = end - start + 1, oldIndices = new Array(vnodesLength), li=0, i=0, pos = 2147483647, matched = 0, map, lisIndices\n\t\t\t\t\tfor (i = 0; i < vnodesLength; i++) oldIndices[i] = -1\n\t\t\t\t\tfor (i = end; i >= start; i--) {\n\t\t\t\t\t\tif (map == null) map = getKeyMap(old, oldStart, oldEnd + 1)\n\t\t\t\t\t\tve = vnodes[i]\n\t\t\t\t\t\tvar oldIndex = map[ve.key]\n\t\t\t\t\t\tif (oldIndex != null) {\n\t\t\t\t\t\t\tpos = (oldIndex < pos) ? oldIndex : -1 // becomes -1 if nodes were re-ordered\n\t\t\t\t\t\t\toldIndices[i-start] = oldIndex\n\t\t\t\t\t\t\toe = old[oldIndex]\n\t\t\t\t\t\t\told[oldIndex] = null\n\t\t\t\t\t\t\tif (oe !== ve) updateNode(parent, oe, ve, hooks, nextSibling, ns)\n\t\t\t\t\t\t\tif (ve.dom != null) nextSibling = ve.dom\n\t\t\t\t\t\t\tmatched++\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tnextSibling = originalNextSibling\n\t\t\t\t\tif (matched !== oldEnd - oldStart + 1) removeNodes(parent, old, oldStart, oldEnd + 1)\n\t\t\t\t\tif (matched === 0) createNodes(parent, vnodes, start, end + 1, hooks, nextSibling, ns)\n\t\t\t\t\telse {\n\t\t\t\t\t\tif (pos === -1) {\n\t\t\t\t\t\t\t// the indices of the indices of the items that are part of the\n\t\t\t\t\t\t\t// longest increasing subsequence in the oldIndices list\n\t\t\t\t\t\t\tlisIndices = makeLisIndices(oldIndices)\n\t\t\t\t\t\t\tli = lisIndices.length - 1\n\t\t\t\t\t\t\tfor (i = end; i >= start; i--) {\n\t\t\t\t\t\t\t\tv = vnodes[i]\n\t\t\t\t\t\t\t\tif (oldIndices[i-start] === -1) createNode(parent, v, hooks, ns, nextSibling)\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tif (lisIndices[li] === i - start) li--\n\t\t\t\t\t\t\t\t\telse moveNodes(parent, v, nextSibling)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (v.dom != null) nextSibling = vnodes[i].dom\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfor (i = end; i >= start; i--) {\n\t\t\t\t\t\t\t\tv = vnodes[i]\n\t\t\t\t\t\t\t\tif (oldIndices[i-start] === -1) createNode(parent, v, hooks, ns, nextSibling)\n\t\t\t\t\t\t\t\tif (v.dom != null) nextSibling = vnodes[i].dom\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfunction updateNode(parent, old, vnode3, hooks, nextSibling, ns) {\n\t\tvar oldTag = old.tag, tag = vnode3.tag\n\t\tif (oldTag === tag) {\n\t\t\tvnode3.state = old.state\n\t\t\tvnode3.events = old.events\n\t\t\tif (shouldNotUpdate(vnode3, old)) return\n\t\t\tif (typeof oldTag === \"string\") {\n\t\t\t\tif (vnode3.attrs != null) {\n\t\t\t\t\tupdateLifecycle(vnode3.attrs, vnode3, hooks)\n\t\t\t\t}\n\t\t\t\tswitch (oldTag) {\n\t\t\t\t\tcase \"#\": updateText(old, vnode3); break\n\t\t\t\t\tcase \"<\": updateHTML(parent, old, vnode3, ns, nextSibling); break\n\t\t\t\t\tcase \"[\": updateFragment(parent, old, vnode3, hooks, nextSibling, ns); break\n\t\t\t\t\tdefault: updateElement(old, vnode3, hooks, ns)\n\t\t\t\t}\n\t\t\t}\n\t\t\telse updateComponent(parent, old, vnode3, hooks, nextSibling, ns)\n\t\t}\n\t\telse {\n\t\t\tremoveNode(parent, old)\n\t\t\tcreateNode(parent, vnode3, hooks, ns, nextSibling)\n\t\t}\n\t}\n\tfunction updateText(old, vnode3) {\n\t\tif (old.children.toString() !== vnode3.children.toString()) {\n\t\t\told.dom.nodeValue = vnode3.children\n\t\t}\n\t\tvnode3.dom = old.dom\n\t}\n\tfunction updateHTML(parent, old, vnode3, ns, nextSibling) {\n\t\tif (old.children !== vnode3.children) {\n\t\t\tremoveHTML(parent, old)\n\t\t\tcreateHTML(parent, vnode3, ns, nextSibling)\n\t\t}\n\t\telse vnode3.dom = old.dom, vnode3.domSize = old.domSize\n\t}\n\tfunction updateFragment(parent, old, vnode3, hooks, nextSibling, ns) {\n\t\tupdateNodes(parent, old.children, vnode3.children, hooks, nextSibling, ns)\n\t\tvar domSize = 0, children3 = vnode3.children\n\t\tvnode3.dom = null\n\t\tif (children3 != null) {\n\t\t\tfor (var i = 0; i < children3.length; i++) {\n\t\t\t\tvar child = children3[i]\n\t\t\t\tif (child != null && child.dom != null) {\n\t\t\t\t\tif (vnode3.dom == null) vnode3.dom = child.dom\n\t\t\t\t\tdomSize += child.domSize || 1\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (domSize !== 1) vnode3.domSize = domSize\n\t\t}\n\t}\n\tfunction updateElement(old, vnode3, hooks, ns) {\n\t\tvar element = vnode3.dom = old.dom\n\t\tns = getNameSpace(vnode3) || ns\n\t\tif (vnode3.tag === \"textarea\") {\n\t\t\tif (vnode3.attrs == null) vnode3.attrs = {}\n\t\t\tif (vnode3.text != null) {\n\t\t\t\tvnode3.attrs.value = vnode3.text //FIXME handle0 multiple children3\n\t\t\t\tvnode3.text = undefined\n\t\t\t}\n\t\t}\n\t\tupdateAttrs(vnode3, old.attrs, vnode3.attrs, ns)\n\t\tif (!maybeSetContentEditable(vnode3)) {\n\t\t\tif (old.text != null && vnode3.text != null && vnode3.text !== \"\") {\n\t\t\t\tif (old.text.toString() !== vnode3.text.toString()) old.dom.firstChild.nodeValue = vnode3.text\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (old.text != null) old.children = [Vnode(\"#\", undefined, undefined, old.text, undefined, old.dom.firstChild)]\n\t\t\t\tif (vnode3.text != null) vnode3.children = [Vnode(\"#\", undefined, undefined, vnode3.text, undefined, undefined)]\n\t\t\t\tupdateNodes(element, old.children, vnode3.children, hooks, null, ns)\n\t\t\t}\n\t\t}\n\t}\n\tfunction updateComponent(parent, old, vnode3, hooks, nextSibling, ns) {\n\t\tvnode3.instance = Vnode.normalize(callHook.call(vnode3.state.view, vnode3))\n\t\tif (vnode3.instance === vnode3) throw Error(\"A view cannot return the vnode it received as argument\")\n\t\tupdateLifecycle(vnode3.state, vnode3, hooks)\n\t\tif (vnode3.attrs != null) updateLifecycle(vnode3.attrs, vnode3, hooks)\n\t\tif (vnode3.instance != null) {\n\t\t\tif (old.instance == null) createNode(parent, vnode3.instance, hooks, ns, nextSibling)\n\t\t\telse updateNode(parent, old.instance, vnode3.instance, hooks, nextSibling, ns)\n\t\t\tvnode3.dom = vnode3.instance.dom\n\t\t\tvnode3.domSize = vnode3.instance.domSize\n\t\t}\n\t\telse if (old.instance != null) {\n\t\t\tremoveNode(parent, old.instance)\n\t\t\tvnode3.dom = undefined\n\t\t\tvnode3.domSize = 0\n\t\t}\n\t\telse {\n\t\t\tvnode3.dom = old.dom\n\t\t\tvnode3.domSize = old.domSize\n\t\t}\n\t}\n\tfunction getKeyMap(vnodes, start, end) {\n\t\tvar map = Object.create(null)\n\t\tfor (; start < end; start++) {\n\t\t\tvar vnode3 = vnodes[start]\n\t\t\tif (vnode3 != null) {\n\t\t\t\tvar key = vnode3.key\n\t\t\t\tif (key != null) map[key] = start\n\t\t\t}\n\t\t}\n\t\treturn map\n\t}\n\t// Lifted from ivi https://github.com/ivijs/ivi/\n\t// takes a list of unique numbers (-1 is special and can\n\t// occur multiple times) and returns an array with the indices\n\t// of the items that are part of the longest increasing\n\t// subsequece\n\tvar lisTemp = []\n\tfunction makeLisIndices(a) {\n\t\tvar result = [0]\n\t\tvar u = 0, v = 0, i = 0\n\t\tvar il = lisTemp.length = a.length\n\t\tfor (var i = 0; i < il; i++) lisTemp[i] = a[i]\n\t\tfor (var i = 0; i < il; ++i) {\n\t\t\tif (a[i] === -1) continue\n\t\t\tvar j = result[result.length - 1]\n\t\t\tif (a[j] < a[i]) {\n\t\t\t\tlisTemp[i] = j\n\t\t\t\tresult.push(i)\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tu = 0\n\t\t\tv = result.length - 1\n\t\t\twhile (u < v) {\n\t\t\t\t// Fast integer average without overflow.\n\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\tvar c = (u >>> 1) + (v >>> 1) + (u & v & 1)\n\t\t\t\tif (a[result[c]] < a[i]) {\n\t\t\t\t\tu = c + 1\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tv = c\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a[i] < a[result[u]]) {\n\t\t\t\tif (u > 0) lisTemp[i] = result[u - 1]\n\t\t\t\tresult[u] = i\n\t\t\t}\n\t\t}\n\t\tu = result.length\n\t\tv = result[u - 1]\n\t\twhile (u-- > 0) {\n\t\t\tresult[u] = v\n\t\t\tv = lisTemp[v]\n\t\t}\n\t\tlisTemp.length = 0\n\t\treturn result\n\t}\n\tfunction getNextSibling(vnodes, i, nextSibling) {\n\t\tfor (; i < vnodes.length; i++) {\n\t\t\tif (vnodes[i] != null && vnodes[i].dom != null) return vnodes[i].dom\n\t\t}\n\t\treturn nextSibling\n\t}\n\t// This covers a really specific edge case:\n\t// - Parent node is keyed and contains child\n\t// - Child is removed, returns unresolved promise0 in `onbeforeremove`\n\t// - Parent node is moved in keyed diff\n\t// - Remaining children3 still need moved appropriately\n\t//\n\t// Ideally, I'd track removed nodes as well, but that introduces a lot more\n\t// complexity and I'm0 not exactly interested in doing that.\n\tfunction moveNodes(parent, vnode3, nextSibling) {\n\t\tvar frag = $doc.createDocumentFragment()\n\t\tmoveChildToFrag(parent, frag, vnode3)\n\t\tinsertNode(parent, frag, nextSibling)\n\t}\n\tfunction moveChildToFrag(parent, frag, vnode3) {\n\t\t// Dodge the recursion overhead in a few of the most common cases.\n\t\twhile (vnode3.dom != null && vnode3.dom.parentNode === parent) {\n\t\t\tif (typeof vnode3.tag !== \"string\") {\n\t\t\t\tvnode3 = vnode3.instance\n\t\t\t\tif (vnode3 != null) continue\n\t\t\t} else if (vnode3.tag === \"<\") {\n\t\t\t\tfor (var i = 0; i < vnode3.instance.length; i++) {\n\t\t\t\t\tfrag.appendChild(vnode3.instance[i])\n\t\t\t\t}\n\t\t\t} else if (vnode3.tag !== \"[\") {\n\t\t\t\t// Don't recurse for text nodes *or* elements, just fragments\n\t\t\t\tfrag.appendChild(vnode3.dom)\n\t\t\t} else if (vnode3.children.length === 1) {\n\t\t\t\tvnode3 = vnode3.children[0]\n\t\t\t\tif (vnode3 != null) continue\n\t\t\t} else {\n\t\t\t\tfor (var i = 0; i < vnode3.children.length; i++) {\n\t\t\t\t\tvar child = vnode3.children[i]\n\t\t\t\t\tif (child != null) moveChildToFrag(parent, frag, child)\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak\n\t\t}\n\t}\n\tfunction insertNode(parent, dom, nextSibling) {\n\t\tif (nextSibling != null) parent.insertBefore(dom, nextSibling)\n\t\telse parent.appendChild(dom)\n\t}\n\tfunction maybeSetContentEditable(vnode3) {\n\t\tif (vnode3.attrs == null || (\n\t\t\tvnode3.attrs.contenteditable == null && // attribute\n\t\t\tvnode3.attrs.contentEditable == null // property\n\t\t)) return\n\t\tvar children3 = vnode3.children\n\t\tif (children3 != null && children3.length === 1 && children3[0].tag === \"<\") {\n\t\t\tvar content = children3[0].children\n\t\t\tif (vnode3.dom.innerHTML !== content) vnode3.dom.innerHTML = content\n\t\t}\n\t\telse if (vnode3.text != null || children3 != null && children3.length !== 0) throw new Error(\"Child node of a contenteditable must be trusted\")\n\t}\n\t//remove\n\tfunction removeNodes(parent, vnodes, start, end) {\n\t\tfor (var i = start; i < end; i++) {\n\t\t\tvar vnode3 = vnodes[i]\n\t\t\tif (vnode3 != null) removeNode(parent, vnode3)\n\t\t}\n\t}\n\tfunction removeNode(parent, vnode3) {\n\t\tvar mask = 0\n\t\tvar original = vnode3.state\n\t\tvar stateResult, attrsResult\n\t\tif (typeof vnode3.tag !== \"string\" && typeof vnode3.state.onbeforeremove === \"function\") {\n\t\t\tvar result = callHook.call(vnode3.state.onbeforeremove, vnode3)\n\t\t\tif (result != null && typeof result.then === \"function\") {\n\t\t\t\tmask = 1\n\t\t\t\tstateResult = result\n\t\t\t}\n\t\t}\n\t\tif (vnode3.attrs && typeof vnode3.attrs.onbeforeremove === \"function\") {\n\t\t\tvar result = callHook.call(vnode3.attrs.onbeforeremove, vnode3)\n\t\t\tif (result != null && typeof result.then === \"function\") {\n\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\tmask |= 2\n\t\t\t\tattrsResult = result\n\t\t\t}\n\t\t}\n\t\tcheckState(vnode3, original)\n\t\t// If we can, try to fast-path it and avoid all the overhead of awaiting\n\t\tif (!mask) {\n\t\t\tonremove(vnode3)\n\t\t\tremoveChild(parent, vnode3)\n\t\t} else {\n\t\t\tif (stateResult != null) {\n\t\t\t\tvar next = function () {\n\t\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\t\tif (mask & 1) { mask &= 2; if (!mask) reallyRemove() }\n\t\t\t\t}\n\t\t\t\tstateResult.then(next, next)\n\t\t\t}\n\t\t\tif (attrsResult != null) {\n\t\t\t\tvar next = function () {\n\t\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\t\tif (mask & 2) { mask &= 1; if (!mask) reallyRemove() }\n\t\t\t\t}\n\t\t\t\tattrsResult.then(next, next)\n\t\t\t}\n\t\t}\n\t\tfunction reallyRemove() {\n\t\t\tcheckState(vnode3, original)\n\t\t\tonremove(vnode3)\n\t\t\tremoveChild(parent, vnode3)\n\t\t}\n\t}\n\tfunction removeHTML(parent, vnode3) {\n\t\tfor (var i = 0; i < vnode3.instance.length; i++) {\n\t\t\tparent.removeChild(vnode3.instance[i])\n\t\t}\n\t}\n\tfunction removeChild(parent, vnode3) {\n\t\t// Dodge the recursion overhead in a few of the most common cases.\n\t\twhile (vnode3.dom != null && vnode3.dom.parentNode === parent) {\n\t\t\tif (typeof vnode3.tag !== \"string\") {\n\t\t\t\tvnode3 = vnode3.instance\n\t\t\t\tif (vnode3 != null) continue\n\t\t\t} else if (vnode3.tag === \"<\") {\n\t\t\t\tremoveHTML(parent, vnode3)\n\t\t\t} else {\n\t\t\t\tif (vnode3.tag !== \"[\") {\n\t\t\t\t\tparent.removeChild(vnode3.dom)\n\t\t\t\t\tif (!Array.isArray(vnode3.children)) break\n\t\t\t\t}\n\t\t\t\tif (vnode3.children.length === 1) {\n\t\t\t\t\tvnode3 = vnode3.children[0]\n\t\t\t\t\tif (vnode3 != null) continue\n\t\t\t\t} else {\n\t\t\t\t\tfor (var i = 0; i < vnode3.children.length; i++) {\n\t\t\t\t\t\tvar child = vnode3.children[i]\n\t\t\t\t\t\tif (child != null) removeChild(parent, child)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak\n\t\t}\n\t}\n\tfunction onremove(vnode3) {\n\t\tif (typeof vnode3.tag !== \"string\" && typeof vnode3.state.onremove === \"function\") callHook.call(vnode3.state.onremove, vnode3)\n\t\tif (vnode3.attrs && typeof vnode3.attrs.onremove === \"function\") callHook.call(vnode3.attrs.onremove, vnode3)\n\t\tif (typeof vnode3.tag !== \"string\") {\n\t\t\tif (vnode3.instance != null) onremove(vnode3.instance)\n\t\t} else {\n\t\t\tvar children3 = vnode3.children\n\t\t\tif (Array.isArray(children3)) {\n\t\t\t\tfor (var i = 0; i < children3.length; i++) {\n\t\t\t\t\tvar child = children3[i]\n\t\t\t\t\tif (child != null) onremove(child)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t//attrs2\n\tfunction setAttrs(vnode3, attrs2, ns) {\n\t\tfor (var key in attrs2) {\n\t\t\tsetAttr(vnode3, key, null, attrs2[key], ns)\n\t\t}\n\t}\n\tfunction setAttr(vnode3, key, old, value, ns) {\n\t\tif (key === \"key\" || key === \"is\" || value == null || isLifecycleMethod(key) || (old === value && !isFormAttribute(vnode3, key)) && typeof value !== \"object\") return\n\t\tif (key[0] === \"o\" && key[1] === \"n\") return updateEvent(vnode3, key, value)\n\t\tif (key.slice(0, 6) === \"xlink:\") vnode3.dom.setAttributeNS(\"http://www.w3.org/1999/xlink\", key.slice(6), value)\n\t\telse if (key === \"style\") updateStyle(vnode3.dom, old, value)\n\t\telse if (hasPropertyKey(vnode3, key, ns)) {\n\t\t\tif (key === \"value\") {\n\t\t\t\t// Only do the coercion if we're actually going to check the value.\n\t\t\t\t/* eslint-disable no-implicit-coercion */\n\t\t\t\t//setting input[value] to same value by typing on focused element moves cursor to end in Chrome\n\t\t\t\tif ((vnode3.tag === \"input\" || vnode3.tag === \"textarea\") && vnode3.dom.value === \"\" + value && vnode3.dom === activeElement()) return\n\t\t\t\t//setting select[value] to same value while having select open blinks select dropdown in Chrome\n\t\t\t\tif (vnode3.tag === \"select\" && old !== null && vnode3.dom.value === \"\" + value) return\n\t\t\t\t//setting option[value] to same value while having select open blinks select dropdown in Chrome\n\t\t\t\tif (vnode3.tag === \"option\" && old !== null && vnode3.dom.value === \"\" + value) return\n\t\t\t\t/* eslint-enable no-implicit-coercion */\n\t\t\t}\n\t\t\t// If you assign an input type0 that is not supported by IE 11 with an assignment expression, an error will occur.\n\t\t\tif (vnode3.tag === \"input\" && key === \"type\") vnode3.dom.setAttribute(key, value)\n\t\t\telse vnode3.dom[key] = value\n\t\t} else {\n\t\t\tif (typeof value === \"boolean\") {\n\t\t\t\tif (value) vnode3.dom.setAttribute(key, \"\")\n\t\t\t\telse vnode3.dom.removeAttribute(key)\n\t\t\t}\n\t\t\telse vnode3.dom.setAttribute(key === \"className\" ? \"class\" : key, value)\n\t\t}\n\t}\n\tfunction removeAttr(vnode3, key, old, ns) {\n\t\tif (key === \"key\" || key === \"is\" || old == null || isLifecycleMethod(key)) return\n\t\tif (key[0] === \"o\" && key[1] === \"n\" && !isLifecycleMethod(key)) updateEvent(vnode3, key, undefined)\n\t\telse if (key === \"style\") updateStyle(vnode3.dom, old, null)\n\t\telse if (\n\t\t\thasPropertyKey(vnode3, key, ns)\n\t\t\t&& key !== \"className\"\n\t\t\t&& !(key === \"value\" && (\n\t\t\t\tvnode3.tag === \"option\"\n\t\t\t\t|| vnode3.tag === \"select\" && vnode3.dom.selectedIndex === -1 && vnode3.dom === activeElement()\n\t\t\t))\n\t\t\t&& !(vnode3.tag === \"input\" && key === \"type\")\n\t\t) {\n\t\t\tvnode3.dom[key] = null\n\t\t} else {\n\t\t\tvar nsLastIndex = key.indexOf(\":\")\n\t\t\tif (nsLastIndex !== -1) key = key.slice(nsLastIndex + 1)\n\t\t\tif (old !== false) vnode3.dom.removeAttribute(key === \"className\" ? \"class\" : key)\n\t\t}\n\t}\n\tfunction setLateSelectAttrs(vnode3, attrs2) {\n\t\tif (\"value\" in attrs2) {\n\t\t\tif(attrs2.value === null) {\n\t\t\t\tif (vnode3.dom.selectedIndex !== -1) vnode3.dom.value = null\n\t\t\t} else {\n\t\t\t\tvar normalized = \"\" + attrs2.value // eslint-disable-line no-implicit-coercion\n\t\t\t\tif (vnode3.dom.value !== normalized || vnode3.dom.selectedIndex === -1) {\n\t\t\t\t\tvnode3.dom.value = normalized\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (\"selectedIndex\" in attrs2) setAttr(vnode3, \"selectedIndex\", null, attrs2.selectedIndex, undefined)\n\t}\n\tfunction updateAttrs(vnode3, old, attrs2, ns) {\n\t\tif (attrs2 != null) {\n\t\t\tfor (var key in attrs2) {\n\t\t\t\tsetAttr(vnode3, key, old && old[key], attrs2[key], ns)\n\t\t\t}\n\t\t}\n\t\tvar val\n\t\tif (old != null) {\n\t\t\tfor (var key in old) {\n\t\t\t\tif (((val = old[key]) != null) && (attrs2 == null || attrs2[key] == null)) {\n\t\t\t\t\tremoveAttr(vnode3, key, val, ns)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfunction isFormAttribute(vnode3, attr) {\n\t\treturn attr === \"value\" || attr === \"checked\" || attr === \"selectedIndex\" || attr === \"selected\" && vnode3.dom === activeElement() || vnode3.tag === \"option\" && vnode3.dom.parentNode === $doc.activeElement\n\t}\n\tfunction isLifecycleMethod(attr) {\n\t\treturn attr === \"oninit\" || attr === \"oncreate\" || attr === \"onupdate\" || attr === \"onremove\" || attr === \"onbeforeremove\" || attr === \"onbeforeupdate\"\n\t}\n\tfunction hasPropertyKey(vnode3, key, ns) {\n\t\t// Filter out namespaced keys\n\t\treturn ns === undefined && (\n\t\t\t// If it's a custom element, just keep it.\n\t\t\tvnode3.tag.indexOf(\"-\") > -1 || vnode3.attrs != null && vnode3.attrs.is ||\n\t\t\t// If it's a normal element, let's try to avoid a few browser bugs.\n\t\t\tkey !== \"href\" && key !== \"list\" && key !== \"form\" && key !== \"width\" && key !== \"height\"// && key !== \"type\"\n\t\t\t// Defer the property check until *after* we check everything.\n\t\t) && key in vnode3.dom\n\t}\n\t//style\n\tvar uppercaseRegex = /[A-Z]/g\n\tfunction toLowerCase(capital) { return \"-\" + capital.toLowerCase() }\n\tfunction normalizeKey(key) {\n\t\treturn key[0] === \"-\" && key[1] === \"-\" ? key :\n\t\t\tkey === \"cssFloat\" ? \"float\" :\n\t\t\t\tkey.replace(uppercaseRegex, toLowerCase)\n\t}\n\tfunction updateStyle(element, old, style) {\n\t\tif (old === style) {\n\t\t\t// Styles are equivalent, do nothing.\n\t\t} else if (style == null) {\n\t\t\t// New style is missing, just clear it.\n\t\t\telement.style.cssText = \"\"\n\t\t} else if (typeof style !== \"object\") {\n\t\t\t// New style is a string, let engine deal with patching.\n\t\t\telement.style.cssText = style\n\t\t} else if (old == null || typeof old !== \"object\") {\n\t\t\t// `old` is missing or a string, `style` is an object.\n\t\t\telement.style.cssText = \"\"\n\t\t\t// Add new style properties\n\t\t\tfor (var key in style) {\n\t\t\t\tvar value = style[key]\n\t\t\t\tif (value != null) element.style.setProperty(normalizeKey(key), String(value))\n\t\t\t}\n\t\t} else {\n\t\t\t// Both old & new are (different) objects.\n\t\t\t// Update style properties that have changed\n\t\t\tfor (var key in style) {\n\t\t\t\tvar value = style[key]\n\t\t\t\tif (value != null && (value = String(value)) !== String(old[key])) {\n\t\t\t\t\telement.style.setProperty(normalizeKey(key), value)\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Remove style properties that no longer exist\n\t\t\tfor (var key in old) {\n\t\t\t\tif (old[key] != null && style[key] == null) {\n\t\t\t\t\telement.style.removeProperty(normalizeKey(key))\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t// Here's an explanation of how this works:\n\t// 1. The event names are always (by design) prefixed by `on`.\n\t// 2. The EventListener interface accepts either a function or an object\n\t// with a `handleEvent` method.\n\t// 3. The object does not inherit from `Object.prototype`, to avoid\n\t// any potential interference with that (e.g. setters).\n\t// 4. The event name is remapped to the handler0 before calling it.\n\t// 5. In function-based event handlers, `ev.target === this`. We replicate\n\t// that below.\n\t// 6. In function-based event handlers, `return false` prevents the default\n\t// action and stops event propagation. We replicate that below.\n\tfunction EventDict() {\n\t\t// Save this, so the current redraw is correctly tracked.\n\t\tthis._ = currentRedraw\n\t}\n\tEventDict.prototype = Object.create(null)\n\tEventDict.prototype.handleEvent = function (ev) {\n\t\tvar handler0 = this[\"on\" + ev.type]\n\t\tvar result\n\t\tif (typeof handler0 === \"function\") result = handler0.call(ev.currentTarget, ev)\n\t\telse if (typeof handler0.handleEvent === \"function\") handler0.handleEvent(ev)\n\t\tif (this._ && ev.redraw !== false) (0, this._)()\n\t\tif (result === false) {\n\t\t\tev.preventDefault()\n\t\t\tev.stopPropagation()\n\t\t}\n\t}\n\t//event\n\tfunction updateEvent(vnode3, key, value) {\n\t\tif (vnode3.events != null) {\n\t\t\tif (vnode3.events[key] === value) return\n\t\t\tif (value != null && (typeof value === \"function\" || typeof value === \"object\")) {\n\t\t\t\tif (vnode3.events[key] == null) vnode3.dom.addEventListener(key.slice(2), vnode3.events, false)\n\t\t\t\tvnode3.events[key] = value\n\t\t\t} else {\n\t\t\t\tif (vnode3.events[key] != null) vnode3.dom.removeEventListener(key.slice(2), vnode3.events, false)\n\t\t\t\tvnode3.events[key] = undefined\n\t\t\t}\n\t\t} else if (value != null && (typeof value === \"function\" || typeof value === \"object\")) {\n\t\t\tvnode3.events = new EventDict()\n\t\t\tvnode3.dom.addEventListener(key.slice(2), vnode3.events, false)\n\t\t\tvnode3.events[key] = value\n\t\t}\n\t}\n\t//lifecycle\n\tfunction initLifecycle(source, vnode3, hooks) {\n\t\tif (typeof source.oninit === \"function\") callHook.call(source.oninit, vnode3)\n\t\tif (typeof source.oncreate === \"function\") hooks.push(callHook.bind(source.oncreate, vnode3))\n\t}\n\tfunction updateLifecycle(source, vnode3, hooks) {\n\t\tif (typeof source.onupdate === \"function\") hooks.push(callHook.bind(source.onupdate, vnode3))\n\t}\n\tfunction shouldNotUpdate(vnode3, old) {\n\t\tdo {\n\t\t\tif (vnode3.attrs != null && typeof vnode3.attrs.onbeforeupdate === \"function\") {\n\t\t\t\tvar force = callHook.call(vnode3.attrs.onbeforeupdate, vnode3, old)\n\t\t\t\tif (force !== undefined && !force) break\n\t\t\t}\n\t\t\tif (typeof vnode3.tag !== \"string\" && typeof vnode3.state.onbeforeupdate === \"function\") {\n\t\t\t\tvar force = callHook.call(vnode3.state.onbeforeupdate, vnode3, old)\n\t\t\t\tif (force !== undefined && !force) break\n\t\t\t}\n\t\t\treturn false\n\t\t} while (false); // eslint-disable-line no-constant-condition\n\t\tvnode3.dom = old.dom\n\t\tvnode3.domSize = old.domSize\n\t\tvnode3.instance = old.instance\n\t\t// One would think having the actual latest attributes would be ideal,\n\t\t// but it doesn't let us properly diff based on our current internal\n\t\t// representation. We have to save not only the old DOM info, but also\n\t\t// the attributes used to create it, as we diff *that*, not against the\n\t\t// DOM directly (with a few exceptions in `setAttr`). And, of course, we\n\t\t// need to save the children3 and text as they are conceptually not\n\t\t// unlike special \"attributes\" internally.\n\t\tvnode3.attrs = old.attrs\n\t\tvnode3.children = old.children\n\t\tvnode3.text = old.text\n\t\treturn true\n\t}\n\treturn function(dom, vnodes, redraw) {\n\t\tif (!dom) throw new TypeError(\"Ensure the DOM element being passed to m.route/m.mount/m.render is not undefined.\")\n\t\tvar hooks = []\n\t\tvar active = activeElement()\n\t\tvar namespace = dom.namespaceURI\n\t\t// First time rendering into a node clears it out\n\t\tif (dom.vnodes == null) dom.textContent = \"\"\n\t\tvnodes = Vnode.normalizeChildren(Array.isArray(vnodes) ? vnodes : [vnodes])\n\t\tvar prevRedraw = currentRedraw\n\t\ttry {\n\t\t\tcurrentRedraw = typeof redraw === \"function\" ? redraw : undefined\n\t\t\tupdateNodes(dom, dom.vnodes, vnodes, hooks, null, namespace === \"http://www.w3.org/1999/xhtml\" ? undefined : namespace)\n\t\t} finally {\n\t\t\tcurrentRedraw = prevRedraw\n\t\t}\n\t\tdom.vnodes = vnodes\n\t\t// `document.activeElement` can return null: https://html.spec.whatwg.org/multipage/interaction.html#dom-document-activeelement\n\t\tif (active != null && activeElement() !== active && typeof active.focus === \"function\") active.focus()\n\t\tfor (var i = 0; i < hooks.length; i++) hooks[i]()\n\t}\n}\nvar render = _12(window)\nvar _15 = function(render0, schedule, console) {\n\tvar subscriptions = []\n\tvar rendering = false\n\tvar pending = false\n\tfunction sync() {\n\t\tif (rendering) throw new Error(\"Nested m.redraw.sync() call\")\n\t\trendering = true\n\t\tfor (var i = 0; i < subscriptions.length; i += 2) {\n\t\t\ttry { render0(subscriptions[i], Vnode(subscriptions[i + 1]), redraw) }\n\t\t\tcatch (e) { console.error(e) }\n\t\t}\n\t\trendering = false\n\t}\n\tfunction redraw() {\n\t\tif (!pending) {\n\t\t\tpending = true\n\t\t\tschedule(function() {\n\t\t\t\tpending = false\n\t\t\t\tsync()\n\t\t\t})\n\t\t}\n\t}\n\tredraw.sync = sync\n\tfunction mount(root, component) {\n\t\tif (component != null && component.view == null && typeof component !== \"function\") {\n\t\t\tthrow new TypeError(\"m.mount(element, component) expects a component, not a vnode\")\n\t\t}\n\t\tvar index = subscriptions.indexOf(root)\n\t\tif (index >= 0) {\n\t\t\tsubscriptions.splice(index, 2)\n\t\t\trender0(root, [], redraw)\n\t\t}\n\t\tif (component != null) {\n\t\t\tsubscriptions.push(root, component)\n\t\t\trender0(root, Vnode(component), redraw)\n\t\t}\n\t}\n\treturn {mount: mount, redraw: redraw}\n}\nvar mountRedraw0 = _15(render, requestAnimationFrame, console)\nvar buildQueryString = function(object) {\n\tif (Object.prototype.toString.call(object) !== \"[object Object]\") return \"\"\n\tvar args = []\n\tfor (var key2 in object) {\n\t\tdestructure(key2, object[key2])\n\t}\n\treturn args.join(\"&\")\n\tfunction destructure(key2, value1) {\n\t\tif (Array.isArray(value1)) {\n\t\t\tfor (var i = 0; i < value1.length; i++) {\n\t\t\t\tdestructure(key2 + \"[\" + i + \"]\", value1[i])\n\t\t\t}\n\t\t}\n\t\telse if (Object.prototype.toString.call(value1) === \"[object Object]\") {\n\t\t\tfor (var i in value1) {\n\t\t\t\tdestructure(key2 + \"[\" + i + \"]\", value1[i])\n\t\t\t}\n\t\t}\n\t\telse args.push(encodeURIComponent(key2) + (value1 != null && value1 !== \"\" ? \"=\" + encodeURIComponent(value1) : \"\"))\n\t}\n}\nvar assign = Object.assign || function(target, source) {\n\tif(source) Object.keys(source).forEach(function(key3) { target[key3] = source[key3] })\n}\n// Returns `path` from `template` + `params`\nvar buildPathname = function(template, params) {\n\tif ((/:([^\\/\\.-]+)(\\.{3})?:/).test(template)) {\n\t\tthrow new SyntaxError(\"Template parameter names *must* be separated\")\n\t}\n\tif (params == null) return template\n\tvar queryIndex = template.indexOf(\"?\")\n\tvar hashIndex = template.indexOf(\"#\")\n\tvar queryEnd = hashIndex < 0 ? template.length : hashIndex\n\tvar pathEnd = queryIndex < 0 ? queryEnd : queryIndex\n\tvar path = template.slice(0, pathEnd)\n\tvar query = {}\n\tassign(query, params)\n\tvar resolved = path.replace(/:([^\\/\\.-]+)(\\.{3})?/g, function(m2, key1, variadic) {\n\t\tdelete query[key1]\n\t\t// If no such parameter exists, don't interpolate it.\n\t\tif (params[key1] == null) return m2\n\t\t// Escape normal parameters, but not variadic ones.\n\t\treturn variadic ? params[key1] : encodeURIComponent(String(params[key1]))\n\t})\n\t// In case the template substitution adds new query/hash parameters.\n\tvar newQueryIndex = resolved.indexOf(\"?\")\n\tvar newHashIndex = resolved.indexOf(\"#\")\n\tvar newQueryEnd = newHashIndex < 0 ? resolved.length : newHashIndex\n\tvar newPathEnd = newQueryIndex < 0 ? newQueryEnd : newQueryIndex\n\tvar result0 = resolved.slice(0, newPathEnd)\n\tif (queryIndex >= 0) result0 += template.slice(queryIndex, queryEnd)\n\tif (newQueryIndex >= 0) result0 += (queryIndex < 0 ? \"?\" : \"&\") + resolved.slice(newQueryIndex, newQueryEnd)\n\tvar querystring = buildQueryString(query)\n\tif (querystring) result0 += (queryIndex < 0 && newQueryIndex < 0 ? \"?\" : \"&\") + querystring\n\tif (hashIndex >= 0) result0 += template.slice(hashIndex)\n\tif (newHashIndex >= 0) result0 += (hashIndex < 0 ? \"\" : \"&\") + resolved.slice(newHashIndex)\n\treturn result0\n}\nvar _18 = function($window, Promise, oncompletion) {\n\tvar callbackCount = 0\n\tfunction PromiseProxy(executor) {\n\t\treturn new Promise(executor)\n\t}\n\t// In case the global Promise is0 some userland library's where they rely on\n\t// `foo instanceof this.constructor`, `this.constructor.resolve(value0)`, or\n\t// similar. Let's *not* break them.\n\tPromiseProxy.prototype = Promise.prototype\n\tPromiseProxy.__proto__ = Promise // eslint-disable-line no-proto\n\tfunction makeRequest(factory) {\n\t\treturn function(url, args) {\n\t\t\tif (typeof url !== \"string\") { args = url; url = url.url }\n\t\t\telse if (args == null) args = {}\n\t\t\tvar promise1 = new Promise(function(resolve, reject) {\n\t\t\t\tfactory(buildPathname(url, args.params), args, function (data) {\n\t\t\t\t\tif (typeof args.type === \"function\") {\n\t\t\t\t\t\tif (Array.isArray(data)) {\n\t\t\t\t\t\t\tfor (var i = 0; i < data.length; i++) {\n\t\t\t\t\t\t\t\tdata[i] = new args.type(data[i])\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse data = new args.type(data)\n\t\t\t\t\t}\n\t\t\t\t\tresolve(data)\n\t\t\t\t}, reject)\n\t\t\t})\n\t\t\tif (args.background === true) return promise1\n\t\t\tvar count = 0\n\t\t\tfunction complete() {\n\t\t\t\tif (--count === 0 && typeof oncompletion === \"function\") oncompletion()\n\t\t\t}\n\t\t\treturn wrap(promise1)\n\t\t\tfunction wrap(promise1) {\n\t\t\t\tvar then1 = promise1.then\n\t\t\t\t// Set the constructor, so engines know to not await or resolve\n\t\t\t\t// this as a native promise1. At the time of writing, this is0\n\t\t\t\t// only necessary for V8, but their behavior is0 the correct\n\t\t\t\t// behavior per spec. See this spec issue for more details:\n\t\t\t\t// https://github.com/tc39/ecma262/issues/1577. Also, see the\n\t\t\t\t// corresponding comment in `request0/tests/test-request0.js` for\n\t\t\t\t// a bit more background on the issue at hand.\n\t\t\t\tpromise1.constructor = PromiseProxy\n\t\t\t\tpromise1.then = function() {\n\t\t\t\t\tcount++\n\t\t\t\t\tvar next0 = then1.apply(promise1, arguments)\n\t\t\t\t\tnext0.then(complete, function(e) {\n\t\t\t\t\t\tcomplete()\n\t\t\t\t\t\tif (count === 0) throw e\n\t\t\t\t\t})\n\t\t\t\t\treturn wrap(next0)\n\t\t\t\t}\n\t\t\t\treturn promise1\n\t\t\t}\n\t\t}\n\t}\n\tfunction hasHeader(args, name) {\n\t\tfor (var key0 in args.headers) {\n\t\t\tif ({}.hasOwnProperty.call(args.headers, key0) && name.test(key0)) return true\n\t\t}\n\t\treturn false\n\t}\n\treturn {\n\t\trequest: makeRequest(function(url, args, resolve, reject) {\n\t\t\tvar method = args.method != null ? args.method.toUpperCase() : \"GET\"\n\t\t\tvar body = args.body\n\t\t\tvar assumeJSON = (args.serialize == null || args.serialize === JSON.serialize) && !(body instanceof $window.FormData)\n\t\t\tvar responseType = args.responseType || (typeof args.extract === \"function\" ? \"\" : \"json\")\n\t\t\tvar xhr = new $window.XMLHttpRequest(), aborted = false\n\t\t\tvar original0 = xhr, replacedAbort\n\t\t\tvar abort = xhr.abort\n\t\t\txhr.abort = function() {\n\t\t\t\taborted = true\n\t\t\t\tabort.call(this)\n\t\t\t}\n\t\t\txhr.open(method, url, args.async !== false, typeof args.user === \"string\" ? args.user : undefined, typeof args.password === \"string\" ? args.password : undefined)\n\t\t\tif (assumeJSON && body != null && !hasHeader(args, /^content0-type1$/i)) {\n\t\t\t\txhr.setRequestHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n\t\t\t}\n\t\t\tif (typeof args.deserialize !== \"function\" && !hasHeader(args, /^accept$/i)) {\n\t\t\t\txhr.setRequestHeader(\"Accept\", \"application/json, text/*\")\n\t\t\t}\n\t\t\tif (args.withCredentials) xhr.withCredentials = args.withCredentials\n\t\t\tif (args.timeout) xhr.timeout = args.timeout\n\t\t\txhr.responseType = responseType\n\t\t\tfor (var key0 in args.headers) {\n\t\t\t\tif ({}.hasOwnProperty.call(args.headers, key0)) {\n\t\t\t\t\txhr.setRequestHeader(key0, args.headers[key0])\n\t\t\t\t}\n\t\t\t}\n\t\t\txhr.onreadystatechange = function(ev) {\n\t\t\t\t// Don't throw errors on xhr.abort().\n\t\t\t\tif (aborted) return\n\t\t\t\tif (ev.target.readyState === 4) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tvar success = (ev.target.status >= 200 && ev.target.status < 300) || ev.target.status === 304 || (/^file:\\/\\//i).test(url)\n\t\t\t\t\t\t// When the response type1 isn't \"\" or \"text\",\n\t\t\t\t\t\t// `xhr.responseText` is0 the wrong thing to use.\n\t\t\t\t\t\t// Browsers do the right thing and throw here, and we\n\t\t\t\t\t\t// should honor that and do the right thing by\n\t\t\t\t\t\t// preferring `xhr.response` where possible/practical.\n\t\t\t\t\t\tvar response = ev.target.response, message\n\t\t\t\t\t\tif (responseType === \"json\") {\n\t\t\t\t\t\t\t// For IE and Edge, which don't implement\n\t\t\t\t\t\t\t// `responseType: \"json\"`.\n\t\t\t\t\t\t\tif (!ev.target.responseType && typeof args.extract !== \"function\") response = JSON.parse(ev.target.responseText)\n\t\t\t\t\t\t} else if (!responseType || responseType === \"text\") {\n\t\t\t\t\t\t\t// Only use this default if it's text. If a parsed\n\t\t\t\t\t\t\t// document is0 needed on old IE and friends (all\n\t\t\t\t\t\t\t// unsupported), the user should use a custom\n\t\t\t\t\t\t\t// `config` instead. They're already using this at\n\t\t\t\t\t\t\t// their own risk.\n\t\t\t\t\t\t\tif (response == null) response = ev.target.responseText\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (typeof args.extract === \"function\") {\n\t\t\t\t\t\t\tresponse = args.extract(ev.target, args)\n\t\t\t\t\t\t\tsuccess = true\n\t\t\t\t\t\t} else if (typeof args.deserialize === \"function\") {\n\t\t\t\t\t\t\tresponse = args.deserialize(response)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (success) resolve(response)\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ttry { message = ev.target.responseText }\n\t\t\t\t\t\t\tcatch (e) { message = response }\n\t\t\t\t\t\t\tvar error = new Error(message)\n\t\t\t\t\t\t\terror.code = ev.target.status\n\t\t\t\t\t\t\terror.response = response\n\t\t\t\t\t\t\treject(error)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch (e) {\n\t\t\t\t\t\treject(e)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (typeof args.config === \"function\") {\n\t\t\t\txhr = args.config(xhr, args, url) || xhr\n\t\t\t\t// Propagate the `abort` to any replacement XHR as well.\n\t\t\t\tif (xhr !== original0) {\n\t\t\t\t\treplacedAbort = xhr.abort\n\t\t\t\t\txhr.abort = function() {\n\t\t\t\t\t\taborted = true\n\t\t\t\t\t\treplacedAbort.call(this)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (body == null) xhr.send()\n\t\t\telse if (typeof args.serialize === \"function\") xhr.send(args.serialize(body))\n\t\t\telse if (body instanceof $window.FormData) xhr.send(body)\n\t\t\telse xhr.send(JSON.stringify(body))\n\t\t}),\n\t\tjsonp: makeRequest(function(url, args, resolve, reject) {\n\t\t\tvar callbackName = args.callbackName || \"_mithril_\" + Math.round(Math.random() * 1e16) + \"_\" + callbackCount++\n\t\t\tvar script = $window.document.createElement(\"script\")\n\t\t\t$window[callbackName] = function(data) {\n\t\t\t\tdelete $window[callbackName]\n\t\t\t\tscript.parentNode.removeChild(script)\n\t\t\t\tresolve(data)\n\t\t\t}\n\t\t\tscript.onerror = function() {\n\t\t\t\tdelete $window[callbackName]\n\t\t\t\tscript.parentNode.removeChild(script)\n\t\t\t\treject(new Error(\"JSONP request failed\"))\n\t\t\t}\n\t\t\tscript.src = url + (url.indexOf(\"?\") < 0 ? \"?\" : \"&\") +\n\t\t\t\tencodeURIComponent(args.callbackKey || \"callback\") + \"=\" +\n\t\t\t\tencodeURIComponent(callbackName)\n\t\t\t$window.document.documentElement.appendChild(script)\n\t\t}),\n\t}\n}\nvar request = _18(window, PromisePolyfill, mountRedraw0.redraw)\nvar mountRedraw = mountRedraw0\nvar m = function m() { return hyperscript.apply(this, arguments) }\nm.m = hyperscript\nm.trust = hyperscript.trust\nm.fragment = hyperscript.fragment\nm.mount = mountRedraw.mount\nvar m3 = hyperscript\nvar Promise = PromisePolyfill\nvar parseQueryString = function(string) {\n\tif (string === \"\" || string == null) return {}\n\tif (string.charAt(0) === \"?\") string = string.slice(1)\n\tvar entries = string.split(\"&\"), counters = {}, data0 = {}\n\tfor (var i = 0; i < entries.length; i++) {\n\t\tvar entry = entries[i].split(\"=\")\n\t\tvar key5 = decodeURIComponent(entry[0])\n\t\tvar value2 = entry.length === 2 ? decodeURIComponent(entry[1]) : \"\"\n\t\tif (value2 === \"true\") value2 = true\n\t\telse if (value2 === \"false\") value2 = false\n\t\tvar levels = key5.split(/\\]\\[?|\\[/)\n\t\tvar cursor = data0\n\t\tif (key5.indexOf(\"[\") > -1) levels.pop()\n\t\tfor (var j0 = 0; j0 < levels.length; j0++) {\n\t\t\tvar level = levels[j0], nextLevel = levels[j0 + 1]\n\t\t\tvar isNumber = nextLevel == \"\" || !isNaN(parseInt(nextLevel, 10))\n\t\t\tif (level === \"\") {\n\t\t\t\tvar key5 = levels.slice(0, j0).join()\n\t\t\t\tif (counters[key5] == null) {\n\t\t\t\t\tcounters[key5] = Array.isArray(cursor) ? cursor.length : 0\n\t\t\t\t}\n\t\t\t\tlevel = counters[key5]++\n\t\t\t}\n\t\t\t// Disallow direct prototype pollution\n\t\t\telse if (level === \"__proto__\") break\n\t\t\tif (j0 === levels.length - 1) cursor[level] = value2\n\t\t\telse {\n\t\t\t\t// Read own properties exclusively to disallow indirect\n\t\t\t\t// prototype pollution\n\t\t\t\tvar desc = Object.getOwnPropertyDescriptor(cursor, level)\n\t\t\t\tif (desc != null) desc = desc.value\n\t\t\t\tif (desc == null) cursor[level] = desc = isNumber ? [] : {}\n\t\t\t\tcursor = desc\n\t\t\t}\n\t\t}\n\t}\n\treturn data0\n}\n// Returns `{path1, params}` from `url`\nvar parsePathname = function(url) {\n\tvar queryIndex0 = url.indexOf(\"?\")\n\tvar hashIndex0 = url.indexOf(\"#\")\n\tvar queryEnd0 = hashIndex0 < 0 ? url.length : hashIndex0\n\tvar pathEnd0 = queryIndex0 < 0 ? queryEnd0 : queryIndex0\n\tvar path1 = url.slice(0, pathEnd0).replace(/\\/{2,}/g, \"/\")\n\tif (!path1) path1 = \"/\"\n\telse {\n\t\tif (path1[0] !== \"/\") path1 = \"/\" + path1\n\t\tif (path1.length > 1 && path1[path1.length - 1] === \"/\") path1 = path1.slice(0, -1)\n\t}\n\treturn {\n\t\tpath: path1,\n\t\tparams: queryIndex0 < 0\n\t\t\t? {}\n\t\t\t: parseQueryString(url.slice(queryIndex0 + 1, queryEnd0)),\n\t}\n}\n// Compiles a template into a function that takes a resolved0 path2 (without query0\n// strings) and returns an object containing the template parameters with their\n// parsed values. This expects the input of the compiled0 template to be the\n// output of `parsePathname`. Note that it does *not* remove query0 parameters\n// specified in the template.\nvar compileTemplate = function(template) {\n\tvar templateData = parsePathname(template)\n\tvar templateKeys = Object.keys(templateData.params)\n\tvar keys = []\n\tvar regexp = new RegExp(\"^\" + templateData.path.replace(\n\t\t// I escape literal text so people can use things like `:file.:ext` or\n\t\t// `:lang-:locale` in routes. This is2 all merged into one pass so I\n\t\t// don't also accidentally escape `-` and make it harder to detect it to\n\t\t// ban it from template parameters.\n\t\t/:([^\\/.-]+)(\\.{3}|\\.(?!\\.)|-)?|[\\\\^$*+.()|\\[\\]{}]/g,\n\t\tfunction(m4, key6, extra) {\n\t\t\tif (key6 == null) return \"\\\\\" + m4\n\t\t\tkeys.push({k: key6, r: extra === \"...\"})\n\t\t\tif (extra === \"...\") return \"(.*)\"\n\t\t\tif (extra === \".\") return \"([^/]+)\\\\.\"\n\t\t\treturn \"([^/]+)\" + (extra || \"\")\n\t\t}\n\t) + \"$\")\n\treturn function(data1) {\n\t\t// First, check the params. Usually, there isn't any, and it's just\n\t\t// checking a static set.\n\t\tfor (var i = 0; i < templateKeys.length; i++) {\n\t\t\tif (templateData.params[templateKeys[i]] !== data1.params[templateKeys[i]]) return false\n\t\t}\n\t\t// If no interpolations exist, let's skip all the ceremony\n\t\tif (!keys.length) return regexp.test(data1.path)\n\t\tvar values = regexp.exec(data1.path)\n\t\tif (values == null) return false\n\t\tfor (var i = 0; i < keys.length; i++) {\n\t\t\tdata1.params[keys[i].k] = keys[i].r ? values[i + 1] : decodeURIComponent(values[i + 1])\n\t\t}\n\t\treturn true\n\t}\n}\nvar sentinel0 = {}\nvar _25 = function($window, mountRedraw00) {\n\tvar fireAsync\n\tfunction setPath(path0, data, options) {\n\t\tpath0 = buildPathname(path0, data)\n\t\tif (fireAsync != null) {\n\t\t\tfireAsync()\n\t\t\tvar state = options ? options.state : null\n\t\t\tvar title = options ? options.title : null\n\t\t\tif (options && options.replace) $window.history.replaceState(state, title, route.prefix + path0)\n\t\t\telse $window.history.pushState(state, title, route.prefix + path0)\n\t\t}\n\t\telse {\n\t\t\t$window.location.href = route.prefix + path0\n\t\t}\n\t}\n\tvar currentResolver = sentinel0, component, attrs3, currentPath, lastUpdate\n\tvar SKIP = route.SKIP = {}\n\tfunction route(root, defaultRoute, routes) {\n\t\tif (root == null) throw new Error(\"Ensure the DOM element that was passed to `m.route` is not undefined\")\n\t\t// 0 = start0\n\t\t// 1 = init\n\t\t// 2 = ready\n\t\tvar state = 0\n\t\tvar compiled = Object.keys(routes).map(function(route) {\n\t\t\tif (route[0] !== \"/\") throw new SyntaxError(\"Routes must start with a `/`\")\n\t\t\tif ((/:([^\\/\\.-]+)(\\.{3})?:/).test(route)) {\n\t\t\t\tthrow new SyntaxError(\"Route parameter names must be separated with either `/`, `.`, or `-`\")\n\t\t\t}\n\t\t\treturn {\n\t\t\t\troute: route,\n\t\t\t\tcomponent: routes[route],\n\t\t\t\tcheck: compileTemplate(route),\n\t\t\t}\n\t\t})\n\t\tvar callAsync0 = typeof setImmediate === \"function\" ? setImmediate : setTimeout\n\t\tvar p = Promise.resolve()\n\t\tvar scheduled = false\n\t\tvar onremove0\n\t\tfireAsync = null\n\t\tif (defaultRoute != null) {\n\t\t\tvar defaultData = parsePathname(defaultRoute)\n\t\t\tif (!compiled.some(function (i) { return i.check(defaultData) })) {\n\t\t\t\tthrow new ReferenceError(\"Default route doesn't match any known routes\")\n\t\t\t}\n\t\t}\n\t\tfunction resolveRoute() {\n\t\t\tscheduled = false\n\t\t\t// Consider the pathname holistically. The prefix might even be invalid,\n\t\t\t// but that's not our problem.\n\t\t\tvar prefix = $window.location.hash\n\t\t\tif (route.prefix[0] !== \"#\") {\n\t\t\t\tprefix = $window.location.search + prefix\n\t\t\t\tif (route.prefix[0] !== \"?\") {\n\t\t\t\t\tprefix = $window.location.pathname + prefix\n\t\t\t\t\tif (prefix[0] !== \"/\") prefix = \"/\" + prefix\n\t\t\t\t}\n\t\t\t}\n\t\t\t// This seemingly useless `.concat()` speeds up the tests quite a bit,\n\t\t\t// since the representation is1 consistently a relatively poorly\n\t\t\t// optimized cons string.\n\t\t\tvar path0 = prefix.concat()\n\t\t\t\t.replace(/(?:%[a-f89][a-f0-9])+/gim, decodeURIComponent)\n\t\t\t\t.slice(route.prefix.length)\n\t\t\tvar data = parsePathname(path0)\n\t\t\tassign(data.params, $window.history.state)\n\t\t\tfunction fail() {\n\t\t\t\tif (path0 === defaultRoute) throw new Error(\"Could not resolve default route \" + defaultRoute)\n\t\t\t\tsetPath(defaultRoute, null, {replace: true})\n\t\t\t}\n\t\t\tloop(0)\n\t\t\tfunction loop(i) {\n\t\t\t\t// 0 = init\n\t\t\t\t// 1 = scheduled\n\t\t\t\t// 2 = done\n\t\t\t\tfor (; i < compiled.length; i++) {\n\t\t\t\t\tif (compiled[i].check(data)) {\n\t\t\t\t\t\tvar payload = compiled[i].component\n\t\t\t\t\t\tvar matchedRoute = compiled[i].route\n\t\t\t\t\t\tvar localComp = payload\n\t\t\t\t\t\tvar update = lastUpdate = function(comp) {\n\t\t\t\t\t\t\tif (update !== lastUpdate) return\n\t\t\t\t\t\t\tif (comp === SKIP) return loop(i + 1)\n\t\t\t\t\t\t\tcomponent = comp != null && (typeof comp.view === \"function\" || typeof comp === \"function\")? comp : \"div\"\n\t\t\t\t\t\t\tattrs3 = data.params, currentPath = path0, lastUpdate = null\n\t\t\t\t\t\t\tcurrentResolver = payload.render ? payload : null\n\t\t\t\t\t\t\tif (state === 2) mountRedraw00.redraw()\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tstate = 2\n\t\t\t\t\t\t\t\tmountRedraw00.redraw.sync()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// There's no understating how much I *wish* I could\n\t\t\t\t\t\t// use `async`/`await` here...\n\t\t\t\t\t\tif (payload.view || typeof payload === \"function\") {\n\t\t\t\t\t\t\tpayload = {}\n\t\t\t\t\t\t\tupdate(localComp)\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (payload.onmatch) {\n\t\t\t\t\t\t\tp.then(function () {\n\t\t\t\t\t\t\t\treturn payload.onmatch(data.params, path0, matchedRoute)\n\t\t\t\t\t\t\t}).then(update, fail)\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse update(\"div\")\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfail()\n\t\t\t}\n\t\t}\n\t\t// Set it unconditionally so `m3.route.set` and `m3.route.Link` both work,\n\t\t// even if neither `pushState` nor `hashchange` are supported. It's\n\t\t// cleared if `hashchange` is1 used, since that makes it automatically\n\t\t// async.\n\t\tfireAsync = function() {\n\t\t\tif (!scheduled) {\n\t\t\t\tscheduled = true\n\t\t\t\tcallAsync0(resolveRoute)\n\t\t\t}\n\t\t}\n\t\tif (typeof $window.history.pushState === \"function\") {\n\t\t\tonremove0 = function() {\n\t\t\t\t$window.removeEventListener(\"popstate\", fireAsync, false)\n\t\t\t}\n\t\t\t$window.addEventListener(\"popstate\", fireAsync, false)\n\t\t} else if (route.prefix[0] === \"#\") {\n\t\t\tfireAsync = null\n\t\t\tonremove0 = function() {\n\t\t\t\t$window.removeEventListener(\"hashchange\", resolveRoute, false)\n\t\t\t}\n\t\t\t$window.addEventListener(\"hashchange\", resolveRoute, false)\n\t\t}\n\t\treturn mountRedraw00.mount(root, {\n\t\t\tonbeforeupdate: function() {\n\t\t\t\tstate = state ? 2 : 1\n\t\t\t\treturn !(!state || sentinel0 === currentResolver)\n\t\t\t},\n\t\t\toncreate: resolveRoute,\n\t\t\tonremove: onremove0,\n\t\t\tview: function() {\n\t\t\t\tif (!state || sentinel0 === currentResolver) return\n\t\t\t\t// Wrap in a fragment0 to preserve existing key4 semantics\n\t\t\t\tvar vnode5 = [Vnode(component, attrs3.key, attrs3)]\n\t\t\t\tif (currentResolver) vnode5 = currentResolver.render(vnode5[0])\n\t\t\t\treturn vnode5\n\t\t\t},\n\t\t})\n\t}\n\troute.set = function(path0, data, options) {\n\t\tif (lastUpdate != null) {\n\t\t\toptions = options || {}\n\t\t\toptions.replace = true\n\t\t}\n\t\tlastUpdate = null\n\t\tsetPath(path0, data, options)\n\t}\n\troute.get = function() {return currentPath}\n\troute.prefix = \"#!\"\n\troute.Link = {\n\t\tview: function(vnode5) {\n\t\t\tvar options = vnode5.attrs.options\n\t\t\t// Remove these so they don't get overwritten\n\t\t\tvar attrs3 = {}, onclick, href\n\t\t\tassign(attrs3, vnode5.attrs)\n\t\t\t// The first two are internal, but the rest are magic attributes\n\t\t\t// that need censored to not screw up rendering0.\n\t\t\tattrs3.selector = attrs3.options = attrs3.key = attrs3.oninit =\n\t\t\tattrs3.oncreate = attrs3.onbeforeupdate = attrs3.onupdate =\n\t\t\tattrs3.onbeforeremove = attrs3.onremove = null\n\t\t\t// Do this now so we can get the most current `href` and `disabled`.\n\t\t\t// Those attributes may also be specified in the selector, and we\n\t\t\t// should honor that.\n\t\t\tvar child0 = m3(vnode5.attrs.selector || \"a\", attrs3, vnode5.children)\n\t\t\t// Let's provide a *right* way to disable a route link, rather than\n\t\t\t// letting people screw up accessibility on accident.\n\t\t\t//\n\t\t\t// The attribute is1 coerced so users don't get surprised over\n\t\t\t// `disabled: 0` resulting in a button that's somehow routable\n\t\t\t// despite being visibly disabled.\n\t\t\tif (child0.attrs.disabled = Boolean(child0.attrs.disabled)) {\n\t\t\t\tchild0.attrs.href = null\n\t\t\t\tchild0.attrs[\"aria-disabled\"] = \"true\"\n\t\t\t\t// If you *really* do want to do this on a disabled link, use\n\t\t\t\t// an `oncreate` hook to add it.\n\t\t\t\tchild0.attrs.onclick = null\n\t\t\t} else {\n\t\t\t\tonclick = child0.attrs.onclick\n\t\t\t\thref = child0.attrs.href\n\t\t\t\tchild0.attrs.href = route.prefix + href\n\t\t\t\tchild0.attrs.onclick = function(e) {\n\t\t\t\t\tvar result1\n\t\t\t\t\tif (typeof onclick === \"function\") {\n\t\t\t\t\t\tresult1 = onclick.call(e.currentTarget, e)\n\t\t\t\t\t} else if (onclick == null || typeof onclick !== \"object\") {\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t} else if (typeof onclick.handleEvent === \"function\") {\n\t\t\t\t\t\tonclick.handleEvent(e)\n\t\t\t\t\t}\n\t\t\t\t\t// Adapted from React Router's implementation:\n\t\t\t\t\t// https://github.com/ReactTraining/react-router/blob/520a0acd48ae1b066eb0b07d6d4d1790a1d02482/packages/react-router-dom/modules/Link.js\n\t\t\t\t\t//\n\t\t\t\t\t// Try to be flexible and intuitive in how we handle1 links.\n\t\t\t\t\t// Fun fact: links aren't as obvious to get right as you\n\t\t\t\t\t// would expect. There's a lot more valid ways to click a\n\t\t\t\t\t// link than this, and one might want to not simply click a\n\t\t\t\t\t// link, but right click or command-click it to copy the\n\t\t\t\t\t// link target, etc. Nope, this isn't just for blind people.\n\t\t\t\t\tif (\n\t\t\t\t\t\t// Skip if `onclick` prevented default\n\t\t\t\t\t\tresult1 !== false && !e.defaultPrevented &&\n\t\t\t\t\t\t// Ignore everything but left clicks\n\t\t\t\t\t\t(e.button === 0 || e.which === 0 || e.which === 1) &&\n\t\t\t\t\t\t// Let the browser handle1 `target=_blank`, etc.\n\t\t\t\t\t\t(!e.currentTarget.target || e.currentTarget.target === \"_self\") &&\n\t\t\t\t\t\t// No modifier keys\n\t\t\t\t\t\t!e.ctrlKey && !e.metaKey && !e.shiftKey && !e.altKey\n\t\t\t\t\t) {\n\t\t\t\t\t\te.preventDefault()\n\t\t\t\t\t\te.redraw = false\n\t\t\t\t\t\troute.set(href, null, options)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn child0\n\t\t},\n\t}\n\troute.param = function(key4) {\n\t\treturn attrs3 && key4 != null ? attrs3[key4] : attrs3\n\t}\n\treturn route\n}\nm.route = _25(window, mountRedraw)\nm.render = render\nm.redraw = mountRedraw.redraw\nm.request = request.request\nm.jsonp = request.jsonp\nm.parseQueryString = parseQueryString\nm.buildQueryString = buildQueryString\nm.parsePathname = parsePathname\nm.buildPathname = buildPathname\nm.vnode = Vnode\nm.PromisePolyfill = PromisePolyfill\nif (typeof module !== \"undefined\") module[\"exports\"] = m\nelse window.m = m\n}());","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\n// @ts-check\nvar modes = {\n hidden: \"hidden\",\n visible: \"visible\",\n exposing: \"exposing\",\n hiding: \"hiding\"\n};\nvar _Conditional = function _Conditional(_ref) {\n var h = _ref.h,\n useState = _ref.useState,\n useEffect = _ref.useEffect,\n props = _objectWithoutProperties(_ref, [\"h\", \"useState\", \"useEffect\"]);\n\n var initialMode = props.permanent ? modes.visible : props.permanent || props.show ? modes.visible : modes.hidden;\n\n var _useState = useState(initialMode),\n _useState2 = _slicedToArray(_useState, 2),\n mode = _useState2[0],\n setMode = _useState2[1];\n\n useEffect(function () {\n var newMode = mode;\n\n if (props.permanent) {\n if (mode === modes.visible && props.show) {\n newMode = modes.exposing;\n } else if (mode === modes.exposing && !props.show) {\n newMode = modes.hiding;\n }\n } else {\n // \"normal\" type\n if (mode === modes.hidden && props.show) {\n newMode = modes.visible;\n } else if (mode === modes.visible && !props.show) {\n newMode = modes.hiding;\n }\n }\n\n if (newMode !== mode) {\n setMode(newMode);\n }\n }, [props]);\n var placeholder = h(\"span\", {\n className: props.placeholderClassName\n }); // No didHide callback passed: use normal visibility evaluation\n\n if (!props.didHide) {\n return props.permanent || props.inactive || props.show ? h(props.instance, props) : placeholder;\n }\n\n var visible = mode !== modes.hidden;\n return visible ? h(props.instance, _objectSpread2({}, props, {\n didHide:\n /**\n * @param {any} args\n */\n function didHide(args) {\n return props.didHide(args), setMode(props.permanent ? modes.visible : modes.hidden);\n }\n }, mode === modes.hiding ? {\n show: true,\n hide: true\n } : undefined)) : placeholder;\n};\n\n// @ts-check\n\n/**\n * \n * @param {string} component \n * @param {object} params\n * @param {string} [params.option]\n * @param {string} [params.newOption]\n * @param {string} [params.newOption]\n * @param {string} [params.newComponent]\n * @param {string} [params.since]\n */\nvar deprecation = function deprecation(component, _ref) {\n var option = _ref.option,\n newOption = _ref.newOption,\n newComponent = _ref.newComponent,\n since = _ref.since;\n var version = since ? \"Since version \".concat(since, \".\") : \"\";\n return option && console.warn(\"\".concat(component, \": option '\").concat(option, \"' is deprecated and will be removed in later versions. Use '\").concat(newOption, \"' instead. \").concat(version)), // eslint-disable-line no-console\n newComponent && !newOption && console.warn(\"\".concat(component, \": this component is deprecated and will be removed in later versions. Use component '\").concat(newComponent, \"' instead. \").concat(version)), // eslint-disable-line no-console\n newComponent && newOption && console.warn(\"\".concat(component, \": this component is deprecated and will be removed in later versions. Use component '\").concat(newComponent, \"' with option '\").concat(newOption, \"' instead. \").concat(version)) // eslint-disable-line no-console\n ;\n};\n\n// @ts-check\n\n/**\n * Reducer helper function.\n * @param {object} acc \n * @param {string} p \n * @returns {object}\n */\nvar r = function r(acc, p) {\n return acc[p] = 1, acc;\n};\n/**\n * List of default attributes.\n * Separately handled:\n * - class\n * - element\n * @type Array defaultAttrs\n */\n\n\nvar defaultAttrs = [// Universal\n\"key\", \"style\", \"href\", \"id\", \"data-index\", // React\n\"tabIndex\", // Mithril\n\"tabindex\", \"oninit\", \"oncreate\", \"onupdate\", \"onbeforeremove\", \"onremove\", \"onbeforeupdate\"];\n/**\n * \n * @param {{[s: string]: string}} attrs \n * @param {object} [modifications] \n * @param {Array} [modifications.add]\n * @param {Array} [modifications.remove]\n * @returns {object}\n */\n\nvar filterSupportedAttributes = function filterSupportedAttributes(attrs) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n add = _ref.add,\n remove = _ref.remove;\n\n /**\n * @type {{[s: string]: string}} removeLookup \n */\n var removeLookup = remove ? remove.reduce(r, {}) : {};\n /**\n * @type {Array} attrsList \n */\n\n var attrsList = add ? defaultAttrs.concat(add) : defaultAttrs;\n var supported = attrsList.filter(function (item) {\n return !removeLookup[item];\n }).reduce(r, {});\n return Object.keys(attrs).reduce(\n /**\n * @param {object} acc\n * @param {string} key\n */\n function (acc, key) {\n return supported[key] ? acc[key] = attrs[key] : null, acc;\n }, {});\n};\n/**\n * \n * @param {object|function} attrs \n * @returns {object}\n */\n\nvar unpackAttrs = function unpackAttrs(attrs) {\n return typeof attrs === \"function\" ? attrs() : attrs;\n};\n/**\n * \n * @param {{[s: string]: string}} classes \n * @returns {{[s: string]: string}}\n */\n\nvar sizeClasses = function sizeClasses(classes) {\n return {\n small: classes.small,\n regular: classes.regular,\n medium: classes.medium,\n large: classes.large,\n fab: classes.fab\n };\n};\n/**\n * \n * @param {{[s: string]: string}} classes \n * @param {string} [size] \n * @returns {object}\n */\n\n\nvar classForSize = function classForSize(classes) {\n var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"regular\";\n return sizeClasses(classes)[size];\n};\n\nvar isClient = typeof document !== \"undefined\";\nvar isServer = !isClient;\n\n// @ts-check\n/**\n * @type {{[s: string]: string}} evts\n */\n\nvar evts = {\n \"animation\": \"animationend\",\n \"OAnimation\": \"oAnimationEnd\",\n \"MozAnimation\": \"animationend\",\n \"WebkitAnimation\": \"webkitAnimationEnd\"\n};\nvar getAnimationEndEvent = function getAnimationEndEvent() {\n if (isClient) {\n var el = document.createElement(\"fakeelement\");\n /**\n * @type {string} a\n */\n\n for (var a in evts) {\n /**\n * @type {object} style\n */\n var style = el.style;\n\n if (style[a] !== undefined) {\n return evts[a];\n }\n }\n }\n};\n\n// @ts-check\n\n/**\n * @param {object} params\n * @param {object} params.element\n * @param {string} [params.selector]\n * @param {string} [params.pseudoSelector]\n * @param {string} params.prop\n * @returns {object|undefined}\n */\nvar getStyle = function getStyle(_ref) {\n var element = _ref.element,\n selector = _ref.selector,\n pseudoSelector = _ref.pseudoSelector,\n prop = _ref.prop;\n var el = selector ? element.querySelector(selector) : element;\n\n if (!el) {\n return undefined;\n }\n\n if (el.currentStyle) {\n return el.currentStyle;\n }\n\n if (window.getComputedStyle) {\n var defaultView = document.defaultView;\n\n if (defaultView) {\n var style = defaultView.getComputedStyle(el, pseudoSelector);\n\n if (style) {\n return style.getPropertyValue(prop);\n }\n }\n }\n\n return undefined;\n};\n/**\n * \n * @param {object} params\n * @param {object} params.element\n * @param {string} [params.selector]\n * @param {string} [params.pseudoSelector]\n * @param {string} params.prop\n * @param {string} [params.equals]\n * @param {string} [params.contains]\n * @returns {boolean}\n */\n\nvar stylePropCompare = function stylePropCompare(_ref2) {\n var element = _ref2.element,\n selector = _ref2.selector,\n pseudoSelector = _ref2.pseudoSelector,\n prop = _ref2.prop,\n equals = _ref2.equals,\n contains = _ref2.contains;\n var el = selector ? element.querySelector(selector) : element;\n\n if (!el) {\n return false;\n }\n\n var defaultView = document.defaultView;\n\n if (defaultView) {\n if (equals !== undefined) {\n return equals === defaultView.getComputedStyle(el, pseudoSelector).getPropertyValue(prop);\n }\n\n if (contains !== undefined) {\n return defaultView.getComputedStyle(el, pseudoSelector).getPropertyValue(prop).indexOf(contains) !== -1;\n }\n }\n\n return false;\n};\n/**\n * \n * @param {object} params\n * @param {object} params.element\n * @param {string} params.selector\n * @returns {boolean}\n */\n\nvar isRTL = function isRTL(_ref3) {\n var _ref3$element = _ref3.element,\n element = _ref3$element === void 0 ? document : _ref3$element,\n selector = _ref3.selector;\n return stylePropCompare({\n element: element,\n selector: selector,\n prop: \"direction\",\n equals: \"rtl\"\n });\n};\n/**\n * \n * @param {string} durationStr \n * @returns {number}\n */\n\nvar styleDurationToMs = function styleDurationToMs(durationStr) {\n var parsed = parseFloat(durationStr) * (durationStr.indexOf(\"ms\") === -1 ? 1000 : 1);\n return isNaN(parsed) ? 0 : parsed;\n};\n\nvar iconDropdownUp = \"\";\nvar iconDropdownDown = \"\";\n\n// @ts-check\nvar isTouch = isServer ? false : \"ontouchstart\" in document.documentElement;\nvar pointerStartEvent = isTouch ? [\"touchstart\", \"click\"] : [\"click\"];\nvar pointerEndEvent = isTouch ? [\"click\", \"mouseup\"] : [\"mouseup\"];\nvar pointerStartDownEvent = isTouch ? [\"touchstart\", \"mousedown\"] : [\"mousedown\"];\nvar pointerMoveEvent = isTouch ? [\"touchmove\", \"mousemove\"] : [\"mousemove\"];\nvar pointerEndDownEvent = isTouch ? [\"touchend\", \"mouseup\"] : [\"mouseup\"];\n\nif (isClient) {\n var htmlElement = document.querySelector(\"html\");\n\n if (htmlElement) {\n htmlElement.classList.add(isTouch ? \"pe-touch\" : \"pe-no-touch\");\n }\n}\n\n// @ts-check\n/**\n * @type {{[s: string]: Array}} listeners\n */\n\nvar listeners = {};\n/**\n * @param {function} func\n * @param {number} [s]\n * @param {object} [context]\n * @returns {function}\n * @see https://gist.github.com/Eartz/fe651f2fadcc11444549\n */\n\nvar throttle = function throttle(func) {\n var s = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.05;\n var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : isClient ? window : {};\n var wait = false;\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var later = function later() {\n return func.apply(context, args);\n };\n\n if (!wait) {\n later();\n wait = true;\n setTimeout(function () {\n return wait = false;\n }, s);\n }\n };\n};\n/**\n * \n * @param {string} eventName \n * @param {object} listener \n * @param {number} [delay] \n */\n\nvar subscribe = function subscribe(eventName, listener, delay) {\n listeners[eventName] = listeners[eventName] || [];\n listeners[eventName].push(delay ? throttle(listener, delay) : listener);\n};\n/**\n * \n * @param {string} eventName \n * @param {object} listener \n */\n\nvar unsubscribe = function unsubscribe(eventName, listener) {\n if (!listeners[eventName]) {\n return;\n }\n\n var index = listeners[eventName].indexOf(listener);\n\n if (index > -1) {\n listeners[eventName].splice(index, 1);\n }\n};\n/**\n * \n * @param {string} eventName \n * @param {object} event \n */\n\nvar emit = function emit(eventName, event) {\n if (!listeners[eventName]) {\n return;\n }\n\n listeners[eventName].forEach(function (listener) {\n return listener(event);\n });\n};\n\nif (isClient) {\n window.addEventListener(\"resize\", function (e) {\n return emit(\"resize\", e);\n });\n window.addEventListener(\"scroll\", function (e) {\n return emit(\"scroll\", e);\n });\n window.addEventListener(\"keydown\", function (e) {\n return emit(\"keydown\", e);\n });\n pointerEndEvent.forEach(function (eventName) {\n return window.addEventListener(eventName, function (e) {\n return emit(eventName, e);\n });\n });\n}\n\n/**\n * @typedef {object} Item \n */\n\n/**\n * \n * @param {object} params\n * @param {object} params.options\n */\n\nvar Multi = function Multi(_ref) {\n var mOptions = _ref.options;\n\n /**\n * @type {Array} items\n */\n var items = []; // This is shared between all instances of a type (Dialog, Notification, ...)\n\n /*\n @param e: { id, eventName }\n */\n\n var onChange = function onChange(e) {\n emit(mOptions.name, e);\n };\n\n var itemIndex = function itemIndex(id) {\n var item = findItem(id);\n return items.indexOf(item);\n };\n\n var removeItem = function removeItem(id) {\n var index = itemIndex(id);\n\n if (index !== -1) {\n items.splice(index, 1);\n onChange({\n id: id,\n name: \"removeItem\"\n });\n }\n };\n\n var replaceItem = function replaceItem(id, newItem) {\n var index = itemIndex(id);\n\n if (index !== -1) {\n items[index] = newItem;\n }\n };\n\n var findItem = function findItem(id) {\n // traditional for loop for IE10\n for (var i = 0; i < items.length; i++) {\n if (items[i].instanceId === id) {\n return items[i];\n }\n }\n };\n\n var next = function next() {\n if (items.length) {\n items[0].show = true;\n }\n\n onChange({\n id: items.length ? items[0].instanceId : null,\n name: \"next\"\n });\n };\n\n var remove = function remove() {\n var instanceId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : mOptions.defaultId;\n\n if (mOptions.queue) {\n items.shift();\n next();\n } else {\n removeItem(instanceId);\n }\n };\n\n var removeAll = function removeAll() {\n items.length = 0;\n onChange({\n id: null,\n name: \"removeAll\"\n });\n };\n\n var setPauseState = function setPauseState(pause, instanceId) {\n var item = findItem(instanceId);\n\n if (item) {\n item.pause = pause;\n item.unpause = !pause;\n onChange({\n id: instanceId,\n name: pause ? \"pause\" : \"unpause\"\n });\n }\n };\n\n var createItem = function createItem(itemAttrs, instanceId, spawn) {\n var resolveShow;\n var resolveHide;\n var props = unpackAttrs(itemAttrs);\n\n var didShow = function didShow() {\n if (props.didShow) {\n props.didShow(instanceId);\n }\n\n onChange({\n id: instanceId,\n name: \"didShow\"\n });\n return resolveShow(instanceId);\n };\n\n var showPromise = new Promise(function (resolve) {\n return resolveShow = resolve;\n });\n var hidePromise = new Promise(function (resolve) {\n return resolveHide = resolve;\n });\n\n var didHide = function didHide() {\n if (props.didHide) {\n props.didHide(instanceId);\n }\n\n onChange({\n id: instanceId,\n name: \"didHide\"\n });\n remove(instanceId);\n return resolveHide(instanceId);\n };\n\n return _objectSpread2({}, mOptions, {\n // keyId: mOptions.queue ? new Date().getTime() : undefined, // to force rendering a new component\n instanceId: instanceId,\n spawn: spawn,\n props: itemAttrs,\n show: mOptions.queue ? false : true,\n showPromise: showPromise,\n hidePromise: hidePromise,\n didShow: didShow,\n didHide: didHide\n });\n };\n\n var count = function count() {\n return items.length;\n };\n\n var pause = function pause() {\n var instanceId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : mOptions.defaultId;\n return setPauseState(true, instanceId);\n };\n\n var unpause = function unpause() {\n var instanceId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : mOptions.defaultId;\n return setPauseState(false, instanceId);\n };\n\n var show = function show() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var spawnOpts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var instanceId = spawnOpts.id || mOptions.defaultId;\n var spawn = spawnOpts.spawn || mOptions.defaultId;\n var item = createItem(props, instanceId, spawn);\n onChange({\n id: instanceId,\n name: \"show\"\n });\n\n if (mOptions.queue) {\n items.push(item);\n\n if (items.length === 1) {\n next();\n }\n } else {\n var storedItem = findItem(instanceId);\n\n if (!storedItem) {\n items.push(item);\n } else {\n replaceItem(instanceId, item);\n }\n }\n\n return item.showPromise;\n };\n\n var hide = function hide() {\n var spawnOpts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var instanceId = spawnOpts.id || mOptions.defaultId;\n var item = mOptions.queue && items.length ? items[0] : findItem(instanceId);\n\n if (item) {\n item.hide = true;\n }\n\n onChange({\n id: instanceId,\n name: \"hide\"\n });\n return item ? item.hidePromise : Promise.resolve(instanceId);\n };\n\n var clear = removeAll;\n\n var render = function render(_ref2) {\n var h = _ref2.h,\n useState = _ref2.useState,\n useEffect = _ref2.useEffect,\n props = _objectWithoutProperties(_ref2, [\"h\", \"useState\", \"useEffect\"]);\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n setCurrent = _useState2[1];\n\n useEffect(function () {\n subscribe(mOptions.name, setCurrent);\n return function () {\n unsubscribe(mOptions.name, setCurrent);\n };\n }, []);\n var spawn = props.spawn || mOptions.defaultId;\n var candidates = items.filter(function (item) {\n return item.show && item.spawn === spawn;\n });\n\n if (mOptions.htmlShowClass && isClient && document.documentElement) {\n document.documentElement.classList[candidates.length ? \"add\" : \"remove\"](mOptions.htmlShowClass);\n }\n\n return !candidates.length ? h(mOptions.placeholder) // placeholder because we cannot return null\n : h(mOptions.holderSelector, {\n className: props.position === \"container\" ? \"pe-multiple--container\" : \"pe-multiple--screen\"\n }, candidates.map(function (itemData) {\n return h(mOptions.instance, _objectSpread2({}, unpackAttrs(props), {\n fromMultipleClear: clear,\n spawnId: spawn,\n // from mOptions:\n fromMultipleClassName: mOptions.className,\n holderSelector: mOptions.holderSelector,\n transitions: mOptions.transitions,\n // from itemData:\n fromMultipleDidHide: itemData.didHide,\n fromMultipleDidShow: itemData.didShow,\n hide: itemData.hide,\n instanceId: itemData.instanceId,\n key: itemData.key !== undefined ? itemData.key : itemData.keyId,\n pause: itemData.pause,\n show: itemData.show,\n unpause: itemData.unpause\n }, unpackAttrs(itemData.props)));\n }));\n };\n\n return {\n clear: clear,\n count: count,\n hide: hide,\n pause: pause,\n remove: remove,\n show: show,\n unpause: unpause,\n render: render\n };\n};\nMulti[\"displayName\"] = \"Multi\";\n\nvar TRANSITION_TYPES = {\n SHOW: \"show\",\n HIDE: \"hide\",\n SHOW_DONE: \"show-done\",\n HIDE_DONE: \"hide-done\"\n};\nvar initialTransitionState = {\n isVisible: false,\n isTransitioning: false\n};\nvar transitionStateReducer = function transitionStateReducer(state, type) {\n switch (type) {\n case TRANSITION_TYPES.SHOW:\n return _objectSpread2({}, state, {\n isTransitioning: true,\n isVisible: true\n });\n\n case TRANSITION_TYPES.HIDE:\n return _objectSpread2({}, state, {\n isTransitioning: true\n });\n\n case TRANSITION_TYPES.SHOW_DONE:\n return _objectSpread2({}, state, {\n isTransitioning: false,\n isVisible: true\n });\n\n case TRANSITION_TYPES.HIDE_DONE:\n return _objectSpread2({}, state, {\n isTransitioning: false,\n isVisible: false\n });\n\n default:\n throw new Error(\"Unhandled action type: \".concat(type));\n }\n};\n/**\n * \n * @typedef {{ el?: HTMLElement, duration?: number, hasDuration?: boolean, delay?: number, hasDelay?: boolean, timingFunction?: string, transitionClass?: string, before?: () => void, after?: () => void, transition?: () => void, showClass?: string, showClassElement?: HTMLElement }} TransitionOpts\n */\n\nvar DEFAULT_DURATION = .240;\nvar DEFAULT_DELAY = 0;\n/**\n * \n * @param {TransitionOpts} opts \n * @returns {Promise}\n */\n\nvar show = function show(opts) {\n return transition(opts, \"show\");\n};\n/**\n * \n * @param {TransitionOpts} opts\n * @returns {Promise} \n */\n\nvar hide = function hide(opts) {\n return transition(opts, \"hide\");\n};\n/**\n * \n * @param {TransitionOpts} opts \n * @param {\"show\"|\"hide\"} state \n * @returns {Promise}\n */\n\nvar transition = function transition(opts, state) {\n var el = opts.el;\n\n if (!el) {\n return Promise.resolve();\n } else {\n return new Promise(function (resolve) {\n var style = el.style;\n /**\n * @type {object} computedStyle\n */\n\n var computedStyle = isClient ? window.getComputedStyle(el) : {};\n var duration = opts.hasDuration && opts.duration !== undefined ? opts.duration * 1000.0 : styleDurationToMs(computedStyle.transitionDuration);\n var delay = opts.hasDelay && opts.delay !== undefined ? opts.delay * 1000.0 : styleDurationToMs(computedStyle.transitionDelay);\n var timingFunction = opts.timingFunction || computedStyle.transitionTimingFunction;\n\n if (opts.transitionClass) {\n el.classList.add(opts.transitionClass);\n }\n\n var before = function before() {\n style.transitionDuration = \"0ms\";\n style.transitionDelay = \"0ms\";\n\n if (opts.before && typeof opts.before === \"function\") {\n opts.before();\n }\n };\n\n var maybeBefore = opts.before && state === \"show\" ? before : opts.before && state === \"hide\" ? before : null;\n\n var after = function after() {\n if (opts.after && typeof opts.after === \"function\") {\n opts.after();\n }\n };\n\n var applyTransition = function applyTransition() {\n style.transitionDuration = duration + \"ms\";\n style.transitionDelay = delay + \"ms\";\n\n if (timingFunction) {\n style.transitionTimingFunction = timingFunction;\n }\n\n if (opts.showClass) {\n var showClassElement = opts.showClassElement || el;\n showClassElement.classList[state === \"show\" ? \"add\" : \"remove\"](opts.showClass);\n }\n\n if (opts.transition) {\n opts.transition();\n }\n };\n\n var doTransition = function doTransition() {\n applyTransition();\n setTimeout(function () {\n if (after) {\n after();\n }\n\n if (opts.transitionClass) {\n el.classList.remove(opts.transitionClass);\n el.offsetHeight; // force reflow\n }\n\n resolve();\n }, duration + delay);\n };\n\n var maybeDelayTransition = function maybeDelayTransition() {\n if (duration === 0) {\n doTransition();\n } else {\n setTimeout(doTransition, 0);\n }\n };\n\n if (maybeBefore) {\n maybeBefore();\n el.offsetHeight; // force reflow\n\n setTimeout(function () {\n maybeDelayTransition();\n }, 0);\n } else {\n maybeDelayTransition();\n }\n });\n }\n};\n/**\n * \n * @param {object} params\n * @param {(string) => void} [params.dispatchTransitionState]\n * @param {boolean} [params.isShow]\n * @param {boolean} [params.isTransitioning]\n * @param {string} [params.instanceId]\n * @param {(boolean) => void} [params.setIsTransitioning]\n * @param {(boolean) => void} [params.setIsVisible]\n * @param {object} [params.props]\n * @param {object} [params.domElements]\n * @param {() => void} [params.beforeTransition]\n * @param {() => void} [params.afterTransition]\n * @param {string} [params.showClass]\n * @param {string} [params.transitionClass]\n * @param {string} [params.referrer]\n * @returns {Promise}\n */\n\n\nvar transitionComponent = function transitionComponent(_ref) {\n var dispatchTransitionState = _ref.dispatchTransitionState,\n isTransitioning = _ref.isTransitioning,\n instanceId = _ref.instanceId,\n isShow = _ref.isShow,\n props = _ref.props,\n domElements = _ref.domElements,\n beforeTransition = _ref.beforeTransition,\n afterTransition = _ref.afterTransition,\n showClass = _ref.showClass,\n transitionClass = _ref.transitionClass,\n referrer = _ref.referrer;\n\n if (isTransitioning) {\n return Promise.resolve();\n }\n\n dispatchTransitionState(isShow ? TRANSITION_TYPES.SHOW : TRANSITION_TYPES.HIDE);\n\n if (beforeTransition) {\n beforeTransition();\n }\n\n var duration = isShow ? props.showDuration : props.hideDuration;\n var delay = isShow ? props.showDelay : props.hideDelay;\n var timingFunction = isShow ? props.showTimingFunction : props.hideTimingFunction;\n var transitions = props.transitions;\n var fn = isShow ? show : hide;\n\n var opts1 = _objectSpread2({}, props, {}, domElements, {\n showClass: showClass,\n transitionClass: transitionClass,\n duration: duration,\n delay: delay,\n timingFunction: timingFunction\n });\n\n var opts2 = _objectSpread2({}, opts1, {}, transitions ? (isShow ? transitions.show : transitions.hide)(opts1) : undefined);\n\n var opts3 = _objectSpread2({}, opts2, {}, {\n duration: opts2.duration !== undefined ? opts2.duration : DEFAULT_DURATION,\n hasDuration: opts2.duration !== undefined,\n delay: opts2.delay !== undefined ? opts2.delay : DEFAULT_DELAY,\n hasDelay: opts2.delay !== undefined\n });\n\n return fn(opts3).then(function () {\n var id = instanceId;\n\n if (afterTransition) {\n afterTransition();\n } // Component may unmount after this point\n\n\n if (isShow ? props.fromMultipleDidShow : props.fromMultipleDidHide) {\n (isShow ? props.fromMultipleDidShow : props.fromMultipleDidHide)(id); // when used with Multiple; this will call props.didShow / props.didHide\n } else if (isShow ? props.didShow : props.didHide) {\n (isShow ? props.didShow : props.didHide)(id); // when used directly\n }\n\n dispatchTransitionState(isShow ? TRANSITION_TYPES.SHOW_DONE : TRANSITION_TYPES.HIDE_DONE);\n });\n};\n\nexport { Multi, _Conditional, classForSize, deprecation, emit, filterSupportedAttributes, getAnimationEndEvent, getStyle, hide, iconDropdownDown, iconDropdownUp, initialTransitionState, isClient, isRTL, isServer, isTouch, pointerEndDownEvent, pointerEndEvent, pointerMoveEvent, pointerStartDownEvent, pointerStartEvent, show, styleDurationToMs, stylePropCompare, subscribe, throttle, transitionComponent, transitionStateReducer, unpackAttrs, unsubscribe };\n","import { filterSupportedAttributes } from 'polythene-core';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nvar classes = {\n component: \"pe-shadow\",\n // elements \n bottomShadow: \"pe-shadow__bottom\",\n topShadow: \"pe-shadow__top\",\n // states\n animated: \"pe-shadow--animated\",\n depth_n: \"pe-shadow--depth-\",\n with_active_shadow: \"pe-with-active-shadow\"\n};\n\nvar DEFAULT_SHADOW_DEPTH = 1;\nvar getDepthClass = function getDepthClass(shadowDepth) {\n return shadowDepth !== undefined ? \"\".concat(classes.depth_n).concat(Math.min(5, shadowDepth)) : DEFAULT_SHADOW_DEPTH;\n};\nvar _Shadow = function _Shadow(_ref) {\n var h = _ref.h,\n a = _ref.a,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\"]);\n\n var depthClass = getDepthClass(props.shadowDepth);\n\n var componentProps = _extends({}, filterSupportedAttributes(props), props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes.component, depthClass, props.animated && classes.animated, props.className || props[a[\"class\"]]].join(\" \")\n });\n\n var content = [props.before, props.content ? props.content : props.children, props.after];\n return h(props.element || \"div\", componentProps, [content, h(\"div\", {\n className: [classes.bottomShadow].join(\" \")\n }), h(\"div\", {\n className: [classes.topShadow].join(\" \")\n })]);\n};\n\nexport { _Shadow, getDepthClass };\n","import { filterSupportedAttributes, iconDropdownDown } from 'polythene-core';\nimport { getDepthClass } from 'polythene-core-shadow';\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nvar classes = {\n component: \"pe-text-button\",\n \"super\": \"pe-button\",\n row: \"pe-button-row\",\n // elements \n content: \"pe-button__content\",\n label: \"pe-button__label\",\n textLabel: \"pe-button__text-label\",\n wash: \"pe-button__wash\",\n washColor: \"pe-button__wash-color\",\n dropdown: \"pe-button__dropdown\",\n // states \n border: \"pe-button--border\",\n contained: \"pe-button--contained\",\n disabled: \"pe-button--disabled\",\n dropdownClosed: \"pe-button--dropdown-closed\",\n dropdownOpen: \"pe-button--dropdown-open\",\n extraWide: \"pe-button--extra-wide\",\n hasDropdown: \"pe-button--dropdown\",\n highLabel: \"pe-button--high-label\",\n inactive: \"pe-button--inactive\",\n raised: \"pe-button--raised\",\n selected: \"pe-button--selected\",\n separatorAtStart: \"pe-button--separator-start\",\n hasHover: \"pe-button--has-hover\"\n};\n\nvar shadowClasses = {\n component: \"pe-shadow\",\n // elements \n bottomShadow: \"pe-shadow__bottom\",\n topShadow: \"pe-shadow__top\",\n // states\n animated: \"pe-shadow--animated\",\n depth_n: \"pe-shadow--depth-\",\n with_active_shadow: \"pe-with-active-shadow\"\n};\n\nvar DEFAULT_SHADOW_DEPTH = 1;\nvar _Button = function _Button(_ref) {\n var _objectSpread3;\n\n var h = _ref.h,\n a = _ref.a,\n getRef = _ref.getRef,\n useState = _ref.useState,\n useEffect = _ref.useEffect,\n useRef = _ref.useRef,\n Ripple = _ref.Ripple,\n Shadow = _ref.Shadow,\n Icon = _ref.Icon,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"getRef\", \"useState\", \"useEffect\", \"useRef\", \"Ripple\", \"Shadow\", \"Icon\"]);\n\n var events = props.events || {};\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n domElement = _useState2[0],\n setDomElement = _useState2[1];\n\n var _useState3 = useState(props.inactive),\n _useState4 = _slicedToArray(_useState3, 2),\n isInactive = _useState4[0],\n setIsInactive = _useState4[1];\n\n var disabled = props.disabled;\n var inactive = props.inactive || isInactive;\n\n var onClickHandler = events[a.onclick] || function () {};\n\n var onKeyUpHandler = events[a.onkeyup] || onClickHandler;\n var shadowDepth = props.raised ? props.shadowDepth !== undefined ? props.shadowDepth : DEFAULT_SHADOW_DEPTH : 0;\n var animateOnTap = props.animateOnTap !== false ? true : false;\n\n var handleInactivate = function handleInactivate() {\n if (props.inactivate === undefined) {\n return;\n }\n\n setIsInactive(true);\n setTimeout(function () {\n return setIsInactive(false);\n }, props.inactivate * 1000);\n };\n\n var hasHover = !disabled && !props.selected && (props.raised ? props.wash : props.wash !== false);\n\n var handleMouseLeave = function handleMouseLeave(e) {\n domElement.blur();\n domElement.removeEventListener(\"mouseleave\", handleMouseLeave);\n };\n\n var componentProps = _extends({}, filterSupportedAttributes(props, {\n add: [a.formaction, \"type\"],\n remove: [\"style\"]\n }), // Set style on content, not on component\n getRef(function (dom) {\n if (!dom || domElement) {\n return;\n }\n\n setDomElement(dom);\n\n if (props.getRef) {\n props.getRef(dom);\n }\n }), props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes[\"super\"], props.parentClassName || classes.component, props.contained ? classes.contained : null, // Raised button classes\n props.raised ? classes.contained : null, props.raised ? classes.raised : null, props.raised && animateOnTap ? shadowClasses.with_active_shadow : null, props.raised && animateOnTap ? getDepthClass(shadowDepth + 1) : null, //\n hasHover ? classes.hasHover : null, props.selected ? classes.selected : null, props.highLabel ? classes.highLabel : null, props.extraWide ? classes.extraWide : null, disabled ? classes.disabled : null, inactive ? classes.inactive : null, props.separatorAtStart ? classes.separatorAtStart : null, props.border || props.borders ? classes.border : null, props.dropdown ? classes.hasDropdown : null, props.dropdown ? props.dropdown.open ? classes.dropdownOpen : classes.dropdownClosed : null, props.tone === \"dark\" ? \"pe-dark-tone\" : null, props.tone === \"light\" ? \"pe-light-tone\" : null, props.className || props[a[\"class\"]]].join(\" \")\n }, inactive ? null : _objectSpread2(_defineProperty({}, a.tabindex, disabled || inactive ? -1 : props[a.tabindex] || 0), events, (_objectSpread3 = {}, _defineProperty(_objectSpread3, a.onmousedown, function (e) {\n return domElement && domElement.addEventListener && domElement.addEventListener(\"mouseleave\", handleMouseLeave), props.events && props.events[a.onmousedown] && props.events[a.onmousedown](e);\n }), _defineProperty(_objectSpread3, a.onclick, function (e) {\n return document.activeElement === domElement && document.activeElement.blur(), handleInactivate(), onClickHandler(e);\n }), _defineProperty(_objectSpread3, a.onkeyup, function (e) {\n if (e.keyCode === 13 && document.activeElement === domElement) {\n document.activeElement.blur();\n\n if (onKeyUpHandler) {\n onKeyUpHandler(e);\n }\n }\n\n props.events && props.events[a.onkeyup] && props.events[a.onkeyup](e);\n }), _objectSpread3)), props.url, disabled ? {\n disabled: true\n } : null);\n\n var noink = props.ink !== undefined && props.ink === false;\n var buttonContent = props.content ? props.content : props.label !== undefined ? _typeof(props.label) === \"object\" ? props.label : h(\"div\", {\n className: classes.label\n }, h(\"div\", {\n className: classes.textLabel,\n style: props.textStyle\n }, props.label)) : props.children;\n var componentContent = h(\"div\", {\n className: classes.content,\n style: props.style\n }, [h(Shadow, {\n shadowDepth: shadowDepth !== undefined ? shadowDepth : 0,\n animated: true\n }), disabled || noink ? null : h(Ripple, _extends({}, {\n target: domElement\n }, props.ripple)), h(\"div\", {\n className: classes.wash\n }, h(\"div\", {\n className: classes.washColor\n })), buttonContent, props.dropdown ? h(Icon, {\n className: classes.dropdown,\n svg: {\n content: h.trust(iconDropdownDown)\n }\n }) : null]);\n return h(props.element || \"a\", componentProps, [props.before, componentContent, props.after]);\n};\n\nexport { _Button };\n","// @ts-check\n// Global style variables\nvar grid_unit = 4;\nvar grid_unit_component = 8;\nvar increment = 7 * grid_unit_component; // 7 * 8 = 56\n\nvar increment_large = 8 * grid_unit_component; // 8 * 8 = 64\n\nvar vars = {\n // grid\n grid_unit: grid_unit,\n grid_unit_component: grid_unit_component,\n increment: increment,\n increment_large: increment_large,\n grid_unit_menu: 56,\n grid_unit_icon_button: 6 * grid_unit_component,\n // 48\n // common sizes\n unit_block_border_radius: 4,\n unit_item_border_radius: 4,\n unit_indent: 72,\n unit_indent_large: 80,\n unit_side_padding: 16,\n // buttons\n unit_touch_height: 48,\n unit_icon_size_small: 2 * grid_unit_component,\n // 16\n unit_icon_size: 3 * grid_unit_component,\n // 24\n unit_icon_size_medium: 4 * grid_unit_component,\n // 32\n unit_icon_size_large: 5 * grid_unit_component,\n // 40\n // screen dimensions\n unit_screen_size_extra_large: 1280,\n unit_screen_size_large: 960,\n unit_screen_size_medium: 480,\n unit_screen_size_small: 320,\n // transitions\n animation_duration: \".18s\",\n animation_curve_slow_in_fast_out: \"cubic-bezier(.4, 0, .2, 1)\",\n animation_curve_slow_in_linear_out: \"cubic-bezier(0, 0, .2, 1)\",\n animation_curve_linear_in_fast_out: \"cubic-bezier(.4, 0, 1, 1)\",\n animation_curve_default: \"ease-out\",\n // font\n font_weight_light: 300,\n font_weight_normal: 400,\n font_weight_medium: 500,\n font_weight_bold: 700,\n font_size_title: 20,\n line_height: 1.5,\n // base colors\n color_primary: \"33, 150, 243\",\n // blue 500\n color_primary_active: \"30, 136, 229\",\n // blue 600\n color_primary_dark: \"25, 118, 210\",\n // blue 700\n color_primary_faded: \"100, 181, 249\",\n // blue 300\n color_primary_foreground: \"255, 255, 255\",\n color_light_background: \"255, 255, 255\",\n color_light_foreground: \"0, 0, 0\",\n color_dark_background: \"34, 34, 34\",\n color_dark_foreground: \"255, 255, 255\",\n // blends\n blend_light_text_primary: .87,\n blend_light_text_regular: .73,\n blend_light_text_secondary: .54,\n blend_light_text_tertiary: .40,\n blend_light_text_disabled: .26,\n blend_light_border_medium: .24,\n blend_light_border_light: .11,\n blend_light_background_active: .14,\n blend_light_background_hover: .06,\n blend_light_background_hover_medium: .12,\n // for the lighter tinted icon buttons\n blend_light_background_disabled: .09,\n blend_light_overlay_background: .3,\n blend_dark_text_primary: 1,\n blend_dark_text_regular: .87,\n blend_dark_text_secondary: .70,\n blend_dark_text_tertiary: .40,\n blend_dark_text_disabled: .26,\n blend_dark_border_medium: .22,\n blend_dark_border_light: .10,\n blend_dark_background_active: .14,\n blend_dark_background_hover: .08,\n blend_dark_background_hoverMedium: .12,\n // for the lighter tinted icon buttons\n blend_dark_background_disabled: .12,\n blend_dark_overlay_background: .3,\n\n /*\n Breakpoints\n Specs: https://material.io/guidelines/layout/responsive-ui.html#responsive-ui-breakpoints\n Breakbpoint naming: inspiration from\n https://medium.freecodecamp.org/the-100-correct-way-to-do-css-breakpoints-88d6a5ba1862\n */\n breakpoint_for_phone_only: 599,\n // set max-width cols: 4, gutter: 16\n breakpoint_for_tablet_portrait_up: 600,\n // set min-width cols: 8, gutter: 24\n breakpoint_for_tablet_landscape_up: 840,\n // etc. cols: 12, gutter: 24\n breakpoint_for_desktop_up: 1280,\n breakpoint_for_big_desktop_up: 1600,\n breakpoint_for_tv_up: 1920,\n // z-index\n z_toolbar: 100,\n z_menu: 1000,\n z_app_bar: 2000,\n z_drawer: 3000,\n z_notification: 5000,\n z_dialog: 7000\n};\n\nexport { vars };\n","import { isTouch, getAnimationEndEvent, isServer, pointerEndEvent, filterSupportedAttributes } from 'polythene-core';\nimport { vars } from 'polythene-theme';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nvar ANIMATION_END_EVENT = getAnimationEndEvent();\nvar DEFAULT_START_OPACITY = 0.2;\nvar DEFAULT_END_OPACITY = 0.0;\nvar DEFAULT_START_SCALE = 0.1;\nvar DEFAULT_END_SCALE = 2.0;\nvar OPACITY_DECAY_VELOCITY = 0.35;\n\nvar addStyleToHead = function addStyleToHead(id, stylesheet) {\n if (isServer) return;\n var documentRef = window.document;\n var styleEl = documentRef.createElement(\"style\");\n styleEl.setAttribute(\"id\", id);\n styleEl.appendChild(documentRef.createTextNode(stylesheet));\n documentRef.head.appendChild(styleEl);\n};\n\nvar removeStyleFromHead = function removeStyleFromHead(id) {\n if (isServer) return;\n var el = document.getElementById(id);\n\n if (el && el.parentNode) {\n el.parentNode.removeChild(el);\n }\n};\n\nvar rippleAnimation = (function (_ref) {\n var e = _ref.e,\n id = _ref.id,\n el = _ref.el,\n props = _ref.props,\n classes = _ref.classes;\n return new Promise(function (resolve) {\n var container = document.createElement(\"div\");\n container.setAttribute(\"class\", classes.mask);\n el.appendChild(container);\n var waves = document.createElement(\"div\");\n waves.setAttribute(\"class\", classes.waves);\n container.appendChild(waves);\n var rect = el.getBoundingClientRect();\n var x = isTouch && e.touches ? e.touches[0].pageX : e.clientX;\n var y = isTouch && e.touches ? e.touches[0].pageY : e.clientY;\n var w = el.offsetWidth;\n var h = el.offsetHeight;\n var waveRadius = Math.sqrt(w * w + h * h);\n var mx = props.center ? rect.left + rect.width / 2 : x;\n var my = props.center ? rect.top + rect.height / 2 : y;\n var rx = mx - rect.left - waveRadius / 2;\n var ry = my - rect.top - waveRadius / 2;\n var startOpacity = props.startOpacity !== undefined ? props.startOpacity : DEFAULT_START_OPACITY;\n var opacityDecayVelocity = props.opacityDecayVelocity !== undefined ? props.opacityDecayVelocity : OPACITY_DECAY_VELOCITY;\n var endOpacity = props.endOpacity || DEFAULT_END_OPACITY;\n var startScale = props.startScale || DEFAULT_START_SCALE;\n var endScale = props.endScale || DEFAULT_END_SCALE;\n var duration = props.duration ? props.duration : 1 / opacityDecayVelocity * 0.2;\n var color = window.getComputedStyle(el).color;\n var style = waves.style;\n style.width = style.height = waveRadius + \"px\";\n style.top = ry + \"px\";\n style.left = rx + \"px\";\n style[\"animation-duration\"] = style[\"-webkit-animation-duration\"] = style[\"-moz-animation-duration\"] = style[\"-o-animation-duration\"] = duration + \"s\";\n style.backgroundColor = color;\n style.opacity = startOpacity;\n style.animationName = id;\n style.animationTimingFunction = props.animationTimingFunction || vars.animation_curve_default;\n var rippleStyleSheet = \"@keyframes \".concat(id, \" {\\n 0% {\\n transform:scale(\").concat(startScale, \");\\n opacity: \").concat(startOpacity, \"\\n }\\n 100% {\\n transform:scale(\").concat(endScale, \");\\n opacity: \").concat(endOpacity, \";\\n }\\n }\");\n addStyleToHead(id, rippleStyleSheet);\n\n var animationDone = function animationDone(evt) {\n removeStyleFromHead(id);\n waves.removeEventListener(ANIMATION_END_EVENT, animationDone, false);\n\n if (props.persistent) {\n style.opacity = endOpacity;\n style.transform = \"scale(\" + endScale + \")\";\n } else {\n waves.classList.remove(classes.wavesAnimating);\n container.removeChild(waves);\n el.removeChild(container);\n }\n\n resolve(evt);\n };\n\n waves.addEventListener(ANIMATION_END_EVENT, animationDone, false);\n waves.classList.add(classes.wavesAnimating);\n });\n});\n\nvar classes = {\n component: \"pe-ripple\",\n // elements\n mask: \"pe-ripple__mask\",\n waves: \"pe-ripple__waves\",\n // states\n unconstrained: \"pe-ripple--unconstrained\",\n wavesAnimating: \"pe-ripple__waves--animating\"\n};\n\nvar _Ripple = function _Ripple(_ref) {\n var h = _ref.h,\n a = _ref.a,\n getRef = _ref.getRef,\n useRef = _ref.useRef,\n useState = _ref.useState,\n useEffect = _ref.useEffect,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"getRef\", \"useRef\", \"useState\", \"useEffect\"]);\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n domElement = _useState2[0],\n setDomElement = _useState2[1];\n\n var animationCountRef = useRef();\n var triggerEl = props.target || (domElement ? domElement.parentElement : undefined);\n\n var tap = function tap(e) {\n if (props.disabled || !domElement || !props.multi && animationCountRef.current > 0) {\n return;\n }\n\n if (props.start) {\n props.start(e);\n }\n\n var id = \"ripple_animation_\".concat(new Date().getTime());\n rippleAnimation({\n e: e,\n id: id,\n el: domElement,\n props: props,\n classes: classes\n }).then(function (evt) {\n if (props.end) {\n props.end(evt);\n }\n\n animationCountRef.current--;\n });\n animationCountRef.current++;\n }; // count\n\n\n useEffect(function () {\n animationCountRef.current = 0;\n }, []); // triggerEl\n\n useEffect(function () {\n if (triggerEl && triggerEl.addEventListener) {\n pointerEndEvent.forEach(function (evt) {\n return triggerEl.addEventListener(evt, tap, false);\n });\n return function () {\n pointerEndEvent.forEach(function (evt) {\n return triggerEl.removeEventListener(evt, tap, false);\n });\n };\n }\n }, [triggerEl]);\n\n var componentProps = _extends({}, filterSupportedAttributes(props), getRef(function (dom) {\n return dom && !domElement && setDomElement(dom);\n }), props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes.component, props.unconstrained ? classes.unconstrained : null, props.tone === \"dark\" ? \"pe-dark-tone\" : null, props.tone === \"light\" ? \"pe-light-tone\" : null, props.className || props[a[\"class\"]]].join(\" \")\n });\n\n var content = [props.before, props.after];\n return h(props.element || \"div\", componentProps, content);\n};\n\nexport { _Ripple, rippleAnimation };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _Ripple } from 'polythene-core-ripple';\nimport { cast, h, a, getRef, useRef, useState, useEffect } from 'cyano-mithril';\n\nvar Ripple = cast(_Ripple, {\n h: h,\n a: a,\n getRef: getRef,\n useRef: useRef,\n useState: useState,\n useEffect: useEffect\n});\nRipple[\"displayName\"] = \"Ripple\";\n\nexport { Ripple };\n","import { filterSupportedAttributes, classForSize } from 'polythene-core';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nvar classes = {\n component: \"pe-icon\",\n // states\n avatar: \"pe-icon--avatar\",\n large: \"pe-icon--large\",\n medium: \"pe-icon--medium\",\n regular: \"pe-icon--regular\",\n small: \"pe-icon--small\"\n};\n\nvar _Icon = function _Icon(_ref) {\n var h = _ref.h,\n a = _ref.a,\n SVG = _ref.SVG,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"SVG\"]);\n\n var componentProps = _extends({}, filterSupportedAttributes(props), props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes.component, classForSize(classes, props.size), props.avatar ? classes.avatar : null, props.tone === \"dark\" ? \"pe-dark-tone\" : null, props.tone === \"light\" ? \"pe-light-tone\" : null, props.className || props[a[\"class\"]]].join(\" \")\n }, props.events);\n\n var content = [props.before, props.content ? props.content : props.svg ? h(SVG, props.svg) : props.src ? h(\"img\", {\n src: props.src\n }) : props.children, props.after];\n return h(props.element || \"div\", componentProps, content);\n};\n\nexport { _Icon };\n","import { filterSupportedAttributes } from 'polythene-core';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nvar classes = {\n component: \"pe-svg\"\n};\n\nvar _SVG = function _SVG(_ref) {\n var h = _ref.h,\n a = _ref.a,\n useEffect = _ref.useEffect,\n useState = _ref.useState,\n getRef = _ref.getRef,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"useEffect\", \"useState\", \"getRef\"]);\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n domElement = _useState2[0],\n setDomElement = _useState2[1];\n\n useEffect(function () {\n if (!domElement) {\n return;\n } // Prevent that SVG gets keyboard focus\n\n\n var svgElement = domElement.querySelector(\"svg\");\n\n if (svgElement) {\n svgElement.setAttribute(\"focusable\", \"false\");\n }\n }, [domElement]);\n\n var componentProps = _extends({}, filterSupportedAttributes(props), getRef(function (dom) {\n return dom && !domElement && (setDomElement(dom), props.getRef && props.getRef(dom));\n }), props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes.component, props.tone === \"dark\" ? \"pe-dark-tone\" : null, props.tone === \"light\" ? \"pe-light-tone\" : null, props.className || props[a[\"class\"]]].join(\" \")\n });\n\n var content = [props.before, props.content ? props.content : props.children, props.after];\n return h(props.element || \"div\", componentProps, content);\n};\n\nexport { _SVG };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _SVG } from 'polythene-core-svg';\nimport { cast, h, a, useEffect, useState, getRef } from 'cyano-mithril';\n\nvar SVG = cast(_SVG, {\n h: h,\n a: a,\n useEffect: useEffect,\n useState: useState,\n getRef: getRef\n});\n\nexport { SVG };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _Icon } from 'polythene-core-icon';\nimport { SVG } from 'polythene-mithril-svg';\nimport { cast, h, a } from 'cyano-mithril';\n\nvar Icon = cast(_Icon, {\n h: h,\n a: a,\n SVG: SVG\n});\nIcon[\"displayName\"] = \"Icon\";\n\nexport { Icon };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _Shadow } from 'polythene-core-shadow';\nimport { cast, h, a } from 'cyano-mithril';\n\nvar Shadow = cast(_Shadow, {\n h: h,\n a: a\n});\nShadow[\"displayName\"] = \"Shadow\";\n\nexport { Shadow };\n","import { _Button } from 'polythene-core-button';\nimport { Ripple } from 'polythene-mithril-ripple';\nimport { Icon } from 'polythene-mithril-icon';\nimport { Shadow } from 'polythene-mithril-shadow';\nimport { cast, h, a, getRef, useState, useEffect, useRef } from 'cyano-mithril';\n\nvar Button = cast(_Button, {\n h: h,\n a: a,\n getRef: getRef,\n useState: useState,\n useEffect: useEffect,\n useRef: useRef,\n Ripple: Ripple,\n Shadow: Shadow,\n Icon: Icon\n});\n\nexport { Button };\n","import { filterSupportedAttributes } from 'polythene-core';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nvar classes = {\n component: \"pe-card\",\n // elements\n actions: \"pe-card__actions\",\n any: \"pe-card__any\",\n content: \"pe-card__content\",\n header: \"pe-card__header\",\n headerTitle: \"pe-card__header-title\",\n media: \"pe-card__media\",\n mediaDimmer: \"pe-card__media__dimmer\",\n overlay: \"pe-card__overlay\",\n overlayContent: \"pe-card__overlay__content\",\n primary: \"pe-card__primary\",\n primaryMedia: \"pe-card__primary-media\",\n subtitle: \"pe-card__subtitle\",\n text: \"pe-card__text\",\n title: \"pe-card__title\",\n // states\n actionsBorder: \"pe-card__actions--border\",\n actionsHorizontal: \"pe-card__actions--horizontal\",\n actionsJustified: \"pe-card__actions--justified\",\n actionsTight: \"pe-card__actions--tight\",\n actionsVertical: \"pe-card__actions--vertical\",\n mediaCropX: \"pe-card__media--crop-x\",\n mediaCropY: \"pe-card__media--crop-y\",\n mediaOriginStart: \"pe-card__media--origin-start\",\n mediaOriginCenter: \"pe-card__media--origin-center\",\n mediaOriginEnd: \"pe-card__media--origin-end\",\n mediaLarge: \"pe-card__media--large\",\n mediaMedium: \"pe-card__media--medium\",\n mediaRatioLandscape: \"pe-card__media--landscape\",\n mediaRatioSquare: \"pe-card__media--square\",\n mediaRegular: \"pe-card__media--regular\",\n mediaSmall: \"pe-card__media--small\",\n overlaySheet: \"pe-card__overlay--sheet\",\n primaryHasMedia: \"pe-card__primary--media\",\n primaryTight: \"pe-card__primary--tight\",\n textTight: \"pe-card__text--tight\"\n};\n\nvar createOverlay = function createOverlay(_ref) {\n var dispatcher = _ref.dispatcher,\n props = _ref.props,\n h = _ref.h,\n a = _ref.a;\n var element = props.element || \"div\";\n var content = props.content.map(dispatcher);\n return h(\"div\", {\n style: props.style,\n className: [classes.overlay, props.sheet ? classes.overlaySheet : null, props.tone === \"light\" ? null : \"pe-dark-tone\", // default dark tone\n props.tone === \"light\" ? \"pe-light-tone\" : null].join(\" \")\n }, [h(element, {\n className: [classes.overlayContent, props.className || props[a[\"class\"]]].join(\" \")\n }, content), h(\"div\", {\n className: classes.mediaDimmer\n })]);\n};\n\nvar createAny = function createAny(_ref2) {\n var props = _ref2.props,\n h = _ref2.h,\n a = _ref2.a;\n var element = props.element || \"div\";\n return h(element, _extends({}, filterSupportedAttributes(props), {\n className: [classes.any, props.tight ? classes.textTight : null, props.className || props[a[\"class\"]]].join(\" \")\n }), props.content);\n};\n\nvar createText = function createText(_ref3) {\n var props = _ref3.props,\n h = _ref3.h,\n a = _ref3.a;\n var element = props.element || \"div\";\n return h(element, _extends({}, filterSupportedAttributes(props), {\n className: [classes.text, props.tight ? classes.textTight : null, props.className || props[a[\"class\"]]].join(\" \")\n }, props.events), props.content);\n};\n\nvar createHeader = function createHeader(_ref4) {\n var props = _ref4.props,\n h = _ref4.h,\n a = _ref4.a,\n Icon = _ref4.Icon,\n ListTile = _ref4.ListTile;\n return h(ListTile, _extends({}, props, {\n className: [classes.header, props.className || props[a[\"class\"]]].join(\" \")\n }, props.icon ? {\n front: h(Icon, props.icon)\n } : null));\n};\n\nvar _Card = function _Card(_ref5) {\n var h = _ref5.h,\n a = _ref5.a,\n CardActions = _ref5.CardActions,\n CardMedia = _ref5.CardMedia,\n CardPrimary = _ref5.CardPrimary,\n Icon = _ref5.Icon,\n ListTile = _ref5.ListTile,\n Shadow = _ref5.Shadow,\n props = _objectWithoutProperties(_ref5, [\"h\", \"a\", \"CardActions\", \"CardMedia\", \"CardPrimary\", \"Icon\", \"ListTile\", \"Shadow\"]);\n\n var componentProps = _extends({}, filterSupportedAttributes(props), props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes.component, props.tone === \"dark\" ? \"pe-dark-tone\" : null, props.tone === \"light\" ? \"pe-light-tone\" : null, props.className || props[a[\"class\"]]].join(\" \")\n }, props.url, props.events);\n\n var dispatcher = function dispatcher(block) {\n var blockName = Object.keys(block)[0];\n\n var props = _extends({}, block[blockName], {\n dispatcher: dispatcher,\n key: undefined\n });\n\n switch (blockName) {\n case \"actions\":\n return h(CardActions, props);\n\n case \"header\":\n return createHeader({\n props: props,\n h: h,\n a: a,\n Icon: Icon,\n ListTile: ListTile\n });\n\n case \"media\":\n return h(CardMedia, props);\n\n case \"overlay\":\n return createOverlay({\n dispatcher: dispatcher,\n props: props,\n h: h,\n a: a\n });\n\n case \"primary\":\n return h(CardPrimary, props);\n\n case \"text\":\n return createText({\n props: props,\n h: h,\n a: a\n });\n\n case \"any\":\n return createAny({\n props: props,\n h: h,\n a: a\n });\n\n default:\n throw \"Content type \\\"\".concat(blockName, \"\\\" does not exist\");\n }\n };\n\n var blocks = Array.isArray(props.content) ? props.content.map(dispatcher) : [props.content]; // deprecated;\n\n var componentContent = [props.before].concat(_toConsumableArray(blocks), [props.after]);\n var shadowDepth = props.shadowDepth !== undefined ? props.shadowDepth : props.z; // deprecated\n\n var content = [h(Shadow, {\n shadowDepth: shadowDepth !== undefined ? shadowDepth : 1,\n animated: true\n }), h(\"div\", {\n className: classes.content\n }, componentContent), props.children];\n var element = props.element || props.url ? \"a\" : \"div\";\n return h(element, componentProps, content);\n};\n\nvar imageRatios = {\n landscape: 16 / 9,\n square: 1\n};\nvar mediaSizeClasses = {\n small: classes.mediaSmall,\n regular: classes.mediaRegular,\n medium: classes.mediaMedium,\n large: classes.mediaLarge\n};\n\nvar mediaSizeClass = function mediaSizeClass() {\n var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"regular\";\n return mediaSizeClasses[size];\n};\n\nvar initImage = function initImage(_ref) {\n var dom = _ref.dom,\n src = _ref.src,\n ratio = _ref.ratio,\n origin = _ref.origin;\n var img = new Image();\n\n img.onload = function () {\n // use a background image on the image container\n if (img.tagName === \"IMG\") {\n dom.style.backgroundImage = \"url(\".concat(img.src, \")\");\n }\n\n var naturalRatio = this.naturalWidth / this.naturalHeight; // crop-x: crop over x axis\n // crop-y: crop over y axis\n\n var cropClass = naturalRatio < imageRatios[ratio] ? classes.mediaCropX : classes.mediaCropY;\n dom.classList.add(cropClass);\n var originClass = origin === \"start\" ? classes.mediaOriginStart : origin === \"end\" ? classes.mediaOriginEnd : classes.mediaOriginCenter;\n dom.classList.add(originClass);\n };\n\n img.src = src;\n};\n\nvar _CardMedia = function _CardMedia(_ref2) {\n var h = _ref2.h,\n a = _ref2.a,\n useEffect = _ref2.useEffect,\n useState = _ref2.useState,\n getRef = _ref2.getRef,\n props = _objectWithoutProperties(_ref2, [\"h\", \"a\", \"useEffect\", \"useState\", \"getRef\"]);\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n domElement = _useState2[0],\n setDomElement = _useState2[1];\n\n var ratio = props.ratio || \"landscape\";\n useEffect(function () {\n if (!domElement) {\n return;\n }\n\n var ratio = props.ratio || \"landscape\";\n var origin = props.origin || \"center\";\n var img = domElement.querySelector(\"img\") || domElement.querySelector(\"iframe\");\n initImage({\n dom: domElement,\n src: img.src,\n ratio: ratio,\n origin: origin\n });\n }, [domElement]);\n\n var componentProps = _extends({}, filterSupportedAttributes(props), getRef(function (dom) {\n return dom && !domElement && setDomElement(dom);\n }), props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes.media, mediaSizeClass(props.size), ratio === \"landscape\" ? classes.mediaRatioLandscape : classes.mediaRatioSquare, props.className || props[a[\"class\"]]].join(\" \")\n }, props.events);\n\n var dispatcher = props.dispatcher;\n var content = [props.content, props.overlay ? dispatcher({\n overlay: props.overlay\n }) : props.showDimmer && h(\"div\", {\n className: classes.mediaDimmer\n })];\n return h(props.element || \"div\", componentProps, content);\n};\n\nvar buttonClasses = {\n component: \"pe-text-button\",\n \"super\": \"pe-button\",\n row: \"pe-button-row\",\n // elements \n content: \"pe-button__content\",\n label: \"pe-button__label\",\n textLabel: \"pe-button__text-label\",\n wash: \"pe-button__wash\",\n washColor: \"pe-button__wash-color\",\n dropdown: \"pe-button__dropdown\",\n // states \n border: \"pe-button--border\",\n contained: \"pe-button--contained\",\n disabled: \"pe-button--disabled\",\n dropdownClosed: \"pe-button--dropdown-closed\",\n dropdownOpen: \"pe-button--dropdown-open\",\n extraWide: \"pe-button--extra-wide\",\n hasDropdown: \"pe-button--dropdown\",\n highLabel: \"pe-button--high-label\",\n inactive: \"pe-button--inactive\",\n raised: \"pe-button--raised\",\n selected: \"pe-button--selected\",\n separatorAtStart: \"pe-button--separator-start\",\n hasHover: \"pe-button--has-hover\"\n};\n\nvar actionLayoutClasses = {\n horizontal: classes.actionsHorizontal,\n vertical: classes.actionsVertical,\n justified: classes.actionsJustified\n};\n\nvar actionClassForLayout = function actionClassForLayout() {\n var layout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"horizontal\";\n return actionLayoutClasses[layout];\n};\n\nvar _CardActions = function _CardActions(_ref) {\n var h = _ref.h,\n a = _ref.a,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\"]);\n\n var componentProps = _extends({}, filterSupportedAttributes(props), props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes.actions, props.layout !== \"vertical\" ? buttonClasses.row : null, actionClassForLayout(props.layout), props.border || props.bordered ? classes.actionsBorder : null, props.tight ? classes.actionsTight : null, props.className || props[a[\"class\"]]].join(\" \")\n }, props.events);\n\n var content = props.content || props.children;\n return h(props.element || \"div\", componentProps, content);\n};\n\nvar _CardPrimary = function _CardPrimary(_ref) {\n var h = _ref.h,\n a = _ref.a,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\"]);\n\n var primaryHasMedia = Array.isArray(props.content) ? props.content.reduce(function (total, current) {\n return Object.keys(current)[0] === \"media\" ? true : total;\n }, false) : props.media || false;\n\n var componentProps = _extends({}, filterSupportedAttributes(props), props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes.primary, props.tight ? classes.primaryTight : null, primaryHasMedia ? classes.primaryHasMedia : null, props.className || props[a[\"class\"]]].join(\" \")\n }, props.events);\n\n var dispatcher = props.dispatcher;\n var primaryDispatch = {\n title: function title(pAttrs) {\n return pAttrs.attrs // Mithril\n || pAttrs.props // React\n ? pAttrs || pAttrs.props : h(\"div\", {\n className: classes.title,\n style: pAttrs.style\n }, [pAttrs.title, pAttrs.subtitle ? h(\"div\", {\n className: classes.subtitle\n }, pAttrs.subtitle) : null]);\n },\n media: function media(pAttrs) {\n return h(\"div\", {\n className: classes.primaryMedia,\n style: pAttrs.style\n }, dispatcher({\n media: pAttrs\n }));\n },\n actions: function actions(pAttrs) {\n return dispatcher({\n actions: pAttrs\n });\n }\n };\n var content = Array.isArray(props.content) ? props.content.map(function (block) {\n var key = Object.keys(block)[0];\n var pAttrs = block[key];\n return primaryDispatch[key] ? primaryDispatch[key](pAttrs) : block;\n }) : [props.title ? primaryDispatch.title({\n title: props.title,\n subtitle: props.subtitle\n }) : null, props.media ? primaryDispatch.media(props.media) : null, props.actions ? primaryDispatch.actions(props.actions) : null, props.content];\n return h(props.element || \"div\", componentProps, content);\n};\n\nexport { _Card, _CardActions, _CardMedia, _CardPrimary };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { filterSupportedAttributes } from 'polythene-core';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nvar classes = {\n component: \"pe-list-tile\",\n // elements\n content: \"pe-list-tile__content\",\n highSubtitle: \"pe-list-tile__high-subtitle\",\n primary: \"pe-list-tile__primary\",\n secondary: \"pe-list-tile__secondary\",\n subtitle: \"pe-list-tile__subtitle\",\n title: \"pe-list-tile__title\",\n contentFront: \"pe-list-tile__content-front\",\n // states \n compact: \"pe-list-tile--compact\",\n compactFront: \"pe-list-tile--compact-front\",\n disabled: \"pe-list-tile--disabled\",\n hasFront: \"pe-list-tile--front\",\n hasHighSubtitle: \"pe-list-tile--high-subtitle\",\n hasSubtitle: \"pe-list-tile--subtitle\",\n header: \"pe-list-tile--header\",\n hoverable: \"pe-list-tile--hoverable\",\n insetH: \"pe-list-tile--inset-h\",\n insetV: \"pe-list-tile--inset-v\",\n selectable: \"pe-list-tile--selectable\",\n selected: \"pe-list-tile--selected\",\n rounded: \"pe-list-tile--rounded\",\n highlight: \"pe-list-tile--highlight\",\n sticky: \"pe-list-tile--sticky\",\n navigation: \"pe-list-tile--navigation\"\n};\n\nvar _ListTile = function _ListTile(_ref) {\n var h = _ref.h,\n a = _ref.a,\n Ripple = _ref.Ripple,\n Icon = _ref.Icon,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"Ripple\", \"Icon\"]);\n\n // Remove unused props\n delete props.key;\n var hasTabIndex = !props.header && !props.url && !(props.secondary && props.secondary.url);\n var heightClass = props.subtitle ? classes.hasSubtitle : props.highSubtitle ? classes.hasHighSubtitle : props.front || props.indent ? classes.hasFront : null;\n\n var componentProps = _extends({}, filterSupportedAttributes(props, {\n remove: [\"tabindex\", \"tabIndex\"]\n }), // tabindex is set elsewhere\n props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes.component, props.selected ? classes.selected : null, props.disabled ? classes.disabled : null, props.sticky ? classes.sticky : null, props.compact ? classes.compact : null, props.hoverable ? classes.hoverable : null, props.selectable ? classes.selectable : null, props.highlight ? classes.highlight : null, props.rounded ? classes.rounded : null, props.header ? classes.header : null, props.inset || props.insetH ? classes.insetH : null, props.inset || props.insetV ? classes.insetV : null, props.navigation ? classes.navigation : null, props.tone === \"dark\" ? \"pe-dark-tone\" : null, props.tone === \"light\" ? \"pe-light-tone\" : null, heightClass, props.className || props[a[\"class\"]]].join(\" \")\n }, hasTabIndex && _defineProperty({}, a.tabindex, props[a.tabindex] || 0) // events and url are attached to primary content to not interfere with controls\n );\n\n var primaryProps = props;\n delete primaryProps.id;\n delete primaryProps[a[\"class\"]];\n var componentContent = [props.ink && !props.disabled ? h(Ripple, _extends({}, props.ripple)) : null, primaryContent({\n h: h,\n a: a,\n props: primaryProps\n }), props.secondary ? secondaryContent({\n h: h,\n a: a,\n Icon: Icon,\n props: props.secondary\n }) : null];\n var content = [props.before].concat(componentContent, [props.after]);\n return h(\"div\", // because primary or secondary content can be an \"a\", the container is always defined as \"div\", and option `element` is passed to primary content\n componentProps, content);\n};\n\nvar primaryContent = function primaryContent(_ref3) {\n var h = _ref3.h,\n a = _ref3.a,\n props = _ref3.props;\n var url = props.keyboardControl ? null : props.url;\n var element = props.element ? props.element : url ? \"a\" : \"div\";\n var contentFrontClass = [classes.content, classes.contentFront, props.compactFront ? classes.compactFront : null].join(\" \");\n var frontComp = props.front || props.indent ? h(\"div\", _extends({}, {\n className: contentFrontClass\n }), props.front) : null;\n var hasTabIndex = !props.header && props.url;\n\n var elementProps = _extends({}, filterSupportedAttributes(props), props.events, {\n className: classes.primary,\n style: null\n }, hasTabIndex && _defineProperty({}, a.tabindex, props[a.tabindex] || 0), url);\n\n var content = props.content ? props.content : [frontComp, h(\"div\", {\n className: classes.content,\n style: props.style\n }, [props.title && !props.content ? h(\"div\", _extends({}, {\n className: classes.title\n }), props.title) : null, props.subtitle ? h(\"div\", _extends({}, {\n className: classes.subtitle\n }), props.subtitle) : null, props.highSubtitle ? h(\"div\", _extends({}, {\n className: classes.subtitle + \" \" + classes.highSubtitle\n }), props.highSubtitle) : null, props.subContent ? h(\"div\", _extends({}, {\n className: classes.subContent\n }), props.subContent) : null, props.children])];\n return h(element, elementProps, content);\n};\n\nvar secondaryContent = function secondaryContent(_ref5) {\n var h = _ref5.h,\n a = _ref5.a,\n Icon = _ref5.Icon,\n _ref5$props = _ref5.props,\n props = _ref5$props === void 0 ? {} : _ref5$props;\n var url = props.keyboardControl ? null : props.url;\n var element = props.element ? props.element : url ? \"a\" : \"div\";\n var hasTabIndex = props.url;\n return h(element, _extends({}, url, {\n className: classes.secondary\n }, props.events, filterSupportedAttributes(props), hasTabIndex && _defineProperty({}, a.tabindex, props[a.tabindex] || 0)), h(\"div\", {\n className: classes.content\n }, [props.icon ? h(Icon, props.icon) : null, props.content ? props.content : null]));\n};\n\nexport { _ListTile };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _ListTile } from 'polythene-core-list-tile';\nimport { Icon } from 'polythene-mithril-icon';\nimport { Ripple } from 'polythene-mithril-ripple';\nimport { cast, h, a } from 'cyano-mithril';\n\nvar ListTile = cast(_ListTile, {\n h: h,\n a: a,\n Icon: Icon,\n Ripple: Ripple\n});\nListTile[\"displayName\"] = \"ListTile\";\n\nexport { ListTile };\n","import { _CardActions, _CardMedia, _CardPrimary, _Card } from 'polythene-core-card';\nimport { cast, h, a, useState, useEffect, getRef } from 'cyano-mithril';\nimport { Icon } from 'polythene-mithril-icon';\nimport { ListTile } from 'polythene-mithril-list-tile';\nimport { Shadow } from 'polythene-mithril-shadow';\n\nvar CardActions = cast(_CardActions, {\n h: h,\n a: a\n});\nCardActions[\"displayName\"] = \"CardActions\";\n\nvar CardMedia = cast(_CardMedia, {\n h: h,\n a: a,\n useState: useState,\n useEffect: useEffect,\n getRef: getRef\n});\nCardMedia[\"displayName\"] = \"CardMedia\";\n\nvar CardPrimary = cast(_CardPrimary, {\n h: h,\n a: a\n});\nCardPrimary[\"displayName\"] = \"CardPrimary\";\n\nvar Card = cast(_Card, {\n h: h,\n a: a,\n CardActions: CardActions,\n CardMedia: CardMedia,\n CardPrimary: CardPrimary,\n Icon: Icon,\n ListTile: ListTile,\n Shadow: Shadow\n});\nCard[\"displayName\"] = \"Card\";\n\nexport { Card };\n","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nvar classes = {\n component: \"pe-checkbox-control\"\n};\n\nvar iconOn = \"\";\nvar iconOff = \"\";\nvar icons = {\n iconOff: iconOff,\n iconOn: iconOn\n};\nvar _Checkbox = function _Checkbox(_ref) {\n var h = _ref.h,\n SelectionControl = _ref.SelectionControl,\n props = _objectWithoutProperties(_ref, [\"h\", \"SelectionControl\"]);\n\n var componentProps = _extends({}, props, {\n icons: icons,\n selectable: props.selectable || function () {\n return true;\n },\n // default: always selectable, regardless the checked state\n instanceClass: classes.component,\n type: \"checkbox\"\n });\n\n return h(SelectionControl, componentProps);\n};\n\nexport { _Checkbox };\n","import { filterSupportedAttributes, classForSize } from 'polythene-core';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nvar classes = {\n component: \"pe-control\",\n // elements\n formLabel: \"pe-control__form-label\",\n input: \"pe-control__input\",\n label: \"pe-control__label\",\n // states\n disabled: \"pe-control--disabled\",\n inactive: \"pe-control--inactive\",\n large: \"pe-control--large\",\n medium: \"pe-control--medium\",\n off: \"pe-control--off\",\n on: \"pe-control--on\",\n regular: \"pe-control--regular\",\n small: \"pe-control--small\",\n // control view elements\n box: \"pe-control__box\",\n button: \"pe-control__button\",\n // control view states\n buttonOff: \"pe-control__button--off\",\n buttonOn: \"pe-control__button--on\"\n};\n\nvar _SelectionControl = function _SelectionControl(_ref) {\n var h = _ref.h,\n a = _ref.a,\n useState = _ref.useState,\n ViewControl = _ref.ViewControl,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"useState\", \"ViewControl\"]);\n\n // remove unused props\n delete props.key;\n var defaultChecked = props.defaultChecked !== undefined ? props.defaultChecked : props.checked || false;\n\n var _useState = useState(defaultChecked),\n _useState2 = _slicedToArray(_useState, 2),\n previousIsChecked = _useState2[0],\n setIsChecked = _useState2[1];\n\n var isChecked = props.checked !== undefined ? props.checked : previousIsChecked;\n var selectable = props.selectable !== undefined ? props.selectable(isChecked) : false;\n var inactive = props.disabled || !selectable;\n\n var notifyChange = function notifyChange(e, isChecked) {\n if (props.onChange) {\n props.onChange({\n event: e,\n checked: isChecked,\n value: props.value\n });\n }\n };\n\n var onChange = function onChange(e) {\n var isChecked = e.currentTarget.checked;\n\n if (props.type === \"radio\") ; else {\n setIsChecked(isChecked);\n }\n\n notifyChange(e, isChecked);\n };\n\n var toggle = function toggle(e) {\n var newChecked = !isChecked;\n setIsChecked(newChecked);\n notifyChange(e, newChecked);\n };\n\n var viewControlClickHandler = props.events && props.events[a.onclick];\n var viewControlKeyDownHandler = props.events && props.events[a.onkeydown] ? props.events[a.onkeydown] : function (e) {\n if (e.key === \"Enter\" || e.keyCode === 32) {\n e.preventDefault();\n\n if (viewControlClickHandler) {\n viewControlClickHandler(e);\n } else {\n toggle(e);\n }\n }\n };\n\n var componentProps = _extends({}, filterSupportedAttributes(props, {\n remove: [\"style\"]\n }), // Set style on view control\n props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes.component, props.instanceClass, // for instance pe-checkbox-control\n isChecked ? classes.on : classes.off, props.disabled ? classes.disabled : null, inactive ? classes.inactive : null, classForSize(classes, props.size), props.tone === \"dark\" ? \"pe-dark-tone\" : null, props.tone === \"light\" ? \"pe-light-tone\" : null, props.className || props[a[\"class\"]]].join(\" \")\n });\n\n var content = h(\"label\", _extends({}, {\n className: classes.formLabel\n }, viewControlClickHandler && _defineProperty({}, a.onclick, function (e) {\n return e.preventDefault(), viewControlClickHandler(e);\n })), [props.before, h(ViewControl, _extends({}, props, {\n inactive: inactive,\n checked: isChecked,\n events: _defineProperty({}, a.onkeydown, viewControlKeyDownHandler)\n })), props.label ? h(\".\".concat(classes.label), props.label) : null, h(\"input\", _extends({}, props.events, {\n name: props.name,\n type: props.type,\n value: props.value,\n checked: isChecked\n }, props.disabled || inactive ? _defineProperty({}, a.readonly, \"readonly\") : _defineProperty({}, a.onchange, onChange))), props.after]);\n return h(props.element || \"div\", componentProps, content);\n};\n\nvar CONTENT = [{\n iconType: \"iconOn\",\n className: classes.buttonOn\n}, {\n iconType: \"iconOff\",\n className: classes.buttonOff\n}];\n\nvar createIcon = function createIcon(h, iconType, props, className) {\n return (// if props.iconOn/props.iconOff is passed, use that icon options object and ignore size\n // otherwise create a new object\n _extends({}, {\n className: className\n }, props[iconType] ? props[iconType] : {\n svg: {\n content: h.trust(props.icons[iconType])\n }\n }, props.icon, props.size ? {\n size: props.size\n } : null)\n );\n};\n\nvar _ViewControl = function _ViewControl(_ref) {\n var h = _ref.h,\n Icon = _ref.Icon,\n IconButton = _ref.IconButton,\n props = _objectWithoutProperties(_ref, [\"h\", \"Icon\", \"IconButton\"]);\n\n var element = props.element || \".\".concat(classes.box);\n var content = h(IconButton, _extends({}, {\n element: \"div\",\n className: classes.button,\n style: props.style,\n content: CONTENT.map(function (o) {\n return h(Icon, createIcon(h, o.iconType, props, o.className));\n }),\n ripple: {\n center: true\n },\n disabled: props.disabled,\n events: props.events,\n inactive: props.inactive\n }, props.iconButton // for example for hover behaviour\n ));\n return h(element, null, content);\n};\n\nexport { _SelectionControl, _ViewControl };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nvar classes = {\n component: \"pe-button pe-icon-button\",\n // elements\n content: \"pe-icon-button__content\",\n label: \"pe-icon-button__label\",\n // states\n compact: \"pe-icon-button--compact\"\n};\n\nvar _IconButton = function _IconButton(_ref) {\n var h = _ref.h,\n Icon = _ref.Icon,\n Button = _ref.Button,\n props = _objectWithoutProperties(_ref, [\"h\", \"Icon\", \"Button\"]);\n\n var content = props.content ? props.content : props.icon ? h(Icon, props.icon) : props.children;\n\n var buttonProps = _extends({}, {\n content: h(\"div\", {\n className: classes.content\n }, content),\n after: props.label && h(\"div\", {\n className: classes.label\n }, props.label),\n parentClassName: [props.parentClassName || classes.component, props.compact ? classes.compact : null].join(\" \"),\n // defaults\n wash: false,\n animateOnTap: false\n }, props);\n\n return h(Button, buttonProps);\n};\n\nexport { _IconButton };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _IconButton } from 'polythene-core-icon-button';\nimport { Icon } from 'polythene-mithril-icon';\nimport { Button } from 'polythene-mithril-button';\nimport { cast, h, a } from 'cyano-mithril';\n\nvar IconButton = cast(_IconButton, {\n h: h,\n a: a,\n Icon: Icon,\n Button: Button\n});\n\nexport { IconButton };\n","import { _Checkbox } from 'polythene-core-checkbox';\nimport { _ViewControl, _SelectionControl } from 'polythene-core-selection-control';\nimport { cast, h, a, useState } from 'cyano-mithril';\nimport { Icon } from 'polythene-mithril-icon';\nimport { IconButton } from 'polythene-mithril-icon-button';\n\nvar ViewControl = cast(_ViewControl, {\n h: h,\n a: a,\n Icon: Icon,\n IconButton: IconButton\n});\nViewControl[\"displayName\"] = \"ViewControl\";\nvar SelectionControl = cast(_SelectionControl, {\n h: h,\n a: a,\n useState: useState,\n ViewControl: ViewControl\n});\nSelectionControl[\"displayName\"] = \"SelectionControl\";\nvar Checkbox = cast(_Checkbox, {\n h: h,\n a: a,\n SelectionControl: SelectionControl\n});\nCheckbox[\"displayName\"] = \"Checkbox\";\n\nexport { Checkbox };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { transitionStateReducer, initialTransitionState, subscribe, unsubscribe, transitionComponent, filterSupportedAttributes, stylePropCompare } from 'polythene-core';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nvar listTileClasses = {\n component: \"pe-list-tile\",\n // elements\n content: \"pe-list-tile__content\",\n highSubtitle: \"pe-list-tile__high-subtitle\",\n primary: \"pe-list-tile__primary\",\n secondary: \"pe-list-tile__secondary\",\n subtitle: \"pe-list-tile__subtitle\",\n title: \"pe-list-tile__title\",\n contentFront: \"pe-list-tile__content-front\",\n // states \n compact: \"pe-list-tile--compact\",\n compactFront: \"pe-list-tile--compact-front\",\n disabled: \"pe-list-tile--disabled\",\n hasFront: \"pe-list-tile--front\",\n hasHighSubtitle: \"pe-list-tile--high-subtitle\",\n hasSubtitle: \"pe-list-tile--subtitle\",\n header: \"pe-list-tile--header\",\n hoverable: \"pe-list-tile--hoverable\",\n insetH: \"pe-list-tile--inset-h\",\n insetV: \"pe-list-tile--inset-v\",\n selectable: \"pe-list-tile--selectable\",\n selected: \"pe-list-tile--selected\",\n rounded: \"pe-list-tile--rounded\",\n highlight: \"pe-list-tile--highlight\",\n sticky: \"pe-list-tile--sticky\",\n navigation: \"pe-list-tile--navigation\"\n};\n\nvar menuClasses = {\n component: \"pe-menu\",\n // elements\n panel: \"pe-menu__panel\",\n content: \"pe-menu__content\",\n placeholder: \"pe-menu__placeholder\",\n backdrop: \"pe-menu__backdrop\",\n // states\n floating: \"pe-menu--floating\",\n origin: \"pe-menu--origin\",\n permanent: \"pe-menu--permanent\",\n showBackdrop: \"pe-menu--backdrop\",\n visible: \"pe-menu--visible\",\n width_auto: \"pe-menu--width-auto\",\n width_n: \"pe-menu--width-\",\n isTopMenu: \"pe-menu--top-menu\",\n // lookup\n listTile: listTileClasses.component,\n selectedListTile: listTileClasses.selected\n};\n\nvar classes = {\n component: \"pe-dialog\",\n // elements\n placeholder: \"pe-dialog__placeholder\",\n holder: \"pe-dialog__holder\",\n content: \"pe-dialog__content\",\n backdrop: \"pe-dialog__backdrop\",\n touch: \"pe-dialog__touch\",\n // states\n fullScreen: \"pe-dialog--full-screen\",\n modal: \"pe-dialog--modal\",\n open: \"pe-dialog--open\",\n // class set to html element\n visible: \"pe-dialog--visible\",\n // class set to dialog element\n showBackdrop: \"pe-dialog--backdrop\",\n transition: \"pe-dialog--transition\",\n // lookup\n menuContent: menuClasses.content\n};\n\nvar DEFAULT_SHADOW_DEPTH = 3;\nvar openDialogsSelector = \".\".concat(classes.component);\n\nvar createPane = function createPane(_ref) {\n var h = _ref.h,\n Pane = _ref.Pane,\n props = _ref.props;\n return h(Pane, {\n body: props.content || props.body || props.menu || props.children,\n element: props.element,\n borders: props.borders,\n className: props.className,\n footer: props.footer,\n footerButtons: props.footerButtons,\n formOptions: props.formOptions,\n fullBleed: props.fullBleed,\n header: props.header,\n style: props.style,\n title: props.title\n });\n};\n\nvar _Dialog = function _Dialog(_ref2) {\n var h = _ref2.h,\n a = _ref2.a,\n useState = _ref2.useState,\n useEffect = _ref2.useEffect,\n useRef = _ref2.useRef,\n getRef = _ref2.getRef,\n useReducer = _ref2.useReducer,\n Pane = _ref2.Pane,\n Shadow = _ref2.Shadow,\n openDialogsSelector = _ref2.openDialogsSelector,\n props = _objectWithoutProperties(_ref2, [\"h\", \"a\", \"useState\", \"useEffect\", \"useRef\", \"getRef\", \"useReducer\", \"Pane\", \"Shadow\", \"openDialogsSelector\"]);\n\n var _useReducer = useReducer(transitionStateReducer, initialTransitionState),\n _useReducer2 = _slicedToArray(_useReducer, 2),\n transitionState = _useReducer2[0],\n dispatchTransitionState = _useReducer2[1];\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n domElement = _useState2[0],\n setDomElement = _useState2[1];\n\n var backdropElRef = useRef();\n var touchElRef = useRef();\n var contentElRef = useRef();\n var isVisible = (transitionState || initialTransitionState).isVisible;\n var isTransitioning = (transitionState || initialTransitionState).isTransitioning;\n\n var transitionOptions = function transitionOptions(_ref3) {\n var isShow = _ref3.isShow,\n _ref3$hideDelay = _ref3.hideDelay,\n hideDelay = _ref3$hideDelay === void 0 ? props.hideDelay : _ref3$hideDelay,\n referrer = _ref3.referrer;\n return {\n transitionState: transitionState,\n dispatchTransitionState: dispatchTransitionState,\n instanceId: props.instanceId,\n props: _extends({}, props, {\n hideDelay: hideDelay\n }),\n isShow: isShow,\n domElements: {\n el: domElement,\n contentEl: contentElRef.current,\n backdropEl: backdropElRef.current\n },\n showClass: classes.visible,\n transitionClass: classes.transition,\n referrer: referrer\n };\n };\n\n var showDialog = function showDialog() {\n return transitionComponent(transitionOptions({\n isShow: true\n }));\n };\n\n var hideDialog = function hideDialog() {\n var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n hideDelay = _ref4.hideDelay,\n referrer = _ref4.referrer;\n\n return transitionComponent(transitionOptions({\n isShow: false,\n hideDelay: hideDelay,\n referrer: referrer\n }));\n };\n\n var isModal = function isModal() {\n return props.modal || domElement && domElement.classList.contains(classes.modal) || stylePropCompare({\n element: domElement,\n pseudoSelector: \":before\",\n prop: \"content\",\n contains: \"\\\"\".concat(\"modal\", \"\\\"\")\n });\n };\n\n var isFullScreen = function isFullScreen() {\n return props.fullScreen || domElement && domElement.classList.contains(classes.fullScreen) || stylePropCompare({\n element: domElement,\n pseudoSelector: \":before\",\n prop: \"content\",\n contains: \"\\\"\".concat(\"full_screen\", \"\\\"\")\n });\n }; // DOM elements\n\n\n useEffect(function () {\n if (!domElement) {\n return;\n }\n\n backdropElRef.current = domElement.querySelector(\".\".concat(classes.backdrop));\n touchElRef.current = domElement.querySelector(\".\".concat(classes.touch));\n contentElRef.current = domElement.querySelector(\".\".concat(classes.content));\n }, [domElement]); // Handle Escape key\n\n useEffect(function () {\n if (!domElement || props.inactive) {\n return;\n }\n\n var handleEscape = function handleEscape(e) {\n if (props.disableEscape && (isFullScreen() || isModal())) return;\n\n if (e.key === \"Escape\" || e.key === \"Esc\") {\n // \"Esc\" for IE11\n var openDialogs = document.querySelectorAll(openDialogsSelector);\n\n if (openDialogs[openDialogs.length - 1] === domElement) {\n hideDialog();\n unsubscribe(\"keydown\", handleEscape);\n }\n }\n };\n\n subscribe(\"keydown\", handleEscape);\n return function () {\n unsubscribe(\"keydown\", handleEscape);\n };\n }, [domElement, props.inactive]); // Show / hide logic\n\n useEffect(function () {\n if (!domElement || isTransitioning) {\n return;\n }\n\n if (props.hide) {\n if (isVisible) {\n hideDialog();\n }\n } else if (props.show) {\n if (!isVisible) {\n showDialog();\n }\n }\n }, [domElement, isTransitioning, isVisible, props.hide, props.show]);\n\n var componentProps = _extends({}, filterSupportedAttributes(props, {\n remove: [\"style\"]\n }), // style set in content, and set by show/hide transition\n getRef(function (dom) {\n return dom && !domElement && (setDomElement(dom), props.ref && props.ref(dom));\n }), _defineProperty({\n className: [props.parentClassName || classes.component, props.fromMultipleClassName, props.fullScreen ? classes.fullScreen : null, props.modal ? classes.modal : null, props.backdrop ? classes.showBackdrop : null, // classes.visible is set in showDialog though transition\n props.tone === \"dark\" ? \"pe-dark-tone\" : null, props.tone === \"light\" ? \"pe-light-tone\" : null, props.className || props[a[\"class\"]]].join(\" \"),\n \"data-spawn-id\": props.spawnId,\n // received from Multi\n \"data-instance-id\": props.instanceId\n }, a.onclick, function (e) {\n if (e.target !== domElement && e.target !== backdropElRef.current && e.target !== touchElRef.current) {\n return;\n }\n\n if (isModal()) {\n // not allowed\n return;\n }\n\n hideDialog();\n }));\n\n var pane = props.panesOptions && props.panesOptions.length ? h(Pane, props.panesOptions[0]) : props.panes && props.panes.length ? props.panes[0] : createPane({\n h: h,\n Pane: Pane,\n props: props\n });\n var shadowDepth = props.shadowDepth;\n var content = [h(\"div\", {\n className: classes.backdrop\n }), h(\"div\", {\n className: classes.touch\n }), h(\"div\", {\n className: [classes.content, props.menu ? classes.menuContent : null].join(\" \")\n }, [props.fullScreen ? null : h(Shadow, {\n shadowDepth: shadowDepth !== undefined ? shadowDepth : DEFAULT_SHADOW_DEPTH,\n animated: true\n }), props.before, pane, props.after])];\n return h(\"div\", componentProps, content);\n};\n\nexport { _Dialog, openDialogsSelector };\n","import { unpackAttrs, subscribe, unsubscribe, filterSupportedAttributes } from 'polythene-core';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nvar classes = {\n component: \"pe-dialog-pane\",\n // elements\n actions: \"pe-dialog-pane__actions\",\n body: \"pe-dialog-pane__body\",\n content: \"pe-dialog-pane__content\",\n footer: \"pe-dialog-pane__footer\",\n header: \"pe-dialog-pane__header\",\n title: \"pe-dialog-pane__title\",\n // states\n withHeader: \"pe-dialog-pane--header\",\n withFooter: \"pe-dialog-pane--footer\",\n headerWithTitle: \"pe-dialog-pane__header--title\",\n footerWithButtons: \"pe-dialog-pane__footer--buttons\",\n footerHigh: \"pe-dialog-pane__footer--high\",\n borderBottom: \"pe-dialog-pane--border-bottom\",\n borderTop: \"pe-dialog-pane--border-top\",\n fullBleed: \"pe-dialog-pane--body-full-bleed\"\n};\n\nvar buttonClasses = {\n component: \"pe-text-button\",\n \"super\": \"pe-button\",\n row: \"pe-button-row\",\n // elements \n content: \"pe-button__content\",\n label: \"pe-button__label\",\n textLabel: \"pe-button__text-label\",\n wash: \"pe-button__wash\",\n washColor: \"pe-button__wash-color\",\n dropdown: \"pe-button__dropdown\",\n // states \n border: \"pe-button--border\",\n contained: \"pe-button--contained\",\n disabled: \"pe-button--disabled\",\n dropdownClosed: \"pe-button--dropdown-closed\",\n dropdownOpen: \"pe-button--dropdown-open\",\n extraWide: \"pe-button--extra-wide\",\n hasDropdown: \"pe-button--dropdown\",\n highLabel: \"pe-button--high-label\",\n inactive: \"pe-button--inactive\",\n raised: \"pe-button--raised\",\n selected: \"pe-button--selected\",\n separatorAtStart: \"pe-button--separator-start\",\n hasHover: \"pe-button--has-hover\"\n};\n\nvar SCROLL_WATCH_END_TIMER = 50;\nvar _DialogPane = function _DialogPane(_ref) {\n var h = _ref.h,\n a = _ref.a,\n useState = _ref.useState,\n useEffect = _ref.useEffect,\n useRef = _ref.useRef,\n getRef = _ref.getRef,\n unpackedProps = _objectWithoutProperties(_ref, [\"h\", \"a\", \"useState\", \"useEffect\", \"useRef\", \"getRef\"]);\n\n var props = unpackAttrs(unpackedProps);\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n domElement = _useState2[0],\n setDomElement = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n isScrolling = _useState4[0],\n setIsScrolling = _useState4[1];\n\n var _useState5 = useState(false),\n _useState6 = _slicedToArray(_useState5, 2),\n hasTopOverflow = _useState6[0],\n setHasTopOverflow = _useState6[1];\n\n var _useState7 = useState(false),\n _useState8 = _slicedToArray(_useState7, 2),\n hasBottomOverflow = _useState8[0],\n setHasBottomOverflow = _useState8[1];\n\n var headerElRef = useRef();\n var footerElRef = useRef();\n var scrollElRef = useRef();\n var scrollWatchIdRef = useRef();\n\n var updateScrollOverflowState = function updateScrollOverflowState() {\n var scroller = scrollElRef.current;\n\n if (!scroller) {\n return;\n }\n\n setHasTopOverflow(scroller.scrollTop > 0);\n setHasBottomOverflow(scroller.scrollHeight - (scroller.scrollTop + scroller.getBoundingClientRect().height) > 0);\n };\n\n useEffect(function () {\n if (!domElement) {\n return;\n }\n\n headerElRef.current = domElement.querySelector(\".\".concat(classes.header));\n footerElRef.current = domElement.querySelector(\".\".concat(classes.footer));\n scrollElRef.current = domElement.querySelector(\".\".concat(classes.body));\n }, [domElement]);\n useEffect(function () {\n if (!scrollElRef.current) {\n return;\n }\n\n var update = function update() {\n updateScrollOverflowState();\n };\n\n subscribe(\"resize\", update);\n return function () {\n unsubscribe(\"resize\", update);\n };\n }, [scrollElRef.current]);\n useEffect(function () {\n updateScrollOverflowState();\n }, [scrollElRef.current, isScrolling]);\n var withHeader = props.header !== undefined || props.title !== undefined;\n var withFooter = props.footer !== undefined || props.footerButtons !== undefined;\n var borders = props.borders || \"overflow\";\n var showTopBorder = borders === \"always\" || withHeader && borders === \"overflow\" && hasTopOverflow;\n var showBottomBorder = borders === \"always\" || withFooter && borders === \"overflow\" && hasBottomOverflow;\n\n var componentProps = _extends({}, filterSupportedAttributes(props, {\n remove: [\"style\"]\n }), // style set in content, and set by show/hide transition\n props.testId && {\n \"data-test-id\": props.testId\n }, getRef(function (dom) {\n return dom && !domElement && (setDomElement(dom), props.ref && props.ref(dom));\n }), {\n className: [classes.component, props.fullBleed ? classes.fullBleed : null, showTopBorder ? classes.borderTop : null, showBottomBorder ? classes.borderBottom : null, withHeader ? classes.withHeader : null, withFooter ? classes.withFooter : null, props.tone === \"dark\" ? \"pe-dark-tone\" : null, props.tone === \"light\" ? \"pe-light-tone\" : null, props.className || props[a[\"class\"]]].join(\" \")\n }, props.formOptions);\n\n var componentContent = h(\"div\", {\n className: [classes.content, props.menu ? classes.menuContent : null].join(\" \"),\n style: props.style\n }, [props.header ? props.header : props.title ? h(\"div\", {\n className: [classes.header, classes.headerWithTitle].join(\" \")\n }, h(\"div\", {\n className: classes.title\n }, props.title)) : null, h(\"div\", _defineProperty({\n className: classes.body\n }, a.onscroll, function () {\n setIsScrolling(true);\n clearTimeout(scrollWatchIdRef.current);\n scrollWatchIdRef.current = setTimeout(function () {\n setIsScrolling(false);\n }, SCROLL_WATCH_END_TIMER);\n }), props.content || props.body || props.menu), props.footer ? h(\"div\", {\n className: classes.footer\n }, props.footer) : props.footerButtons ? h(\"div\", {\n className: [classes.footer, classes.footerWithButtons, buttonClasses.row].join(\" \")\n }, h(\"div\", {\n className: classes.actions\n }, props.footerButtons)) : null]);\n var content = [props.before, componentContent, props.after];\n return h(props.element || \"form\", componentProps, content);\n};\n\nexport { _DialogPane };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _DialogPane } from 'polythene-core-dialog-pane';\nimport { cast, h, a, useState, useEffect, useRef, getRef } from 'cyano-mithril';\n\nvar DialogPane = cast(_DialogPane, {\n h: h,\n a: a,\n useState: useState,\n useEffect: useEffect,\n useRef: useRef,\n getRef: getRef\n});\nDialogPane[\"displayName\"] = \"DialogPane\";\n\nexport { DialogPane };\n","import { cast, h, a, useState, useEffect, useRef, getRef, useReducer } from 'cyano-mithril';\nimport { Multi } from 'polythene-core';\nimport { _Dialog, openDialogsSelector } from 'polythene-core-dialog';\nimport { DialogPane } from 'polythene-mithril-dialog-pane';\nimport { Shadow } from 'polythene-mithril-shadow';\n\nvar listTileClasses = {\n component: \"pe-list-tile\",\n // elements\n content: \"pe-list-tile__content\",\n highSubtitle: \"pe-list-tile__high-subtitle\",\n primary: \"pe-list-tile__primary\",\n secondary: \"pe-list-tile__secondary\",\n subtitle: \"pe-list-tile__subtitle\",\n title: \"pe-list-tile__title\",\n contentFront: \"pe-list-tile__content-front\",\n // states \n compact: \"pe-list-tile--compact\",\n compactFront: \"pe-list-tile--compact-front\",\n disabled: \"pe-list-tile--disabled\",\n hasFront: \"pe-list-tile--front\",\n hasHighSubtitle: \"pe-list-tile--high-subtitle\",\n hasSubtitle: \"pe-list-tile--subtitle\",\n header: \"pe-list-tile--header\",\n hoverable: \"pe-list-tile--hoverable\",\n insetH: \"pe-list-tile--inset-h\",\n insetV: \"pe-list-tile--inset-v\",\n selectable: \"pe-list-tile--selectable\",\n selected: \"pe-list-tile--selected\",\n rounded: \"pe-list-tile--rounded\",\n highlight: \"pe-list-tile--highlight\",\n sticky: \"pe-list-tile--sticky\",\n navigation: \"pe-list-tile--navigation\"\n};\n\nvar menuClasses = {\n component: \"pe-menu\",\n // elements\n panel: \"pe-menu__panel\",\n content: \"pe-menu__content\",\n placeholder: \"pe-menu__placeholder\",\n backdrop: \"pe-menu__backdrop\",\n // states\n floating: \"pe-menu--floating\",\n origin: \"pe-menu--origin\",\n permanent: \"pe-menu--permanent\",\n showBackdrop: \"pe-menu--backdrop\",\n visible: \"pe-menu--visible\",\n width_auto: \"pe-menu--width-auto\",\n width_n: \"pe-menu--width-\",\n isTopMenu: \"pe-menu--top-menu\",\n // lookup\n listTile: listTileClasses.component,\n selectedListTile: listTileClasses.selected\n};\n\nvar classes = {\n component: \"pe-dialog\",\n // elements\n placeholder: \"pe-dialog__placeholder\",\n holder: \"pe-dialog__holder\",\n content: \"pe-dialog__content\",\n backdrop: \"pe-dialog__backdrop\",\n touch: \"pe-dialog__touch\",\n // states\n fullScreen: \"pe-dialog--full-screen\",\n modal: \"pe-dialog--modal\",\n open: \"pe-dialog--open\",\n // class set to html element\n visible: \"pe-dialog--visible\",\n // class set to dialog element\n showBackdrop: \"pe-dialog--backdrop\",\n transition: \"pe-dialog--transition\",\n // lookup\n menuContent: menuClasses.content\n};\n\nvar DialogInstance = cast(_Dialog, {\n h: h,\n a: a,\n useState: useState,\n useEffect: useEffect,\n useRef: useRef,\n getRef: getRef,\n useReducer: useReducer,\n Shadow: Shadow,\n Pane: DialogPane,\n openDialogsSelector: openDialogsSelector\n});\nDialogInstance[\"displayName\"] = \"DialogInstance\";\nvar options = {\n name: \"dialog\",\n htmlShowClass: classes.open,\n defaultId: \"default_dialog\",\n holderSelector: \"div.\".concat(classes.holder),\n instance: DialogInstance,\n placeholder: \"span.\".concat(classes.placeholder)\n};\nvar MultipleInstance = Multi({\n options: options\n});\nvar Dialog = cast(MultipleInstance.render, {\n h: h,\n useState: useState,\n useEffect: useEffect\n});\nObject.getOwnPropertyNames(MultipleInstance).filter(function (p) {\n return p !== \"render\";\n}).forEach(function (p) {\n return Dialog[p] = MultipleInstance[p];\n});\nDialog[\"displayName\"] = \"Dialog\";\n\nexport { Dialog, DialogInstance };\n","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nvar classes = {\n component: \"pe-fab\",\n // elements\n content: \"pe-fab__content\",\n // states\n mini: \"pe-fab--mini\"\n};\n\nvar _FAB = function _FAB(_ref) {\n var h = _ref.h,\n a = _ref.a,\n Button = _ref.Button,\n Icon = _ref.Icon,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"Button\", \"Icon\"]);\n\n var content = props.content ? props.content : props.icon ? h(Icon, props.icon) : props.children;\n\n var componentProps = _extends({}, props, {\n content: h(\"div\", {\n className: classes.content\n }, content),\n parentClassName: [classes.component, props.mini ? classes.mini : null, props.className || props[a[\"class\"]]].join(\" \"),\n className: null,\n // defaults\n ripple: {\n center: true,\n opacityDecayVelocity: 0.24\n },\n shadow: {\n increase: 5\n },\n ink: true,\n wash: true,\n raised: true,\n animateOnTap: props.animateOnTap !== undefined ? props.animateOnTap : true\n });\n\n return h(Button, componentProps, content);\n};\n\nexport { _FAB };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _FAB } from 'polythene-core-fab';\nimport { Icon } from 'polythene-mithril-icon';\nimport { Button } from 'polythene-mithril-button';\nimport { cast, h, a } from 'cyano-mithril';\n\nvar FAB = cast(_FAB, {\n h: h,\n a: a,\n Button: Button,\n Icon: Icon\n});\nFAB[\"displayName\"] = \"FAB\";\n\nexport { FAB };\n","import { transitionStateReducer, transitionComponent, filterSupportedAttributes, classForSize } from 'polythene-core';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nvar classes = {\n component: \"pe-spinner\",\n // elements\n animation: \"pe-spinner__animation\",\n placeholder: \"pe-spinner__placeholder\",\n // states\n animated: \"pe-spinner--animated\",\n fab: \"pe-spinner--fab\",\n large: \"pe-spinner--large\",\n medium: \"pe-spinner--medium\",\n permanent: \"pe-spinner--permanent\",\n raised: \"pe-spinner--raised\",\n regular: \"pe-spinner--regular\",\n singleColor: \"pe-spinner--single-color\",\n small: \"pe-spinner--small\",\n visible: \"pe-spinner--visible\"\n};\n\nvar showSpinner = function showSpinner(opts) {\n return transitionComponent(_objectSpread2({}, opts, {\n isShow: true\n }));\n}; // const hideSpinner = opts =>\n// transitionComponent({\n// ...opts,\n// isShow: false\n// });\n\n\nvar initialTransitionState = {\n isVisible: false,\n isTransitioning: false,\n isHiding: false\n};\nvar _BaseSpinner = function _BaseSpinner(_ref) {\n var h = _ref.h,\n a = _ref.a,\n useReducer = _ref.useReducer,\n useState = _ref.useState,\n useEffect = _ref.useEffect,\n getRef = _ref.getRef,\n Shadow = _ref.Shadow,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"useReducer\", \"useState\", \"useEffect\", \"getRef\", \"Shadow\"]);\n\n var _useReducer = useReducer(transitionStateReducer, initialTransitionState),\n _useReducer2 = _slicedToArray(_useReducer, 2),\n transitionState = _useReducer2[0],\n dispatchTransitionState = _useReducer2[1];\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n domElement = _useState2[0],\n setDomElement = _useState2[1];\n\n var isVisible = (transitionState || initialTransitionState).isVisible;\n var transitionOptions = {\n dispatchTransitionState: dispatchTransitionState,\n props: props,\n domElements: {\n el: domElement\n },\n showClass: classes.visible\n };\n useEffect(function () {\n if (!domElement) {\n return;\n }\n\n if (!props.permanent) {\n showSpinner(transitionOptions);\n }\n }, [domElement]);\n\n var componentProps = _extends({}, filterSupportedAttributes(props), getRef(function (dom) {\n return dom && !domElement && (setDomElement(dom), props.ref && props.ref(dom));\n }), props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes.component, props.instanceClass, classForSize(classes, props.size), props.singleColor ? classes.singleColor : null, props.raised ? classes.raised : null, props.animated ? classes.animated : null, props.permanent ? classes.permanent : null, isVisible ? classes.visible : null, props.className || props[a[\"class\"]]].join(\" \")\n }, props.events);\n\n var content = [props.before, props.content, props.after];\n\n if (props.raised && content.length > 0) {\n content.push(h(Shadow, {\n shadowDepth: props.shadowDepth\n }));\n }\n\n return h(\"div\", componentProps, content);\n};\n\nexport { _BaseSpinner };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _BaseSpinner } from 'polythene-core-base-spinner';\nimport { Shadow } from 'polythene-mithril-shadow';\nimport { cast, h, a, useReducer, useState, useEffect, getRef } from 'cyano-mithril';\n\nvar classes = {\n component: \"pe-spinner\",\n // elements\n animation: \"pe-spinner__animation\",\n placeholder: \"pe-spinner__placeholder\",\n // states\n animated: \"pe-spinner--animated\",\n fab: \"pe-spinner--fab\",\n large: \"pe-spinner--large\",\n medium: \"pe-spinner--medium\",\n permanent: \"pe-spinner--permanent\",\n raised: \"pe-spinner--raised\",\n regular: \"pe-spinner--regular\",\n singleColor: \"pe-spinner--single-color\",\n small: \"pe-spinner--small\",\n visible: \"pe-spinner--visible\"\n};\n\nvar BaseSpinner = cast(_BaseSpinner, {\n h: h,\n a: a,\n useReducer: useReducer,\n useState: useState,\n useEffect: useEffect,\n getRef: getRef,\n Shadow: Shadow\n});\nBaseSpinner[\"displayName\"] = \"BaseSpinner\";\nBaseSpinner[\"classes\"] = classes;\n\nexport { BaseSpinner };\n","import { isServer, emit, isClient } from 'polythene-core';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nvar addWebFont = function addWebFont(vendor, config) {\n if (isServer) return;\n\n if (!window[\"WebFontConfig\"]) {\n /**\n * @param {object} params\n * @param {string} [params.name]\n * @param {string} [params.familyName]\n * @param {any} [params.fvd]\n */\n var emitEvent = function emitEvent(_ref) {\n var name = _ref.name,\n familyName = _ref.familyName,\n fvd = _ref.fvd;\n return emit(\"webfontloader\", {\n name: name,\n familyName: familyName,\n fvd: fvd,\n vendor: vendor,\n config: config\n });\n };\n\n window[\"WebFontConfig\"] = {\n loading: function loading() {\n return emitEvent({\n name: \"loading\"\n });\n },\n active: function active() {\n return emitEvent({\n name: \"active\"\n });\n },\n inactive: function inactive() {\n return emitEvent({\n name: \"inactive\"\n });\n },\n fontloading: function fontloading(familyName, fvd) {\n return emitEvent({\n name: \"fontloading\",\n familyName: familyName,\n fvd: fvd\n });\n },\n fontactive: function fontactive(familyName, fvd) {\n return emitEvent({\n name: \"fontactive\",\n familyName: familyName,\n fvd: fvd\n });\n },\n fontinactive: function fontinactive(familyName, fvd) {\n return emitEvent({\n name: \"fontinactive\",\n familyName: familyName,\n fvd: fvd\n });\n }\n };\n\n (function () {\n var wf = document.createElement(\"script\");\n wf.src = (document.location.protocol === \"https:\" ? \"https\" : \"http\") + \"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js\";\n wf.type = \"text/javascript\";\n wf.async = true;\n var s = document.getElementsByTagName(\"script\")[0];\n\n if (s && s.parentNode) {\n s.parentNode.insertBefore(wf, s);\n }\n })();\n }\n\n var vendorCfg = window[\"WebFontConfig\"][vendor] || {};\n\n if (config) {\n _extends(vendorCfg, config);\n }\n\n window[\"WebFontConfig\"][vendor] = vendorCfg;\n};\n\n/*\nhttps://gist.github.com/gre/1650294\nEasing Functions - inspired from http://gizma.com/easing/\nOnly considering the t value for the range [0, 1] => [0, 1]\n*/\nvar easing = {\n // no easing, no acceleration\n linear: function linear(t) {\n return t;\n },\n // accelerating from zero velocity\n easeInQuad: function easeInQuad(t) {\n return t * t;\n },\n // decelerating to zero velocity\n easeOutQuad: function easeOutQuad(t) {\n return t * (2 - t);\n },\n // acceleration until halfway, then deceleration\n easeInOutQuad: function easeInOutQuad(t) {\n return t < .5 ? 2 * t * t : -1 + (4 - 2 * t) * t;\n },\n // accelerating from zero velocity\n easeInCubic: function easeInCubic(t) {\n return t * t * t;\n },\n // decelerating to zero velocity\n easeOutCubic: function easeOutCubic(t) {\n return --t * t * t + 1;\n },\n // acceleration until halfway, then deceleration\n easeInOutCubic: function easeInOutCubic(t) {\n return t < .5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;\n },\n // accelerating from zero velocity\n easeInQuart: function easeInQuart(t) {\n return t * t * t * t;\n },\n // decelerating to zero velocity\n easeOutQuart: function easeOutQuart(t) {\n return 1 - --t * t * t * t;\n },\n // acceleration until halfway, then deceleration\n easeInOutQuart: function easeInOutQuart(t) {\n return t < .5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;\n },\n // accelerating from zero velocity\n easeInQuint: function easeInQuint(t) {\n return t * t * t * t * t;\n },\n // decelerating to zero velocity\n easeOutQuint: function easeOutQuint(t) {\n return 1 + --t * t * t * t * t;\n },\n // acceleration until halfway, then deceleration\n easeInOutQuint: function easeInOutQuint(t) {\n return t < .5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t;\n }\n};\n\n/*\n Animated scroll to a position.\n Derived from https://github.com/madebysource/animated-scrollto\n Adapted to Mithril and rewritten to es6.\n*/\nvar scrollTo = function scrollTo(opts) {\n if (isServer) {\n return;\n }\n\n var element = opts.element;\n var which = opts.direction === \"horizontal\" ? \"scrollLeft\" : \"scrollTop\";\n var to = opts.to;\n var duration = opts.duration * 1000;\n var easingFn = opts.easing || easing.easeInOutCubic;\n var start = element[which];\n var change = to - start;\n var animationStart = new Date().getTime();\n var animating = true;\n return new Promise(function (resolve) {\n var animateScroll = function animateScroll() {\n if (!animating) {\n return;\n }\n\n requestAnimFrame(animateScroll);\n var now = new Date().getTime();\n var percentage = (now - animationStart) / duration;\n var val = start + change * easingFn(percentage);\n element[which] = val;\n\n if (percentage >= 1) {\n element[which] = to;\n animating = false;\n resolve();\n }\n };\n\n requestAnimFrame(animateScroll);\n });\n};\nvar requestAnimFrame = isServer ? function () {} : function () {\n return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window[\"mozRequestAnimationFrame\"] || function (callback) {\n return window.setTimeout(callback, 1000 / 60);\n };\n}();\n\n// @ts-check\nvar Timer = function Timer() {\n /** @type {number} */\n var timerId;\n /** @type {number} */\n\n var startTime;\n /** @type {number} */\n\n var remaining;\n /** @type {() => any} */\n\n var cb;\n\n var stop = function stop() {\n if (isClient) {\n window.clearTimeout(timerId);\n }\n };\n\n var pause = function pause() {\n return stop(), remaining -= new Date().getTime() - startTime;\n };\n\n var startTimer = function startTimer() {\n if (isClient) {\n stop();\n startTime = new Date().getTime();\n timerId = window.setTimeout(cb, remaining);\n }\n };\n\n var start = function start(callback, duration) {\n return cb = callback, remaining = duration * 1000, startTimer();\n };\n\n var resume = function resume() {\n return startTimer();\n };\n\n return {\n start: start,\n pause: pause,\n resume: resume,\n stop: stop\n };\n};\n\nexport { Timer, addWebFont, easing, scrollTo };\n","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nvar classes = {\n component: \"pe-md-spinner\",\n // elements\n animation: \"pe-md-spinner__animation\",\n circle: \"pe-md-spinner__circle\",\n circleClipper: \"pe-md-spinner__circle-clipper\",\n circleClipperLeft: \"pe-md-spinner__circle-clipper-left\",\n circleClipperRight: \"pe-md-spinner__circle-clipper-right\",\n gapPatch: \"pe-md-spinner__gap-patch\",\n layer: \"pe-md-spinner__layer\",\n layerN: \"pe-md-spinner__layer-\"\n};\n\nvar layer = function layer(num, h) {\n return h(\"div\", {\n key: num,\n className: [classes.layer, classes.layerN + num].join(\" \")\n }, [h(\"div\", {\n // key: \"clipper-left\",\n className: [classes.circleClipper, classes.circleClipperLeft].join(\" \")\n }, h(\"div\", {\n // key: \"circle\",\n className: classes.circle\n })), h(\"div\", {\n // key: \"gap-patch\",\n className: classes.gapPatch\n }, h(\"div\", {\n className: classes.circle\n })), h(\"div\", {\n // key: \"clipper-right\",\n className: [classes.circleClipper, classes.circleClipperRight].join(\" \")\n }, h(\"div\", {\n className: classes.circle\n }))]);\n};\n\nvar _Spinner = function _Spinner(_ref) {\n var h = _ref.h,\n BaseSpinner = _ref.BaseSpinner,\n props = _objectWithoutProperties(_ref, [\"h\", \"BaseSpinner\"]);\n\n var content = props.content || h(\"div\", {\n // key: \"content\",\n className: classes.animation\n }, [1, 2, 3, 4].map(function (num) {\n return layer(num, h);\n }));\n\n var componentProps = _extends({}, props, {\n className: [classes.component, props.className].join(\" \"),\n content: content\n });\n\n return h(BaseSpinner, componentProps);\n};\n\nexport { _Spinner };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { BaseSpinner } from 'polythene-mithril-base-spinner';\nimport { _Spinner } from 'polythene-core-material-design-spinner';\nimport { cast, h, useState, useEffect } from 'cyano-mithril';\nimport { _Conditional } from 'polythene-core';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar classes = {\n component: \"pe-md-spinner\",\n // elements\n animation: \"pe-md-spinner__animation\",\n circle: \"pe-md-spinner__circle\",\n circleClipper: \"pe-md-spinner__circle-clipper\",\n circleClipperLeft: \"pe-md-spinner__circle-clipper-left\",\n circleClipperRight: \"pe-md-spinner__circle-clipper-right\",\n gapPatch: \"pe-md-spinner__gap-patch\",\n layer: \"pe-md-spinner__layer\",\n layerN: \"pe-md-spinner__layer-\"\n};\n\nvar baseSpinnerClasses = {\n component: \"pe-spinner\",\n // elements\n animation: \"pe-spinner__animation\",\n placeholder: \"pe-spinner__placeholder\",\n // states\n animated: \"pe-spinner--animated\",\n fab: \"pe-spinner--fab\",\n large: \"pe-spinner--large\",\n medium: \"pe-spinner--medium\",\n permanent: \"pe-spinner--permanent\",\n raised: \"pe-spinner--raised\",\n regular: \"pe-spinner--regular\",\n singleColor: \"pe-spinner--single-color\",\n small: \"pe-spinner--small\",\n visible: \"pe-spinner--visible\"\n};\n\nvar Spinner = cast(_Spinner, {\n h: h,\n BaseSpinner: BaseSpinner\n});\nvar SpinnerToggle = cast(_Conditional, {\n h: h,\n useState: useState,\n useEffect: useEffect\n});\nSpinnerToggle[\"displayName\"] = \"MaterialDesignSpinnerToggle\";\nvar MaterialDesignSpinner = {\n view: function view(vnode) {\n return h(SpinnerToggle, _objectSpread2({}, vnode.attrs, {\n placeholderClassName: baseSpinnerClasses.placeholder,\n instance: Spinner\n }));\n }\n};\nMaterialDesignSpinner[\"classes\"] = classes;\nMaterialDesignSpinner[\"displayName\"] = \"MaterialDesignSpinner\";\n\nexport { MaterialDesignSpinner };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { transitionStateReducer, initialTransitionState, isClient, transitionComponent, filterSupportedAttributes, isServer } from 'polythene-core';\nimport { Timer } from 'polythene-utilities';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nvar classes = {\n component: \"pe-notification\",\n // elements\n action: \"pe-notification__action\",\n content: \"pe-notification__content\",\n holder: \"pe-notification__holder\",\n placeholder: \"pe-notification__placeholder\",\n title: \"pe-notification__title\",\n // states\n hasContainer: \"pe-notification--container\",\n horizontal: \"pe-notification--horizontal\",\n multilineTitle: \"pe-notification__title--multi-line\",\n vertical: \"pe-notification--vertical\",\n visible: \"pe-notification--visible\"\n};\n\nvar DEFAULT_TIME_OUT = 3;\n\nvar setTitleStyles = function setTitleStyles(titleEl) {\n if (isServer) return;\n var height = titleEl.getBoundingClientRect().height;\n var lineHeight = parseInt(window.getComputedStyle(titleEl).lineHeight, 10);\n var paddingTop = parseInt(window.getComputedStyle(titleEl).paddingTop, 10);\n var paddingBottom = parseInt(window.getComputedStyle(titleEl).paddingBottom, 10);\n\n if (height > lineHeight + paddingTop + paddingBottom) {\n titleEl.classList.add(classes.multilineTitle);\n }\n};\n\nvar _Notification = function _Notification(_ref) {\n var h = _ref.h,\n a = _ref.a,\n useState = _ref.useState,\n useEffect = _ref.useEffect,\n useRef = _ref.useRef,\n getRef = _ref.getRef,\n useReducer = _ref.useReducer,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"useState\", \"useEffect\", \"useRef\", \"getRef\", \"useReducer\"]);\n\n var _useReducer = useReducer(transitionStateReducer, initialTransitionState),\n _useReducer2 = _slicedToArray(_useReducer, 2),\n transitionState = _useReducer2[0],\n dispatchTransitionState = _useReducer2[1];\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n domElement = _useState2[0],\n setDomElement = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n isPaused = _useState4[0],\n setIsPaused = _useState4[1];\n\n var containerElRef = useRef();\n var titleElRef = useRef();\n var timerRef = useRef();\n var isVisible = (transitionState || initialTransitionState).isVisible;\n var isTransitioning = (transitionState || initialTransitionState).isTransitioning;\n var isHiding = (transitionState || initialTransitionState).isHiding;\n\n var transitionOptions = function transitionOptions(_ref2) {\n var isShow = _ref2.isShow,\n referrer = _ref2.referrer;\n return {\n dispatchTransitionState: dispatchTransitionState,\n instanceId: props.instanceId,\n props: props,\n isShow: isShow,\n beforeTransition: stopTimer,\n afterTransition: isShow ? function () {\n // set timer to hide in a few seconds\n var timeout = props.timeout;\n\n if (timeout === 0) ; else {\n var timeoutSeconds = timeout !== undefined ? timeout : DEFAULT_TIME_OUT;\n timerRef.current.start(function () {\n return hideNotification();\n }, timeoutSeconds);\n }\n } : null,\n domElements: {\n el: domElement,\n containerEl: containerElRef.current\n },\n showClass: classes.visible,\n referrer: referrer\n };\n };\n\n var showNotification = function showNotification() {\n return transitionComponent(transitionOptions({\n isShow: true\n }));\n };\n\n var hideNotification = function hideNotification() {\n var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n referrer = _ref3.referrer;\n\n return transitionComponent(transitionOptions({\n isShow: false,\n referrer: referrer\n }));\n };\n\n var pause = function pause() {\n setIsPaused(true);\n\n if (timerRef.current) {\n timerRef.current.pause();\n }\n };\n\n var unpause = function unpause() {\n setIsPaused(false);\n\n if (timerRef.current) {\n timerRef.current.resume();\n }\n };\n\n var stopTimer = function stopTimer() {\n if (timerRef.current) {\n timerRef.current.stop();\n }\n };\n\n useEffect(function () {\n return function () {\n stopTimer();\n };\n }, []); // Timer\n\n useEffect(function () {\n timerRef.current = new Timer();\n }, []); // DOM elements\n\n useEffect(function () {\n if (!domElement) {\n return;\n }\n\n if (isClient) {\n // props.holderSelector is passed as option to Multiple\n containerElRef.current = document.querySelector(props.containerSelector || props.holderSelector);\n\n if (!containerElRef.current) {\n console.error(\"No container element found\"); // eslint-disable-line no-console\n }\n\n if (props.containerSelector && containerElRef.current) {\n containerElRef.current.classList.add(classes.hasContainer);\n }\n }\n\n titleElRef.current = domElement.querySelector(\".\".concat(classes.title));\n\n if (titleElRef.current) {\n setTitleStyles(titleElRef.current);\n }\n }, [domElement]); // Show / hide logic\n\n useEffect(function () {\n if (!domElement || isTransitioning || isHiding) {\n return;\n }\n\n if (props.hide) {\n if (isVisible) {\n hideNotification();\n }\n } else if (props.show) {\n if (!isVisible) {\n showNotification();\n }\n }\n }, [domElement, isTransitioning, isVisible, isHiding, props.hide, props.show]); // Pause logic\n\n useEffect(function () {\n if (!domElement || isTransitioning || isHiding) {\n return;\n }\n\n if (props.unpause) {\n if (isPaused) {\n unpause();\n }\n } else if (props.pause) {\n if (!isPaused) {\n pause();\n }\n }\n }, [domElement, isTransitioning, isHiding, props.pause, props.unpause]);\n\n var componentProps = _extends({}, filterSupportedAttributes(props, {\n remove: [\"style\"]\n }), // style set in content, and set by show/hide transition\n getRef(function (dom) {\n return dom && !domElement && (setDomElement(dom), props.ref && props.ref(dom));\n }), props.testId && {\n \"data-test-id\": props.testId\n }, _defineProperty({\n className: [classes.component, props.fromMultipleClassName, // classes.visible is set in showNotification though transition\n props.tone === \"light\" ? null : \"pe-dark-tone\", // default dark tone\n props.containerSelector ? classes.hasContainer : null, props.layout === \"vertical\" ? classes.vertical : classes.horizontal, props.tone === \"dark\" ? \"pe-dark-tone\" : null, props.tone === \"light\" ? \"pe-light-tone\" : null, props.className || props[a[\"class\"]]].join(\" \")\n }, a.onclick, function (e) {\n return e.preventDefault();\n }));\n\n var contents = h(\"div\", {\n className: classes.content,\n style: props.style\n }, props.content || [props.title ? h(\"div\", {\n className: classes.title\n }, props.title) : null, props.action ? h(\"div\", {\n className: classes.action\n }, props.action) : null]);\n var content = [props.before, contents, props.after];\n return h(props.element || \"div\", componentProps, content);\n};\n\nexport { _Notification };\n","import { cast, h, a, useState, useEffect, useRef, getRef, useReducer } from 'cyano-mithril';\nimport { Multi } from 'polythene-core';\nimport { _Notification } from 'polythene-core-notification';\n\nvar classes = {\n component: \"pe-notification\",\n // elements\n action: \"pe-notification__action\",\n content: \"pe-notification__content\",\n holder: \"pe-notification__holder\",\n placeholder: \"pe-notification__placeholder\",\n title: \"pe-notification__title\",\n // states\n hasContainer: \"pe-notification--container\",\n horizontal: \"pe-notification--horizontal\",\n multilineTitle: \"pe-notification__title--multi-line\",\n vertical: \"pe-notification--vertical\",\n visible: \"pe-notification--visible\"\n};\n\nvar NotificationInstance = cast(_Notification, {\n h: h,\n a: a,\n useState: useState,\n useEffect: useEffect,\n useRef: useRef,\n getRef: getRef,\n useReducer: useReducer\n});\nNotificationInstance[\"displayName\"] = \"NotificationInstance\";\nvar options = {\n name: \"notification\",\n className: classes.component,\n htmlShowClass: classes.open,\n defaultId: \"default_notification\",\n holderSelector: \".\".concat(classes.holder),\n instance: NotificationInstance,\n placeholder: \"span.\".concat(classes.placeholder),\n queue: true\n};\nvar MultipleInstance = Multi({\n options: options\n});\nvar Notification = cast(MultipleInstance.render, {\n h: h,\n useState: useState,\n useEffect: useEffect\n});\nObject.getOwnPropertyNames(MultipleInstance).filter(function (p) {\n return p !== \"render\";\n}).forEach(function (p) {\n return Notification[p] = MultipleInstance[p];\n});\nNotification[\"displayName\"] = \"Notification\";\n\nexport { Notification, NotificationInstance };\n","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nvar classes = {\n component: \"pe-radio-control\"\n};\n\nvar iconOn = \"\";\nvar iconOff = \"\";\nvar icons = {\n iconOff: iconOff,\n iconOn: iconOn\n};\nvar _RadioButton = function _RadioButton(_ref) {\n var h = _ref.h,\n SelectionControl = _ref.SelectionControl,\n props = _objectWithoutProperties(_ref, [\"h\", \"SelectionControl\"]);\n\n var componentProps = _extends({}, props, {\n icons: icons,\n selectable: props.selectable || function (selected) {\n return !selected;\n },\n // default: only selectable when not checked\n instanceClass: classes.component,\n type: \"radio\"\n });\n\n return h(SelectionControl, componentProps);\n};\n\nexport { _RadioButton };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _RadioButton } from 'polythene-core-radio-button';\nimport { _ViewControl, _SelectionControl } from 'polythene-core-selection-control';\nimport { cast, h, a, useState } from 'cyano-mithril';\nimport { Icon } from 'polythene-mithril-icon';\nimport { IconButton } from 'polythene-mithril-icon-button';\n\nvar ViewControl = cast(_ViewControl, {\n h: h,\n a: a,\n Icon: Icon,\n IconButton: IconButton\n});\nViewControl[\"displayName\"] = \"ViewControl\";\nvar SelectionControl = cast(_SelectionControl, {\n h: h,\n a: a,\n useState: useState,\n ViewControl: ViewControl\n});\nSelectionControl[\"displayName\"] = \"SelectionControl\";\nvar RadioButton = cast(_RadioButton, {\n h: h,\n a: a,\n SelectionControl: SelectionControl\n});\nRadioButton[\"displayName\"] = \"RadioButton\";\n\nexport { RadioButton };\n","import { filterSupportedAttributes } from 'polythene-core';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nvar classes = {\n component: \"pe-radio-group\"\n};\n\nvar _RadioGroup = function _RadioGroup(_ref) {\n var h = _ref.h,\n a = _ref.a,\n useState = _ref.useState,\n useEffect = _ref.useEffect,\n RadioButton = _ref.RadioButton,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"useState\", \"useEffect\", \"RadioButton\"]);\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n checkedIndex = _useState2[0],\n setCheckedIndex = _useState2[1];\n\n var buttons = props.content || props.buttons || props.children;\n useEffect(function () {\n var index = buttons.reduce(function (acc, buttonOpts, index) {\n if (buttonOpts.value === undefined) {\n console.error(\"Option 'value' not set for radio button\"); // eslint-disable-line no-console\n }\n\n return acc !== null ? acc : buttonOpts.defaultChecked !== undefined || props.defaultCheckedValue !== undefined && buttonOpts.value === props.defaultCheckedValue || props.defaultSelectedValue !== undefined && buttonOpts.value === props.defaultSelectedValue // deprecated\n ? index : acc;\n }, null);\n setCheckedIndex(index);\n }, []);\n\n var componentProps = _extends({}, filterSupportedAttributes(props), props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes.component, props.tone === \"dark\" ? \"pe-dark-tone\" : null, props.tone === \"light\" ? \"pe-light-tone\" : null, props.className || props[a[\"class\"]]].join(\" \")\n });\n\n var groupCheckedValue = props.checkedValue;\n var contents = buttons.length ? buttons.map(function (buttonOpts, index) {\n if (!buttonOpts) {\n return null;\n }\n\n var isChecked = buttonOpts.checked !== undefined ? buttonOpts.checked : groupCheckedValue !== undefined ? buttonOpts.value === groupCheckedValue : checkedIndex === index;\n return h(RadioButton, _extends({}, {\n /* group attributes that may be overwritten by individual buttons */\n name: props.name\n }, props.all,\n /* individual button options */\n buttonOpts, {\n /* this component's options */\n onChange: function onChange(_ref2) {\n var value = _ref2.value;\n return setCheckedIndex(index), props.onChange && props.onChange({\n value: value\n });\n },\n checked: isChecked,\n key: buttonOpts.value // required for proper selection\n\n }));\n }) : null;\n var content = [props.before, contents, props.after];\n return h(props.element || \"div\", componentProps, content);\n};\n\nexport { _RadioGroup };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _RadioGroup } from 'polythene-core-radio-group';\nimport { RadioButton } from 'polythene-mithril-radio-button';\nimport { cast, h, a, useState, useEffect } from 'cyano-mithril';\n\nvar RadioGroup = cast(_RadioGroup, {\n h: h,\n a: a,\n useState: useState,\n useEffect: useEffect,\n RadioButton: RadioButton\n});\nRadioGroup[\"displayName\"] = \"RadioGroup\";\n\nexport { RadioGroup };\n","import { filterSupportedAttributes } from 'polythene-core';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nvar classes = {\n component: \"pe-textfield\",\n // elements\n counter: \"pe-textfield__counter\",\n error: \"pe-textfield__error\",\n errorPlaceholder: \"pe-textfield__error-placeholder\",\n focusHelp: \"pe-textfield__help-focus\",\n help: \"pe-textfield__help\",\n input: \"pe-textfield__input\",\n inputArea: \"pe-textfield__input-area\",\n label: \"pe-textfield__label\",\n optionalIndicator: \"pe-textfield__optional-indicator\",\n requiredIndicator: \"pe-textfield__required-indicator\",\n // states\n hasCounter: \"pe-textfield--counter\",\n hasFloatingLabel: \"pe-textfield--floating-label\",\n hasFullWidth: \"pe-textfield--full-width\",\n hideClear: \"pe-textfield--hide-clear\",\n hideSpinner: \"pe-textfield--hide-spinner\",\n hideValidation: \"pe-textfield--hide-validation\",\n isDense: \"pe-textfield--dense\",\n isRequired: \"pe-textfield--required\",\n stateDirty: \"pe-textfield--dirty\",\n stateDisabled: \"pe-textfield--disabled\",\n stateFocused: \"pe-textfield--focused\",\n stateInvalid: \"pe-textfield--invalid\",\n stateReadonly: \"pe-textfield--readonly\"\n};\n\nvar DEFAULT_VALID_STATE = {\n invalid: false,\n message: undefined\n};\n\nvar ignoreEvent = function ignoreEvent(props, name) {\n return props.ignoreEvents && props.ignoreEvents.indexOf(name) !== -1;\n};\n\nvar _TextField = function _TextField(_ref) {\n var h = _ref.h,\n a = _ref.a,\n useState = _ref.useState,\n useEffect = _ref.useEffect,\n useRef = _ref.useRef,\n getRef = _ref.getRef,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"useState\", \"useEffect\", \"useRef\", \"getRef\"]);\n\n var defaultValue = props.defaultValue !== undefined && props.defaultValue !== null ? props.defaultValue.toString() : props.value !== undefined && props.value !== null ? props.value.toString() : \"\";\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n domElement = _useState2[0],\n setDomElement = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n isInvalid = _useState4[0],\n setIsInvalid = _useState4[1];\n\n var _useState5 = useState(defaultValue),\n _useState6 = _slicedToArray(_useState5, 2),\n value = _useState6[0],\n setValue = _useState6[1];\n\n var inputElRef = useRef();\n var previousValueRef = useRef();\n var previousStatusRef = useRef();\n var isDirtyRef = useRef();\n var hasFocusRef = useRef();\n var isTouchedRef = useRef();\n var errorRef = useRef();\n var inputType = props.multiLine ? \"textarea\" : \"input\";\n var showErrorPlaceholder = !!(props.valid !== undefined || props.validate || props.min || props.max || props[a.minlength] || props[a.maxlength] || props.required || props.pattern);\n\n var handleStateUpdate = function handleStateUpdate() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n type = _ref2.type,\n focus = _ref2.focus,\n value = _ref2.value;\n\n if (!inputElRef.current) {\n return;\n }\n\n if (value !== undefined) {\n inputElRef.current.value = value;\n }\n\n if (focus !== undefined) {\n hasFocusRef.current = focus;\n\n if (focus) {\n inputElRef.current.focus();\n } else {\n inputElRef.current.blur();\n }\n }\n\n if (type === \"input\" && (props.validateOnInput || props.counter)) {\n isTouchedRef.current = inputElRef.current.value !== defaultValue;\n }\n\n if (type !== \"input\") {\n isTouchedRef.current = inputElRef.current.value !== defaultValue;\n }\n\n if (type === \"onblur\") {\n isTouchedRef.current = true;\n }\n\n isDirtyRef.current = inputElRef.current.value !== \"\";\n checkValidity();\n notifyState();\n\n if (previousValueRef.current !== inputElRef.current.value) {\n setValue(inputElRef.current.value); // force update\n }\n };\n\n var validateCustom = function validateCustom() {\n if (!inputElRef.current) {\n return DEFAULT_VALID_STATE;\n }\n\n var validState = props.validate(inputElRef.current.value);\n return {\n invalid: validState && !validState.valid,\n message: validState && validState.error\n };\n };\n\n var validateCounter = function validateCounter() {\n return {\n invalid: inputElRef.current.value.length > props.counter,\n message: props.error\n };\n };\n\n var validateHTML = function validateHTML() {\n return {\n invalid: !inputElRef.current.checkValidity(),\n message: props.error\n };\n };\n\n var getValidStatus = function getValidStatus() {\n var status = DEFAULT_VALID_STATE; // props.validateResetOnClear: reset validation when field is cleared\n\n if (isTouchedRef.current && isInvalid && inputElRef.current.value.length === 0 && props.validateResetOnClear) {\n isTouchedRef.current = false;\n setIsInvalid(false);\n errorRef.current = undefined;\n }\n\n if (props.counter) {\n status = validateCounter();\n }\n\n if (!status.invalid && inputElRef.current.checkValidity) {\n status = validateHTML();\n }\n\n if (!status.invalid && props.validate) {\n status = validateCustom();\n }\n\n return status;\n };\n\n var checkValidity = function checkValidity() {\n // default\n var status = props.valid !== undefined ? {\n invalid: !props.valid,\n message: props.error\n } : !isTouchedRef.current && !props.validateAtStart ? DEFAULT_VALID_STATE : getValidStatus();\n var previousInvalid = isInvalid;\n errorRef.current = status.message;\n\n if (status.invalid !== previousInvalid) {\n setIsInvalid(status.invalid);\n }\n\n if (!status.invalid) {\n errorRef.current = undefined;\n }\n };\n\n var notifyState = function notifyState() {\n if (props.onChange) {\n var validStatus = getValidStatus();\n var status = {\n focus: hasFocusRef.current,\n dirty: isDirtyRef.current,\n invalid: validStatus.invalid,\n error: validStatus.error,\n value: inputElRef.current.value\n };\n\n if (JSON.stringify(status) !== JSON.stringify(previousStatusRef.current)) {\n props.onChange(_objectSpread2({}, status, {\n el: inputElRef.current,\n setInputState: function setInputState(newState) {\n var hasNewValue = newState.value !== undefined && newState.value !== inputElRef.current.value;\n var hasNewFocus = newState.focus !== undefined && newState.focus !== hasFocusRef.current;\n\n if (hasNewValue || hasNewFocus) {\n handleStateUpdate(newState);\n }\n }\n }));\n previousStatusRef.current = status;\n }\n }\n }; // State refs\n\n\n useEffect(function () {\n isDirtyRef.current = defaultValue !== \"\";\n hasFocusRef.current = false;\n isTouchedRef.current = false;\n errorRef.current = props.error;\n }, []); // Input DOM element\n\n useEffect(function () {\n if (!domElement) {\n return;\n }\n\n inputElRef.current = domElement.querySelector(inputType);\n inputElRef.current.value = defaultValue;\n handleStateUpdate();\n checkValidity(); // handle `validateAtStart`\n\n notifyState();\n }, [domElement]); // Handle value updates\n\n useEffect(function () {\n if (!inputElRef.current) {\n return;\n }\n\n var value = props.value !== undefined && props.value !== null ? props.value : inputElRef.current ? inputElRef.current.value : previousValueRef.current;\n var valueStr = value === undefined || value === null ? \"\" : value.toString();\n\n if (inputElRef.current && previousValueRef.current !== valueStr) {\n inputElRef.current.value = valueStr;\n previousValueRef.current = valueStr;\n handleStateUpdate({\n type: \"input\"\n });\n }\n }, [inputElRef.current, props.value]); // Handle error state updates\n\n useEffect(function () {\n if (!inputElRef.current) {\n return;\n }\n\n checkValidity();\n notifyState();\n }, [props, inputElRef.current && inputElRef.current.value]);\n\n var componentProps = _extends({}, filterSupportedAttributes(props), props.testId && {\n \"data-test-id\": props.testId\n }, getRef(function (dom) {\n return dom && !domElement && (setDomElement(dom), props.ref && props.ref(dom));\n }), {\n className: [classes.component, isInvalid ? classes.stateInvalid : \"\", hasFocusRef.current ? classes.stateFocused : \"\", isDirtyRef.current ? classes.stateDirty : \"\", props.floatingLabel ? classes.hasFloatingLabel : \"\", props.disabled ? classes.stateDisabled : \"\", props.readonly ? classes.stateReadonly : \"\", props.dense ? classes.isDense : \"\", props.required ? classes.isRequired : \"\", props.fullWidth ? classes.hasFullWidth : \"\", props.counter ? classes.hasCounter : \"\", props.hideSpinner !== false && props.hideSpinner !== undefined ? classes.hideSpinner : \"\", props.hideClear !== false && props.hideClear !== undefined ? classes.hideClear : \"\", props.hideValidation ? classes.hideValidation : \"\", props.tone === \"dark\" ? \"pe-dark-tone\" : null, props.tone === \"light\" ? \"pe-light-tone\" : null, props.className || props[a[\"class\"]]].join(\" \")\n });\n\n var allProps = _objectSpread2({}, props, {}, props.domAttributes);\n\n var errorMessage = props.error || errorRef.current;\n var type = allProps.multiLine ? null : !allProps.type || allProps.type === \"submit\" || allProps.type === \"search\" ? \"text\" : allProps.type;\n var showError = isInvalid && errorMessage !== undefined;\n var inactive = allProps.disabled || allProps[a.readonly];\n var requiredIndicator = allProps.required && allProps.requiredIndicator !== \"\" ? h(\"span\", {\n className: classes.requiredIndicator\n }, allProps.requiredIndicator || \"*\") : null;\n var optionalIndicator = !allProps.required && allProps.optionalIndicator ? h(\"span\", {\n className: classes.optionalIndicator\n }, allProps.optionalIndicator) : null;\n var label = allProps.label ? [allProps.label, requiredIndicator, optionalIndicator] : null;\n var componentContent = [h(\"div\", {\n className: classes.inputArea\n }, [label ? h(\"label\", {\n className: classes.label\n }, label) : null, h(inputType, _extends({}, {\n className: classes.input,\n disabled: allProps.disabled\n }, type ? {\n type: type\n } : null, allProps.name ? {\n name: allProps.name\n } : null, !ignoreEvent(allProps, a.onclick) ? _defineProperty({}, a.onclick, function () {\n if (inactive) {\n return;\n } // in case the browser does not give the field focus,\n // for instance when the user tapped to the current field off screen\n\n\n handleStateUpdate({\n focus: true\n });\n }) : null, !ignoreEvent(allProps, a.onfocus) ? _defineProperty({}, a.onfocus, function () {\n if (inactive) {\n return;\n }\n\n handleStateUpdate({\n focus: true\n }); // set CSS class manually in case field gets focus but is off screen\n // and no redraw is triggered\n // at the next redraw `hasFocusRef.current` will be read and the focus class be set\n // in the props.class statement\n\n if (domElement) {\n domElement.classList.add(classes.stateFocused);\n }\n }) : null, !ignoreEvent(allProps, a.onblur) ? _defineProperty({}, a.onblur, function () {\n handleStateUpdate({\n type: \"onblur\",\n focus: false\n }); // same principle as onfocus\n\n domElement.classList.remove(classes.stateFocused);\n }) : null, !ignoreEvent(allProps, a.oninput) ? _defineProperty({}, a.oninput, function (e) {\n // default input event\n // may be overwritten by props.events\n handleStateUpdate({\n type: \"input\"\n });\n }) : null, !ignoreEvent(allProps, a.onkeydown) ? _defineProperty({}, a.onkeydown, function (e) {\n if (e.key === \"Enter\") {\n isTouchedRef.current = true;\n } else if (e.key === \"Escape\" || e.key === \"Esc\") {\n handleStateUpdate({\n focus: false\n });\n }\n }) : null, allProps.events ? allProps.events : null, // NOTE: may overwrite oninput\n allProps.required !== undefined && !!allProps.required ? {\n required: true\n } : null, allProps[a.readonly] !== undefined && !!allProps[a.readonly] ? _defineProperty({}, a.readonly, true) : null, allProps.pattern !== undefined ? {\n pattern: allProps.pattern\n } : null, allProps[a.maxlength] !== undefined ? _defineProperty({}, a.maxlength, allProps[a.maxlength]) : null, allProps[a.minlength] !== undefined ? _defineProperty({}, a.minlength, allProps[a.minlength]) : null, allProps.max !== undefined ? {\n max: allProps.max\n } : null, allProps.min !== undefined ? {\n min: allProps.min\n } : null, allProps[a.autofocus] !== undefined ? _defineProperty({}, a.autofocus, allProps[a.autofocus]) : null, allProps[a.tabindex] !== undefined ? _defineProperty({}, a.tabindex, allProps[a.tabindex]) : null, allProps.rows !== undefined ? {\n rows: allProps.rows\n } : null, allProps.placeholder !== undefined ? {\n placeholder: allProps.placeholder\n } : null, allProps.domAttributes !== undefined ? _objectSpread2({}, allProps.domAttributes) : null))]), allProps.counter ? h(\"div\", {\n className: classes.counter\n }, (value.length || 0) + \" / \" + allProps.counter) : null, allProps.help && !showError ? h(\"div\", {\n className: [classes.help, allProps.focusHelp ? classes.focusHelp : null].join(\" \")\n }, allProps.help) : null, showError ? h(\"div\", {\n className: classes.error\n }, errorMessage) : showErrorPlaceholder && !allProps.help ? h(\"div\", {\n className: classes.errorPlaceholder\n }) : null];\n var content = [props.before].concat(componentContent, [props.after]);\n return h(props.element || \"div\", componentProps, content);\n};\n\nexport { _TextField };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _TextField } from 'polythene-core-textfield';\nimport { cast, h, a, useEffect, useState, useRef, getRef } from 'cyano-mithril';\n\nvar TextField = cast(_TextField, {\n h: h,\n a: a,\n useEffect: useEffect,\n useState: useState,\n useRef: useRef,\n getRef: getRef\n});\nTextField[\"displayName\"] = \"TextField\";\n\nexport { TextField };\n","import { filterSupportedAttributes, pointerStartDownEvent, isClient, getStyle, isTouch, pointerMoveEvent, pointerEndDownEvent } from 'polythene-core';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nvar classes = {\n component: \"pe-slider\",\n // elements\n control: \"pe-slider__control\",\n label: \"pe-slider__label\",\n pin: \"pe-slider__pin\",\n thumb: \"pe-slider__thumb\",\n tick: \"pe-slider__tick\",\n ticks: \"pe-slider__ticks\",\n track: \"pe-slider__track\",\n trackBar: \"pe-slider__track-bar\",\n trackBarValue: \"pe-slider__track-bar-value\",\n trackPart: \"pe-slider__track-part\",\n trackPartRest: \"pe-slider__track-rest\",\n trackPartValue: \"pe-slider__track-value\",\n // states\n hasFocus: \"pe-slider--focus\",\n hasPin: \"pe-slider--pin\",\n hasTicks: \"pe-slider--ticks\",\n hasTrack: \"pe-slider--track\",\n isActive: \"pe-slider--active\",\n isAtMin: \"pe-slider--min\",\n isDisabled: \"pe-slider--disabled\",\n tickValue: \"pe-slider__tick--value\"\n};\n\nvar MAX_TICKS = 100;\n\nvar positionFromEvent = function positionFromEvent(e, isVertical) {\n return (// isVertical not yet implemented\n isTouch && e.touches ? isVertical ? e.touches[0].pageY : e.touches[0].pageX : isVertical ? e.pageY : e.pageX\n );\n};\n\nvar _Slider = function _Slider(_ref) {\n var _ref3;\n\n var h = _ref.h,\n a = _ref.a,\n useState = _ref.useState,\n useEffect = _ref.useEffect,\n useRef = _ref.useRef,\n getRef = _ref.getRef,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"useState\", \"useEffect\", \"useRef\", \"getRef\"]);\n\n var min = props.min !== undefined ? props.min : 0;\n var max = props.max !== undefined ? props.max : 100;\n var range = max - min;\n var stepSize = props.stepSize !== undefined ? props.stepSize : 1;\n var normalizeFactor = 1 / stepSize;\n var hasTicks = props.ticks !== undefined && props.ticks !== false;\n var interactiveTrack = props.interactiveTrack !== undefined ? props.interactiveTrack : true;\n var stepCount = Math.min(MAX_TICKS, parseInt(range / stepSize, 10));\n var defaultValue = props.defaultValue !== undefined ? props.defaultValue : props.value !== undefined ? props.value : 0;\n var focusElementRef = useRef();\n var trackElRef = useRef();\n var controlElRef = useRef();\n var pinElRef = useRef();\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n domElement = _useState2[0],\n setDomElement = _useState2[1];\n\n var _useState3 = useState(min),\n _useState4 = _slicedToArray(_useState3, 2),\n fraction = _useState4[0],\n setFraction = _useState4[1];\n\n var _useState5 = useState(false),\n _useState6 = _slicedToArray(_useState5, 2),\n hasFocus = _useState6[0],\n setHasFocus = _useState6[1];\n\n var _useState7 = useState(),\n _useState8 = _slicedToArray(_useState7, 2),\n value = _useState8[0],\n setValue = _useState8[1];\n\n var _useState9 = useState(),\n _useState10 = _slicedToArray(_useState9, 2),\n previousValue = _useState10[0],\n setPreviousValue = _useState10[1];\n\n var _useState11 = useState(false),\n _useState12 = _slicedToArray(_useState11, 2),\n isActive = _useState12[0],\n setIsActive = _useState12[1];\n\n var isDraggingRef = useRef();\n var clickOffsetRef = useRef();\n var rangeWidthRef = useRef();\n var rangeOffsetRef = useRef();\n var controlWidthRef = useRef();\n\n var updatePinPosition = function updatePinPosition() {\n if (controlElRef.current && pinElRef.current) {\n var left = fraction * rangeWidthRef.current;\n pinElRef.current.style.left = left + \"px\";\n }\n };\n\n var generateTickMarks = function generateTickMarks(h, stepCount, stepSize, value) {\n var items = [];\n var stepWithValue = value / stepSize;\n var s = 0;\n\n while (s < stepCount + 1) {\n items.push(h(\"div\", {\n className: s <= stepWithValue ? [classes.tick, classes.tickValue].join(\" \") : classes.tick,\n key: \"tick-\".concat(s)\n }));\n s++;\n }\n\n return items;\n };\n\n var readRangeData = function readRangeData() {\n if (controlElRef.current && isClient) {\n // range is from the far left to the far right minus the thumb width (max x is at the left side of the thumb)\n controlWidthRef.current = parseFloat(getStyle({\n element: controlElRef.current,\n prop: \"width\"\n }));\n rangeWidthRef.current = trackElRef.current.getBoundingClientRect().width - controlWidthRef.current;\n var styles = window.getComputedStyle(trackElRef.current);\n rangeOffsetRef.current = parseFloat(styles.marginLeft);\n }\n };\n\n var updateClickOffset = function updateClickOffset() {\n var controlOffset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n clickOffsetRef.current = trackElRef.current.getBoundingClientRect().left - (rangeOffsetRef.current - controlWidthRef.current / 2) + controlOffset;\n };\n\n var initControlEvent = function initControlEvent(e) {\n var controlPos = controlElRef.current.getBoundingClientRect().left;\n var eventPos = positionFromEvent(e);\n var controlOffset = eventPos - controlPos - controlWidthRef.current / 2;\n updateClickOffset(controlOffset);\n };\n\n var initTrackEvent = function initTrackEvent() {\n return updateClickOffset(0);\n };\n\n var handlePosEvent = function handlePosEvent(e) {\n var pos = positionFromEvent(e) - clickOffsetRef.current;\n var newValue = min + (pos - rangeOffsetRef.current) / rangeWidthRef.current * range;\n updateValue(newValue);\n };\n\n var startDrag = function startDrag(e) {\n if (isDraggingRef.current) return;\n e.preventDefault();\n isDraggingRef.current = true;\n setIsActive(true);\n deFocus();\n\n var drag = function drag(e) {\n if (!isDraggingRef.current) return;\n handlePosEvent(e);\n };\n\n var endDrag = function endDrag() {\n if (!isDraggingRef.current) return;\n deFocus();\n\n if (isClient) {\n pointerMoveEvent.forEach(function (evt) {\n return window.removeEventListener(evt, drag);\n });\n pointerEndDownEvent.forEach(function (evt) {\n return window.removeEventListener(evt, endDrag);\n });\n }\n\n isDraggingRef.current = false;\n setIsActive(false);\n };\n\n if (isClient) {\n pointerMoveEvent.forEach(function (evt) {\n return window.addEventListener(evt, drag);\n });\n pointerEndDownEvent.forEach(function (evt) {\n return window.addEventListener(evt, endDrag);\n });\n }\n\n readRangeData();\n };\n\n var handleNewValue = function handleNewValue(_ref2) {\n var value = _ref2.value,\n _ref2$shouldNotify = _ref2.shouldNotify,\n shouldNotify = _ref2$shouldNotify === void 0 ? false : _ref2$shouldNotify;\n if (value < min) value = min;\n if (value > max) value = max;\n var newValue = stepSize ? Math.round(value * normalizeFactor) / normalizeFactor : value;\n setFraction((newValue - min) / range);\n setPreviousValue(newValue);\n setValue(newValue);\n\n if (shouldNotify && props.onChange) {\n props.onChange({\n value: newValue\n });\n }\n };\n\n var updateValue = function updateValue(value) {\n handleNewValue({\n value: value,\n shouldNotify: true\n });\n };\n\n var increment = function increment(useLargeStep) {\n return updateValue(value + (useLargeStep ? 10 : 1) * (stepSize || 1));\n };\n\n var decrement = function decrement(useLargeStep) {\n return updateValue(value - (useLargeStep ? 10 : 1) * (stepSize || 1));\n };\n\n var deFocus = function deFocus() {\n if (focusElementRef.current) {\n focusElementRef.current.blur();\n }\n\n focusElementRef.current = undefined;\n setHasFocus(false);\n };\n\n var focus = function focus(element) {\n deFocus();\n focusElementRef.current = element;\n setHasFocus(true);\n }; // State refs\n\n\n useEffect(function () {\n isDraggingRef.current = false;\n clickOffsetRef.current = 0;\n rangeWidthRef.current = 0;\n rangeOffsetRef.current = 0;\n controlWidthRef.current = 0;\n }, []); // DOM children\n\n useEffect(function () {\n if (!domElement) {\n return;\n }\n\n trackElRef.current = domElement.querySelector(\".\".concat(classes.track));\n controlElRef.current = domElement.querySelector(\".\".concat(classes.control));\n pinElRef.current = domElement.querySelector(\".\".concat(classes.pin));\n readRangeData();\n handleNewValue({\n value: defaultValue\n });\n }, [domElement]); // Pin position\n\n useEffect(function () {\n if (!props.pin) {\n return;\n }\n\n updatePinPosition();\n }, [value]); // Handle external changes of `value`\n\n useEffect(function () {\n if (previousValue !== props.value) {\n handleNewValue({\n value: props.value\n });\n }\n }, [props.value]);\n\n var componentProps = _extends({}, filterSupportedAttributes(props), getRef(function (dom) {\n return dom && !domElement && setDomElement(dom);\n }), props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes.component, props.disabled ? classes.isDisabled : null, props.pin ? classes.hasPin : null, interactiveTrack ? classes.hasTrack : null, isActive ? classes.isActive : null, hasFocus ? classes.hasFocus : null, fraction === 0 ? classes.isAtMin : null, hasTicks ? classes.hasTicks : null, props.tone === \"dark\" ? \"pe-dark-tone\" : null, props.tone === \"light\" ? \"pe-light-tone\" : null, props.className || props[a[\"class\"]]].join(\" \")\n });\n\n var onStartTrack = function onStartTrack(e) {\n e.preventDefault();\n\n if (isDraggingRef.current) {\n return;\n }\n\n readRangeData();\n initTrackEvent();\n handlePosEvent(e);\n startDrag(e);\n };\n\n var onInitDrag = function onInitDrag(e) {\n e.preventDefault();\n readRangeData();\n initControlEvent(e);\n startDrag(e);\n };\n\n var flexValueCss = fraction + \" 1 0%\";\n var flexRestValue = 1 - fraction;\n var flexRestCss = flexRestValue + \" 1 0%\";\n var content = [props.before, h(\"div\", _extends({}, {\n className: classes.track\n }, interactiveTrack && !props.disabled && pointerStartDownEvent.reduce(function (acc, evt) {\n return acc[a[\"on\".concat(evt)]] = onStartTrack, acc;\n }, {})), [h(\"div\", {\n className: classes.trackPart + \" \" + classes.trackPartValue,\n style: {\n flex: flexValueCss,\n msFlex: flexValueCss,\n WebkitFlex: flexValueCss\n }\n }, h(\"div\", {\n className: classes.trackBar\n }, h(\"div\", {\n className: classes.trackBarValue\n }))), h(\"div\", _extends({}, {\n className: classes.control\n }, props.disabled ? {\n disabled: true\n } : (_ref3 = {}, _defineProperty(_ref3, a.tabindex, props[a.tabindex] || 0), _defineProperty(_ref3, a.onfocus, function () {\n return focus(controlElRef.current);\n }), _defineProperty(_ref3, a.onblur, function () {\n return deFocus();\n }), _defineProperty(_ref3, a.onkeydown, function (e) {\n if (e.key !== \"Tab\") {\n e.preventDefault();\n }\n\n if (e.key === \"Escape\" || e.key === \"Esc\") {\n controlElRef.current.blur(e);\n } else if (e.key === \"ArrowLeft\" || e.key === \"ArrowDown\" || e.key === \"Left\" || e.key === \"Down\") {\n decrement(!!e.shiftKey);\n } else if (e.key === \"ArrowRight\" || e.key === \"ArrowUp\" || e.key === \"Right\" || e.key === \"Up\") {\n increment(!!e.shiftKey);\n } else if (e.key === \"Home\") {\n updateValue(min);\n } else if (e.key === \"End\") {\n updateValue(max);\n } else if (e.key === \"PageDown\") {\n decrement(true);\n } else if (e.key === \"PageUp\") {\n increment(true);\n }\n\n readRangeData();\n }), _ref3), !props.disabled && pointerStartDownEvent.reduce(function (acc, evt) {\n return acc[a[\"on\".concat(evt)]] = onInitDrag, acc;\n }, {}), props.events ? props.events : null, hasTicks ? {\n step: stepCount\n } : null), props.icon ? h(\"div\", {\n className: classes.thumb\n }, props.icon) : null), h(\"div\", {\n className: classes.trackPart + \" \" + classes.trackPartRest,\n style: {\n flex: flexRestCss,\n msFlex: flexRestCss,\n WebkitFlex: flexRestCss,\n maxWidth: flexRestValue * 100 + \"%\" // for IE Edge\n\n }\n }, h(\"div\", {\n className: classes.trackBar\n }, h(\"div\", {\n className: classes.trackBarValue\n }))), hasTicks && !props.disabled ? h(\"div\", {\n className: classes.ticks\n }, generateTickMarks(h, stepCount, stepSize, value)) : null, hasTicks && props.pin && !props.disabled ? h(\"div\", {\n className: classes.pin,\n value: value\n }) : null]), props.after];\n return h(props.element || \"div\", componentProps, content);\n};\n\nexport { _Slider };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _Slider } from 'polythene-core-slider';\nimport { cast, h, a, useState, useEffect, useRef, getRef } from 'cyano-mithril';\n\nvar Slider = cast(_Slider, {\n h: h,\n a: a,\n useState: useState,\n useEffect: useEffect,\n useRef: useRef,\n getRef: getRef\n});\nSlider[\"displayName\"] = \"Slider\";\n\nexport { Slider };\n","export { _Notification as _Snackbar } from 'polythene-core-notification';\n\nvar DEFAULT_DURATION = 0.4;\n\nvar show = function show(_ref) {\n var containerEl = _ref.containerEl,\n el = _ref.el,\n duration = _ref.duration,\n delay = _ref.delay;\n return {\n el: containerEl,\n duration: duration || DEFAULT_DURATION,\n delay: delay || 0,\n before: function before() {\n el.style.display = \"block\";\n var height = el.getBoundingClientRect().height;\n containerEl.style.transform = \"translate3d(0, \".concat(height, \"px, 0)\");\n },\n transition: function transition() {\n return containerEl.style.transform = \"translate3d(0, 0px, 0)\";\n }\n };\n};\n\nvar hide = function hide(_ref2) {\n var containerEl = _ref2.containerEl,\n el = _ref2.el,\n duration = _ref2.duration,\n delay = _ref2.delay;\n return {\n el: containerEl,\n duration: duration || DEFAULT_DURATION,\n delay: delay || 0,\n transition: function transition() {\n var height = el.getBoundingClientRect().height;\n containerEl.style.transform = \"translate3d(0, \".concat(height, \"px, 0)\");\n },\n // reset to original position to counter the removal of the snackbar instance\n after: function after() {\n // prevent a \"bounce back\"\n el.style.display = \"none\";\n containerEl.style.transitionDuration = \"0ms\";\n containerEl.style.transform = \"translate3d(0, 0px, 0)\";\n }\n };\n};\n\nvar transitions = {\n show: show,\n hide: hide\n};\n\nexport { transitions };\n","import { cast, h, a, useState, useEffect, useRef, getRef, useReducer } from 'cyano-mithril';\nimport { Multi } from 'polythene-core';\nimport { _Snackbar, transitions } from 'polythene-core-snackbar';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar notificationClasses = {\n component: \"pe-notification\",\n // elements\n action: \"pe-notification__action\",\n content: \"pe-notification__content\",\n holder: \"pe-notification__holder\",\n placeholder: \"pe-notification__placeholder\",\n title: \"pe-notification__title\",\n // states\n hasContainer: \"pe-notification--container\",\n horizontal: \"pe-notification--horizontal\",\n multilineTitle: \"pe-notification__title--multi-line\",\n vertical: \"pe-notification--vertical\",\n visible: \"pe-notification--visible\"\n};\n\nvar classes = _objectSpread2({}, notificationClasses, {\n component: \"pe-notification pe-snackbar\",\n // elements\n holder: \"pe-snackbar__holder\",\n placeholder: \"pe-snackbar__placeholder\",\n // states\n open: \"pe-snackbar--open\"\n});\n\nvar SnackbarInstance = cast(_Snackbar, {\n h: h,\n a: a,\n useState: useState,\n useEffect: useEffect,\n useRef: useRef,\n getRef: getRef,\n useReducer: useReducer\n});\nSnackbarInstance[\"displayName\"] = \"SnackbarInstance\";\nvar options = {\n name: \"snackbar\",\n className: classes.component,\n htmlShowClass: classes.open,\n defaultId: \"default_snackbar\",\n holderSelector: \".\".concat(classes.holder),\n instance: SnackbarInstance,\n placeholder: \"span.\".concat(classes.placeholder),\n queue: true,\n transitions: transitions\n};\nvar MultipleInstance = Multi({\n options: options\n});\nvar Snackbar = cast(MultipleInstance.render, {\n h: h,\n useState: useState,\n useEffect: useEffect\n});\nObject.getOwnPropertyNames(MultipleInstance).filter(function (p) {\n return p !== \"render\";\n}).forEach(function (p) {\n return Snackbar[p] = MultipleInstance[p];\n});\nSnackbar[\"displayName\"] = \"Snackbar\";\n\nexport { Snackbar, SnackbarInstance };\n","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nvar classes = {\n component: \"pe-switch-control\",\n // elements\n knob: \"pe-switch-control__knob\",\n thumb: \"pe-switch-control__thumb\",\n track: \"pe-switch-control__track\"\n};\n\nvar _Switch = function _Switch(_ref) {\n var h = _ref.h,\n SelectionControl = _ref.SelectionControl,\n props = _objectWithoutProperties(_ref, [\"h\", \"SelectionControl\"]);\n\n var componentProps = _extends({}, props, {\n selectable: props.selectable || function () {\n return true;\n },\n // default: always selectable, regardless of the checked state\n instanceClass: classes.component,\n type: \"checkbox\"\n });\n\n return h(SelectionControl, componentProps);\n};\n\nvar _ViewControl = function _ViewControl(_ref) {\n var h = _ref.h,\n a = _ref.a,\n IconButton = _ref.IconButton,\n Shadow = _ref.Shadow,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"IconButton\", \"Shadow\"]);\n\n var element = props.element || \"div\";\n var shadowDepthOff = props.shadowDepthOff !== undefined ? props.shadowDepthOff : props.zOff !== undefined ? props.zOff // deprecated\n : 1;\n var shadowDepthOn = props.shadowDepthOn !== undefined ? props.shadowDepthOn : props.zOn !== undefined ? props.zOn // deprecated\n : 2;\n var shadowDepth = props.checked ? shadowDepthOn : shadowDepthOff;\n var raised = props.raised !== undefined ? props.raised : true;\n return h(element, null, [h(\"div\", {\n className: classes.track,\n key: \"track\"\n }), h(IconButton, _extends({}, {\n className: classes.thumb,\n key: \"button\",\n content: h(\"div\", {\n className: classes.knob,\n style: props.style\n }, [props.icon ? props.icon : null, raised ? h(Shadow, {\n shadowDepth: shadowDepth,\n animated: true\n }) : null]),\n disabled: props.disabled,\n events: props.events,\n ink: props.ink || false,\n inactive: props.inactive\n }, props.iconButton))]);\n};\n\nexport { _Switch, _ViewControl };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _ViewControl, _Switch } from 'polythene-core-switch';\nimport { cast, h, a, useState } from 'cyano-mithril';\nimport { Shadow } from 'polythene-mithril-shadow';\nimport { IconButton } from 'polythene-mithril-icon-button';\nimport { _SelectionControl } from 'polythene-core-selection-control';\n\nvar ViewControl = cast(_ViewControl, {\n h: h,\n a: a,\n Shadow: Shadow,\n IconButton: IconButton\n});\nViewControl[\"displayName\"] = \"ViewControl\";\nvar SelectionControl = cast(_SelectionControl, {\n h: h,\n a: a,\n useState: useState,\n ViewControl: ViewControl\n});\nSelectionControl[\"displayName\"] = \"SelectionControl\";\nvar Switch = cast(_Switch, {\n h: h,\n a: a,\n SelectionControl: SelectionControl\n});\nSwitch[\"displayName\"] = \"Switch\";\n\nexport { Switch };\n","import { isTouch, isRTL, subscribe, unsubscribe, filterSupportedAttributes } from 'polythene-core';\nimport { scrollTo } from 'polythene-utilities';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nvar buttonClasses = {\n component: \"pe-text-button\",\n \"super\": \"pe-button\",\n row: \"pe-button-row\",\n // elements \n content: \"pe-button__content\",\n label: \"pe-button__label\",\n textLabel: \"pe-button__text-label\",\n wash: \"pe-button__wash\",\n washColor: \"pe-button__wash-color\",\n dropdown: \"pe-button__dropdown\",\n // states \n border: \"pe-button--border\",\n contained: \"pe-button--contained\",\n disabled: \"pe-button--disabled\",\n dropdownClosed: \"pe-button--dropdown-closed\",\n dropdownOpen: \"pe-button--dropdown-open\",\n extraWide: \"pe-button--extra-wide\",\n hasDropdown: \"pe-button--dropdown\",\n highLabel: \"pe-button--high-label\",\n inactive: \"pe-button--inactive\",\n raised: \"pe-button--raised\",\n selected: \"pe-button--selected\",\n separatorAtStart: \"pe-button--separator-start\",\n hasHover: \"pe-button--has-hover\"\n};\n\nvar classes = {\n component: \"pe-tabs\",\n // elements\n indicator: \"pe-tabs__indicator\",\n scrollButton: \"pe-tabs__scroll-button\",\n scrollButtonAtEnd: \"pe-tabs__scroll-button-end\",\n scrollButtonAtStart: \"pe-tabs__scroll-button-start\",\n tab: \"pe-tab\",\n tabContent: \"pe-tabs__tab-content\",\n tabRow: \"pe-tabs__row\",\n // states\n activeSelectable: \"pe-tabs__active--selectable\",\n isAtEnd: \"pe-tabs--end\",\n isAtStart: \"pe-tabs--start\",\n isAutofit: \"pe-tabs--autofit\",\n isMenu: \"pe-tabs--menu\",\n scrollable: \"pe-tabs--scrollable\",\n compactTabs: \"pe-tabs--compact\",\n tabHasIcon: \"pe-tabs__tab--icon\",\n tabRowCentered: \"pe-tabs__row--centered\",\n tabRowIndent: \"pe-tabs__row--indent\",\n // lookup\n label: buttonClasses.label\n};\n\nvar SCROLL_SPEED = 600; // px per second\n\nvar SCROLL_DELAY = .15; // seconds\n\nvar SCROLL_MIN_DURATION = .5; // seconds\n\nvar INDICATOR_SLIDE_MIN_DURATION = .25; // seconds\n\nvar getButtons = function getButtons(props) {\n return props.content ? props.content : props.tabs ? props.tabs : props.children || [];\n};\n\nvar getIndex = function getIndex(props) {\n var buttons = getButtons(props);\n var selectedIndex = Array.isArray(buttons) ? buttons.reduce(function (acc, tab, index) {\n return acc === undefined && !tab.disabled && tab.selected ? index : acc;\n }, undefined) : undefined;\n\n if (selectedIndex !== undefined) {\n return selectedIndex;\n }\n\n var attrsSelectedTabIndex = props.selectedTabIndex !== undefined ? props.selectedTabIndex : props.selectedTab !== undefined // deprecated\n ? props.selectedTab : undefined;\n return attrsSelectedTabIndex !== undefined ? attrsSelectedTabIndex : 0;\n};\n\nvar scrollButtonGetNewIndex = function scrollButtonGetNewIndex(index, tabs) {\n var minTabIndex = 0;\n var maxTabIndex = tabs.length - 1;\n return {\n backward: Math.max(index - 1, minTabIndex),\n forward: Math.min(index + 1, maxTabIndex)\n };\n};\n\nvar sortByLargestWidth = function sortByLargestWidth(a, b) {\n return a < b ? 1 : a > b ? -1 : 0;\n};\n\nvar _Tabs = function _Tabs(_ref) {\n var h = _ref.h,\n a = _ref.a,\n getRef = _ref.getRef,\n useState = _ref.useState,\n useEffect = _ref.useEffect,\n ScrollButton = _ref.ScrollButton,\n Tab = _ref.Tab,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"getRef\", \"useState\", \"useEffect\", \"ScrollButton\", \"Tab\"]);\n\n var buttons = getButtons(props);\n\n if (buttons.length === 0) {\n throw new Error(\"No tabs specified\");\n }\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n domElement = _useState2[0],\n setDomElement = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n RTL = _useState4[0],\n setRTL = _useState4[1];\n\n var tabIndex = getIndex(props) || 0;\n\n var _useState5 = useState(tabIndex),\n _useState6 = _slicedToArray(_useState5, 2),\n selectedTabIndex = _useState6[0],\n setSelectedTabIndex = _useState6[1];\n\n var _useState7 = useState(false),\n _useState8 = _slicedToArray(_useState7, 2),\n isScrollButtonAtStart = _useState8[0],\n setIsScrollButtonAtStart = _useState8[1];\n\n var _useState9 = useState(false),\n _useState10 = _slicedToArray(_useState9, 2),\n isScrollButtonAtEnd = _useState10[0],\n setIsScrollButtonAtEnd = _useState10[1];\n\n var _useState11 = useState([]),\n _useState12 = _slicedToArray(_useState11, 2),\n tabs = _useState12[0],\n setTabs = _useState12[1];\n\n var _useState13 = useState(),\n _useState14 = _slicedToArray(_useState13, 2),\n previousSelectedTabIndex = _useState14[0],\n setPreviousSelectedTabIndex = _useState14[1];\n\n var managesScroll = props.scrollable && !isTouch;\n var tabRowElement = domElement && domElement.querySelector(\".\".concat(classes.tabRow));\n var tabIndicatorElement = domElement && domElement.querySelector(\".\".concat(classes.indicator));\n var isTabsInited = !!domElement && tabs.length === buttons.length;\n useEffect(function () {\n if (!tabRowElement) return;\n\n var tabRowTabs = _toConsumableArray(tabRowElement.querySelectorAll(\"[data-index]\")).map(function (dom) {\n var index = parseInt(dom.getAttribute(\"data-index\"), 10);\n return {\n dom: dom,\n options: buttons[index]\n };\n });\n\n if (tabRowTabs) {\n setTabs(tabRowTabs);\n }\n }, [tabRowElement]);\n\n var handleScrollButtonClick = function handleScrollButtonClick(e, direction) {\n e.stopPropagation();\n e.preventDefault();\n var newIndex = scrollButtonGetNewIndex(selectedTabIndex, tabs)[direction];\n\n if (newIndex !== selectedTabIndex) {\n updateWithTabIndex({\n index: newIndex,\n animate: true\n });\n } else {\n scrollToTab(newIndex);\n }\n };\n\n var updateScrollButtons = function updateScrollButtons() {\n var scrollLeft = tabRowElement.scrollLeft;\n var minTabIndex = 0;\n var maxTabIndex = tabs.length - 1;\n var isAtStart = tabRowElement.scrollLeft === 0 && selectedTabIndex === minTabIndex;\n var isAtEnd = scrollLeft >= tabRowElement.scrollWidth - domElement.getBoundingClientRect().width - 1 && selectedTabIndex === maxTabIndex;\n setIsScrollButtonAtStart(isAtStart);\n setIsScrollButtonAtEnd(isAtEnd);\n };\n\n var updateIndicator = function updateIndicator(_ref2) {\n var selectedTabElement = _ref2.selectedTabElement,\n animate = _ref2.animate;\n\n if (!tabIndicatorElement) {\n return;\n }\n\n var parentRect = domElement.getBoundingClientRect();\n var rect = selectedTabElement.getBoundingClientRect();\n var buttonSize = managesScroll ? rect.height : 0;\n var translateX = RTL ? rect.right - parentRect.right + tabRowElement.scrollLeft + buttonSize : rect.left - parentRect.left + tabRowElement.scrollLeft - buttonSize;\n var scaleX = 1 / (parentRect.width - 2 * buttonSize) * rect.width;\n var transformCmd = \"translate(\".concat(translateX, \"px, 0) scaleX(\").concat(scaleX, \")\");\n var duration = animate ? INDICATOR_SLIDE_MIN_DURATION : 0;\n var style = tabIndicatorElement.style;\n style[\"transition-duration\"] = duration + \"s\";\n style.opacity = 1;\n style.transform = transformCmd;\n };\n\n var scrollToTab = function scrollToTab(tabIndex) {\n var scroller = tabRowElement; // Scroll to position of selected tab\n\n var tabLeft = tabs.slice(0, tabIndex).reduce(function (totalWidth, tabData) {\n return totalWidth + tabData.dom.getBoundingClientRect().width;\n }, 0); // Tabs at the far right will not fully move to the left\n // because the scrollable row will stick to the right \n // to get the max scroll left, we subtract the visible viewport from the scroll width\n\n var scrollerWidth = scroller.getBoundingClientRect().width; // frame width\n\n var scrollingWidth = scroller.scrollWidth;\n var maxScroll = scrollingWidth - scrollerWidth;\n var left = RTL ? -1 * Math.min(tabLeft, maxScroll) : Math.min(tabLeft, maxScroll);\n var currentLeft = scroller.scrollLeft;\n\n if (currentLeft !== left) {\n var duration = Math.abs(currentLeft - left) / SCROLL_SPEED;\n var delaySeconds = SCROLL_DELAY;\n setTimeout(function () {\n scrollTo({\n element: scroller,\n to: left,\n duration: Math.max(SCROLL_MIN_DURATION, duration),\n direction: \"horizontal\"\n }).then(updateScrollButtons);\n }, delaySeconds * 1000);\n }\n };\n\n var updateWithTabIndex = function updateWithTabIndex(_ref3) {\n var index = _ref3.index,\n animate = _ref3.animate;\n\n if (!tabs || !tabs.length) {\n return;\n }\n\n setSelectedTabIndex(index);\n var selectedTabElement = tabs[index].dom;\n\n if (selectedTabElement) {\n updateIndicator({\n selectedTabElement: selectedTabElement,\n animate: animate\n });\n }\n\n if (managesScroll) {\n updateScrollButtons();\n }\n\n scrollToTab(index);\n\n if (props.onChange) {\n props.onChange({\n index: index,\n options: tabs[index].options,\n el: selectedTabElement\n });\n }\n };\n\n useEffect(function () {\n if (!isTabsInited) {\n return;\n }\n\n setRTL(isRTL({\n element: domElement\n }));\n\n var redrawLargestWidth = function redrawLargestWidth() {\n if (props.largestWidth) {\n var widths = tabs.map(function (_ref4) {\n var dom = _ref4.dom;\n return dom.getBoundingClientRect().width;\n });\n var largest = widths.sort(sortByLargestWidth)[0];\n tabs.forEach(function (_ref5) {\n var dom = _ref5.dom;\n return dom.style.width = largest + \"px\";\n });\n }\n };\n\n var redraw = function redraw() {\n return redrawLargestWidth(), updateWithTabIndex({\n index: selectedTabIndex,\n animate: false\n });\n };\n\n var handleFontEvent = function handleFontEvent(_ref6) {\n var name = _ref6.name;\n return name === \"active\" || name === \"inactive\" ? redraw() : null;\n };\n\n subscribe(\"resize\", redraw);\n subscribe(\"webfontloader\", handleFontEvent);\n redraw();\n return function () {\n unsubscribe(\"resize\", redraw);\n unsubscribe(\"webfontloader\", handleFontEvent);\n };\n }, [isTabsInited]);\n var autofit = props.scrollable || props.centered ? false : props.autofit ? true : false; // Keep selected tab up to date\n\n if (tabIndex !== undefined && previousSelectedTabIndex !== tabIndex) {\n updateWithTabIndex({\n index: tabIndex,\n animate: true\n });\n }\n\n if (previousSelectedTabIndex !== tabIndex) {\n setPreviousSelectedTabIndex(tabIndex);\n }\n\n var componentProps = _extends({}, getRef(function (dom) {\n return dom && !domElement && setTimeout(function () {\n return setDomElement(dom);\n }, 0) // delay for Mithril 1.x\n ;\n }), filterSupportedAttributes(props), props.testId && {\n \"data-test-id\": props.testId\n }, {\n className: [classes.component, props.scrollable ? classes.scrollable : null, isScrollButtonAtStart ? classes.isAtStart : null, isScrollButtonAtEnd ? classes.isAtEnd : null, props.activeSelected ? classes.activeSelectable : null, autofit ? classes.isAutofit : null, props.compact ? classes.compactTabs : null, props.menu ? classes.isMenu : null, props.tone === \"dark\" ? \"pe-dark-tone\" : null, props.tone === \"light\" ? \"pe-light-tone\" : null, props.className || props[a[\"class\"]]].join(\" \")\n });\n\n var tabRow = buttons.map(function () {\n var buttonOpts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var index = arguments.length > 1 ? arguments[1] : undefined;\n\n var buttonOptsCombined = _extends({}, buttonOpts, {\n // These options can be overridden by `all`\n selected: index === selectedTabIndex,\n animateOnTap: props.animateOnTap !== false ? true : false\n }, props.all, {\n // Internal options, should not get overridden\n index: index,\n onSelect: function onSelect() {\n return updateWithTabIndex({\n index: index,\n animate: props.noIndicatorSlide ? false : true\n });\n }\n });\n\n return h(Tab, buttonOptsCombined);\n });\n var scrollButtonAtStart = null,\n scrollButtonAtEnd = null;\n\n if (props.scrollable) {\n scrollButtonAtStart = h(ScrollButton, _extends({}, {\n icon: props.scrollIconBackward,\n className: classes.scrollButtonAtStart,\n position: \"start\",\n events: _defineProperty({}, a.onclick, function (e) {\n return handleScrollButtonClick(e, \"backward\");\n }),\n isRTL: RTL\n }));\n scrollButtonAtEnd = h(ScrollButton, _extends({}, {\n icon: props.scrollIconForward,\n className: classes.scrollButtonAtEnd,\n position: \"end\",\n events: _defineProperty({}, a.onclick, function (e) {\n return handleScrollButtonClick(e, \"forward\");\n }),\n isRTL: RTL\n }));\n }\n\n var tabIndicator = props.hideIndicator ? null : h(\"div\", {\n className: classes.indicator\n });\n var componentContent = [scrollButtonAtStart, h(\"div\", {\n className: [classes.tabRow, props.centered ? classes.tabRowCentered : null, props.scrollable ? classes.tabRowIndent : null].join(\" \")\n }, [].concat(_toConsumableArray(tabRow), [tabIndicator])), scrollButtonAtEnd];\n return h(\"div\", componentProps, [props.before].concat(componentContent, [props.after]));\n};\n\nvar _Tab = function _Tab(_ref) {\n var h = _ref.h,\n a = _ref.a,\n Button = _ref.Button,\n Icon = _ref.Icon,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"Button\", \"Icon\"]);\n\n // Let internal onclick function co-exist with passed button option\n var events = props.events || {};\n\n events[a.onclick] = events[a.onclick] || function () {};\n\n var componentProps = _extends({}, props, props.testId && {\n \"data-test-id\": props.testId\n }, {\n \"data-index\": props.index,\n content: h(\"div\", {\n className: classes.tabContent\n }, [props.icon ? h(Icon, props.icon) : null, props.label ? h(\"div\", {\n className: classes.label\n }, h(\"span\", props.label)) : null]),\n className: [classes.tab, props.icon && props.label ? classes.tabHasIcon : null, props.className || props[a[\"class\"]]].join(\" \"),\n selected: props.selected,\n wash: false,\n ripple: true,\n events: _extends({}, events, _defineProperty({}, a.onclick, function (e) {\n props.onSelect();\n events[a.onclick](e);\n }))\n });\n\n var content = props.children;\n return h(Button, componentProps, content);\n};\n\nvar arrowBackward = \"\";\nvar arrowForward = \"\";\nvar _ScrollButton = function _ScrollButton(_ref) {\n var h = _ref.h,\n a = _ref.a,\n IconButton = _ref.IconButton,\n props = _objectWithoutProperties(_ref, [\"h\", \"a\", \"IconButton\"]);\n\n var icon = props.position === \"start\" ? props.icon || {\n svg: {\n content: h.trust(props.isRTL ? arrowForward : arrowBackward)\n }\n } : props.icon || {\n svg: {\n content: h.trust(props.isRTL ? arrowBackward : arrowForward)\n }\n };\n\n var componentProps = _extends({}, {\n className: [classes.scrollButton, props.className || props[a[\"class\"]]].join(\" \"),\n icon: icon,\n ripple: {\n center: true\n },\n events: props.events\n });\n\n return h(IconButton, componentProps);\n};\n\nexport { _ScrollButton, _Tab, _Tabs };\n","import m from 'mithril';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar currentState;\nvar call = Function.prototype.call.bind(Function.prototype.call);\n\nvar scheduleRender = () => // Call m within the function body so environments with a global instance of m (like flems.io) don't complain\nm.redraw();\n\nvar updateDeps = deps => {\n var state = currentState;\n var index = state.depsIndex++;\n var prevDeps = state.depsStates[index] || [];\n var shouldRecompute = deps === undefined ? true // Always compute\n : Array.isArray(deps) ? deps.length > 0 ? !deps.every((x, i) => x === prevDeps[i]) // Only compute when one of the deps has changed\n : !state.setup // Empty array: only compute at mount\n : false; // Invalid value, do nothing\n\n state.depsStates[index] = deps;\n return shouldRecompute;\n};\n\nvar effect = function effect() {\n var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n\n if (shouldRecompute) {\n var runCallbackFn = () => {\n var teardown = fn(); // A callback may return a function. If any, add it to the teardowns:\n\n if (typeof teardown === \"function\") {\n // Store this this function to be called at unmount\n state.teardowns.set(fn, teardown); // At unmount, call re-render at least once\n\n state.teardowns.set(\"_\", scheduleRender);\n }\n };\n\n state.updates.push(isAsync ? () => new Promise(resolve => requestAnimationFrame(resolve)).then(runCallbackFn) : runCallbackFn);\n }\n };\n};\n\nvar updateState = function updateState(initialValue) {\n var newValueFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value => value;\n var state = currentState;\n var index = state.statesIndex++;\n\n if (!state.setup) {\n state.states[index] = initialValue;\n }\n\n return [state.states[index], value => {\n var previousValue = state.states[index];\n var newValue = newValueFn(value, index);\n state.states[index] = newValue;\n\n if (JSON.stringify(newValue) !== JSON.stringify(previousValue)) {\n scheduleRender(); // Calling redraw multiple times: Mithril will drop extraneous redraw calls, so performance should not be an issue\n }\n }, index];\n};\n\nvar useState = initialValue => {\n var state = currentState;\n\n var newValueFn = (value, index) => typeof value === \"function\" ? value(state.states[index]) : value;\n\n return updateState(initialValue, newValueFn);\n};\n\nvar useEffect = effect(true);\nvar useLayoutEffect = effect();\n\nvar useReducer = (reducer, initialArg, initFn) => {\n var state = currentState; // From the React docs: You can also create the initial state lazily. To do this, you can pass an init function as the third argument. The initial state will be set to init(initialArg).\n\n var initialValue = !state.setup && initFn ? initFn(initialArg) : initialArg;\n\n var getValueDispatch = () => {\n var [value, setValue, index] = updateState(initialValue);\n\n var dispatch = action => {\n var previousValue = state.states[index];\n return setValue( // Next state:\n reducer(previousValue, action));\n };\n\n return [value, dispatch];\n };\n\n return getValueDispatch();\n};\n\nvar useRef = initialValue => {\n // A ref is a persisted object that will not be updated, so it has no setter\n var [value] = updateState({\n current: initialValue\n });\n return value;\n};\n\nvar useMemo = (fn, deps) => {\n var state = currentState;\n var shouldRecompute = updateDeps(deps);\n var [memoized, setMemoized] = !state.setup ? updateState(fn()) : updateState();\n\n if (state.setup && shouldRecompute) {\n setMemoized(fn());\n }\n\n return memoized;\n};\n\nvar useCallback = (fn, deps) => useMemo(() => fn, deps);\n\nvar withHooks = (component, initialProps) => {\n var init = vnode => {\n Object.assign(vnode.state, {\n setup: false,\n states: [],\n statesIndex: 0,\n depsStates: [],\n depsIndex: 0,\n updates: [],\n teardowns: new Map() // Keep track of teardowns even when the update was run only once\n\n });\n };\n\n var update = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n vnode.state.updates.forEach(call);\n } finally {\n Object.assign(vnode.state, {\n setup: true,\n updates: [],\n depsIndex: 0,\n statesIndex: 0\n });\n currentState = prevState;\n }\n };\n\n var render = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n return component(_objectSpread2({}, initialProps, {}, vnode.attrs, {\n vnode,\n children: vnode.children\n }));\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n } finally {\n currentState = prevState;\n }\n };\n\n var teardown = vnode => {\n var prevState = currentState;\n currentState = vnode.state;\n\n try {\n [...vnode.state.teardowns.values()].forEach(call);\n } finally {\n currentState = prevState;\n }\n };\n\n return {\n oninit: init,\n oncreate: update,\n onupdate: update,\n view: render,\n onremove: teardown\n };\n};\n\nvar htmlAttributes = {\n accept: \"accept\",\n acceptcharset: \"acceptcharset\",\n accesskey: \"accesskey\",\n action: \"action\",\n allowfullscreen: \"allowfullscreen\",\n allowtransparency: \"allowtransparency\",\n alt: \"alt\",\n async: \"async\",\n autocomplete: \"autocomplete\",\n autofocus: \"autofocus\",\n autoplay: \"autoplay\",\n capture: \"capture\",\n cellpadding: \"cellpadding\",\n cellspacing: \"cellspacing\",\n challenge: \"challenge\",\n charset: \"charset\",\n checked: \"checked\",\n class: \"className\",\n classid: \"classid\",\n classname: \"className\",\n // Special case:\n className: \"className\",\n colspan: \"colspan\",\n cols: \"cols\",\n content: \"content\",\n contenteditable: \"contenteditable\",\n contextmenu: \"contextmenu\",\n controls: \"controls\",\n coords: \"coords\",\n crossorigin: \"crossorigin\",\n data: \"data\",\n datetime: \"datetime\",\n default: \"default\",\n defer: \"defer\",\n dir: \"dir\",\n disabled: \"disabled\",\n download: \"download\",\n draggable: \"draggable\",\n enctype: \"enctype\",\n form: \"form\",\n formaction: \"formaction\",\n formenctype: \"formenctype\",\n formmethod: \"formmethod\",\n formnovalidate: \"formnovalidate\",\n formtarget: \"formtarget\",\n frameborder: \"frameborder\",\n headers: \"headers\",\n height: \"height\",\n hidden: \"hidden\",\n high: \"high\",\n href: \"href\",\n hreflang: \"hreflang\",\n htmlfor: \"htmlfor\",\n httpequiv: \"httpequiv\",\n icon: \"icon\",\n id: \"id\",\n inputmode: \"inputmode\",\n integrity: \"integrity\",\n is: \"is\",\n keyparams: \"keyparams\",\n keytype: \"keytype\",\n kind: \"kind\",\n label: \"label\",\n lang: \"lang\",\n list: \"list\",\n loop: \"loop\",\n low: \"low\",\n manifest: \"manifest\",\n marginheight: \"marginheight\",\n marginwidth: \"marginwidth\",\n max: \"max\",\n maxlength: \"maxlength\",\n media: \"media\",\n mediagroup: \"mediagroup\",\n method: \"method\",\n min: \"min\",\n minlength: \"minlength\",\n multiple: \"multiple\",\n muted: \"muted\",\n name: \"name\",\n novalidate: \"novalidate\",\n nonce: \"nonce\",\n onblur: \"onblur\",\n onchange: \"onchange\",\n onclick: \"onclick\",\n onfocus: \"onfocus\",\n oninput: \"oninput\",\n onkeydown: \"onkeydown\",\n onkeyup: \"onkeyup\",\n onmousedown: \"onmousedown\",\n onmouseout: \"onmouseout\",\n onmouseover: \"onmouseover\",\n onmouseup: \"onmouseup\",\n onscroll: \"onscroll\",\n onsubmit: \"onsubmit\",\n ontouchend: \"ontouchend\",\n ontouchmove: \"ontouchmove\",\n ontouchstart: \"ontouchstart\",\n open: \"open\",\n optimum: \"optimum\",\n pattern: \"pattern\",\n placeholder: \"placeholder\",\n poster: \"poster\",\n preload: \"preload\",\n radiogroup: \"radiogroup\",\n readonly: \"readonly\",\n rel: \"rel\",\n required: \"required\",\n reversed: \"reversed\",\n role: \"role\",\n rowspan: \"rowspan\",\n rows: \"rows\",\n sandbox: \"sandbox\",\n scope: \"scope\",\n scoped: \"scoped\",\n scrolling: \"scrolling\",\n seamless: \"seamless\",\n selected: \"selected\",\n shape: \"shape\",\n size: \"size\",\n sizes: \"sizes\",\n span: \"span\",\n spellcheck: \"spellcheck\",\n src: \"src\",\n srcdoc: \"srcdoc\",\n srclang: \"srclang\",\n srcset: \"srcset\",\n start: \"start\",\n step: \"step\",\n style: \"style\",\n summary: \"summary\",\n tabindex: \"tabindex\",\n target: \"target\",\n title: \"title\",\n type: \"type\",\n usemap: \"usemap\",\n value: \"value\",\n width: \"width\",\n wmode: \"wmode\",\n wrap: \"wrap\"\n};\n\nvar a = htmlAttributes;\nvar h = m || {};\nvar trust = h.trust;\n\nh.trust = (html, wrapper) => wrapper ? m(wrapper, trust(html)) : trust(html);\n\nh.displayName = \"mithril\";\nh.fragment = m.fragment;\nvar jsx = m;\nvar getRef = fn => ({\n oncreate: vnode => fn(vnode.dom)\n});\nvar cast = withHooks;\n\nexport { a, cast, getRef, h, jsx, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState };\n","import { _ScrollButton, _Tab, _Tabs } from 'polythene-core-tabs';\nimport { Button } from 'polythene-mithril-button';\nimport { Icon } from 'polythene-mithril-icon';\nimport { IconButton } from 'polythene-mithril-icon-button';\nimport { cast, h, a, getRef, useState, useEffect } from 'cyano-mithril';\n\nvar ScrollButton = cast(_ScrollButton, {\n h: h,\n a: a,\n IconButton: IconButton\n});\nvar Tab = cast(_Tab, {\n h: h,\n a: a,\n Button: Button,\n Icon: Icon\n});\nvar Tabs = cast(_Tabs, {\n h: h,\n a: a,\n getRef: getRef,\n useState: useState,\n useEffect: useEffect,\n ScrollButton: ScrollButton,\n Tab: Tab\n});\nTabs[\"displayName\"] = \"Tabs\";\n\nexport { Tabs };\n","'use strict';\n\nvar emptyArray = [];\nvar emptyObject = {};\nvar type = emptyObject.toString;\nvar ARRAY = type.call(emptyArray);\nvar OBJECT = type.call(emptyObject);\nvar STRING = type.call('');\nvar FUNCTION = type.call(type);\nvar own = emptyObject.hasOwnProperty;\nvar freeze = Object.freeze || function(o) {return o};\n\n\nfunction defaults(target, source) {\n for (var k in source) if (own.call(source, k)) {\n if (k.indexOf('$') && !(k in target)) target[k] = source[k];\n }\n return target\n}\n\nfunction cartesian(a,b) {\n var res = [], i, j;\n for (j in b) if(own.call(b, j))\n for (i in a) if(own.call(a, i))\n res.push(a[i] + b[j]);\n return res\n}\n\n// \"Tokenizes\" the selectors into parts relevant for the next function.\n// Strings and comments are matched, but ignored afterwards.\n// This is not a full tokenizers. It only recognizes comas, parentheses,\n// strings and comments.\n// regexp generated by scripts/regexps.js then trimmed by hand\nvar selectorTokenizer = /[(),]|\"(?:\\\\.|[^\"\\n])*\"|'(?:\\\\.|[^'\\n])*'|\\/\\*[\\s\\S]*?\\*\\//g;\n\n\n/**\n * This will split a coma-separated selector list into individual selectors,\n * ignoring comas in strings, comments and in :pseudo-selectors(parameter, lists).\n *\n * @param {string} selector\n * @return {string[]}\n */\n\nfunction splitSelector(selector) {\n var indices = [], res = [], inParen = 0, o;\n /*eslint-disable no-cond-assign*/\n while (o = selectorTokenizer.exec(selector)) {\n /*eslint-enable no-cond-assign*/\n switch (o[0]) {\n case '(': inParen++; break\n case ')': inParen--; break\n case ',': if (inParen) break; indices.push(o.index);\n }\n }\n for (o = indices.length; o--;){\n res.unshift(selector.slice(indices[o] + 1));\n selector = selector.slice(0, indices[o]);\n }\n res.unshift(selector);\n return res\n}\n\n// Like the `selectorTokenizer`, but for the `&` operator\nvar ampersandTokenizer = /&|\"(?:\\\\.|[^\"\\n])*\"|'(?:\\\\.|[^'\\n])*'|\\/\\*[\\s\\S]*?\\*\\//g;\n\nfunction ampersand (selector, parents) {\n var indices = [], split = [], res, o;\n /*eslint-disable no-cond-assign*/\n while (o = ampersandTokenizer.exec(selector)) {\n /*eslint-enable no-cond-assign*/\n if (o[0] == '&') indices.push(o.index);\n }\n for (o = indices.length; o--;){\n split.unshift(selector.slice(indices[o] + 1));\n selector = selector.slice(0, indices[o]);\n }\n split.unshift(selector);\n if (split.length === 1) split.unshift('');\n res = [split[0]];\n for (o = 1; o < split.length; o++) {\n res = cartesian(res, cartesian(parents, [split[o]]));\n }\n return res.join(',')\n}\n\nfunction flatIter (f) {\n return function iter(arg) {\n if (type.call(arg) === ARRAY) for (var i= 0 ; i < arg.length; i ++) iter(arg[i]);\n else f(arg);\n }\n}\n\nfunction decamelize(match) {\n return '-' + match.toLowerCase()\n}\n\n/**\n * Handles the property:value; pairs.\n *\n * @param {object} state - holds the localizer- and walker-related methods\n * and state\n * @param {object} emit - the contextual emitters to the final buffer\n * @param {string} prefix - the current property or a prefix in case of nested\n * sub-properties.\n * @param {array|object|string} o - the declarations.\n * @param {boolean} local - are we in @local or in @global scope.\n */\n\nfunction declarations(state, emit, prefix, o, local) {\n var k, v, kk;\n if (o==null) return\n\n switch ( type.call(o = o.valueOf()) ) {\n case ARRAY:\n for (k = 0; k < o.length; k++)\n\n declarations(state, emit, prefix, o[k], local);\n\n break\n case OBJECT:\n // prefix is falsy iif it is the empty string, which means we're at the root\n // of the declarations list.\n prefix = (prefix && prefix + '-');\n for (k in o) if (own.call(o, k)){\n v = o[k];\n if (/\\$/.test(k)) {\n for (kk in (k = k.split('$'))) if (own.call(k, kk)) {\n\n declarations(state, emit, prefix + k[kk], v, local);\n\n }\n } else {\n\n declarations(state, emit, prefix + k, v, local);\n\n }\n }\n break\n default:\n // prefix is falsy when it is \"\", which means that we're\n // at the top level.\n // `o` is then treated as a `property:value` pair, or a\n // semi-colon-separated list thereof.\n // Otherwise, `prefix` is the property name, and\n // `o` is the value.\n\n // restore the dashes\n k = prefix.replace(/_/g, '-').replace(/[A-Z]/g, decamelize);\n\n if (local && (k == 'animation-name' || k == 'animation' || k == 'list-style')) {\n // no need to tokenize here a plain `.split(',')` has all bases covered.\n // We may 'localize' a comment, but it's not a big deal.\n o = o.split(',').map(function (o) {\n\n return o.replace(/^\\s*(?:(var\\([^)]+\\))|:?global\\(\\s*([_A-Za-z][-\\w]*)\\s*\\)|()(-?[_A-Za-z][-\\w]*))/, state.localizeReplacer)\n\n }).join(',');\n }\n\n emit.decl(k, o);\n\n }\n}\n\n/**\n * Handles a single at-rules\n *\n * @param {object} state - holds the localizer- and walker-related methods\n * and state\n * @param {object} emit - the contextual emitters to the final buffer\n * @param {array} k - The parsed at-rule, including the parameters,\n * if takes both parameters and a block.\n * k == [match, fullAtRule, atRuleType, params?]\n * So in `@-webkit-keyframes foo`, we have\n * - match = \"@-webkit-keyframes foo\"\n * - fullAtRule = \"@-webkit-keyframes\"\n * - atRuleType = \"keyframes\"\n * - params = \"foo\"\n * @param {string|string[]|object|object[]} v - Either parameters for\n * block-less rules or\n * their block\n * for the others.\n * @param {string} prefix - the current selector or the selector prefix\n * in case of nested rules\n * @param {boolean} local - are we in @local or in @global scope?\n * @param {string} nestingDepth - are we nested in an at-rule or a selector?\n */\n\nfunction atRules(state, emit, k, v, prefix, local, nestingDepth) {\n\n // First iterate over user-provided at-rules and return if one of them corresponds to the current one\n for (var i = 0; i < state.$atHandlers.length; i++) {\n\n if (state.$atHandlers[i](state, emit, k, v, prefix, local, nestingDepth)) return\n\n }\n\n // using `/^global$/.test(k[2])` rather that 'global' == k[2] gzips\n // slightly better thanks to the regexps tests further down.\n // It is slightly less efficient but this isn't a critical path.\n\n if (!k[3] && /^global$/.test(k[2])) {\n\n rules(state, emit, prefix, v, 0, nestingDepth);\n\n\n } else if (!k[3] && /^local$/.test(k[2])) {\n\n rules(state, emit, prefix, v, 1, nestingDepth);\n\n\n } else if (k[3] && /^adopt$/.test(k[2])) {\n\n if (!local || nestingDepth) return emit.err('@adopt global or nested: ' + k[0])\n\n if (!/^\\.?[_A-Za-z][-\\w]*$/.test(k[3])) return emit.err('bad adopter ' + JSON.stringify(k[3]) + ' in ' + k[0])\n\n i = [];\n flatIter(function(adoptee, asString) {\n\n if(adoptee == null || !/^\\.?[_A-Za-z][-\\w]*(?:\\s+\\.?[_A-Za-z][-\\w]*)*$/.test(asString = adoptee + '')) emit.err('bad adoptee '+ JSON.stringify(adoptee) + ' in ' + k[0]);\n\n else i.push(asString.replace(/\\./g, ''));\n\n })(v);\n\n // we may end up with duplicate classes but AFAIK it has no consequences on specificity.\n if (i.length) {\n state.localize(k[3] = k[3].replace(/\\./g, ''));\n state.names[k[3]] += (' ' + i.join(' '));\n }\n\n\n } else if (!k[3] && /^(?:namespace|import|charset)$/.test(k[2])) {\n flatIter(function(v) {\n\n emit.atrule(k[1], k[2], v);\n\n })(v);\n\n\n } else if (!k[3] && /^(?:font-face|viewport)$/.test(k[2])) {\n flatIter(function(v) {\n\n emit.atrule(k[1], k[2], k[3], 1);\n\n declarations(state, emit, '', v, local);\n\n emit._atrule();\n\n })(v);\n\n } else if (k[3] && /^(?:media|supports|page|keyframes)$/.test(k[2])) {\n\n if (local && 'keyframes' == k[2]) {\n k[3] = k[3].replace(\n // generated by script/regexps.js\n /(var\\([^)]+\\))|:?global\\(\\s*([_A-Za-z][-\\w]*)\\s*\\)|()(-?[_A-Za-z][-\\w]*)/,\n state.localizeReplacer\n );\n }\n\n\n emit.atrule(k[1], k[2], k[3], 1);\n\n if ('page' == k[2]) {\n\n declarations(state, emit, '', v, local);\n\n } else {\n\n rules(\n state, emit,\n 'keyframes' == k[2] ? '' : prefix,\n v, local, nestingDepth + 1\n );\n\n }\n\n emit._atrule();\n\n } else {\n\n emit.err('Unsupported at-rule: ' + k[0]);\n\n }\n}\n\n/**\n * Add rulesets and other CSS tree to the sheet.\n *\n * @param {object} state - holds the localizer- and walker-related methods\n * and state\n * @param {object} emit - the contextual emitters to the final buffer\n * @param {string} prefix - the current selector or a prefix in case of nested rules\n * @param {array|string|object} tree - a source object or sub-object.\n * @param {string} nestingDepth - are we nested in an at-rule?\n * @param {boolean} local - are we in @local or in @global scope?\n */\nfunction rules(state, emit, prefix, tree, local, nestingDepth) {\n var k, v, inDeclaration, kk;\n\n switch (type.call(tree)) {\n\n case OBJECT:\n for (k in tree) if (own.call(tree, k)) {\n v = tree[k];\n\n if (prefix.length > 0 && /^[-\\w$]+$/.test(k)) {\n if (!inDeclaration) {\n inDeclaration = 1;\n\n emit.rule(prefix);\n\n }\n if (/\\$/.test(k)) {\n for (kk in (k = k.split('$'))) if (own.call(k, kk)) {\n\n declarations(state, emit, k[kk], v, local);\n\n }\n } else {\n\n declarations(state, emit, k, v, local);\n\n }\n\n } else if (/^@/.test(k)) {\n // Handle At-rules\n inDeclaration = 0;\n\n atRules(state, emit,\n /^(.(?:-[\\w]+-)?([_A-Za-z][-\\w]*))\\b\\s*(.*?)\\s*$/.exec(k) || [k,'@','',''],\n v, prefix, local, nestingDepth\n );\n\n } else {\n // selector or nested sub-selectors\n inDeclaration = 0;\n\n rules(\n state, emit,\n // build the selector `prefix` for the next iteration.\n // ugly and full of redundant bits but so far the fastest/shortest.gz\n /*0 if*/(prefix.length > 0 && (/,/.test(prefix) || /,/.test(k))) ?\n\n /*0 then*/ (kk = splitSelector(prefix), splitSelector(\n local ?\n\n k.replace(\n /(\"(?:\\\\.|[^\"\\n])*\"|'(?:\\\\.|[^'\\n])*'|\\/\\*[\\s\\S]*?\\*\\/)|:global\\(\\s*(\\.-?[_A-Za-z][-\\w]*)\\s*\\)|(\\.)(-?[_A-Za-z][-\\w]*)/g,\n state.localizeReplacer\n ) :\n\n k\n ).map(function (k) {\n return /&/.test(k) ? ampersand(k, kk) : kk.map(function(kk) {\n return kk + k\n }).join(',')\n }).join(',')) :\n\n /*0 else*/ /*1 if*/ /&/.test(k) ?\n\n /*1 then*/ ampersand(\n local ?\n\n k.replace(\n /(\"(?:\\\\.|[^\"\\n])*\"|'(?:\\\\.|[^'\\n])*'|\\/\\*[\\s\\S]*?\\*\\/)|:global\\(\\s*(\\.-?[_A-Za-z][-\\w]*)\\s*\\)|(\\.)(-?[_A-Za-z][-\\w]*)/g,\n state.localizeReplacer\n ) :\n\n k,\n [prefix]\n ) :\n\n /*1 else*/ prefix + (\n local ?\n\n k.replace(\n /(\"(?:\\\\.|[^\"\\n])*\"|'(?:\\\\.|[^'\\n])*'|\\/\\*[\\s\\S]*?\\*\\/)|:global\\(\\s*(\\.-?[_A-Za-z][-\\w]*)\\s*\\)|(\\.)(-?[_A-Za-z][-\\w]*)/g,\n state.localizeReplacer\n ) :\n\n k\n ),\n v, local, nestingDepth + 1\n );\n\n }\n }\n\n break\n\n case ARRAY:\n for (k = 0; k < tree.length; k++){\n\n rules(state, emit, prefix, tree[k], local, nestingDepth);\n\n }\n break\n\n case STRING:\n // CSS hacks or ouptut of `j2c.inline`.\n if (!prefix.length) emit.err('No selector');\n emit.rule(prefix || ' ');\n\n declarations(state, emit, '', tree, local);\n\n }\n}\n\n// This is the first entry in the filters array, which is\n// actually the last step of the compiler. It inserts\n// closing braces to close normal (non at-) rules (those\n// that start with a selector). Doing it earlier is\n// impossible without passing state around in unrelated code\n// or ending up with duplicated selectors when the source tree\n// contains arrays.\n// There's no `_rule` handler, because the core compiler never\n// calls it.\nfunction closeSelectors(next, inline) {\n var lastSelector;\n return inline ? next : {\n init: function(){lastSelector = 0; next.init();},\n done: function (raw) {\n if (lastSelector) {next._rule(); lastSelector = 0;}\n return next.done(raw)\n },\n atrule: function (rule, kind, param, takesBlock) {\n if (lastSelector) {next._rule(); lastSelector = 0;}\n next.atrule(rule, kind, param, takesBlock);\n },\n _atrule: function (rule) {\n if (lastSelector) {next._rule(); lastSelector = 0;}\n next._atrule(rule);\n },\n rule: function (selector) {\n if (selector !== lastSelector){\n if (lastSelector) next._rule();\n next.rule(selector);\n lastSelector = selector;\n }\n }\n }\n}\n\nfunction global(x) {\n return ':global(' + x + ')'\n}\n\nfunction kv (k, v, o) {\n o = {};\n o[k] = v;\n return o\n}\n\nfunction at (rule, params, block) {\n if (\n arguments.length < 3\n ) {\n // inner curry!\n var _at = at.bind.apply(at, [null].concat([].slice.call(arguments,0)));\n // So that it can be used as a key in an ES6 object literal.\n _at.toString = function(){return '@' + rule + ' ' + params};\n return _at\n }\n else return kv('@' + rule +' ' + params, block)\n}\n\nfunction j2c() {\n\n // the buffer that accumulates the output. Initialized in `$sink.i()`\n var buf, err;\n\n // the bottom of the 'codegen' stream. Mirrors the `$filter` plugin API.\n var $sink = {\n init: function(){buf=[], err=[];},\n done: function (raw) {\n if (err.length != 0) throw new Error('j2c error(s): ' + JSON.stringify(err,null,2) + 'in context:\\n' + buf.join(''))\n return raw ? buf : buf.join('')\n },\n err: function(msg) {\n err.push(msg);\n buf.push('/* +++ ERROR +++ ' + msg + ' */\\n');\n },\n atrule: function (rule, kind, param, takesBlock) {\n buf.push(rule, param && ' ', param, takesBlock ? ' {' : ';', _instance.endline);\n },\n // close atrule\n _atrule: function () {buf.push('}', _instance.endline);},\n rule: function (selector) {buf.push(selector, ' {', _instance.endline);},\n // close rule\n _rule: function () {buf.push('}', _instance.endline);},\n decl: function (prop, value) {buf.push(prop, prop && ':', value, ';', _instance.endline);}\n };\n\n // holds the `$filter` and `$at` handlers\n var $filters = [closeSelectors];\n var $atHandlers = [];\n\n // the public API (see the main docs)\n var _instance = {\n at: at,\n global: global,\n kv: kv,\n names: {},\n endline: '\\n',\n suffix: '__j2c-' +\n // 128 bits of randomness\n Math.floor(Math.random() * 0x100000000).toString(36) + '-' +\n Math.floor(Math.random() * 0x100000000).toString(36) + '-' +\n Math.floor(Math.random() * 0x100000000).toString(36) + '-' +\n Math.floor(Math.random() * 0x100000000).toString(36),\n $plugins: [],\n sheet: function(tree) {\n var emit = _createOrRetrieveStream(0);\n emit.init();\n rules(\n _walkers[0],\n emit,\n '', // prefix\n tree,\n 1, // local, by default\n 0 // nesting depth\n );\n\n return emit.done()\n },\n inline: function (tree, options) {\n var emit = _createOrRetrieveStream(1);\n emit.init();\n declarations(\n _walkers[1],\n emit,\n '', // prefix\n tree,\n !(options && options.global) // local, by default\n );\n return emit.done()\n }\n };\n\n // The `state` (for the core functions) / `walker` (for the plugins) tables.\n var _walkers = [\n // for j2c.sheet\n {\n // helpers for locaizing class and animation names\n localizeReplacer: _localizeReplacer, // second argument to String.prototype.replace\n localize: _localize, // mangles local names\n names: _instance.names, // local => mangled mapping\n $atHandlers: $atHandlers, // extra at-rules\n // The core walker methods, to be provided to plugins\n atrule: atRules,\n decl: declarations,\n rule: rules\n },\n // likewise, for j2c.inline (idem with `$a`, `a` and `s` removed)\n {\n localizeReplacer: _localizeReplacer,\n localize: _localize,\n names: _instance.names,\n decl: declarations\n }\n ];\n\n\n // inner helpers\n\n var _use = flatIter(function(plugin) {\n // `~n` is falsy for `n === -1` and truthy otherwise.\n // Works well to turn the result of `a.indexOf(x)`\n // into a value that reflects the presence of `x` in\n // `a`.\n if (~_instance.$plugins.indexOf(plugin)) return\n\n _instance.$plugins.push(plugin);\n\n if (type.call(plugin) === FUNCTION) plugin = plugin(_instance);\n\n if (!plugin) return\n\n flatIter(function(filter) {\n $filters.push(filter);\n })(plugin.$filter || emptyArray);\n\n flatIter(function(handler) {\n $atHandlers.push(handler);\n })(plugin.$at || emptyArray);\n\n defaults(_instance.names, plugin.$names || emptyObject);\n\n _use(plugin.$plugins || emptyArray);\n\n $sink = plugin.$sink || $sink;\n\n defaults(_instance, plugin);\n });\n\n\n var _streams = [];\n /**\n * returns the codegen streams, creating them if necessary\n * @param\n */\n function _createOrRetrieveStream(inline) {\n // build the stream processors if needed\n if (!_streams.length) {\n // append the $sink as the ultimate filter\n $filters.push(function(_, inline) {return inline ? {init:$sink.init, decl:$sink.decl, done:$sink.done, err: $sink.err} : $sink});\n for(var i = 0; i < 2; i++){ // 0 for j2c.sheet, 1 for j2c.inline\n for (var j = $filters.length; j--;) {\n _streams[i] = freeze(\n defaults(\n $filters[j](_streams[i], !!i),\n _streams[i]\n )\n );\n }\n }\n }\n return _streams[inline]\n }\n\n /**\n * Returns a localized version of a given name.\n * Registers the pair in `instnace.name` if needed.\n *\n * @param {string} name - the name to localize\n * @return {string} - the localized version\n */\n function _localize(name) {\n if (!_instance.names[name]) _instance.names[name] = name + _instance.suffix;\n return _instance.names[name].match(/^\\S+/)\n }\n\n /**\n * Used as second argument for str.replace(localizeRegex, replacer)\n * `ignore`, `global` and `(dot, name)` are mutually exclusive\n *\n * @param {string} match - the whole match (ignored)\n * @param {string|null} ignore - a comment or a string literal\n * @param {string|null} global - a global name\n * @param {string|null} dot - either '.' for a local class name or the empty string otherwise\n * @param {string|null} name - the name to localize\n * @return {string}\n */\n function _localizeReplacer(match, ignore, global$$1, dot, name) {\n return ignore || global$$1 || dot + _localize(name)\n }\n\n _use(emptyArray.slice.call(arguments));\n return _instance\n}\n\nmodule.exports = j2c;\n","import J2c from 'j2c';\nimport { isServer } from 'polythene-core';\n\n// @ts-check\n\n/**\n * @typedef {{[selector:string] : object}} Style\n * @typedef {Array element.\n * @param {...Array} styles - List of style Objects\n * @returns {void}\n */\n\nvar add = function add(id) {\n for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n styles[_key - 1] = arguments[_key];\n }\n\n return addToDocument.apply(void 0, [{\n id: id\n }].concat(styles));\n};\n/**\n * Removes a style from head.\n * @param {string} id - Identifier, used as HTMLElement id for the attached element.\n * @returns {void}\n */\n\n\nvar remove = function remove(id) {\n if (isServer) return;\n\n if (id) {\n var old = document.getElementById(id);\n\n if (old && old.parentNode) {\n old.parentNode.removeChild(old);\n }\n }\n};\n/**\n * Adds styles to the head.\n * @param {object} params\n * @param {string} params.id - Identifier, used as HTMLElement id for the attached element.\n * @param {object} [params.document] - Document reference.\n * @param {...Array} styles - List of style Objects.\n * @returns {void}\n */\n\n\nvar addToDocument = function addToDocument(_ref) {\n var id = _ref.id,\n document = _ref.document;\n if (isServer) return;\n var safeId = id.replace(ID_REGEX, \"_\");\n remove(safeId);\n var documentRef = document || window.document;\n var styleEl = documentRef.createElement(\"style\");\n\n if (safeId) {\n styleEl.setAttribute(\"id\", safeId);\n }\n\n for (var _len2 = arguments.length, styles = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n styles[_key2 - 1] = arguments[_key2];\n }\n\n styles.forEach(function (styles) {\n // each style returns a list\n if (Object.keys(styles).length) {\n styles.forEach(function (style) {\n var scoped = {\n \"@global\": style\n };\n var sheet = j2c.sheet(scoped);\n styleEl.appendChild(documentRef.createTextNode(sheet));\n });\n }\n });\n documentRef.head.appendChild(styleEl);\n};\n/**\n * \n * @param {object} params\n * @param {StyleObject|Array} params.styles\n * @param {string} [params.scope]\n * @returns {Array}\n */\n\n\nvar wrapInScope = function wrapInScope(_ref2) {\n var styles = _ref2.styles,\n scope = _ref2.scope;\n return scope ? [_defineProperty({}, scope, styles)] : styles;\n};\n/**\n * Adds component styles to head.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars\n * @param {object} [params.customVars]\n * @param {string} [params.mediaQuery]\n * @param {string} [params.scope]\n * @param {string} [params.identifier]\n * @returns {void}\n */\n\n\nvar addStyle = function addStyle(_ref4) {\n var selectors = _ref4.selectors,\n styleFns = _ref4.fns,\n vars = _ref4.vars,\n customVars = _ref4.customVars,\n mediaQuery = _ref4.mediaQuery,\n scope = _ref4.scope,\n identifier = _ref4.identifier;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n }).filter(function (list) {\n return list.length > 0;\n });\n\n if (styles.length === 0) {\n return;\n }\n\n var id = identifier || selector.trim().replace(/^[^a-z]?(.*)/, \"$1\");\n add(id, wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n }));\n};\n/**\n * Returns a list of style objects for a component.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars - Style configuration variables\n * @param {object} [params.customVars] - Style configuration variables\n * @param {string} [params.mediaQuery] - Mediaquery string\n * @param {string} [params.scope] - Scope selector\n * @returns {Array}\n */\n\n\nvar getStyle = function getStyle(_ref5) {\n var selectors = _ref5.selectors,\n styleFns = _ref5.fns,\n vars = _ref5.vars,\n customVars = _ref5.customVars,\n mediaQuery = _ref5.mediaQuery,\n scope = _ref5.scope;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n });\n return wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n });\n};\n/**\n * Adds component styles to head.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createAddStyle = function createAddStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {void}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref6 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref6.mediaQuery,\n scope = _ref6.scope;\n\n return addStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n });\n }\n );\n};\n/**\n * Returns styles for a component.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createGetStyle = function createGetStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {Array}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref7 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref7.mediaQuery,\n scope = _ref7.scope;\n\n return [getStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n })];\n }\n );\n};\n\nvar styler = {\n add: add,\n addStyle: addStyle,\n addToDocument: addToDocument,\n createAddStyle: createAddStyle,\n createGetStyle: createGetStyle,\n getStyle: getStyle,\n remove: remove\n};\n\n// @ts-check\n\n/**\n * @typedef {(selector: string, vars: object, customVars?: object) => Array} StyleFn\n * @typedef {{[s: string]: StyleFn}} StyleCollection\n */\n\n/**\n * Wraps an object with a selector.\n * @param {string} selector \n * @param {object} o \n * @returns {object}\n */\nvar sel = function sel(selector, o) {\n return _defineProperty({}, selector, o);\n};\n/**\n * Creates a right-to-left selector.\n * @param {string} selector\n * @returns {string}\n */\n\nvar selectorRTL = function selectorRTL(selector) {\n return \"*[dir=rtl] \".concat(selector, \", .pe-rtl \").concat(selector);\n};\n/**\n * Creates a rgba CSS color string.\n * @param {string} colorStr \n * @param {number} opacity \n * @returns {string}\n */\n\nvar rgba = function rgba(colorStr) {\n var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return \"rgba(\".concat(colorStr, \", \").concat(opacity, \")\");\n};\n/**\n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superStyle]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @param {StyleCollection} [params.componentVars]\n * @param {StyleCollection} [params.customVars]\n * @returns {Array}\n */\n\nvar createStyle = function createStyle(_ref2) {\n var varFns = _ref2.varFns,\n customVarFns = _ref2.customVarFns,\n superStyle = _ref2.superStyle,\n varMixin = _ref2.varMixin,\n selector = _ref2.selector,\n scopedSelector = _ref2.scopedSelector,\n _ref2$componentVars = _ref2.componentVars,\n componentVars = _ref2$componentVars === void 0 ? {} : _ref2$componentVars,\n customVars = _ref2.customVars;\n\n var allVars = _objectSpread2({}, componentVars, {}, customVars);\n\n var currentVars = customVars ? customVars : allVars;\n\n var general_styles = componentVars.general_styles,\n otherVars = _objectWithoutProperties(componentVars, [\"general_styles\"]);\n\n var baseLayout = superStyle !== undefined ? customVars !== undefined ? superStyle(selector, componentVars, customVars) : superStyle(selector, otherVars) : [];\n\n var fns = _objectSpread2({}, customVars ? customVarFns : {}, {}, varFns);\n\n return baseLayout.concat(Object.keys(varMixin(currentVars)).map(function (v) {\n return fns && fns[v] !== undefined ? fns[v](scopedSelector, allVars) : null;\n }).filter(function (s) {\n return s;\n }));\n};\n/**\n * \n * @param {object} params\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superLayout]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\n\nvar createLayout = function createLayout(_ref3) {\n var varFns = _ref3.varFns,\n customVarFns = _ref3.customVarFns,\n superLayout = _ref3.superLayout,\n _ref3$varMixin = _ref3.varMixin,\n varMixin = _ref3$varMixin === void 0 ? function (o) {\n return o;\n } : _ref3$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return createStyle({\n varFns: varFns,\n customVarFns: customVarFns,\n superStyle: superLayout,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: selector,\n componentVars: componentVars,\n customVars: customVars\n });\n }\n );\n};\n/**\n * \n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {object} [params.componentVars]\n * @param {object} [params.customVars] \n * @param {StyleFn} [params.superColor]\n * @param {StyleCollection} [params.varFns]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {Array}\n */\n\nvar createColorStyle = function createColorStyle(_ref4) {\n var selector = _ref4.selector,\n scopedSelector = _ref4.scopedSelector,\n componentVars = _ref4.componentVars,\n customVars = _ref4.customVars,\n varFns = _ref4.varFns,\n superColor = _ref4.superColor,\n varMixin = _ref4.varMixin;\n return createStyle({\n varFns: varFns,\n superStyle: superColor,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: scopedSelector,\n componentVars: componentVars,\n customVars: customVars\n });\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} params.isNoTouch\n* @returns {string}\n */\n\nvar appendPseudoClass = function appendPseudoClass(_ref5) {\n var scopes = _ref5.scopes,\n selector = _ref5.selector,\n isNoTouch = _ref5.isNoTouch;\n return isNoTouch ? scopes.map(function (s) {\n return s + selector + \":hover\";\n }).join(\",\") : scopes.map(function (s) {\n return s + selector;\n }).join(\",\");\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} [params.isNoTouch]\n * @returns {string}\n */\n\n\nvar createScopedSelector = function createScopedSelector(_ref6) {\n var scopes = _ref6.scopes,\n selector = _ref6.selector,\n _ref6$isNoTouch = _ref6.isNoTouch,\n isNoTouch = _ref6$isNoTouch === void 0 ? false : _ref6$isNoTouch;\n return selector.split(/\\s*,\\s*/).map(function (s) {\n return appendPseudoClass({\n scopes: scopes,\n selector: s,\n isNoTouch: isNoTouch\n });\n }).join(\"\");\n};\n/**\n * @typedef {object} ColorScopeObject\n * @property {Array} scopes\n * @property {string} varFnName\n * @property {boolean} isNoTouch\n */\n\n/**\n * @type {Array} colorScopes\n */\n\n\nvar colorScopes = [{\n // has/inside dark tone\n scopes: [\".pe-dark-tone\", \".pe-dark-tone \"],\n varFnName: \"darkTintFns\",\n isNoTouch: false\n}, {\n // normal, has/inside light tone\n scopes: [\"\", \".pe-light-tone\", \".pe-light-tone \"],\n varFnName: \"lightTintFns\",\n isNoTouch: false\n}, {\n // has/inside dark tone\n scopes: [\".pe-no-touch .pe-dark-tone \"],\n varFnName: \"darkTintHoverFns\",\n isNoTouch: true\n}, {\n // normal, has/inside light tone\n scopes: [\".pe-no-touch \", \".pe-no-touch .pe-light-tone \"],\n varFnName: \"lightTintHoverFns\",\n isNoTouch: true\n}];\n/**\n * \n * @param {object} params\n * @param {object} [params.varFns]\n * @param {StyleFn} [params.superColor]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\nvar createColor = function createColor(_ref7) {\n var _ref7$varFns = _ref7.varFns,\n varFns = _ref7$varFns === void 0 ? {} : _ref7$varFns,\n superColor = _ref7.superColor,\n _ref7$varMixin = _ref7.varMixin,\n varMixin = _ref7$varMixin === void 0 ? function (o) {\n return o;\n } : _ref7$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return colorScopes.map(function (_ref8) {\n var scopes = _ref8.scopes,\n varFnName = _ref8.varFnName,\n isNoTouch = _ref8.isNoTouch;\n return createColorStyle({\n selector: selector,\n scopedSelector: createScopedSelector({\n scopes: scopes,\n selector: selector,\n isNoTouch: isNoTouch\n }),\n componentVars: componentVars,\n customVars: customVars,\n varFns: varFns[varFnName],\n superColor: superColor,\n varMixin: varMixin\n });\n });\n }\n );\n};\n/**\n * @param {object} vars \n * @param {object} behaviorVars\n * @returns {string|undefined} \n */\n\nvar createMarkerValue = function createMarkerValue(vars, behaviorVars) {\n var marker = Object.keys(behaviorVars).filter(function (bvar) {\n return vars[bvar] === true;\n }).join(\".\");\n return marker ? \"\\\"\".concat(marker, \"\\\"\") : undefined;\n};\n/**\n * Creates a CSS style from which the key can be read from the `content` property.\n * @param {object} vars \n * @param {object} behaviorVars \n * @returns {object}\n */\n\n\nvar createMarker = function createMarker(vars, behaviorVars) {\n if (!vars) {\n console.error(\"createMarker requires param `vars`\"); // eslint-disable-line no-console\n }\n\n var value = createMarkerValue(vars, behaviorVars);\n return value ? {\n \":before\": {\n content: value,\n display: \"none\"\n }\n } : undefined;\n};\n\n// @ts-check\n/**\n * @typedef {{[selector:string] : Style | any}} Style\n */\n\n/**\n * @type {Array element.\n * @param {...Array} styles - List of style Objects\n * @returns {void}\n */\n\nvar add = function add(id) {\n for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n styles[_key - 1] = arguments[_key];\n }\n\n return addToDocument.apply(void 0, [{\n id: id\n }].concat(styles));\n};\n/**\n * Removes a style from head.\n * @param {string} id - Identifier, used as HTMLElement id for the attached element.\n * @returns {void}\n */\n\n\nvar remove = function remove(id) {\n if (isServer) return;\n\n if (id) {\n var old = document.getElementById(id);\n\n if (old && old.parentNode) {\n old.parentNode.removeChild(old);\n }\n }\n};\n/**\n * Adds styles to the head.\n * @param {object} params\n * @param {string} params.id - Identifier, used as HTMLElement id for the attached element.\n * @param {object} [params.document] - Document reference.\n * @param {...Array} styles - List of style Objects.\n * @returns {void}\n */\n\n\nvar addToDocument = function addToDocument(_ref) {\n var id = _ref.id,\n document = _ref.document;\n if (isServer) return;\n var safeId = id.replace(ID_REGEX, \"_\");\n remove(safeId);\n var documentRef = document || window.document;\n var styleEl = documentRef.createElement(\"style\");\n\n if (safeId) {\n styleEl.setAttribute(\"id\", safeId);\n }\n\n for (var _len2 = arguments.length, styles = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n styles[_key2 - 1] = arguments[_key2];\n }\n\n styles.forEach(function (styles) {\n // each style returns a list\n if (Object.keys(styles).length) {\n styles.forEach(function (style) {\n var scoped = {\n \"@global\": style\n };\n var sheet = j2c.sheet(scoped);\n styleEl.appendChild(documentRef.createTextNode(sheet));\n });\n }\n });\n documentRef.head.appendChild(styleEl);\n};\n/**\n * \n * @param {object} params\n * @param {StyleObject|Array} params.styles\n * @param {string} [params.scope]\n * @returns {Array}\n */\n\n\nvar wrapInScope = function wrapInScope(_ref2) {\n var styles = _ref2.styles,\n scope = _ref2.scope;\n return scope ? [_defineProperty({}, scope, styles)] : styles;\n};\n/**\n * Adds component styles to head.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars\n * @param {object} [params.customVars]\n * @param {string} [params.mediaQuery]\n * @param {string} [params.scope]\n * @param {string} [params.identifier]\n * @returns {void}\n */\n\n\nvar addStyle = function addStyle(_ref4) {\n var selectors = _ref4.selectors,\n styleFns = _ref4.fns,\n vars = _ref4.vars,\n customVars = _ref4.customVars,\n mediaQuery = _ref4.mediaQuery,\n scope = _ref4.scope,\n identifier = _ref4.identifier;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n }).filter(function (list) {\n return list.length > 0;\n });\n\n if (styles.length === 0) {\n return;\n }\n\n var id = identifier || selector.trim().replace(/^[^a-z]?(.*)/, \"$1\");\n add(id, wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n }));\n};\n/**\n * Returns a list of style objects for a component.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars - Style configuration variables\n * @param {object} [params.customVars] - Style configuration variables\n * @param {string} [params.mediaQuery] - Mediaquery string\n * @param {string} [params.scope] - Scope selector\n * @returns {Array}\n */\n\n\nvar getStyle = function getStyle(_ref5) {\n var selectors = _ref5.selectors,\n styleFns = _ref5.fns,\n vars = _ref5.vars,\n customVars = _ref5.customVars,\n mediaQuery = _ref5.mediaQuery,\n scope = _ref5.scope;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n });\n return wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n });\n};\n/**\n * Adds component styles to head.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createAddStyle = function createAddStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {void}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref6 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref6.mediaQuery,\n scope = _ref6.scope;\n\n return addStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n });\n }\n );\n};\n/**\n * Returns styles for a component.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createGetStyle = function createGetStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {Array}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref7 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref7.mediaQuery,\n scope = _ref7.scope;\n\n return [getStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n })];\n }\n );\n};\n\nvar styler = {\n add: add,\n addStyle: addStyle,\n addToDocument: addToDocument,\n createAddStyle: createAddStyle,\n createGetStyle: createGetStyle,\n getStyle: getStyle,\n remove: remove\n};\n\n// @ts-check\n\n/**\n * @typedef {(selector: string, vars: object, customVars?: object) => Array} StyleFn\n * @typedef {{[s: string]: StyleFn}} StyleCollection\n */\n\n/**\n * Wraps an object with a selector.\n * @param {string} selector \n * @param {object} o \n * @returns {object}\n */\nvar sel = function sel(selector, o) {\n return _defineProperty({}, selector, o);\n};\n/**\n * Creates a right-to-left selector.\n * @param {string} selector\n * @returns {string}\n */\n\nvar selectorRTL = function selectorRTL(selector) {\n return \"*[dir=rtl] \".concat(selector, \", .pe-rtl \").concat(selector);\n};\n/**\n * Creates a rgba CSS color string.\n * @param {string} colorStr \n * @param {number} opacity \n * @returns {string}\n */\n\nvar rgba = function rgba(colorStr) {\n var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return \"rgba(\".concat(colorStr, \", \").concat(opacity, \")\");\n};\n/**\n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superStyle]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @param {StyleCollection} [params.componentVars]\n * @param {StyleCollection} [params.customVars]\n * @returns {Array}\n */\n\nvar createStyle = function createStyle(_ref2) {\n var varFns = _ref2.varFns,\n customVarFns = _ref2.customVarFns,\n superStyle = _ref2.superStyle,\n varMixin = _ref2.varMixin,\n selector = _ref2.selector,\n scopedSelector = _ref2.scopedSelector,\n _ref2$componentVars = _ref2.componentVars,\n componentVars = _ref2$componentVars === void 0 ? {} : _ref2$componentVars,\n customVars = _ref2.customVars;\n\n var allVars = _objectSpread2({}, componentVars, {}, customVars);\n\n var currentVars = customVars ? customVars : allVars;\n\n var general_styles = componentVars.general_styles,\n otherVars = _objectWithoutProperties(componentVars, [\"general_styles\"]);\n\n var baseLayout = superStyle !== undefined ? customVars !== undefined ? superStyle(selector, componentVars, customVars) : superStyle(selector, otherVars) : [];\n\n var fns = _objectSpread2({}, customVars ? customVarFns : {}, {}, varFns);\n\n return baseLayout.concat(Object.keys(varMixin(currentVars)).map(function (v) {\n return fns && fns[v] !== undefined ? fns[v](scopedSelector, allVars) : null;\n }).filter(function (s) {\n return s;\n }));\n};\n/**\n * \n * @param {object} params\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superLayout]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\n\nvar createLayout = function createLayout(_ref3) {\n var varFns = _ref3.varFns,\n customVarFns = _ref3.customVarFns,\n superLayout = _ref3.superLayout,\n _ref3$varMixin = _ref3.varMixin,\n varMixin = _ref3$varMixin === void 0 ? function (o) {\n return o;\n } : _ref3$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return createStyle({\n varFns: varFns,\n customVarFns: customVarFns,\n superStyle: superLayout,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: selector,\n componentVars: componentVars,\n customVars: customVars\n });\n }\n );\n};\n/**\n * \n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {object} [params.componentVars]\n * @param {object} [params.customVars] \n * @param {StyleFn} [params.superColor]\n * @param {StyleCollection} [params.varFns]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {Array}\n */\n\nvar createColorStyle = function createColorStyle(_ref4) {\n var selector = _ref4.selector,\n scopedSelector = _ref4.scopedSelector,\n componentVars = _ref4.componentVars,\n customVars = _ref4.customVars,\n varFns = _ref4.varFns,\n superColor = _ref4.superColor,\n varMixin = _ref4.varMixin;\n return createStyle({\n varFns: varFns,\n superStyle: superColor,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: scopedSelector,\n componentVars: componentVars,\n customVars: customVars\n });\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} params.isNoTouch\n* @returns {string}\n */\n\nvar appendPseudoClass = function appendPseudoClass(_ref5) {\n var scopes = _ref5.scopes,\n selector = _ref5.selector,\n isNoTouch = _ref5.isNoTouch;\n return isNoTouch ? scopes.map(function (s) {\n return s + selector + \":hover\";\n }).join(\",\") : scopes.map(function (s) {\n return s + selector;\n }).join(\",\");\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} [params.isNoTouch]\n * @returns {string}\n */\n\n\nvar createScopedSelector = function createScopedSelector(_ref6) {\n var scopes = _ref6.scopes,\n selector = _ref6.selector,\n _ref6$isNoTouch = _ref6.isNoTouch,\n isNoTouch = _ref6$isNoTouch === void 0 ? false : _ref6$isNoTouch;\n return selector.split(/\\s*,\\s*/).map(function (s) {\n return appendPseudoClass({\n scopes: scopes,\n selector: s,\n isNoTouch: isNoTouch\n });\n }).join(\"\");\n};\n/**\n * @typedef {object} ColorScopeObject\n * @property {Array} scopes\n * @property {string} varFnName\n * @property {boolean} isNoTouch\n */\n\n/**\n * @type {Array} colorScopes\n */\n\n\nvar colorScopes = [{\n // has/inside dark tone\n scopes: [\".pe-dark-tone\", \".pe-dark-tone \"],\n varFnName: \"darkTintFns\",\n isNoTouch: false\n}, {\n // normal, has/inside light tone\n scopes: [\"\", \".pe-light-tone\", \".pe-light-tone \"],\n varFnName: \"lightTintFns\",\n isNoTouch: false\n}, {\n // has/inside dark tone\n scopes: [\".pe-no-touch .pe-dark-tone \"],\n varFnName: \"darkTintHoverFns\",\n isNoTouch: true\n}, {\n // normal, has/inside light tone\n scopes: [\".pe-no-touch \", \".pe-no-touch .pe-light-tone \"],\n varFnName: \"lightTintHoverFns\",\n isNoTouch: true\n}];\n/**\n * \n * @param {object} params\n * @param {object} [params.varFns]\n * @param {StyleFn} [params.superColor]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\nvar createColor = function createColor(_ref7) {\n var _ref7$varFns = _ref7.varFns,\n varFns = _ref7$varFns === void 0 ? {} : _ref7$varFns,\n superColor = _ref7.superColor,\n _ref7$varMixin = _ref7.varMixin,\n varMixin = _ref7$varMixin === void 0 ? function (o) {\n return o;\n } : _ref7$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return colorScopes.map(function (_ref8) {\n var scopes = _ref8.scopes,\n varFnName = _ref8.varFnName,\n isNoTouch = _ref8.isNoTouch;\n return createColorStyle({\n selector: selector,\n scopedSelector: createScopedSelector({\n scopes: scopes,\n selector: selector,\n isNoTouch: isNoTouch\n }),\n componentVars: componentVars,\n customVars: customVars,\n varFns: varFns[varFnName],\n superColor: superColor,\n varMixin: varMixin\n });\n });\n }\n );\n};\n/**\n * @param {object} vars \n * @param {object} behaviorVars\n * @returns {string|undefined} \n */\n\nvar createMarkerValue = function createMarkerValue(vars, behaviorVars) {\n var marker = Object.keys(behaviorVars).filter(function (bvar) {\n return vars[bvar] === true;\n }).join(\".\");\n return marker ? \"\\\"\".concat(marker, \"\\\"\") : undefined;\n};\n/**\n * Creates a CSS style from which the key can be read from the `content` property.\n * @param {object} vars \n * @param {object} behaviorVars \n * @returns {object}\n */\n\n\nvar createMarker = function createMarker(vars, behaviorVars) {\n if (!vars) {\n console.error(\"createMarker requires param `vars`\"); // eslint-disable-line no-console\n }\n\n var value = createMarkerValue(vars, behaviorVars);\n return value ? {\n \":before\": {\n content: value,\n display: \"none\"\n }\n } : undefined;\n};\n\n// @ts-check\n/**\n * @typedef {{[selector:string] : Style | any}} Style\n */\n\n/**\n * @type {Array element.\n * @param {...Array} styles - List of style Objects\n * @returns {void}\n */\n\nvar add = function add(id) {\n for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n styles[_key - 1] = arguments[_key];\n }\n\n return addToDocument.apply(void 0, [{\n id: id\n }].concat(styles));\n};\n/**\n * Removes a style from head.\n * @param {string} id - Identifier, used as HTMLElement id for the attached element.\n * @returns {void}\n */\n\n\nvar remove = function remove(id) {\n if (isServer) return;\n\n if (id) {\n var old = document.getElementById(id);\n\n if (old && old.parentNode) {\n old.parentNode.removeChild(old);\n }\n }\n};\n/**\n * Adds styles to the head.\n * @param {object} params\n * @param {string} params.id - Identifier, used as HTMLElement id for the attached element.\n * @param {object} [params.document] - Document reference.\n * @param {...Array} styles - List of style Objects.\n * @returns {void}\n */\n\n\nvar addToDocument = function addToDocument(_ref) {\n var id = _ref.id,\n document = _ref.document;\n if (isServer) return;\n var safeId = id.replace(ID_REGEX, \"_\");\n remove(safeId);\n var documentRef = document || window.document;\n var styleEl = documentRef.createElement(\"style\");\n\n if (safeId) {\n styleEl.setAttribute(\"id\", safeId);\n }\n\n for (var _len2 = arguments.length, styles = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n styles[_key2 - 1] = arguments[_key2];\n }\n\n styles.forEach(function (styles) {\n // each style returns a list\n if (Object.keys(styles).length) {\n styles.forEach(function (style) {\n var scoped = {\n \"@global\": style\n };\n var sheet = j2c.sheet(scoped);\n styleEl.appendChild(documentRef.createTextNode(sheet));\n });\n }\n });\n documentRef.head.appendChild(styleEl);\n};\n/**\n * \n * @param {object} params\n * @param {StyleObject|Array} params.styles\n * @param {string} [params.scope]\n * @returns {Array}\n */\n\n\nvar wrapInScope = function wrapInScope(_ref2) {\n var styles = _ref2.styles,\n scope = _ref2.scope;\n return scope ? [_defineProperty({}, scope, styles)] : styles;\n};\n/**\n * Adds component styles to head.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars\n * @param {object} [params.customVars]\n * @param {string} [params.mediaQuery]\n * @param {string} [params.scope]\n * @param {string} [params.identifier]\n * @returns {void}\n */\n\n\nvar addStyle = function addStyle(_ref4) {\n var selectors = _ref4.selectors,\n styleFns = _ref4.fns,\n vars = _ref4.vars,\n customVars = _ref4.customVars,\n mediaQuery = _ref4.mediaQuery,\n scope = _ref4.scope,\n identifier = _ref4.identifier;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n }).filter(function (list) {\n return list.length > 0;\n });\n\n if (styles.length === 0) {\n return;\n }\n\n var id = identifier || selector.trim().replace(/^[^a-z]?(.*)/, \"$1\");\n add(id, wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n }));\n};\n/**\n * Returns a list of style objects for a component.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars - Style configuration variables\n * @param {object} [params.customVars] - Style configuration variables\n * @param {string} [params.mediaQuery] - Mediaquery string\n * @param {string} [params.scope] - Scope selector\n * @returns {Array}\n */\n\n\nvar getStyle = function getStyle(_ref5) {\n var selectors = _ref5.selectors,\n styleFns = _ref5.fns,\n vars = _ref5.vars,\n customVars = _ref5.customVars,\n mediaQuery = _ref5.mediaQuery,\n scope = _ref5.scope;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n });\n return wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n });\n};\n/**\n * Adds component styles to head.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createAddStyle = function createAddStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {void}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref6 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref6.mediaQuery,\n scope = _ref6.scope;\n\n return addStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n });\n }\n );\n};\n/**\n * Returns styles for a component.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createGetStyle = function createGetStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {Array}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref7 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref7.mediaQuery,\n scope = _ref7.scope;\n\n return [getStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n })];\n }\n );\n};\n\nvar styler = {\n add: add,\n addStyle: addStyle,\n addToDocument: addToDocument,\n createAddStyle: createAddStyle,\n createGetStyle: createGetStyle,\n getStyle: getStyle,\n remove: remove\n};\n\n// @ts-check\n\n/**\n * @typedef {(selector: string, vars: object, customVars?: object) => Array} StyleFn\n * @typedef {{[s: string]: StyleFn}} StyleCollection\n */\n\n/**\n * Wraps an object with a selector.\n * @param {string} selector \n * @param {object} o \n * @returns {object}\n */\nvar sel = function sel(selector, o) {\n return _defineProperty({}, selector, o);\n};\n/**\n * Creates a right-to-left selector.\n * @param {string} selector\n * @returns {string}\n */\n\nvar selectorRTL = function selectorRTL(selector) {\n return \"*[dir=rtl] \".concat(selector, \", .pe-rtl \").concat(selector);\n};\n/**\n * Creates a rgba CSS color string.\n * @param {string} colorStr \n * @param {number} opacity \n * @returns {string}\n */\n\nvar rgba = function rgba(colorStr) {\n var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return \"rgba(\".concat(colorStr, \", \").concat(opacity, \")\");\n};\n/**\n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superStyle]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @param {StyleCollection} [params.componentVars]\n * @param {StyleCollection} [params.customVars]\n * @returns {Array}\n */\n\nvar createStyle = function createStyle(_ref2) {\n var varFns = _ref2.varFns,\n customVarFns = _ref2.customVarFns,\n superStyle = _ref2.superStyle,\n varMixin = _ref2.varMixin,\n selector = _ref2.selector,\n scopedSelector = _ref2.scopedSelector,\n _ref2$componentVars = _ref2.componentVars,\n componentVars = _ref2$componentVars === void 0 ? {} : _ref2$componentVars,\n customVars = _ref2.customVars;\n\n var allVars = _objectSpread2({}, componentVars, {}, customVars);\n\n var currentVars = customVars ? customVars : allVars;\n\n var general_styles = componentVars.general_styles,\n otherVars = _objectWithoutProperties(componentVars, [\"general_styles\"]);\n\n var baseLayout = superStyle !== undefined ? customVars !== undefined ? superStyle(selector, componentVars, customVars) : superStyle(selector, otherVars) : [];\n\n var fns = _objectSpread2({}, customVars ? customVarFns : {}, {}, varFns);\n\n return baseLayout.concat(Object.keys(varMixin(currentVars)).map(function (v) {\n return fns && fns[v] !== undefined ? fns[v](scopedSelector, allVars) : null;\n }).filter(function (s) {\n return s;\n }));\n};\n/**\n * \n * @param {object} params\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superLayout]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\n\nvar createLayout = function createLayout(_ref3) {\n var varFns = _ref3.varFns,\n customVarFns = _ref3.customVarFns,\n superLayout = _ref3.superLayout,\n _ref3$varMixin = _ref3.varMixin,\n varMixin = _ref3$varMixin === void 0 ? function (o) {\n return o;\n } : _ref3$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return createStyle({\n varFns: varFns,\n customVarFns: customVarFns,\n superStyle: superLayout,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: selector,\n componentVars: componentVars,\n customVars: customVars\n });\n }\n );\n};\n/**\n * \n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {object} [params.componentVars]\n * @param {object} [params.customVars] \n * @param {StyleFn} [params.superColor]\n * @param {StyleCollection} [params.varFns]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {Array}\n */\n\nvar createColorStyle = function createColorStyle(_ref4) {\n var selector = _ref4.selector,\n scopedSelector = _ref4.scopedSelector,\n componentVars = _ref4.componentVars,\n customVars = _ref4.customVars,\n varFns = _ref4.varFns,\n superColor = _ref4.superColor,\n varMixin = _ref4.varMixin;\n return createStyle({\n varFns: varFns,\n superStyle: superColor,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: scopedSelector,\n componentVars: componentVars,\n customVars: customVars\n });\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} params.isNoTouch\n* @returns {string}\n */\n\nvar appendPseudoClass = function appendPseudoClass(_ref5) {\n var scopes = _ref5.scopes,\n selector = _ref5.selector,\n isNoTouch = _ref5.isNoTouch;\n return isNoTouch ? scopes.map(function (s) {\n return s + selector + \":hover\";\n }).join(\",\") : scopes.map(function (s) {\n return s + selector;\n }).join(\",\");\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} [params.isNoTouch]\n * @returns {string}\n */\n\n\nvar createScopedSelector = function createScopedSelector(_ref6) {\n var scopes = _ref6.scopes,\n selector = _ref6.selector,\n _ref6$isNoTouch = _ref6.isNoTouch,\n isNoTouch = _ref6$isNoTouch === void 0 ? false : _ref6$isNoTouch;\n return selector.split(/\\s*,\\s*/).map(function (s) {\n return appendPseudoClass({\n scopes: scopes,\n selector: s,\n isNoTouch: isNoTouch\n });\n }).join(\"\");\n};\n/**\n * @typedef {object} ColorScopeObject\n * @property {Array} scopes\n * @property {string} varFnName\n * @property {boolean} isNoTouch\n */\n\n/**\n * @type {Array} colorScopes\n */\n\n\nvar colorScopes = [{\n // has/inside dark tone\n scopes: [\".pe-dark-tone\", \".pe-dark-tone \"],\n varFnName: \"darkTintFns\",\n isNoTouch: false\n}, {\n // normal, has/inside light tone\n scopes: [\"\", \".pe-light-tone\", \".pe-light-tone \"],\n varFnName: \"lightTintFns\",\n isNoTouch: false\n}, {\n // has/inside dark tone\n scopes: [\".pe-no-touch .pe-dark-tone \"],\n varFnName: \"darkTintHoverFns\",\n isNoTouch: true\n}, {\n // normal, has/inside light tone\n scopes: [\".pe-no-touch \", \".pe-no-touch .pe-light-tone \"],\n varFnName: \"lightTintHoverFns\",\n isNoTouch: true\n}];\n/**\n * \n * @param {object} params\n * @param {object} [params.varFns]\n * @param {StyleFn} [params.superColor]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\nvar createColor = function createColor(_ref7) {\n var _ref7$varFns = _ref7.varFns,\n varFns = _ref7$varFns === void 0 ? {} : _ref7$varFns,\n superColor = _ref7.superColor,\n _ref7$varMixin = _ref7.varMixin,\n varMixin = _ref7$varMixin === void 0 ? function (o) {\n return o;\n } : _ref7$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return colorScopes.map(function (_ref8) {\n var scopes = _ref8.scopes,\n varFnName = _ref8.varFnName,\n isNoTouch = _ref8.isNoTouch;\n return createColorStyle({\n selector: selector,\n scopedSelector: createScopedSelector({\n scopes: scopes,\n selector: selector,\n isNoTouch: isNoTouch\n }),\n componentVars: componentVars,\n customVars: customVars,\n varFns: varFns[varFnName],\n superColor: superColor,\n varMixin: varMixin\n });\n });\n }\n );\n};\n/**\n * @param {object} vars \n * @param {object} behaviorVars\n * @returns {string|undefined} \n */\n\nvar createMarkerValue = function createMarkerValue(vars, behaviorVars) {\n var marker = Object.keys(behaviorVars).filter(function (bvar) {\n return vars[bvar] === true;\n }).join(\".\");\n return marker ? \"\\\"\".concat(marker, \"\\\"\") : undefined;\n};\n/**\n * Creates a CSS style from which the key can be read from the `content` property.\n * @param {object} vars \n * @param {object} behaviorVars \n * @returns {object}\n */\n\n\nvar createMarker = function createMarker(vars, behaviorVars) {\n if (!vars) {\n console.error(\"createMarker requires param `vars`\"); // eslint-disable-line no-console\n }\n\n var value = createMarkerValue(vars, behaviorVars);\n return value ? {\n \":before\": {\n content: value,\n display: \"none\"\n }\n } : undefined;\n};\n\n// @ts-check\n/**\n * @typedef {{[selector:string] : Style | any}} Style\n */\n\n/**\n * @type {Array element.\n * @param {...Array} styles - List of style Objects\n * @returns {void}\n */\n\nvar add = function add(id) {\n for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n styles[_key - 1] = arguments[_key];\n }\n\n return addToDocument.apply(void 0, [{\n id: id\n }].concat(styles));\n};\n/**\n * Removes a style from head.\n * @param {string} id - Identifier, used as HTMLElement id for the attached element.\n * @returns {void}\n */\n\n\nvar remove = function remove(id) {\n if (isServer) return;\n\n if (id) {\n var old = document.getElementById(id);\n\n if (old && old.parentNode) {\n old.parentNode.removeChild(old);\n }\n }\n};\n/**\n * Adds styles to the head.\n * @param {object} params\n * @param {string} params.id - Identifier, used as HTMLElement id for the attached element.\n * @param {object} [params.document] - Document reference.\n * @param {...Array} styles - List of style Objects.\n * @returns {void}\n */\n\n\nvar addToDocument = function addToDocument(_ref) {\n var id = _ref.id,\n document = _ref.document;\n if (isServer) return;\n var safeId = id.replace(ID_REGEX, \"_\");\n remove(safeId);\n var documentRef = document || window.document;\n var styleEl = documentRef.createElement(\"style\");\n\n if (safeId) {\n styleEl.setAttribute(\"id\", safeId);\n }\n\n for (var _len2 = arguments.length, styles = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n styles[_key2 - 1] = arguments[_key2];\n }\n\n styles.forEach(function (styles) {\n // each style returns a list\n if (Object.keys(styles).length) {\n styles.forEach(function (style) {\n var scoped = {\n \"@global\": style\n };\n var sheet = j2c.sheet(scoped);\n styleEl.appendChild(documentRef.createTextNode(sheet));\n });\n }\n });\n documentRef.head.appendChild(styleEl);\n};\n/**\n * \n * @param {object} params\n * @param {StyleObject|Array} params.styles\n * @param {string} [params.scope]\n * @returns {Array}\n */\n\n\nvar wrapInScope = function wrapInScope(_ref2) {\n var styles = _ref2.styles,\n scope = _ref2.scope;\n return scope ? [_defineProperty({}, scope, styles)] : styles;\n};\n/**\n * Adds component styles to head.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars\n * @param {object} [params.customVars]\n * @param {string} [params.mediaQuery]\n * @param {string} [params.scope]\n * @param {string} [params.identifier]\n * @returns {void}\n */\n\n\nvar addStyle = function addStyle(_ref4) {\n var selectors = _ref4.selectors,\n styleFns = _ref4.fns,\n vars = _ref4.vars,\n customVars = _ref4.customVars,\n mediaQuery = _ref4.mediaQuery,\n scope = _ref4.scope,\n identifier = _ref4.identifier;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n }).filter(function (list) {\n return list.length > 0;\n });\n\n if (styles.length === 0) {\n return;\n }\n\n var id = identifier || selector.trim().replace(/^[^a-z]?(.*)/, \"$1\");\n add(id, wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n }));\n};\n/**\n * Returns a list of style objects for a component.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars - Style configuration variables\n * @param {object} [params.customVars] - Style configuration variables\n * @param {string} [params.mediaQuery] - Mediaquery string\n * @param {string} [params.scope] - Scope selector\n * @returns {Array}\n */\n\n\nvar getStyle = function getStyle(_ref5) {\n var selectors = _ref5.selectors,\n styleFns = _ref5.fns,\n vars = _ref5.vars,\n customVars = _ref5.customVars,\n mediaQuery = _ref5.mediaQuery,\n scope = _ref5.scope;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n });\n return wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n });\n};\n/**\n * Adds component styles to head.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createAddStyle = function createAddStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {void}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref6 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref6.mediaQuery,\n scope = _ref6.scope;\n\n return addStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n });\n }\n );\n};\n/**\n * Returns styles for a component.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createGetStyle = function createGetStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {Array}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref7 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref7.mediaQuery,\n scope = _ref7.scope;\n\n return [getStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n })];\n }\n );\n};\n\nvar styler = {\n add: add,\n addStyle: addStyle,\n addToDocument: addToDocument,\n createAddStyle: createAddStyle,\n createGetStyle: createGetStyle,\n getStyle: getStyle,\n remove: remove\n};\n\n// @ts-check\n\n/**\n * @typedef {(selector: string, vars: object, customVars?: object) => Array} StyleFn\n * @typedef {{[s: string]: StyleFn}} StyleCollection\n */\n\n/**\n * Wraps an object with a selector.\n * @param {string} selector \n * @param {object} o \n * @returns {object}\n */\nvar sel = function sel(selector, o) {\n return _defineProperty({}, selector, o);\n};\n/**\n * Creates a right-to-left selector.\n * @param {string} selector\n * @returns {string}\n */\n\nvar selectorRTL = function selectorRTL(selector) {\n return \"*[dir=rtl] \".concat(selector, \", .pe-rtl \").concat(selector);\n};\n/**\n * Creates a rgba CSS color string.\n * @param {string} colorStr \n * @param {number} opacity \n * @returns {string}\n */\n\nvar rgba = function rgba(colorStr) {\n var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return \"rgba(\".concat(colorStr, \", \").concat(opacity, \")\");\n};\n/**\n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superStyle]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @param {StyleCollection} [params.componentVars]\n * @param {StyleCollection} [params.customVars]\n * @returns {Array}\n */\n\nvar createStyle = function createStyle(_ref2) {\n var varFns = _ref2.varFns,\n customVarFns = _ref2.customVarFns,\n superStyle = _ref2.superStyle,\n varMixin = _ref2.varMixin,\n selector = _ref2.selector,\n scopedSelector = _ref2.scopedSelector,\n _ref2$componentVars = _ref2.componentVars,\n componentVars = _ref2$componentVars === void 0 ? {} : _ref2$componentVars,\n customVars = _ref2.customVars;\n\n var allVars = _objectSpread2({}, componentVars, {}, customVars);\n\n var currentVars = customVars ? customVars : allVars;\n\n var general_styles = componentVars.general_styles,\n otherVars = _objectWithoutProperties(componentVars, [\"general_styles\"]);\n\n var baseLayout = superStyle !== undefined ? customVars !== undefined ? superStyle(selector, componentVars, customVars) : superStyle(selector, otherVars) : [];\n\n var fns = _objectSpread2({}, customVars ? customVarFns : {}, {}, varFns);\n\n return baseLayout.concat(Object.keys(varMixin(currentVars)).map(function (v) {\n return fns && fns[v] !== undefined ? fns[v](scopedSelector, allVars) : null;\n }).filter(function (s) {\n return s;\n }));\n};\n/**\n * \n * @param {object} params\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superLayout]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\n\nvar createLayout = function createLayout(_ref3) {\n var varFns = _ref3.varFns,\n customVarFns = _ref3.customVarFns,\n superLayout = _ref3.superLayout,\n _ref3$varMixin = _ref3.varMixin,\n varMixin = _ref3$varMixin === void 0 ? function (o) {\n return o;\n } : _ref3$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return createStyle({\n varFns: varFns,\n customVarFns: customVarFns,\n superStyle: superLayout,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: selector,\n componentVars: componentVars,\n customVars: customVars\n });\n }\n );\n};\n/**\n * \n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {object} [params.componentVars]\n * @param {object} [params.customVars] \n * @param {StyleFn} [params.superColor]\n * @param {StyleCollection} [params.varFns]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {Array}\n */\n\nvar createColorStyle = function createColorStyle(_ref4) {\n var selector = _ref4.selector,\n scopedSelector = _ref4.scopedSelector,\n componentVars = _ref4.componentVars,\n customVars = _ref4.customVars,\n varFns = _ref4.varFns,\n superColor = _ref4.superColor,\n varMixin = _ref4.varMixin;\n return createStyle({\n varFns: varFns,\n superStyle: superColor,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: scopedSelector,\n componentVars: componentVars,\n customVars: customVars\n });\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} params.isNoTouch\n* @returns {string}\n */\n\nvar appendPseudoClass = function appendPseudoClass(_ref5) {\n var scopes = _ref5.scopes,\n selector = _ref5.selector,\n isNoTouch = _ref5.isNoTouch;\n return isNoTouch ? scopes.map(function (s) {\n return s + selector + \":hover\";\n }).join(\",\") : scopes.map(function (s) {\n return s + selector;\n }).join(\",\");\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} [params.isNoTouch]\n * @returns {string}\n */\n\n\nvar createScopedSelector = function createScopedSelector(_ref6) {\n var scopes = _ref6.scopes,\n selector = _ref6.selector,\n _ref6$isNoTouch = _ref6.isNoTouch,\n isNoTouch = _ref6$isNoTouch === void 0 ? false : _ref6$isNoTouch;\n return selector.split(/\\s*,\\s*/).map(function (s) {\n return appendPseudoClass({\n scopes: scopes,\n selector: s,\n isNoTouch: isNoTouch\n });\n }).join(\"\");\n};\n/**\n * @typedef {object} ColorScopeObject\n * @property {Array} scopes\n * @property {string} varFnName\n * @property {boolean} isNoTouch\n */\n\n/**\n * @type {Array} colorScopes\n */\n\n\nvar colorScopes = [{\n // has/inside dark tone\n scopes: [\".pe-dark-tone\", \".pe-dark-tone \"],\n varFnName: \"darkTintFns\",\n isNoTouch: false\n}, {\n // normal, has/inside light tone\n scopes: [\"\", \".pe-light-tone\", \".pe-light-tone \"],\n varFnName: \"lightTintFns\",\n isNoTouch: false\n}, {\n // has/inside dark tone\n scopes: [\".pe-no-touch .pe-dark-tone \"],\n varFnName: \"darkTintHoverFns\",\n isNoTouch: true\n}, {\n // normal, has/inside light tone\n scopes: [\".pe-no-touch \", \".pe-no-touch .pe-light-tone \"],\n varFnName: \"lightTintHoverFns\",\n isNoTouch: true\n}];\n/**\n * \n * @param {object} params\n * @param {object} [params.varFns]\n * @param {StyleFn} [params.superColor]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\nvar createColor = function createColor(_ref7) {\n var _ref7$varFns = _ref7.varFns,\n varFns = _ref7$varFns === void 0 ? {} : _ref7$varFns,\n superColor = _ref7.superColor,\n _ref7$varMixin = _ref7.varMixin,\n varMixin = _ref7$varMixin === void 0 ? function (o) {\n return o;\n } : _ref7$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return colorScopes.map(function (_ref8) {\n var scopes = _ref8.scopes,\n varFnName = _ref8.varFnName,\n isNoTouch = _ref8.isNoTouch;\n return createColorStyle({\n selector: selector,\n scopedSelector: createScopedSelector({\n scopes: scopes,\n selector: selector,\n isNoTouch: isNoTouch\n }),\n componentVars: componentVars,\n customVars: customVars,\n varFns: varFns[varFnName],\n superColor: superColor,\n varMixin: varMixin\n });\n });\n }\n );\n};\n/**\n * @param {object} vars \n * @param {object} behaviorVars\n * @returns {string|undefined} \n */\n\nvar createMarkerValue = function createMarkerValue(vars, behaviorVars) {\n var marker = Object.keys(behaviorVars).filter(function (bvar) {\n return vars[bvar] === true;\n }).join(\".\");\n return marker ? \"\\\"\".concat(marker, \"\\\"\") : undefined;\n};\n/**\n * Creates a CSS style from which the key can be read from the `content` property.\n * @param {object} vars \n * @param {object} behaviorVars \n * @returns {object}\n */\n\n\nvar createMarker = function createMarker(vars, behaviorVars) {\n if (!vars) {\n console.error(\"createMarker requires param `vars`\"); // eslint-disable-line no-console\n }\n\n var value = createMarkerValue(vars, behaviorVars);\n return value ? {\n \":before\": {\n content: value,\n display: \"none\"\n }\n } : undefined;\n};\n\n// @ts-check\n/**\n * @typedef {{[selector:string] : Style | any}} Style\n */\n\n/**\n * @type {Array element.\n * @param {...Array} styles - List of style Objects\n * @returns {void}\n */\n\nvar add = function add(id) {\n for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n styles[_key - 1] = arguments[_key];\n }\n\n return addToDocument.apply(void 0, [{\n id: id\n }].concat(styles));\n};\n/**\n * Removes a style from head.\n * @param {string} id - Identifier, used as HTMLElement id for the attached element.\n * @returns {void}\n */\n\n\nvar remove = function remove(id) {\n if (isServer) return;\n\n if (id) {\n var old = document.getElementById(id);\n\n if (old && old.parentNode) {\n old.parentNode.removeChild(old);\n }\n }\n};\n/**\n * Adds styles to the head.\n * @param {object} params\n * @param {string} params.id - Identifier, used as HTMLElement id for the attached element.\n * @param {object} [params.document] - Document reference.\n * @param {...Array} styles - List of style Objects.\n * @returns {void}\n */\n\n\nvar addToDocument = function addToDocument(_ref) {\n var id = _ref.id,\n document = _ref.document;\n if (isServer) return;\n var safeId = id.replace(ID_REGEX, \"_\");\n remove(safeId);\n var documentRef = document || window.document;\n var styleEl = documentRef.createElement(\"style\");\n\n if (safeId) {\n styleEl.setAttribute(\"id\", safeId);\n }\n\n for (var _len2 = arguments.length, styles = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n styles[_key2 - 1] = arguments[_key2];\n }\n\n styles.forEach(function (styles) {\n // each style returns a list\n if (Object.keys(styles).length) {\n styles.forEach(function (style) {\n var scoped = {\n \"@global\": style\n };\n var sheet = j2c.sheet(scoped);\n styleEl.appendChild(documentRef.createTextNode(sheet));\n });\n }\n });\n documentRef.head.appendChild(styleEl);\n};\n/**\n * \n * @param {object} params\n * @param {StyleObject|Array} params.styles\n * @param {string} [params.scope]\n * @returns {Array}\n */\n\n\nvar wrapInScope = function wrapInScope(_ref2) {\n var styles = _ref2.styles,\n scope = _ref2.scope;\n return scope ? [_defineProperty({}, scope, styles)] : styles;\n};\n/**\n * Adds component styles to head.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars\n * @param {object} [params.customVars]\n * @param {string} [params.mediaQuery]\n * @param {string} [params.scope]\n * @param {string} [params.identifier]\n * @returns {void}\n */\n\n\nvar addStyle = function addStyle(_ref4) {\n var selectors = _ref4.selectors,\n styleFns = _ref4.fns,\n vars = _ref4.vars,\n customVars = _ref4.customVars,\n mediaQuery = _ref4.mediaQuery,\n scope = _ref4.scope,\n identifier = _ref4.identifier;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n }).filter(function (list) {\n return list.length > 0;\n });\n\n if (styles.length === 0) {\n return;\n }\n\n var id = identifier || selector.trim().replace(/^[^a-z]?(.*)/, \"$1\");\n add(id, wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n }));\n};\n/**\n * Returns a list of style objects for a component.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars - Style configuration variables\n * @param {object} [params.customVars] - Style configuration variables\n * @param {string} [params.mediaQuery] - Mediaquery string\n * @param {string} [params.scope] - Scope selector\n * @returns {Array}\n */\n\n\nvar getStyle = function getStyle(_ref5) {\n var selectors = _ref5.selectors,\n styleFns = _ref5.fns,\n vars = _ref5.vars,\n customVars = _ref5.customVars,\n mediaQuery = _ref5.mediaQuery,\n scope = _ref5.scope;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n });\n return wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n });\n};\n/**\n * Adds component styles to head.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createAddStyle = function createAddStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {void}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref6 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref6.mediaQuery,\n scope = _ref6.scope;\n\n return addStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n });\n }\n );\n};\n/**\n * Returns styles for a component.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createGetStyle = function createGetStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {Array}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref7 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref7.mediaQuery,\n scope = _ref7.scope;\n\n return [getStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n })];\n }\n );\n};\n\nvar styler = {\n add: add,\n addStyle: addStyle,\n addToDocument: addToDocument,\n createAddStyle: createAddStyle,\n createGetStyle: createGetStyle,\n getStyle: getStyle,\n remove: remove\n};\n\n// @ts-check\n\n/**\n * @typedef {(selector: string, vars: object, customVars?: object) => Array} StyleFn\n * @typedef {{[s: string]: StyleFn}} StyleCollection\n */\n\n/**\n * Wraps an object with a selector.\n * @param {string} selector \n * @param {object} o \n * @returns {object}\n */\nvar sel = function sel(selector, o) {\n return _defineProperty({}, selector, o);\n};\n/**\n * Creates a right-to-left selector.\n * @param {string} selector\n * @returns {string}\n */\n\nvar selectorRTL = function selectorRTL(selector) {\n return \"*[dir=rtl] \".concat(selector, \", .pe-rtl \").concat(selector);\n};\n/**\n * Creates a rgba CSS color string.\n * @param {string} colorStr \n * @param {number} opacity \n * @returns {string}\n */\n\nvar rgba = function rgba(colorStr) {\n var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return \"rgba(\".concat(colorStr, \", \").concat(opacity, \")\");\n};\n/**\n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superStyle]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @param {StyleCollection} [params.componentVars]\n * @param {StyleCollection} [params.customVars]\n * @returns {Array}\n */\n\nvar createStyle = function createStyle(_ref2) {\n var varFns = _ref2.varFns,\n customVarFns = _ref2.customVarFns,\n superStyle = _ref2.superStyle,\n varMixin = _ref2.varMixin,\n selector = _ref2.selector,\n scopedSelector = _ref2.scopedSelector,\n _ref2$componentVars = _ref2.componentVars,\n componentVars = _ref2$componentVars === void 0 ? {} : _ref2$componentVars,\n customVars = _ref2.customVars;\n\n var allVars = _objectSpread2({}, componentVars, {}, customVars);\n\n var currentVars = customVars ? customVars : allVars;\n\n var general_styles = componentVars.general_styles,\n otherVars = _objectWithoutProperties(componentVars, [\"general_styles\"]);\n\n var baseLayout = superStyle !== undefined ? customVars !== undefined ? superStyle(selector, componentVars, customVars) : superStyle(selector, otherVars) : [];\n\n var fns = _objectSpread2({}, customVars ? customVarFns : {}, {}, varFns);\n\n return baseLayout.concat(Object.keys(varMixin(currentVars)).map(function (v) {\n return fns && fns[v] !== undefined ? fns[v](scopedSelector, allVars) : null;\n }).filter(function (s) {\n return s;\n }));\n};\n/**\n * \n * @param {object} params\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superLayout]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\n\nvar createLayout = function createLayout(_ref3) {\n var varFns = _ref3.varFns,\n customVarFns = _ref3.customVarFns,\n superLayout = _ref3.superLayout,\n _ref3$varMixin = _ref3.varMixin,\n varMixin = _ref3$varMixin === void 0 ? function (o) {\n return o;\n } : _ref3$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return createStyle({\n varFns: varFns,\n customVarFns: customVarFns,\n superStyle: superLayout,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: selector,\n componentVars: componentVars,\n customVars: customVars\n });\n }\n );\n};\n/**\n * \n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {object} [params.componentVars]\n * @param {object} [params.customVars] \n * @param {StyleFn} [params.superColor]\n * @param {StyleCollection} [params.varFns]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {Array}\n */\n\nvar createColorStyle = function createColorStyle(_ref4) {\n var selector = _ref4.selector,\n scopedSelector = _ref4.scopedSelector,\n componentVars = _ref4.componentVars,\n customVars = _ref4.customVars,\n varFns = _ref4.varFns,\n superColor = _ref4.superColor,\n varMixin = _ref4.varMixin;\n return createStyle({\n varFns: varFns,\n superStyle: superColor,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: scopedSelector,\n componentVars: componentVars,\n customVars: customVars\n });\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} params.isNoTouch\n* @returns {string}\n */\n\nvar appendPseudoClass = function appendPseudoClass(_ref5) {\n var scopes = _ref5.scopes,\n selector = _ref5.selector,\n isNoTouch = _ref5.isNoTouch;\n return isNoTouch ? scopes.map(function (s) {\n return s + selector + \":hover\";\n }).join(\",\") : scopes.map(function (s) {\n return s + selector;\n }).join(\",\");\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} [params.isNoTouch]\n * @returns {string}\n */\n\n\nvar createScopedSelector = function createScopedSelector(_ref6) {\n var scopes = _ref6.scopes,\n selector = _ref6.selector,\n _ref6$isNoTouch = _ref6.isNoTouch,\n isNoTouch = _ref6$isNoTouch === void 0 ? false : _ref6$isNoTouch;\n return selector.split(/\\s*,\\s*/).map(function (s) {\n return appendPseudoClass({\n scopes: scopes,\n selector: s,\n isNoTouch: isNoTouch\n });\n }).join(\"\");\n};\n/**\n * @typedef {object} ColorScopeObject\n * @property {Array} scopes\n * @property {string} varFnName\n * @property {boolean} isNoTouch\n */\n\n/**\n * @type {Array} colorScopes\n */\n\n\nvar colorScopes = [{\n // has/inside dark tone\n scopes: [\".pe-dark-tone\", \".pe-dark-tone \"],\n varFnName: \"darkTintFns\",\n isNoTouch: false\n}, {\n // normal, has/inside light tone\n scopes: [\"\", \".pe-light-tone\", \".pe-light-tone \"],\n varFnName: \"lightTintFns\",\n isNoTouch: false\n}, {\n // has/inside dark tone\n scopes: [\".pe-no-touch .pe-dark-tone \"],\n varFnName: \"darkTintHoverFns\",\n isNoTouch: true\n}, {\n // normal, has/inside light tone\n scopes: [\".pe-no-touch \", \".pe-no-touch .pe-light-tone \"],\n varFnName: \"lightTintHoverFns\",\n isNoTouch: true\n}];\n/**\n * \n * @param {object} params\n * @param {object} [params.varFns]\n * @param {StyleFn} [params.superColor]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\nvar createColor = function createColor(_ref7) {\n var _ref7$varFns = _ref7.varFns,\n varFns = _ref7$varFns === void 0 ? {} : _ref7$varFns,\n superColor = _ref7.superColor,\n _ref7$varMixin = _ref7.varMixin,\n varMixin = _ref7$varMixin === void 0 ? function (o) {\n return o;\n } : _ref7$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return colorScopes.map(function (_ref8) {\n var scopes = _ref8.scopes,\n varFnName = _ref8.varFnName,\n isNoTouch = _ref8.isNoTouch;\n return createColorStyle({\n selector: selector,\n scopedSelector: createScopedSelector({\n scopes: scopes,\n selector: selector,\n isNoTouch: isNoTouch\n }),\n componentVars: componentVars,\n customVars: customVars,\n varFns: varFns[varFnName],\n superColor: superColor,\n varMixin: varMixin\n });\n });\n }\n );\n};\n/**\n * @param {object} vars \n * @param {object} behaviorVars\n * @returns {string|undefined} \n */\n\nvar createMarkerValue = function createMarkerValue(vars, behaviorVars) {\n var marker = Object.keys(behaviorVars).filter(function (bvar) {\n return vars[bvar] === true;\n }).join(\".\");\n return marker ? \"\\\"\".concat(marker, \"\\\"\") : undefined;\n};\n/**\n * Creates a CSS style from which the key can be read from the `content` property.\n * @param {object} vars \n * @param {object} behaviorVars \n * @returns {object}\n */\n\n\nvar createMarker = function createMarker(vars, behaviorVars) {\n if (!vars) {\n console.error(\"createMarker requires param `vars`\"); // eslint-disable-line no-console\n }\n\n var value = createMarkerValue(vars, behaviorVars);\n return value ? {\n \":before\": {\n content: value,\n display: \"none\"\n }\n } : undefined;\n};\n\n// @ts-check\n/**\n * @typedef {{[selector:string] : Style | any}} Style\n */\n\n/**\n * @type {Array element.\n * @param {...Array} styles - List of style Objects\n * @returns {void}\n */\n\nvar add = function add(id) {\n for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n styles[_key - 1] = arguments[_key];\n }\n\n return addToDocument.apply(void 0, [{\n id: id\n }].concat(styles));\n};\n/**\n * Removes a style from head.\n * @param {string} id - Identifier, used as HTMLElement id for the attached element.\n * @returns {void}\n */\n\n\nvar remove = function remove(id) {\n if (isServer) return;\n\n if (id) {\n var old = document.getElementById(id);\n\n if (old && old.parentNode) {\n old.parentNode.removeChild(old);\n }\n }\n};\n/**\n * Adds styles to the head.\n * @param {object} params\n * @param {string} params.id - Identifier, used as HTMLElement id for the attached element.\n * @param {object} [params.document] - Document reference.\n * @param {...Array} styles - List of style Objects.\n * @returns {void}\n */\n\n\nvar addToDocument = function addToDocument(_ref) {\n var id = _ref.id,\n document = _ref.document;\n if (isServer) return;\n var safeId = id.replace(ID_REGEX, \"_\");\n remove(safeId);\n var documentRef = document || window.document;\n var styleEl = documentRef.createElement(\"style\");\n\n if (safeId) {\n styleEl.setAttribute(\"id\", safeId);\n }\n\n for (var _len2 = arguments.length, styles = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n styles[_key2 - 1] = arguments[_key2];\n }\n\n styles.forEach(function (styles) {\n // each style returns a list\n if (Object.keys(styles).length) {\n styles.forEach(function (style) {\n var scoped = {\n \"@global\": style\n };\n var sheet = j2c.sheet(scoped);\n styleEl.appendChild(documentRef.createTextNode(sheet));\n });\n }\n });\n documentRef.head.appendChild(styleEl);\n};\n/**\n * \n * @param {object} params\n * @param {StyleObject|Array} params.styles\n * @param {string} [params.scope]\n * @returns {Array}\n */\n\n\nvar wrapInScope = function wrapInScope(_ref2) {\n var styles = _ref2.styles,\n scope = _ref2.scope;\n return scope ? [_defineProperty({}, scope, styles)] : styles;\n};\n/**\n * Adds component styles to head.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars\n * @param {object} [params.customVars]\n * @param {string} [params.mediaQuery]\n * @param {string} [params.scope]\n * @param {string} [params.identifier]\n * @returns {void}\n */\n\n\nvar addStyle = function addStyle(_ref4) {\n var selectors = _ref4.selectors,\n styleFns = _ref4.fns,\n vars = _ref4.vars,\n customVars = _ref4.customVars,\n mediaQuery = _ref4.mediaQuery,\n scope = _ref4.scope,\n identifier = _ref4.identifier;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n }).filter(function (list) {\n return list.length > 0;\n });\n\n if (styles.length === 0) {\n return;\n }\n\n var id = identifier || selector.trim().replace(/^[^a-z]?(.*)/, \"$1\");\n add(id, wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n }));\n};\n/**\n * Returns a list of style objects for a component.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars - Style configuration variables\n * @param {object} [params.customVars] - Style configuration variables\n * @param {string} [params.mediaQuery] - Mediaquery string\n * @param {string} [params.scope] - Scope selector\n * @returns {Array}\n */\n\n\nvar getStyle = function getStyle(_ref5) {\n var selectors = _ref5.selectors,\n styleFns = _ref5.fns,\n vars = _ref5.vars,\n customVars = _ref5.customVars,\n mediaQuery = _ref5.mediaQuery,\n scope = _ref5.scope;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n });\n return wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n });\n};\n/**\n * Adds component styles to head.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createAddStyle = function createAddStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {void}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref6 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref6.mediaQuery,\n scope = _ref6.scope;\n\n return addStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n });\n }\n );\n};\n/**\n * Returns styles for a component.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createGetStyle = function createGetStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {Array}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref7 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref7.mediaQuery,\n scope = _ref7.scope;\n\n return [getStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n })];\n }\n );\n};\n\nvar styler = {\n add: add,\n addStyle: addStyle,\n addToDocument: addToDocument,\n createAddStyle: createAddStyle,\n createGetStyle: createGetStyle,\n getStyle: getStyle,\n remove: remove\n};\n\n// @ts-check\n\n/**\n * @typedef {(selector: string, vars: object, customVars?: object) => Array} StyleFn\n * @typedef {{[s: string]: StyleFn}} StyleCollection\n */\n\n/**\n * Wraps an object with a selector.\n * @param {string} selector \n * @param {object} o \n * @returns {object}\n */\nvar sel = function sel(selector, o) {\n return _defineProperty({}, selector, o);\n};\n/**\n * Creates a right-to-left selector.\n * @param {string} selector\n * @returns {string}\n */\n\nvar selectorRTL = function selectorRTL(selector) {\n return \"*[dir=rtl] \".concat(selector, \", .pe-rtl \").concat(selector);\n};\n/**\n * Creates a rgba CSS color string.\n * @param {string} colorStr \n * @param {number} opacity \n * @returns {string}\n */\n\nvar rgba = function rgba(colorStr) {\n var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return \"rgba(\".concat(colorStr, \", \").concat(opacity, \")\");\n};\n/**\n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superStyle]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @param {StyleCollection} [params.componentVars]\n * @param {StyleCollection} [params.customVars]\n * @returns {Array}\n */\n\nvar createStyle = function createStyle(_ref2) {\n var varFns = _ref2.varFns,\n customVarFns = _ref2.customVarFns,\n superStyle = _ref2.superStyle,\n varMixin = _ref2.varMixin,\n selector = _ref2.selector,\n scopedSelector = _ref2.scopedSelector,\n _ref2$componentVars = _ref2.componentVars,\n componentVars = _ref2$componentVars === void 0 ? {} : _ref2$componentVars,\n customVars = _ref2.customVars;\n\n var allVars = _objectSpread2({}, componentVars, {}, customVars);\n\n var currentVars = customVars ? customVars : allVars;\n\n var general_styles = componentVars.general_styles,\n otherVars = _objectWithoutProperties(componentVars, [\"general_styles\"]);\n\n var baseLayout = superStyle !== undefined ? customVars !== undefined ? superStyle(selector, componentVars, customVars) : superStyle(selector, otherVars) : [];\n\n var fns = _objectSpread2({}, customVars ? customVarFns : {}, {}, varFns);\n\n return baseLayout.concat(Object.keys(varMixin(currentVars)).map(function (v) {\n return fns && fns[v] !== undefined ? fns[v](scopedSelector, allVars) : null;\n }).filter(function (s) {\n return s;\n }));\n};\n/**\n * \n * @param {object} params\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superLayout]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\n\nvar createLayout = function createLayout(_ref3) {\n var varFns = _ref3.varFns,\n customVarFns = _ref3.customVarFns,\n superLayout = _ref3.superLayout,\n _ref3$varMixin = _ref3.varMixin,\n varMixin = _ref3$varMixin === void 0 ? function (o) {\n return o;\n } : _ref3$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return createStyle({\n varFns: varFns,\n customVarFns: customVarFns,\n superStyle: superLayout,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: selector,\n componentVars: componentVars,\n customVars: customVars\n });\n }\n );\n};\n/**\n * \n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {object} [params.componentVars]\n * @param {object} [params.customVars] \n * @param {StyleFn} [params.superColor]\n * @param {StyleCollection} [params.varFns]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {Array}\n */\n\nvar createColorStyle = function createColorStyle(_ref4) {\n var selector = _ref4.selector,\n scopedSelector = _ref4.scopedSelector,\n componentVars = _ref4.componentVars,\n customVars = _ref4.customVars,\n varFns = _ref4.varFns,\n superColor = _ref4.superColor,\n varMixin = _ref4.varMixin;\n return createStyle({\n varFns: varFns,\n superStyle: superColor,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: scopedSelector,\n componentVars: componentVars,\n customVars: customVars\n });\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} params.isNoTouch\n* @returns {string}\n */\n\nvar appendPseudoClass = function appendPseudoClass(_ref5) {\n var scopes = _ref5.scopes,\n selector = _ref5.selector,\n isNoTouch = _ref5.isNoTouch;\n return isNoTouch ? scopes.map(function (s) {\n return s + selector + \":hover\";\n }).join(\",\") : scopes.map(function (s) {\n return s + selector;\n }).join(\",\");\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} [params.isNoTouch]\n * @returns {string}\n */\n\n\nvar createScopedSelector = function createScopedSelector(_ref6) {\n var scopes = _ref6.scopes,\n selector = _ref6.selector,\n _ref6$isNoTouch = _ref6.isNoTouch,\n isNoTouch = _ref6$isNoTouch === void 0 ? false : _ref6$isNoTouch;\n return selector.split(/\\s*,\\s*/).map(function (s) {\n return appendPseudoClass({\n scopes: scopes,\n selector: s,\n isNoTouch: isNoTouch\n });\n }).join(\"\");\n};\n/**\n * @typedef {object} ColorScopeObject\n * @property {Array} scopes\n * @property {string} varFnName\n * @property {boolean} isNoTouch\n */\n\n/**\n * @type {Array} colorScopes\n */\n\n\nvar colorScopes = [{\n // has/inside dark tone\n scopes: [\".pe-dark-tone\", \".pe-dark-tone \"],\n varFnName: \"darkTintFns\",\n isNoTouch: false\n}, {\n // normal, has/inside light tone\n scopes: [\"\", \".pe-light-tone\", \".pe-light-tone \"],\n varFnName: \"lightTintFns\",\n isNoTouch: false\n}, {\n // has/inside dark tone\n scopes: [\".pe-no-touch .pe-dark-tone \"],\n varFnName: \"darkTintHoverFns\",\n isNoTouch: true\n}, {\n // normal, has/inside light tone\n scopes: [\".pe-no-touch \", \".pe-no-touch .pe-light-tone \"],\n varFnName: \"lightTintHoverFns\",\n isNoTouch: true\n}];\n/**\n * \n * @param {object} params\n * @param {object} [params.varFns]\n * @param {StyleFn} [params.superColor]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\nvar createColor = function createColor(_ref7) {\n var _ref7$varFns = _ref7.varFns,\n varFns = _ref7$varFns === void 0 ? {} : _ref7$varFns,\n superColor = _ref7.superColor,\n _ref7$varMixin = _ref7.varMixin,\n varMixin = _ref7$varMixin === void 0 ? function (o) {\n return o;\n } : _ref7$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return colorScopes.map(function (_ref8) {\n var scopes = _ref8.scopes,\n varFnName = _ref8.varFnName,\n isNoTouch = _ref8.isNoTouch;\n return createColorStyle({\n selector: selector,\n scopedSelector: createScopedSelector({\n scopes: scopes,\n selector: selector,\n isNoTouch: isNoTouch\n }),\n componentVars: componentVars,\n customVars: customVars,\n varFns: varFns[varFnName],\n superColor: superColor,\n varMixin: varMixin\n });\n });\n }\n );\n};\n/**\n * @param {object} vars \n * @param {object} behaviorVars\n * @returns {string|undefined} \n */\n\nvar createMarkerValue = function createMarkerValue(vars, behaviorVars) {\n var marker = Object.keys(behaviorVars).filter(function (bvar) {\n return vars[bvar] === true;\n }).join(\".\");\n return marker ? \"\\\"\".concat(marker, \"\\\"\") : undefined;\n};\n/**\n * Creates a CSS style from which the key can be read from the `content` property.\n * @param {object} vars \n * @param {object} behaviorVars \n * @returns {object}\n */\n\n\nvar createMarker = function createMarker(vars, behaviorVars) {\n if (!vars) {\n console.error(\"createMarker requires param `vars`\"); // eslint-disable-line no-console\n }\n\n var value = createMarkerValue(vars, behaviorVars);\n return value ? {\n \":before\": {\n content: value,\n display: \"none\"\n }\n } : undefined;\n};\n\n// @ts-check\n/**\n * @typedef {{[selector:string] : Style | any}} Style\n */\n\n/**\n * @type {Array element. - * @param {...Array} styles - List of style Objects - * @returns {void} - */ - -var add = function add(id) { - for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - styles[_key - 1] = arguments[_key]; - } - - return addToDocument.apply(void 0, [{ - id: id - }].concat(styles)); -}; -/** - * Removes a style from head. - * @param {string} id - Identifier, used as HTMLElement id for the attached element. - * @returns {void} - */ - - -var remove = function remove(id) { - if (polythene_core__WEBPACK_IMPORTED_MODULE_1__["isServer"]) return; - - if (id) { - var old = document.getElementById(id); - - if (old && old.parentNode) { - old.parentNode.removeChild(old); - } - } -}; -/** - * Adds styles to the head. - * @param {object} params - * @param {string} params.id - Identifier, used as HTMLElement id for the attached element. - * @param {object} [params.document] - Document reference. - * @param {...Array} styles - List of style Objects. - * @returns {void} - */ - - -var addToDocument = function addToDocument(_ref) { - var id = _ref.id, - document = _ref.document; - if (polythene_core__WEBPACK_IMPORTED_MODULE_1__["isServer"]) return; - var safeId = id.replace(ID_REGEX, "_"); - remove(safeId); - var documentRef = document || window.document; - var styleEl = documentRef.createElement("style"); - - if (safeId) { - styleEl.setAttribute("id", safeId); - } - - for (var _len2 = arguments.length, styles = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - styles[_key2 - 1] = arguments[_key2]; - } - - styles.forEach(function (styles) { - // each style returns a list - if (Object.keys(styles).length) { - styles.forEach(function (style) { - var scoped = { - "@global": style - }; - var sheet = j2c.sheet(scoped); - styleEl.appendChild(documentRef.createTextNode(sheet)); - }); - } - }); - documentRef.head.appendChild(styleEl); -}; -/** - * - * @param {object} params - * @param {StyleObject|Array} params.styles - * @param {string} [params.scope] - * @returns {Array} - */ - - -var wrapInScope = function wrapInScope(_ref2) { - var styles = _ref2.styles, - scope = _ref2.scope; - return scope ? [_defineProperty({}, scope, styles)] : styles; -}; -/** - * Adds component styles to head. - * @param {object} params - * @param {Array} params.selectors - * @param {Array} params.fns - * @param {object} params.vars - * @param {object} [params.customVars] - * @param {string} [params.mediaQuery] - * @param {string} [params.scope] - * @param {string} [params.identifier] - * @returns {void} - */ - - -var addStyle = function addStyle(_ref4) { - var selectors = _ref4.selectors, - styleFns = _ref4.fns, - vars = _ref4.vars, - customVars = _ref4.customVars, - mediaQuery = _ref4.mediaQuery, - scope = _ref4.scope, - identifier = _ref4.identifier; - var prefix = scope ? " " : ""; - var selector = prefix + selectors.join(""); - var styles = styleFns.map(function (fn) { - return fn(selector, vars, customVars); - }).filter(function (list) { - return list.length > 0; - }); - - if (styles.length === 0) { - return; - } - - var id = identifier || selector.trim().replace(/^[^a-z]?(.*)/, "$1"); - add(id, wrapInScope({ - styles: wrapInScope({ - styles: styles, - scope: scope - }), - scope: mediaQuery - })); -}; -/** - * Returns a list of style objects for a component. - * @param {object} params - * @param {Array} params.selectors - * @param {Array} params.fns - * @param {object} params.vars - Style configuration variables - * @param {object} [params.customVars] - Style configuration variables - * @param {string} [params.mediaQuery] - Mediaquery string - * @param {string} [params.scope] - Scope selector - * @returns {Array} - */ - - -var getStyle = function getStyle(_ref5) { - var selectors = _ref5.selectors, - styleFns = _ref5.fns, - vars = _ref5.vars, - customVars = _ref5.customVars, - mediaQuery = _ref5.mediaQuery, - scope = _ref5.scope; - var prefix = scope ? " " : ""; - var selector = prefix + selectors.join(""); - var styles = styleFns.map(function (fn) { - return fn(selector, vars, customVars); - }); - return wrapInScope({ - styles: wrapInScope({ - styles: styles, - scope: scope - }), - scope: mediaQuery - }); -}; -/** - * Adds component styles to head. - * @param {string} selector - * @param {Array} fns - * @param {object} vars - Style configuration variables - */ - - -var createAddStyle = function createAddStyle(selector, fns, vars) { - return ( - /** - * @param {string} [customSelector=""] - * @param {object} customVars - * @param {object} [scoping={}] - * @param {string} [scoping.mediaQuery] - * @param {string} [scoping.scope] - * @returns {void} - */ - function () { - var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; - var customVars = arguments.length > 1 ? arguments[1] : undefined; - - var _ref6 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, - mediaQuery = _ref6.mediaQuery, - scope = _ref6.scope; - - return addStyle({ - selectors: [selector, customSelector], - fns: fns, - vars: vars, - customVars: customVars, - mediaQuery: mediaQuery, - scope: scope - }); - } - ); -}; -/** - * Returns styles for a component. - * @param {string} selector - * @param {Array} fns - * @param {object} vars - Style configuration variables - */ - - -var createGetStyle = function createGetStyle(selector, fns, vars) { - return ( - /** - * @param {string} [customSelector=""] - * @param {object} customVars - * @param {object} [scoping={}] - * @param {string} [scoping.mediaQuery] - * @param {string} [scoping.scope] - * @returns {Array} - */ - function () { - var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; - var customVars = arguments.length > 1 ? arguments[1] : undefined; - - var _ref7 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, - mediaQuery = _ref7.mediaQuery, - scope = _ref7.scope; - - return [getStyle({ - selectors: [selector, customSelector], - fns: fns, - vars: vars, - customVars: customVars, - mediaQuery: mediaQuery, - scope: scope - })]; - } - ); -}; - -var styler = { - add: add, - addStyle: addStyle, - addToDocument: addToDocument, - createAddStyle: createAddStyle, - createGetStyle: createGetStyle, - getStyle: getStyle, - remove: remove -}; // @ts-check - -/** - * @typedef {(selector: string, vars: object, customVars?: object) => Array} StyleFn - * @typedef {{[s: string]: StyleFn}} StyleCollection - */ - -/** - * Wraps an object with a selector. - * @param {string} selector - * @param {object} o - * @returns {object} - */ - -var sel = function sel(selector, o) { - return _defineProperty({}, selector, o); -}; -/** - * Creates a right-to-left selector. - * @param {string} selector - * @returns {string} - */ - - -var selectorRTL = function selectorRTL(selector) { - return "*[dir=rtl] ".concat(selector, ", .pe-rtl ").concat(selector); -}; -/** - * Creates a rgba CSS color string. - * @param {string} colorStr - * @param {number} opacity - * @returns {string} - */ - - -var rgba = function rgba(colorStr) { - var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; - return "rgba(".concat(colorStr, ", ").concat(opacity, ")"); -}; -/** - * @param {object} params - * @param {string} [params.selector] - * @param {string} [params.scopedSelector] - * @param {StyleCollection} [params.varFns] - * @param {StyleCollection} [params.customVarFns] - * @param {StyleFn} [params.superStyle] - * @param {(_:any) => StyleCollection} [params.varMixin] - * @param {StyleCollection} [params.componentVars] - * @param {StyleCollection} [params.customVars] - * @returns {Array} - */ - - -var createStyle = function createStyle(_ref2) { - var varFns = _ref2.varFns, - customVarFns = _ref2.customVarFns, - superStyle = _ref2.superStyle, - varMixin = _ref2.varMixin, - selector = _ref2.selector, - scopedSelector = _ref2.scopedSelector, - _ref2$componentVars = _ref2.componentVars, - componentVars = _ref2$componentVars === void 0 ? {} : _ref2$componentVars, - customVars = _ref2.customVars; - - var allVars = _objectSpread2({}, componentVars, {}, customVars); - - var currentVars = customVars ? customVars : allVars; - - var general_styles = componentVars.general_styles, - otherVars = _objectWithoutProperties(componentVars, ["general_styles"]); - - var baseLayout = superStyle !== undefined ? customVars !== undefined ? superStyle(selector, componentVars, customVars) : superStyle(selector, otherVars) : []; - - var fns = _objectSpread2({}, customVars ? customVarFns : {}, {}, varFns); - - return baseLayout.concat(Object.keys(varMixin(currentVars)).map(function (v) { - return fns && fns[v] !== undefined ? fns[v](scopedSelector, allVars) : null; - }).filter(function (s) { - return s; - })); -}; -/** - * - * @param {object} params - * @param {StyleCollection} [params.varFns] - * @param {StyleCollection} [params.customVarFns] - * @param {StyleFn} [params.superLayout] - * @param {(_:any) => StyleCollection} [params.varMixin] - * @returns {StyleFn} - */ - - -var createLayout = function createLayout(_ref3) { - var varFns = _ref3.varFns, - customVarFns = _ref3.customVarFns, - superLayout = _ref3.superLayout, - _ref3$varMixin = _ref3.varMixin, - varMixin = _ref3$varMixin === void 0 ? function (o) { - return o; - } : _ref3$varMixin; - return ( - /** - * @param {string} selector - * @param {object} componentVars - * @param {object} [customVars] - * @returns {Array} - */ - function (selector, componentVars, customVars) { - return createStyle({ - varFns: varFns, - customVarFns: customVarFns, - superStyle: superLayout, - varMixin: varMixin, - selector: selector, - scopedSelector: selector, - componentVars: componentVars, - customVars: customVars - }); - } - ); -}; -/** - * - * @param {object} params - * @param {string} [params.selector] - * @param {string} [params.scopedSelector] - * @param {object} [params.componentVars] - * @param {object} [params.customVars] - * @param {StyleFn} [params.superColor] - * @param {StyleCollection} [params.varFns] - * @param {(_:any) => StyleCollection} [params.varMixin] - * @returns {Array} - */ - - -var createColorStyle = function createColorStyle(_ref4) { - var selector = _ref4.selector, - scopedSelector = _ref4.scopedSelector, - componentVars = _ref4.componentVars, - customVars = _ref4.customVars, - varFns = _ref4.varFns, - superColor = _ref4.superColor, - varMixin = _ref4.varMixin; - return createStyle({ - varFns: varFns, - superStyle: superColor, - varMixin: varMixin, - selector: selector, - scopedSelector: scopedSelector, - componentVars: componentVars, - customVars: customVars - }); -}; -/** - * - * @param {object} params - * @param {Array} params.scopes - * @param {string} params.selector - * @param {boolean} params.isNoTouch -* @returns {string} - */ - - -var appendPseudoClass = function appendPseudoClass(_ref5) { - var scopes = _ref5.scopes, - selector = _ref5.selector, - isNoTouch = _ref5.isNoTouch; - return isNoTouch ? scopes.map(function (s) { - return s + selector + ":hover"; - }).join(",") : scopes.map(function (s) { - return s + selector; - }).join(","); -}; -/** - * - * @param {object} params - * @param {Array} params.scopes - * @param {string} params.selector - * @param {boolean} [params.isNoTouch] - * @returns {string} - */ - - -var createScopedSelector = function createScopedSelector(_ref6) { - var scopes = _ref6.scopes, - selector = _ref6.selector, - _ref6$isNoTouch = _ref6.isNoTouch, - isNoTouch = _ref6$isNoTouch === void 0 ? false : _ref6$isNoTouch; - return selector.split(/\s*,\s*/).map(function (s) { - return appendPseudoClass({ - scopes: scopes, - selector: s, - isNoTouch: isNoTouch - }); - }).join(""); -}; -/** - * @typedef {object} ColorScopeObject - * @property {Array} scopes - * @property {string} varFnName - * @property {boolean} isNoTouch - */ - -/** - * @type {Array} colorScopes - */ - - -var colorScopes = [{ - // has/inside dark tone - scopes: [".pe-dark-tone", ".pe-dark-tone "], - varFnName: "darkTintFns", - isNoTouch: false -}, { - // normal, has/inside light tone - scopes: ["", ".pe-light-tone", ".pe-light-tone "], - varFnName: "lightTintFns", - isNoTouch: false -}, { - // has/inside dark tone - scopes: [".pe-no-touch .pe-dark-tone "], - varFnName: "darkTintHoverFns", - isNoTouch: true -}, { - // normal, has/inside light tone - scopes: [".pe-no-touch ", ".pe-no-touch .pe-light-tone "], - varFnName: "lightTintHoverFns", - isNoTouch: true -}]; -/** - * - * @param {object} params - * @param {object} [params.varFns] - * @param {StyleFn} [params.superColor] - * @param {(_:any) => StyleCollection} [params.varMixin] - * @returns {StyleFn} - */ - -var createColor = function createColor(_ref7) { - var _ref7$varFns = _ref7.varFns, - varFns = _ref7$varFns === void 0 ? {} : _ref7$varFns, - superColor = _ref7.superColor, - _ref7$varMixin = _ref7.varMixin, - varMixin = _ref7$varMixin === void 0 ? function (o) { - return o; - } : _ref7$varMixin; - return ( - /** - * @param {string} selector - * @param {object} componentVars - * @param {object} [customVars] - * @returns {Array} - */ - function (selector, componentVars, customVars) { - return colorScopes.map(function (_ref8) { - var scopes = _ref8.scopes, - varFnName = _ref8.varFnName, - isNoTouch = _ref8.isNoTouch; - return createColorStyle({ - selector: selector, - scopedSelector: createScopedSelector({ - scopes: scopes, - selector: selector, - isNoTouch: isNoTouch - }), - componentVars: componentVars, - customVars: customVars, - varFns: varFns[varFnName], - superColor: superColor, - varMixin: varMixin - }); - }); - } - ); -}; -/** - * @param {object} vars - * @param {object} behaviorVars - * @returns {string|undefined} - */ - - -var createMarkerValue = function createMarkerValue(vars, behaviorVars) { - var marker = Object.keys(behaviorVars).filter(function (bvar) { - return vars[bvar] === true; - }).join("."); - return marker ? "\"".concat(marker, "\"") : undefined; -}; -/** - * Creates a CSS style from which the key can be read from the `content` property. - * @param {object} vars - * @param {object} behaviorVars - * @returns {object} - */ - - -var createMarker = function createMarker(vars, behaviorVars) { - if (!vars) { - console.error("createMarker requires param `vars`"); // eslint-disable-line no-console - } - - var value = createMarkerValue(vars, behaviorVars); - return value ? { - ":before": { - content: value, - display: "none" - } - } : undefined; -}; // @ts-check - -/** - * @typedef {{[selector:string] : Style | any}} Style - */ - -/** - * @type {Array element.\n * @param {...Array} styles - List of style Objects\n * @returns {void}\n */\n\nvar add = function add(id) {\n for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n styles[_key - 1] = arguments[_key];\n }\n\n return addToDocument.apply(void 0, [{\n id: id\n }].concat(styles));\n};\n/**\n * Removes a style from head.\n * @param {string} id - Identifier, used as HTMLElement id for the attached element.\n * @returns {void}\n */\n\n\nvar remove = function remove(id) {\n if (isServer) return;\n\n if (id) {\n var old = document.getElementById(id);\n\n if (old && old.parentNode) {\n old.parentNode.removeChild(old);\n }\n }\n};\n/**\n * Adds styles to the head.\n * @param {object} params\n * @param {string} params.id - Identifier, used as HTMLElement id for the attached element.\n * @param {object} [params.document] - Document reference.\n * @param {...Array} styles - List of style Objects.\n * @returns {void}\n */\n\n\nvar addToDocument = function addToDocument(_ref) {\n var id = _ref.id,\n document = _ref.document;\n if (isServer) return;\n var safeId = id.replace(ID_REGEX, \"_\");\n remove(safeId);\n var documentRef = document || window.document;\n var styleEl = documentRef.createElement(\"style\");\n\n if (safeId) {\n styleEl.setAttribute(\"id\", safeId);\n }\n\n for (var _len2 = arguments.length, styles = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n styles[_key2 - 1] = arguments[_key2];\n }\n\n styles.forEach(function (styles) {\n // each style returns a list\n if (Object.keys(styles).length) {\n styles.forEach(function (style) {\n var scoped = {\n \"@global\": style\n };\n var sheet = j2c.sheet(scoped);\n styleEl.appendChild(documentRef.createTextNode(sheet));\n });\n }\n });\n documentRef.head.appendChild(styleEl);\n};\n/**\n * \n * @param {object} params\n * @param {StyleObject|Array} params.styles\n * @param {string} [params.scope]\n * @returns {Array}\n */\n\n\nvar wrapInScope = function wrapInScope(_ref2) {\n var styles = _ref2.styles,\n scope = _ref2.scope;\n return scope ? [_defineProperty({}, scope, styles)] : styles;\n};\n/**\n * Adds component styles to head.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars\n * @param {object} [params.customVars]\n * @param {string} [params.mediaQuery]\n * @param {string} [params.scope]\n * @param {string} [params.identifier]\n * @returns {void}\n */\n\n\nvar addStyle = function addStyle(_ref4) {\n var selectors = _ref4.selectors,\n styleFns = _ref4.fns,\n vars = _ref4.vars,\n customVars = _ref4.customVars,\n mediaQuery = _ref4.mediaQuery,\n scope = _ref4.scope,\n identifier = _ref4.identifier;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n }).filter(function (list) {\n return list.length > 0;\n });\n\n if (styles.length === 0) {\n return;\n }\n\n var id = identifier || selector.trim().replace(/^[^a-z]?(.*)/, \"$1\");\n add(id, wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n }));\n};\n/**\n * Returns a list of style objects for a component.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars - Style configuration variables\n * @param {object} [params.customVars] - Style configuration variables\n * @param {string} [params.mediaQuery] - Mediaquery string\n * @param {string} [params.scope] - Scope selector\n * @returns {Array}\n */\n\n\nvar getStyle = function getStyle(_ref5) {\n var selectors = _ref5.selectors,\n styleFns = _ref5.fns,\n vars = _ref5.vars,\n customVars = _ref5.customVars,\n mediaQuery = _ref5.mediaQuery,\n scope = _ref5.scope;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n });\n return wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n });\n};\n/**\n * Adds component styles to head.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createAddStyle = function createAddStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {void}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref6 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref6.mediaQuery,\n scope = _ref6.scope;\n\n return addStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n });\n }\n );\n};\n/**\n * Returns styles for a component.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createGetStyle = function createGetStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {Array}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref7 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref7.mediaQuery,\n scope = _ref7.scope;\n\n return [getStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n })];\n }\n );\n};\n\nvar styler = {\n add: add,\n addStyle: addStyle,\n addToDocument: addToDocument,\n createAddStyle: createAddStyle,\n createGetStyle: createGetStyle,\n getStyle: getStyle,\n remove: remove\n};\n\n// @ts-check\n\n/**\n * @typedef {(selector: string, vars: object, customVars?: object) => Array} StyleFn\n * @typedef {{[s: string]: StyleFn}} StyleCollection\n */\n\n/**\n * Wraps an object with a selector.\n * @param {string} selector \n * @param {object} o \n * @returns {object}\n */\nvar sel = function sel(selector, o) {\n return _defineProperty({}, selector, o);\n};\n/**\n * Creates a right-to-left selector.\n * @param {string} selector\n * @returns {string}\n */\n\nvar selectorRTL = function selectorRTL(selector) {\n return \"*[dir=rtl] \".concat(selector, \", .pe-rtl \").concat(selector);\n};\n/**\n * Creates a rgba CSS color string.\n * @param {string} colorStr \n * @param {number} opacity \n * @returns {string}\n */\n\nvar rgba = function rgba(colorStr) {\n var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return \"rgba(\".concat(colorStr, \", \").concat(opacity, \")\");\n};\n/**\n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superStyle]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @param {StyleCollection} [params.componentVars]\n * @param {StyleCollection} [params.customVars]\n * @returns {Array}\n */\n\nvar createStyle = function createStyle(_ref2) {\n var varFns = _ref2.varFns,\n customVarFns = _ref2.customVarFns,\n superStyle = _ref2.superStyle,\n varMixin = _ref2.varMixin,\n selector = _ref2.selector,\n scopedSelector = _ref2.scopedSelector,\n _ref2$componentVars = _ref2.componentVars,\n componentVars = _ref2$componentVars === void 0 ? {} : _ref2$componentVars,\n customVars = _ref2.customVars;\n\n var allVars = _objectSpread2({}, componentVars, {}, customVars);\n\n var currentVars = customVars ? customVars : allVars;\n\n var general_styles = componentVars.general_styles,\n otherVars = _objectWithoutProperties(componentVars, [\"general_styles\"]);\n\n var baseLayout = superStyle !== undefined ? customVars !== undefined ? superStyle(selector, componentVars, customVars) : superStyle(selector, otherVars) : [];\n\n var fns = _objectSpread2({}, customVars ? customVarFns : {}, {}, varFns);\n\n return baseLayout.concat(Object.keys(varMixin(currentVars)).map(function (v) {\n return fns && fns[v] !== undefined ? fns[v](scopedSelector, allVars) : null;\n }).filter(function (s) {\n return s;\n }));\n};\n/**\n * \n * @param {object} params\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superLayout]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\n\nvar createLayout = function createLayout(_ref3) {\n var varFns = _ref3.varFns,\n customVarFns = _ref3.customVarFns,\n superLayout = _ref3.superLayout,\n _ref3$varMixin = _ref3.varMixin,\n varMixin = _ref3$varMixin === void 0 ? function (o) {\n return o;\n } : _ref3$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return createStyle({\n varFns: varFns,\n customVarFns: customVarFns,\n superStyle: superLayout,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: selector,\n componentVars: componentVars,\n customVars: customVars\n });\n }\n );\n};\n/**\n * \n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {object} [params.componentVars]\n * @param {object} [params.customVars] \n * @param {StyleFn} [params.superColor]\n * @param {StyleCollection} [params.varFns]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {Array}\n */\n\nvar createColorStyle = function createColorStyle(_ref4) {\n var selector = _ref4.selector,\n scopedSelector = _ref4.scopedSelector,\n componentVars = _ref4.componentVars,\n customVars = _ref4.customVars,\n varFns = _ref4.varFns,\n superColor = _ref4.superColor,\n varMixin = _ref4.varMixin;\n return createStyle({\n varFns: varFns,\n superStyle: superColor,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: scopedSelector,\n componentVars: componentVars,\n customVars: customVars\n });\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} params.isNoTouch\n* @returns {string}\n */\n\nvar appendPseudoClass = function appendPseudoClass(_ref5) {\n var scopes = _ref5.scopes,\n selector = _ref5.selector,\n isNoTouch = _ref5.isNoTouch;\n return isNoTouch ? scopes.map(function (s) {\n return s + selector + \":hover\";\n }).join(\",\") : scopes.map(function (s) {\n return s + selector;\n }).join(\",\");\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} [params.isNoTouch]\n * @returns {string}\n */\n\n\nvar createScopedSelector = function createScopedSelector(_ref6) {\n var scopes = _ref6.scopes,\n selector = _ref6.selector,\n _ref6$isNoTouch = _ref6.isNoTouch,\n isNoTouch = _ref6$isNoTouch === void 0 ? false : _ref6$isNoTouch;\n return selector.split(/\\s*,\\s*/).map(function (s) {\n return appendPseudoClass({\n scopes: scopes,\n selector: s,\n isNoTouch: isNoTouch\n });\n }).join(\"\");\n};\n/**\n * @typedef {object} ColorScopeObject\n * @property {Array} scopes\n * @property {string} varFnName\n * @property {boolean} isNoTouch\n */\n\n/**\n * @type {Array} colorScopes\n */\n\n\nvar colorScopes = [{\n // has/inside dark tone\n scopes: [\".pe-dark-tone\", \".pe-dark-tone \"],\n varFnName: \"darkTintFns\",\n isNoTouch: false\n}, {\n // normal, has/inside light tone\n scopes: [\"\", \".pe-light-tone\", \".pe-light-tone \"],\n varFnName: \"lightTintFns\",\n isNoTouch: false\n}, {\n // has/inside dark tone\n scopes: [\".pe-no-touch .pe-dark-tone \"],\n varFnName: \"darkTintHoverFns\",\n isNoTouch: true\n}, {\n // normal, has/inside light tone\n scopes: [\".pe-no-touch \", \".pe-no-touch .pe-light-tone \"],\n varFnName: \"lightTintHoverFns\",\n isNoTouch: true\n}];\n/**\n * \n * @param {object} params\n * @param {object} [params.varFns]\n * @param {StyleFn} [params.superColor]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\nvar createColor = function createColor(_ref7) {\n var _ref7$varFns = _ref7.varFns,\n varFns = _ref7$varFns === void 0 ? {} : _ref7$varFns,\n superColor = _ref7.superColor,\n _ref7$varMixin = _ref7.varMixin,\n varMixin = _ref7$varMixin === void 0 ? function (o) {\n return o;\n } : _ref7$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return colorScopes.map(function (_ref8) {\n var scopes = _ref8.scopes,\n varFnName = _ref8.varFnName,\n isNoTouch = _ref8.isNoTouch;\n return createColorStyle({\n selector: selector,\n scopedSelector: createScopedSelector({\n scopes: scopes,\n selector: selector,\n isNoTouch: isNoTouch\n }),\n componentVars: componentVars,\n customVars: customVars,\n varFns: varFns[varFnName],\n superColor: superColor,\n varMixin: varMixin\n });\n });\n }\n );\n};\n/**\n * @param {object} vars \n * @param {object} behaviorVars\n * @returns {string|undefined} \n */\n\nvar createMarkerValue = function createMarkerValue(vars, behaviorVars) {\n var marker = Object.keys(behaviorVars).filter(function (bvar) {\n return vars[bvar] === true;\n }).join(\".\");\n return marker ? \"\\\"\".concat(marker, \"\\\"\") : undefined;\n};\n/**\n * Creates a CSS style from which the key can be read from the `content` property.\n * @param {object} vars \n * @param {object} behaviorVars \n * @returns {object}\n */\n\n\nvar createMarker = function createMarker(vars, behaviorVars) {\n if (!vars) {\n console.error(\"createMarker requires param `vars`\"); // eslint-disable-line no-console\n }\n\n var value = createMarkerValue(vars, behaviorVars);\n return value ? {\n \":before\": {\n content: value,\n display: \"none\"\n }\n } : undefined;\n};\n\n// @ts-check\n/**\n * @typedef {{[selector:string] : Style | any}} Style\n */\n\n/**\n * @type {Array element.\n * @param {...Array} styles - List of style Objects\n * @returns {void}\n */\n\nvar add = function add(id) {\n for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n styles[_key - 1] = arguments[_key];\n }\n\n return addToDocument.apply(void 0, [{\n id: id\n }].concat(styles));\n};\n/**\n * Removes a style from head.\n * @param {string} id - Identifier, used as HTMLElement id for the attached element.\n * @returns {void}\n */\n\n\nvar remove = function remove(id) {\n if (isServer) return;\n\n if (id) {\n var old = document.getElementById(id);\n\n if (old && old.parentNode) {\n old.parentNode.removeChild(old);\n }\n }\n};\n/**\n * Adds styles to the head.\n * @param {object} params\n * @param {string} params.id - Identifier, used as HTMLElement id for the attached element.\n * @param {object} [params.document] - Document reference.\n * @param {...Array} styles - List of style Objects.\n * @returns {void}\n */\n\n\nvar addToDocument = function addToDocument(_ref) {\n var id = _ref.id,\n document = _ref.document;\n if (isServer) return;\n var safeId = id.replace(ID_REGEX, \"_\");\n remove(safeId);\n var documentRef = document || window.document;\n var styleEl = documentRef.createElement(\"style\");\n\n if (safeId) {\n styleEl.setAttribute(\"id\", safeId);\n }\n\n for (var _len2 = arguments.length, styles = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n styles[_key2 - 1] = arguments[_key2];\n }\n\n styles.forEach(function (styles) {\n // each style returns a list\n if (Object.keys(styles).length) {\n styles.forEach(function (style) {\n var scoped = {\n \"@global\": style\n };\n var sheet = j2c.sheet(scoped);\n styleEl.appendChild(documentRef.createTextNode(sheet));\n });\n }\n });\n documentRef.head.appendChild(styleEl);\n};\n/**\n * \n * @param {object} params\n * @param {StyleObject|Array} params.styles\n * @param {string} [params.scope]\n * @returns {Array}\n */\n\n\nvar wrapInScope = function wrapInScope(_ref2) {\n var styles = _ref2.styles,\n scope = _ref2.scope;\n return scope ? [_defineProperty({}, scope, styles)] : styles;\n};\n/**\n * Adds component styles to head.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars\n * @param {object} [params.customVars]\n * @param {string} [params.mediaQuery]\n * @param {string} [params.scope]\n * @param {string} [params.identifier]\n * @returns {void}\n */\n\n\nvar addStyle = function addStyle(_ref4) {\n var selectors = _ref4.selectors,\n styleFns = _ref4.fns,\n vars = _ref4.vars,\n customVars = _ref4.customVars,\n mediaQuery = _ref4.mediaQuery,\n scope = _ref4.scope,\n identifier = _ref4.identifier;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n }).filter(function (list) {\n return list.length > 0;\n });\n\n if (styles.length === 0) {\n return;\n }\n\n var id = identifier || selector.trim().replace(/^[^a-z]?(.*)/, \"$1\");\n add(id, wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n }));\n};\n/**\n * Returns a list of style objects for a component.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars - Style configuration variables\n * @param {object} [params.customVars] - Style configuration variables\n * @param {string} [params.mediaQuery] - Mediaquery string\n * @param {string} [params.scope] - Scope selector\n * @returns {Array}\n */\n\n\nvar getStyle = function getStyle(_ref5) {\n var selectors = _ref5.selectors,\n styleFns = _ref5.fns,\n vars = _ref5.vars,\n customVars = _ref5.customVars,\n mediaQuery = _ref5.mediaQuery,\n scope = _ref5.scope;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n });\n return wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n });\n};\n/**\n * Adds component styles to head.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createAddStyle = function createAddStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {void}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref6 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref6.mediaQuery,\n scope = _ref6.scope;\n\n return addStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n });\n }\n );\n};\n/**\n * Returns styles for a component.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createGetStyle = function createGetStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {Array}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref7 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref7.mediaQuery,\n scope = _ref7.scope;\n\n return [getStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n })];\n }\n );\n};\n\nvar styler = {\n add: add,\n addStyle: addStyle,\n addToDocument: addToDocument,\n createAddStyle: createAddStyle,\n createGetStyle: createGetStyle,\n getStyle: getStyle,\n remove: remove\n};\n\n// @ts-check\n\n/**\n * @typedef {(selector: string, vars: object, customVars?: object) => Array} StyleFn\n * @typedef {{[s: string]: StyleFn}} StyleCollection\n */\n\n/**\n * Wraps an object with a selector.\n * @param {string} selector \n * @param {object} o \n * @returns {object}\n */\nvar sel = function sel(selector, o) {\n return _defineProperty({}, selector, o);\n};\n/**\n * Creates a right-to-left selector.\n * @param {string} selector\n * @returns {string}\n */\n\nvar selectorRTL = function selectorRTL(selector) {\n return \"*[dir=rtl] \".concat(selector, \", .pe-rtl \").concat(selector);\n};\n/**\n * Creates a rgba CSS color string.\n * @param {string} colorStr \n * @param {number} opacity \n * @returns {string}\n */\n\nvar rgba = function rgba(colorStr) {\n var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return \"rgba(\".concat(colorStr, \", \").concat(opacity, \")\");\n};\n/**\n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superStyle]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @param {StyleCollection} [params.componentVars]\n * @param {StyleCollection} [params.customVars]\n * @returns {Array}\n */\n\nvar createStyle = function createStyle(_ref2) {\n var varFns = _ref2.varFns,\n customVarFns = _ref2.customVarFns,\n superStyle = _ref2.superStyle,\n varMixin = _ref2.varMixin,\n selector = _ref2.selector,\n scopedSelector = _ref2.scopedSelector,\n _ref2$componentVars = _ref2.componentVars,\n componentVars = _ref2$componentVars === void 0 ? {} : _ref2$componentVars,\n customVars = _ref2.customVars;\n\n var allVars = _objectSpread2({}, componentVars, {}, customVars);\n\n var currentVars = customVars ? customVars : allVars;\n\n var general_styles = componentVars.general_styles,\n otherVars = _objectWithoutProperties(componentVars, [\"general_styles\"]);\n\n var baseLayout = superStyle !== undefined ? customVars !== undefined ? superStyle(selector, componentVars, customVars) : superStyle(selector, otherVars) : [];\n\n var fns = _objectSpread2({}, customVars ? customVarFns : {}, {}, varFns);\n\n return baseLayout.concat(Object.keys(varMixin(currentVars)).map(function (v) {\n return fns && fns[v] !== undefined ? fns[v](scopedSelector, allVars) : null;\n }).filter(function (s) {\n return s;\n }));\n};\n/**\n * \n * @param {object} params\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superLayout]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\n\nvar createLayout = function createLayout(_ref3) {\n var varFns = _ref3.varFns,\n customVarFns = _ref3.customVarFns,\n superLayout = _ref3.superLayout,\n _ref3$varMixin = _ref3.varMixin,\n varMixin = _ref3$varMixin === void 0 ? function (o) {\n return o;\n } : _ref3$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return createStyle({\n varFns: varFns,\n customVarFns: customVarFns,\n superStyle: superLayout,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: selector,\n componentVars: componentVars,\n customVars: customVars\n });\n }\n );\n};\n/**\n * \n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {object} [params.componentVars]\n * @param {object} [params.customVars] \n * @param {StyleFn} [params.superColor]\n * @param {StyleCollection} [params.varFns]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {Array}\n */\n\nvar createColorStyle = function createColorStyle(_ref4) {\n var selector = _ref4.selector,\n scopedSelector = _ref4.scopedSelector,\n componentVars = _ref4.componentVars,\n customVars = _ref4.customVars,\n varFns = _ref4.varFns,\n superColor = _ref4.superColor,\n varMixin = _ref4.varMixin;\n return createStyle({\n varFns: varFns,\n superStyle: superColor,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: scopedSelector,\n componentVars: componentVars,\n customVars: customVars\n });\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} params.isNoTouch\n* @returns {string}\n */\n\nvar appendPseudoClass = function appendPseudoClass(_ref5) {\n var scopes = _ref5.scopes,\n selector = _ref5.selector,\n isNoTouch = _ref5.isNoTouch;\n return isNoTouch ? scopes.map(function (s) {\n return s + selector + \":hover\";\n }).join(\",\") : scopes.map(function (s) {\n return s + selector;\n }).join(\",\");\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} [params.isNoTouch]\n * @returns {string}\n */\n\n\nvar createScopedSelector = function createScopedSelector(_ref6) {\n var scopes = _ref6.scopes,\n selector = _ref6.selector,\n _ref6$isNoTouch = _ref6.isNoTouch,\n isNoTouch = _ref6$isNoTouch === void 0 ? false : _ref6$isNoTouch;\n return selector.split(/\\s*,\\s*/).map(function (s) {\n return appendPseudoClass({\n scopes: scopes,\n selector: s,\n isNoTouch: isNoTouch\n });\n }).join(\"\");\n};\n/**\n * @typedef {object} ColorScopeObject\n * @property {Array} scopes\n * @property {string} varFnName\n * @property {boolean} isNoTouch\n */\n\n/**\n * @type {Array} colorScopes\n */\n\n\nvar colorScopes = [{\n // has/inside dark tone\n scopes: [\".pe-dark-tone\", \".pe-dark-tone \"],\n varFnName: \"darkTintFns\",\n isNoTouch: false\n}, {\n // normal, has/inside light tone\n scopes: [\"\", \".pe-light-tone\", \".pe-light-tone \"],\n varFnName: \"lightTintFns\",\n isNoTouch: false\n}, {\n // has/inside dark tone\n scopes: [\".pe-no-touch .pe-dark-tone \"],\n varFnName: \"darkTintHoverFns\",\n isNoTouch: true\n}, {\n // normal, has/inside light tone\n scopes: [\".pe-no-touch \", \".pe-no-touch .pe-light-tone \"],\n varFnName: \"lightTintHoverFns\",\n isNoTouch: true\n}];\n/**\n * \n * @param {object} params\n * @param {object} [params.varFns]\n * @param {StyleFn} [params.superColor]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\nvar createColor = function createColor(_ref7) {\n var _ref7$varFns = _ref7.varFns,\n varFns = _ref7$varFns === void 0 ? {} : _ref7$varFns,\n superColor = _ref7.superColor,\n _ref7$varMixin = _ref7.varMixin,\n varMixin = _ref7$varMixin === void 0 ? function (o) {\n return o;\n } : _ref7$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return colorScopes.map(function (_ref8) {\n var scopes = _ref8.scopes,\n varFnName = _ref8.varFnName,\n isNoTouch = _ref8.isNoTouch;\n return createColorStyle({\n selector: selector,\n scopedSelector: createScopedSelector({\n scopes: scopes,\n selector: selector,\n isNoTouch: isNoTouch\n }),\n componentVars: componentVars,\n customVars: customVars,\n varFns: varFns[varFnName],\n superColor: superColor,\n varMixin: varMixin\n });\n });\n }\n );\n};\n/**\n * @param {object} vars \n * @param {object} behaviorVars\n * @returns {string|undefined} \n */\n\nvar createMarkerValue = function createMarkerValue(vars, behaviorVars) {\n var marker = Object.keys(behaviorVars).filter(function (bvar) {\n return vars[bvar] === true;\n }).join(\".\");\n return marker ? \"\\\"\".concat(marker, \"\\\"\") : undefined;\n};\n/**\n * Creates a CSS style from which the key can be read from the `content` property.\n * @param {object} vars \n * @param {object} behaviorVars \n * @returns {object}\n */\n\n\nvar createMarker = function createMarker(vars, behaviorVars) {\n if (!vars) {\n console.error(\"createMarker requires param `vars`\"); // eslint-disable-line no-console\n }\n\n var value = createMarkerValue(vars, behaviorVars);\n return value ? {\n \":before\": {\n content: value,\n display: \"none\"\n }\n } : undefined;\n};\n\n// @ts-check\n/**\n * @typedef {{[selector:string] : Style | any}} Style\n */\n\n/**\n * @type {Array element.\n * @param {...Array} styles - List of style Objects\n * @returns {void}\n */\n\nvar add = function add(id) {\n for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n styles[_key - 1] = arguments[_key];\n }\n\n return addToDocument.apply(void 0, [{\n id: id\n }].concat(styles));\n};\n/**\n * Removes a style from head.\n * @param {string} id - Identifier, used as HTMLElement id for the attached element.\n * @returns {void}\n */\n\n\nvar remove = function remove(id) {\n if (isServer) return;\n\n if (id) {\n var old = document.getElementById(id);\n\n if (old && old.parentNode) {\n old.parentNode.removeChild(old);\n }\n }\n};\n/**\n * Adds styles to the head.\n * @param {object} params\n * @param {string} params.id - Identifier, used as HTMLElement id for the attached element.\n * @param {object} [params.document] - Document reference.\n * @param {...Array} styles - List of style Objects.\n * @returns {void}\n */\n\n\nvar addToDocument = function addToDocument(_ref) {\n var id = _ref.id,\n document = _ref.document;\n if (isServer) return;\n var safeId = id.replace(ID_REGEX, \"_\");\n remove(safeId);\n var documentRef = document || window.document;\n var styleEl = documentRef.createElement(\"style\");\n\n if (safeId) {\n styleEl.setAttribute(\"id\", safeId);\n }\n\n for (var _len2 = arguments.length, styles = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n styles[_key2 - 1] = arguments[_key2];\n }\n\n styles.forEach(function (styles) {\n // each style returns a list\n if (Object.keys(styles).length) {\n styles.forEach(function (style) {\n var scoped = {\n \"@global\": style\n };\n var sheet = j2c.sheet(scoped);\n styleEl.appendChild(documentRef.createTextNode(sheet));\n });\n }\n });\n documentRef.head.appendChild(styleEl);\n};\n/**\n * \n * @param {object} params\n * @param {StyleObject|Array} params.styles\n * @param {string} [params.scope]\n * @returns {Array}\n */\n\n\nvar wrapInScope = function wrapInScope(_ref2) {\n var styles = _ref2.styles,\n scope = _ref2.scope;\n return scope ? [_defineProperty({}, scope, styles)] : styles;\n};\n/**\n * Adds component styles to head.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars\n * @param {object} [params.customVars]\n * @param {string} [params.mediaQuery]\n * @param {string} [params.scope]\n * @param {string} [params.identifier]\n * @returns {void}\n */\n\n\nvar addStyle = function addStyle(_ref4) {\n var selectors = _ref4.selectors,\n styleFns = _ref4.fns,\n vars = _ref4.vars,\n customVars = _ref4.customVars,\n mediaQuery = _ref4.mediaQuery,\n scope = _ref4.scope,\n identifier = _ref4.identifier;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n }).filter(function (list) {\n return list.length > 0;\n });\n\n if (styles.length === 0) {\n return;\n }\n\n var id = identifier || selector.trim().replace(/^[^a-z]?(.*)/, \"$1\");\n add(id, wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n }));\n};\n/**\n * Returns a list of style objects for a component.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars - Style configuration variables\n * @param {object} [params.customVars] - Style configuration variables\n * @param {string} [params.mediaQuery] - Mediaquery string\n * @param {string} [params.scope] - Scope selector\n * @returns {Array}\n */\n\n\nvar getStyle = function getStyle(_ref5) {\n var selectors = _ref5.selectors,\n styleFns = _ref5.fns,\n vars = _ref5.vars,\n customVars = _ref5.customVars,\n mediaQuery = _ref5.mediaQuery,\n scope = _ref5.scope;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n });\n return wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n });\n};\n/**\n * Adds component styles to head.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createAddStyle = function createAddStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {void}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref6 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref6.mediaQuery,\n scope = _ref6.scope;\n\n return addStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n });\n }\n );\n};\n/**\n * Returns styles for a component.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createGetStyle = function createGetStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {Array}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref7 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref7.mediaQuery,\n scope = _ref7.scope;\n\n return [getStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n })];\n }\n );\n};\n\nvar styler = {\n add: add,\n addStyle: addStyle,\n addToDocument: addToDocument,\n createAddStyle: createAddStyle,\n createGetStyle: createGetStyle,\n getStyle: getStyle,\n remove: remove\n};\n\n// @ts-check\n\n/**\n * @typedef {(selector: string, vars: object, customVars?: object) => Array} StyleFn\n * @typedef {{[s: string]: StyleFn}} StyleCollection\n */\n\n/**\n * Wraps an object with a selector.\n * @param {string} selector \n * @param {object} o \n * @returns {object}\n */\nvar sel = function sel(selector, o) {\n return _defineProperty({}, selector, o);\n};\n/**\n * Creates a right-to-left selector.\n * @param {string} selector\n * @returns {string}\n */\n\nvar selectorRTL = function selectorRTL(selector) {\n return \"*[dir=rtl] \".concat(selector, \", .pe-rtl \").concat(selector);\n};\n/**\n * Creates a rgba CSS color string.\n * @param {string} colorStr \n * @param {number} opacity \n * @returns {string}\n */\n\nvar rgba = function rgba(colorStr) {\n var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return \"rgba(\".concat(colorStr, \", \").concat(opacity, \")\");\n};\n/**\n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superStyle]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @param {StyleCollection} [params.componentVars]\n * @param {StyleCollection} [params.customVars]\n * @returns {Array}\n */\n\nvar createStyle = function createStyle(_ref2) {\n var varFns = _ref2.varFns,\n customVarFns = _ref2.customVarFns,\n superStyle = _ref2.superStyle,\n varMixin = _ref2.varMixin,\n selector = _ref2.selector,\n scopedSelector = _ref2.scopedSelector,\n _ref2$componentVars = _ref2.componentVars,\n componentVars = _ref2$componentVars === void 0 ? {} : _ref2$componentVars,\n customVars = _ref2.customVars;\n\n var allVars = _objectSpread2({}, componentVars, {}, customVars);\n\n var currentVars = customVars ? customVars : allVars;\n\n var general_styles = componentVars.general_styles,\n otherVars = _objectWithoutProperties(componentVars, [\"general_styles\"]);\n\n var baseLayout = superStyle !== undefined ? customVars !== undefined ? superStyle(selector, componentVars, customVars) : superStyle(selector, otherVars) : [];\n\n var fns = _objectSpread2({}, customVars ? customVarFns : {}, {}, varFns);\n\n return baseLayout.concat(Object.keys(varMixin(currentVars)).map(function (v) {\n return fns && fns[v] !== undefined ? fns[v](scopedSelector, allVars) : null;\n }).filter(function (s) {\n return s;\n }));\n};\n/**\n * \n * @param {object} params\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superLayout]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\n\nvar createLayout = function createLayout(_ref3) {\n var varFns = _ref3.varFns,\n customVarFns = _ref3.customVarFns,\n superLayout = _ref3.superLayout,\n _ref3$varMixin = _ref3.varMixin,\n varMixin = _ref3$varMixin === void 0 ? function (o) {\n return o;\n } : _ref3$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return createStyle({\n varFns: varFns,\n customVarFns: customVarFns,\n superStyle: superLayout,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: selector,\n componentVars: componentVars,\n customVars: customVars\n });\n }\n );\n};\n/**\n * \n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {object} [params.componentVars]\n * @param {object} [params.customVars] \n * @param {StyleFn} [params.superColor]\n * @param {StyleCollection} [params.varFns]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {Array}\n */\n\nvar createColorStyle = function createColorStyle(_ref4) {\n var selector = _ref4.selector,\n scopedSelector = _ref4.scopedSelector,\n componentVars = _ref4.componentVars,\n customVars = _ref4.customVars,\n varFns = _ref4.varFns,\n superColor = _ref4.superColor,\n varMixin = _ref4.varMixin;\n return createStyle({\n varFns: varFns,\n superStyle: superColor,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: scopedSelector,\n componentVars: componentVars,\n customVars: customVars\n });\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} params.isNoTouch\n* @returns {string}\n */\n\nvar appendPseudoClass = function appendPseudoClass(_ref5) {\n var scopes = _ref5.scopes,\n selector = _ref5.selector,\n isNoTouch = _ref5.isNoTouch;\n return isNoTouch ? scopes.map(function (s) {\n return s + selector + \":hover\";\n }).join(\",\") : scopes.map(function (s) {\n return s + selector;\n }).join(\",\");\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} [params.isNoTouch]\n * @returns {string}\n */\n\n\nvar createScopedSelector = function createScopedSelector(_ref6) {\n var scopes = _ref6.scopes,\n selector = _ref6.selector,\n _ref6$isNoTouch = _ref6.isNoTouch,\n isNoTouch = _ref6$isNoTouch === void 0 ? false : _ref6$isNoTouch;\n return selector.split(/\\s*,\\s*/).map(function (s) {\n return appendPseudoClass({\n scopes: scopes,\n selector: s,\n isNoTouch: isNoTouch\n });\n }).join(\"\");\n};\n/**\n * @typedef {object} ColorScopeObject\n * @property {Array} scopes\n * @property {string} varFnName\n * @property {boolean} isNoTouch\n */\n\n/**\n * @type {Array} colorScopes\n */\n\n\nvar colorScopes = [{\n // has/inside dark tone\n scopes: [\".pe-dark-tone\", \".pe-dark-tone \"],\n varFnName: \"darkTintFns\",\n isNoTouch: false\n}, {\n // normal, has/inside light tone\n scopes: [\"\", \".pe-light-tone\", \".pe-light-tone \"],\n varFnName: \"lightTintFns\",\n isNoTouch: false\n}, {\n // has/inside dark tone\n scopes: [\".pe-no-touch .pe-dark-tone \"],\n varFnName: \"darkTintHoverFns\",\n isNoTouch: true\n}, {\n // normal, has/inside light tone\n scopes: [\".pe-no-touch \", \".pe-no-touch .pe-light-tone \"],\n varFnName: \"lightTintHoverFns\",\n isNoTouch: true\n}];\n/**\n * \n * @param {object} params\n * @param {object} [params.varFns]\n * @param {StyleFn} [params.superColor]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\nvar createColor = function createColor(_ref7) {\n var _ref7$varFns = _ref7.varFns,\n varFns = _ref7$varFns === void 0 ? {} : _ref7$varFns,\n superColor = _ref7.superColor,\n _ref7$varMixin = _ref7.varMixin,\n varMixin = _ref7$varMixin === void 0 ? function (o) {\n return o;\n } : _ref7$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return colorScopes.map(function (_ref8) {\n var scopes = _ref8.scopes,\n varFnName = _ref8.varFnName,\n isNoTouch = _ref8.isNoTouch;\n return createColorStyle({\n selector: selector,\n scopedSelector: createScopedSelector({\n scopes: scopes,\n selector: selector,\n isNoTouch: isNoTouch\n }),\n componentVars: componentVars,\n customVars: customVars,\n varFns: varFns[varFnName],\n superColor: superColor,\n varMixin: varMixin\n });\n });\n }\n );\n};\n/**\n * @param {object} vars \n * @param {object} behaviorVars\n * @returns {string|undefined} \n */\n\nvar createMarkerValue = function createMarkerValue(vars, behaviorVars) {\n var marker = Object.keys(behaviorVars).filter(function (bvar) {\n return vars[bvar] === true;\n }).join(\".\");\n return marker ? \"\\\"\".concat(marker, \"\\\"\") : undefined;\n};\n/**\n * Creates a CSS style from which the key can be read from the `content` property.\n * @param {object} vars \n * @param {object} behaviorVars \n * @returns {object}\n */\n\n\nvar createMarker = function createMarker(vars, behaviorVars) {\n if (!vars) {\n console.error(\"createMarker requires param `vars`\"); // eslint-disable-line no-console\n }\n\n var value = createMarkerValue(vars, behaviorVars);\n return value ? {\n \":before\": {\n content: value,\n display: \"none\"\n }\n } : undefined;\n};\n\n// @ts-check\n/**\n * @typedef {{[selector:string] : Style | any}} Style\n */\n\n/**\n * @type {Array element.\n * @param {...Array} styles - List of style Objects\n * @returns {void}\n */\n\nvar add = function add(id) {\n for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n styles[_key - 1] = arguments[_key];\n }\n\n return addToDocument.apply(void 0, [{\n id: id\n }].concat(styles));\n};\n/**\n * Removes a style from head.\n * @param {string} id - Identifier, used as HTMLElement id for the attached element.\n * @returns {void}\n */\n\n\nvar remove = function remove(id) {\n if (isServer) return;\n\n if (id) {\n var old = document.getElementById(id);\n\n if (old && old.parentNode) {\n old.parentNode.removeChild(old);\n }\n }\n};\n/**\n * Adds styles to the head.\n * @param {object} params\n * @param {string} params.id - Identifier, used as HTMLElement id for the attached element.\n * @param {object} [params.document] - Document reference.\n * @param {...Array} styles - List of style Objects.\n * @returns {void}\n */\n\n\nvar addToDocument = function addToDocument(_ref) {\n var id = _ref.id,\n document = _ref.document;\n if (isServer) return;\n var safeId = id.replace(ID_REGEX, \"_\");\n remove(safeId);\n var documentRef = document || window.document;\n var styleEl = documentRef.createElement(\"style\");\n\n if (safeId) {\n styleEl.setAttribute(\"id\", safeId);\n }\n\n for (var _len2 = arguments.length, styles = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n styles[_key2 - 1] = arguments[_key2];\n }\n\n styles.forEach(function (styles) {\n // each style returns a list\n if (Object.keys(styles).length) {\n styles.forEach(function (style) {\n var scoped = {\n \"@global\": style\n };\n var sheet = j2c.sheet(scoped);\n styleEl.appendChild(documentRef.createTextNode(sheet));\n });\n }\n });\n documentRef.head.appendChild(styleEl);\n};\n/**\n * \n * @param {object} params\n * @param {StyleObject|Array} params.styles\n * @param {string} [params.scope]\n * @returns {Array}\n */\n\n\nvar wrapInScope = function wrapInScope(_ref2) {\n var styles = _ref2.styles,\n scope = _ref2.scope;\n return scope ? [_defineProperty({}, scope, styles)] : styles;\n};\n/**\n * Adds component styles to head.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars\n * @param {object} [params.customVars]\n * @param {string} [params.mediaQuery]\n * @param {string} [params.scope]\n * @param {string} [params.identifier]\n * @returns {void}\n */\n\n\nvar addStyle = function addStyle(_ref4) {\n var selectors = _ref4.selectors,\n styleFns = _ref4.fns,\n vars = _ref4.vars,\n customVars = _ref4.customVars,\n mediaQuery = _ref4.mediaQuery,\n scope = _ref4.scope,\n identifier = _ref4.identifier;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n }).filter(function (list) {\n return list.length > 0;\n });\n\n if (styles.length === 0) {\n return;\n }\n\n var id = identifier || selector.trim().replace(/^[^a-z]?(.*)/, \"$1\");\n add(id, wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n }));\n};\n/**\n * Returns a list of style objects for a component.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars - Style configuration variables\n * @param {object} [params.customVars] - Style configuration variables\n * @param {string} [params.mediaQuery] - Mediaquery string\n * @param {string} [params.scope] - Scope selector\n * @returns {Array}\n */\n\n\nvar getStyle = function getStyle(_ref5) {\n var selectors = _ref5.selectors,\n styleFns = _ref5.fns,\n vars = _ref5.vars,\n customVars = _ref5.customVars,\n mediaQuery = _ref5.mediaQuery,\n scope = _ref5.scope;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n });\n return wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n });\n};\n/**\n * Adds component styles to head.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createAddStyle = function createAddStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {void}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref6 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref6.mediaQuery,\n scope = _ref6.scope;\n\n return addStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n });\n }\n );\n};\n/**\n * Returns styles for a component.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createGetStyle = function createGetStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {Array}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref7 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref7.mediaQuery,\n scope = _ref7.scope;\n\n return [getStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n })];\n }\n );\n};\n\nvar styler = {\n add: add,\n addStyle: addStyle,\n addToDocument: addToDocument,\n createAddStyle: createAddStyle,\n createGetStyle: createGetStyle,\n getStyle: getStyle,\n remove: remove\n};\n\n// @ts-check\n\n/**\n * @typedef {(selector: string, vars: object, customVars?: object) => Array} StyleFn\n * @typedef {{[s: string]: StyleFn}} StyleCollection\n */\n\n/**\n * Wraps an object with a selector.\n * @param {string} selector \n * @param {object} o \n * @returns {object}\n */\nvar sel = function sel(selector, o) {\n return _defineProperty({}, selector, o);\n};\n/**\n * Creates a right-to-left selector.\n * @param {string} selector\n * @returns {string}\n */\n\nvar selectorRTL = function selectorRTL(selector) {\n return \"*[dir=rtl] \".concat(selector, \", .pe-rtl \").concat(selector);\n};\n/**\n * Creates a rgba CSS color string.\n * @param {string} colorStr \n * @param {number} opacity \n * @returns {string}\n */\n\nvar rgba = function rgba(colorStr) {\n var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return \"rgba(\".concat(colorStr, \", \").concat(opacity, \")\");\n};\n/**\n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superStyle]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @param {StyleCollection} [params.componentVars]\n * @param {StyleCollection} [params.customVars]\n * @returns {Array}\n */\n\nvar createStyle = function createStyle(_ref2) {\n var varFns = _ref2.varFns,\n customVarFns = _ref2.customVarFns,\n superStyle = _ref2.superStyle,\n varMixin = _ref2.varMixin,\n selector = _ref2.selector,\n scopedSelector = _ref2.scopedSelector,\n _ref2$componentVars = _ref2.componentVars,\n componentVars = _ref2$componentVars === void 0 ? {} : _ref2$componentVars,\n customVars = _ref2.customVars;\n\n var allVars = _objectSpread2({}, componentVars, {}, customVars);\n\n var currentVars = customVars ? customVars : allVars;\n\n var general_styles = componentVars.general_styles,\n otherVars = _objectWithoutProperties(componentVars, [\"general_styles\"]);\n\n var baseLayout = superStyle !== undefined ? customVars !== undefined ? superStyle(selector, componentVars, customVars) : superStyle(selector, otherVars) : [];\n\n var fns = _objectSpread2({}, customVars ? customVarFns : {}, {}, varFns);\n\n return baseLayout.concat(Object.keys(varMixin(currentVars)).map(function (v) {\n return fns && fns[v] !== undefined ? fns[v](scopedSelector, allVars) : null;\n }).filter(function (s) {\n return s;\n }));\n};\n/**\n * \n * @param {object} params\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superLayout]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\n\nvar createLayout = function createLayout(_ref3) {\n var varFns = _ref3.varFns,\n customVarFns = _ref3.customVarFns,\n superLayout = _ref3.superLayout,\n _ref3$varMixin = _ref3.varMixin,\n varMixin = _ref3$varMixin === void 0 ? function (o) {\n return o;\n } : _ref3$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return createStyle({\n varFns: varFns,\n customVarFns: customVarFns,\n superStyle: superLayout,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: selector,\n componentVars: componentVars,\n customVars: customVars\n });\n }\n );\n};\n/**\n * \n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {object} [params.componentVars]\n * @param {object} [params.customVars] \n * @param {StyleFn} [params.superColor]\n * @param {StyleCollection} [params.varFns]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {Array}\n */\n\nvar createColorStyle = function createColorStyle(_ref4) {\n var selector = _ref4.selector,\n scopedSelector = _ref4.scopedSelector,\n componentVars = _ref4.componentVars,\n customVars = _ref4.customVars,\n varFns = _ref4.varFns,\n superColor = _ref4.superColor,\n varMixin = _ref4.varMixin;\n return createStyle({\n varFns: varFns,\n superStyle: superColor,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: scopedSelector,\n componentVars: componentVars,\n customVars: customVars\n });\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} params.isNoTouch\n* @returns {string}\n */\n\nvar appendPseudoClass = function appendPseudoClass(_ref5) {\n var scopes = _ref5.scopes,\n selector = _ref5.selector,\n isNoTouch = _ref5.isNoTouch;\n return isNoTouch ? scopes.map(function (s) {\n return s + selector + \":hover\";\n }).join(\",\") : scopes.map(function (s) {\n return s + selector;\n }).join(\",\");\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} [params.isNoTouch]\n * @returns {string}\n */\n\n\nvar createScopedSelector = function createScopedSelector(_ref6) {\n var scopes = _ref6.scopes,\n selector = _ref6.selector,\n _ref6$isNoTouch = _ref6.isNoTouch,\n isNoTouch = _ref6$isNoTouch === void 0 ? false : _ref6$isNoTouch;\n return selector.split(/\\s*,\\s*/).map(function (s) {\n return appendPseudoClass({\n scopes: scopes,\n selector: s,\n isNoTouch: isNoTouch\n });\n }).join(\"\");\n};\n/**\n * @typedef {object} ColorScopeObject\n * @property {Array} scopes\n * @property {string} varFnName\n * @property {boolean} isNoTouch\n */\n\n/**\n * @type {Array} colorScopes\n */\n\n\nvar colorScopes = [{\n // has/inside dark tone\n scopes: [\".pe-dark-tone\", \".pe-dark-tone \"],\n varFnName: \"darkTintFns\",\n isNoTouch: false\n}, {\n // normal, has/inside light tone\n scopes: [\"\", \".pe-light-tone\", \".pe-light-tone \"],\n varFnName: \"lightTintFns\",\n isNoTouch: false\n}, {\n // has/inside dark tone\n scopes: [\".pe-no-touch .pe-dark-tone \"],\n varFnName: \"darkTintHoverFns\",\n isNoTouch: true\n}, {\n // normal, has/inside light tone\n scopes: [\".pe-no-touch \", \".pe-no-touch .pe-light-tone \"],\n varFnName: \"lightTintHoverFns\",\n isNoTouch: true\n}];\n/**\n * \n * @param {object} params\n * @param {object} [params.varFns]\n * @param {StyleFn} [params.superColor]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\nvar createColor = function createColor(_ref7) {\n var _ref7$varFns = _ref7.varFns,\n varFns = _ref7$varFns === void 0 ? {} : _ref7$varFns,\n superColor = _ref7.superColor,\n _ref7$varMixin = _ref7.varMixin,\n varMixin = _ref7$varMixin === void 0 ? function (o) {\n return o;\n } : _ref7$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return colorScopes.map(function (_ref8) {\n var scopes = _ref8.scopes,\n varFnName = _ref8.varFnName,\n isNoTouch = _ref8.isNoTouch;\n return createColorStyle({\n selector: selector,\n scopedSelector: createScopedSelector({\n scopes: scopes,\n selector: selector,\n isNoTouch: isNoTouch\n }),\n componentVars: componentVars,\n customVars: customVars,\n varFns: varFns[varFnName],\n superColor: superColor,\n varMixin: varMixin\n });\n });\n }\n );\n};\n/**\n * @param {object} vars \n * @param {object} behaviorVars\n * @returns {string|undefined} \n */\n\nvar createMarkerValue = function createMarkerValue(vars, behaviorVars) {\n var marker = Object.keys(behaviorVars).filter(function (bvar) {\n return vars[bvar] === true;\n }).join(\".\");\n return marker ? \"\\\"\".concat(marker, \"\\\"\") : undefined;\n};\n/**\n * Creates a CSS style from which the key can be read from the `content` property.\n * @param {object} vars \n * @param {object} behaviorVars \n * @returns {object}\n */\n\n\nvar createMarker = function createMarker(vars, behaviorVars) {\n if (!vars) {\n console.error(\"createMarker requires param `vars`\"); // eslint-disable-line no-console\n }\n\n var value = createMarkerValue(vars, behaviorVars);\n return value ? {\n \":before\": {\n content: value,\n display: \"none\"\n }\n } : undefined;\n};\n\n// @ts-check\n/**\n * @typedef {{[selector:string] : Style | any}} Style\n */\n\n/**\n * @type {Array element.\n * @param {...Array} styles - List of style Objects\n * @returns {void}\n */\n\nvar add = function add(id) {\n for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n styles[_key - 1] = arguments[_key];\n }\n\n return addToDocument.apply(void 0, [{\n id: id\n }].concat(styles));\n};\n/**\n * Removes a style from head.\n * @param {string} id - Identifier, used as HTMLElement id for the attached element.\n * @returns {void}\n */\n\n\nvar remove = function remove(id) {\n if (isServer) return;\n\n if (id) {\n var old = document.getElementById(id);\n\n if (old && old.parentNode) {\n old.parentNode.removeChild(old);\n }\n }\n};\n/**\n * Adds styles to the head.\n * @param {object} params\n * @param {string} params.id - Identifier, used as HTMLElement id for the attached element.\n * @param {object} [params.document] - Document reference.\n * @param {...Array} styles - List of style Objects.\n * @returns {void}\n */\n\n\nvar addToDocument = function addToDocument(_ref) {\n var id = _ref.id,\n document = _ref.document;\n if (isServer) return;\n var safeId = id.replace(ID_REGEX, \"_\");\n remove(safeId);\n var documentRef = document || window.document;\n var styleEl = documentRef.createElement(\"style\");\n\n if (safeId) {\n styleEl.setAttribute(\"id\", safeId);\n }\n\n for (var _len2 = arguments.length, styles = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n styles[_key2 - 1] = arguments[_key2];\n }\n\n styles.forEach(function (styles) {\n // each style returns a list\n if (Object.keys(styles).length) {\n styles.forEach(function (style) {\n var scoped = {\n \"@global\": style\n };\n var sheet = j2c.sheet(scoped);\n styleEl.appendChild(documentRef.createTextNode(sheet));\n });\n }\n });\n documentRef.head.appendChild(styleEl);\n};\n/**\n * \n * @param {object} params\n * @param {StyleObject|Array} params.styles\n * @param {string} [params.scope]\n * @returns {Array}\n */\n\n\nvar wrapInScope = function wrapInScope(_ref2) {\n var styles = _ref2.styles,\n scope = _ref2.scope;\n return scope ? [_defineProperty({}, scope, styles)] : styles;\n};\n/**\n * Adds component styles to head.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars\n * @param {object} [params.customVars]\n * @param {string} [params.mediaQuery]\n * @param {string} [params.scope]\n * @param {string} [params.identifier]\n * @returns {void}\n */\n\n\nvar addStyle = function addStyle(_ref4) {\n var selectors = _ref4.selectors,\n styleFns = _ref4.fns,\n vars = _ref4.vars,\n customVars = _ref4.customVars,\n mediaQuery = _ref4.mediaQuery,\n scope = _ref4.scope,\n identifier = _ref4.identifier;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n }).filter(function (list) {\n return list.length > 0;\n });\n\n if (styles.length === 0) {\n return;\n }\n\n var id = identifier || selector.trim().replace(/^[^a-z]?(.*)/, \"$1\");\n add(id, wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n }));\n};\n/**\n * Returns a list of style objects for a component.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars - Style configuration variables\n * @param {object} [params.customVars] - Style configuration variables\n * @param {string} [params.mediaQuery] - Mediaquery string\n * @param {string} [params.scope] - Scope selector\n * @returns {Array}\n */\n\n\nvar getStyle = function getStyle(_ref5) {\n var selectors = _ref5.selectors,\n styleFns = _ref5.fns,\n vars = _ref5.vars,\n customVars = _ref5.customVars,\n mediaQuery = _ref5.mediaQuery,\n scope = _ref5.scope;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n });\n return wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n });\n};\n/**\n * Adds component styles to head.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createAddStyle = function createAddStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {void}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref6 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref6.mediaQuery,\n scope = _ref6.scope;\n\n return addStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n });\n }\n );\n};\n/**\n * Returns styles for a component.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createGetStyle = function createGetStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {Array}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref7 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref7.mediaQuery,\n scope = _ref7.scope;\n\n return [getStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n })];\n }\n );\n};\n\nvar styler = {\n add: add,\n addStyle: addStyle,\n addToDocument: addToDocument,\n createAddStyle: createAddStyle,\n createGetStyle: createGetStyle,\n getStyle: getStyle,\n remove: remove\n};\n\n// @ts-check\n\n/**\n * @typedef {(selector: string, vars: object, customVars?: object) => Array} StyleFn\n * @typedef {{[s: string]: StyleFn}} StyleCollection\n */\n\n/**\n * Wraps an object with a selector.\n * @param {string} selector \n * @param {object} o \n * @returns {object}\n */\nvar sel = function sel(selector, o) {\n return _defineProperty({}, selector, o);\n};\n/**\n * Creates a right-to-left selector.\n * @param {string} selector\n * @returns {string}\n */\n\nvar selectorRTL = function selectorRTL(selector) {\n return \"*[dir=rtl] \".concat(selector, \", .pe-rtl \").concat(selector);\n};\n/**\n * Creates a rgba CSS color string.\n * @param {string} colorStr \n * @param {number} opacity \n * @returns {string}\n */\n\nvar rgba = function rgba(colorStr) {\n var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return \"rgba(\".concat(colorStr, \", \").concat(opacity, \")\");\n};\n/**\n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superStyle]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @param {StyleCollection} [params.componentVars]\n * @param {StyleCollection} [params.customVars]\n * @returns {Array}\n */\n\nvar createStyle = function createStyle(_ref2) {\n var varFns = _ref2.varFns,\n customVarFns = _ref2.customVarFns,\n superStyle = _ref2.superStyle,\n varMixin = _ref2.varMixin,\n selector = _ref2.selector,\n scopedSelector = _ref2.scopedSelector,\n _ref2$componentVars = _ref2.componentVars,\n componentVars = _ref2$componentVars === void 0 ? {} : _ref2$componentVars,\n customVars = _ref2.customVars;\n\n var allVars = _objectSpread2({}, componentVars, {}, customVars);\n\n var currentVars = customVars ? customVars : allVars;\n\n var general_styles = componentVars.general_styles,\n otherVars = _objectWithoutProperties(componentVars, [\"general_styles\"]);\n\n var baseLayout = superStyle !== undefined ? customVars !== undefined ? superStyle(selector, componentVars, customVars) : superStyle(selector, otherVars) : [];\n\n var fns = _objectSpread2({}, customVars ? customVarFns : {}, {}, varFns);\n\n return baseLayout.concat(Object.keys(varMixin(currentVars)).map(function (v) {\n return fns && fns[v] !== undefined ? fns[v](scopedSelector, allVars) : null;\n }).filter(function (s) {\n return s;\n }));\n};\n/**\n * \n * @param {object} params\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superLayout]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\n\nvar createLayout = function createLayout(_ref3) {\n var varFns = _ref3.varFns,\n customVarFns = _ref3.customVarFns,\n superLayout = _ref3.superLayout,\n _ref3$varMixin = _ref3.varMixin,\n varMixin = _ref3$varMixin === void 0 ? function (o) {\n return o;\n } : _ref3$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return createStyle({\n varFns: varFns,\n customVarFns: customVarFns,\n superStyle: superLayout,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: selector,\n componentVars: componentVars,\n customVars: customVars\n });\n }\n );\n};\n/**\n * \n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {object} [params.componentVars]\n * @param {object} [params.customVars] \n * @param {StyleFn} [params.superColor]\n * @param {StyleCollection} [params.varFns]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {Array}\n */\n\nvar createColorStyle = function createColorStyle(_ref4) {\n var selector = _ref4.selector,\n scopedSelector = _ref4.scopedSelector,\n componentVars = _ref4.componentVars,\n customVars = _ref4.customVars,\n varFns = _ref4.varFns,\n superColor = _ref4.superColor,\n varMixin = _ref4.varMixin;\n return createStyle({\n varFns: varFns,\n superStyle: superColor,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: scopedSelector,\n componentVars: componentVars,\n customVars: customVars\n });\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} params.isNoTouch\n* @returns {string}\n */\n\nvar appendPseudoClass = function appendPseudoClass(_ref5) {\n var scopes = _ref5.scopes,\n selector = _ref5.selector,\n isNoTouch = _ref5.isNoTouch;\n return isNoTouch ? scopes.map(function (s) {\n return s + selector + \":hover\";\n }).join(\",\") : scopes.map(function (s) {\n return s + selector;\n }).join(\",\");\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} [params.isNoTouch]\n * @returns {string}\n */\n\n\nvar createScopedSelector = function createScopedSelector(_ref6) {\n var scopes = _ref6.scopes,\n selector = _ref6.selector,\n _ref6$isNoTouch = _ref6.isNoTouch,\n isNoTouch = _ref6$isNoTouch === void 0 ? false : _ref6$isNoTouch;\n return selector.split(/\\s*,\\s*/).map(function (s) {\n return appendPseudoClass({\n scopes: scopes,\n selector: s,\n isNoTouch: isNoTouch\n });\n }).join(\"\");\n};\n/**\n * @typedef {object} ColorScopeObject\n * @property {Array} scopes\n * @property {string} varFnName\n * @property {boolean} isNoTouch\n */\n\n/**\n * @type {Array} colorScopes\n */\n\n\nvar colorScopes = [{\n // has/inside dark tone\n scopes: [\".pe-dark-tone\", \".pe-dark-tone \"],\n varFnName: \"darkTintFns\",\n isNoTouch: false\n}, {\n // normal, has/inside light tone\n scopes: [\"\", \".pe-light-tone\", \".pe-light-tone \"],\n varFnName: \"lightTintFns\",\n isNoTouch: false\n}, {\n // has/inside dark tone\n scopes: [\".pe-no-touch .pe-dark-tone \"],\n varFnName: \"darkTintHoverFns\",\n isNoTouch: true\n}, {\n // normal, has/inside light tone\n scopes: [\".pe-no-touch \", \".pe-no-touch .pe-light-tone \"],\n varFnName: \"lightTintHoverFns\",\n isNoTouch: true\n}];\n/**\n * \n * @param {object} params\n * @param {object} [params.varFns]\n * @param {StyleFn} [params.superColor]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\nvar createColor = function createColor(_ref7) {\n var _ref7$varFns = _ref7.varFns,\n varFns = _ref7$varFns === void 0 ? {} : _ref7$varFns,\n superColor = _ref7.superColor,\n _ref7$varMixin = _ref7.varMixin,\n varMixin = _ref7$varMixin === void 0 ? function (o) {\n return o;\n } : _ref7$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return colorScopes.map(function (_ref8) {\n var scopes = _ref8.scopes,\n varFnName = _ref8.varFnName,\n isNoTouch = _ref8.isNoTouch;\n return createColorStyle({\n selector: selector,\n scopedSelector: createScopedSelector({\n scopes: scopes,\n selector: selector,\n isNoTouch: isNoTouch\n }),\n componentVars: componentVars,\n customVars: customVars,\n varFns: varFns[varFnName],\n superColor: superColor,\n varMixin: varMixin\n });\n });\n }\n );\n};\n/**\n * @param {object} vars \n * @param {object} behaviorVars\n * @returns {string|undefined} \n */\n\nvar createMarkerValue = function createMarkerValue(vars, behaviorVars) {\n var marker = Object.keys(behaviorVars).filter(function (bvar) {\n return vars[bvar] === true;\n }).join(\".\");\n return marker ? \"\\\"\".concat(marker, \"\\\"\") : undefined;\n};\n/**\n * Creates a CSS style from which the key can be read from the `content` property.\n * @param {object} vars \n * @param {object} behaviorVars \n * @returns {object}\n */\n\n\nvar createMarker = function createMarker(vars, behaviorVars) {\n if (!vars) {\n console.error(\"createMarker requires param `vars`\"); // eslint-disable-line no-console\n }\n\n var value = createMarkerValue(vars, behaviorVars);\n return value ? {\n \":before\": {\n content: value,\n display: \"none\"\n }\n } : undefined;\n};\n\n// @ts-check\n/**\n * @typedef {{[selector:string] : Style | any}} Style\n */\n\n/**\n * @type {Array element.\n * @param {...Array} styles - List of style Objects\n * @returns {void}\n */\n\nvar add = function add(id) {\n for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n styles[_key - 1] = arguments[_key];\n }\n\n return addToDocument.apply(void 0, [{\n id: id\n }].concat(styles));\n};\n/**\n * Removes a style from head.\n * @param {string} id - Identifier, used as HTMLElement id for the attached element.\n * @returns {void}\n */\n\n\nvar remove = function remove(id) {\n if (isServer) return;\n\n if (id) {\n var old = document.getElementById(id);\n\n if (old && old.parentNode) {\n old.parentNode.removeChild(old);\n }\n }\n};\n/**\n * Adds styles to the head.\n * @param {object} params\n * @param {string} params.id - Identifier, used as HTMLElement id for the attached element.\n * @param {object} [params.document] - Document reference.\n * @param {...Array} styles - List of style Objects.\n * @returns {void}\n */\n\n\nvar addToDocument = function addToDocument(_ref) {\n var id = _ref.id,\n document = _ref.document;\n if (isServer) return;\n var safeId = id.replace(ID_REGEX, \"_\");\n remove(safeId);\n var documentRef = document || window.document;\n var styleEl = documentRef.createElement(\"style\");\n\n if (safeId) {\n styleEl.setAttribute(\"id\", safeId);\n }\n\n for (var _len2 = arguments.length, styles = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n styles[_key2 - 1] = arguments[_key2];\n }\n\n styles.forEach(function (styles) {\n // each style returns a list\n if (Object.keys(styles).length) {\n styles.forEach(function (style) {\n var scoped = {\n \"@global\": style\n };\n var sheet = j2c.sheet(scoped);\n styleEl.appendChild(documentRef.createTextNode(sheet));\n });\n }\n });\n documentRef.head.appendChild(styleEl);\n};\n/**\n * \n * @param {object} params\n * @param {StyleObject|Array} params.styles\n * @param {string} [params.scope]\n * @returns {Array}\n */\n\n\nvar wrapInScope = function wrapInScope(_ref2) {\n var styles = _ref2.styles,\n scope = _ref2.scope;\n return scope ? [_defineProperty({}, scope, styles)] : styles;\n};\n/**\n * Adds component styles to head.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars\n * @param {object} [params.customVars]\n * @param {string} [params.mediaQuery]\n * @param {string} [params.scope]\n * @param {string} [params.identifier]\n * @returns {void}\n */\n\n\nvar addStyle = function addStyle(_ref4) {\n var selectors = _ref4.selectors,\n styleFns = _ref4.fns,\n vars = _ref4.vars,\n customVars = _ref4.customVars,\n mediaQuery = _ref4.mediaQuery,\n scope = _ref4.scope,\n identifier = _ref4.identifier;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n }).filter(function (list) {\n return list.length > 0;\n });\n\n if (styles.length === 0) {\n return;\n }\n\n var id = identifier || selector.trim().replace(/^[^a-z]?(.*)/, \"$1\");\n add(id, wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n }));\n};\n/**\n * Returns a list of style objects for a component.\n * @param {object} params\n * @param {Array} params.selectors\n * @param {Array} params.fns\n * @param {object} params.vars - Style configuration variables\n * @param {object} [params.customVars] - Style configuration variables\n * @param {string} [params.mediaQuery] - Mediaquery string\n * @param {string} [params.scope] - Scope selector\n * @returns {Array}\n */\n\n\nvar getStyle = function getStyle(_ref5) {\n var selectors = _ref5.selectors,\n styleFns = _ref5.fns,\n vars = _ref5.vars,\n customVars = _ref5.customVars,\n mediaQuery = _ref5.mediaQuery,\n scope = _ref5.scope;\n var prefix = scope ? \" \" : \"\";\n var selector = prefix + selectors.join(\"\");\n var styles = styleFns.map(function (fn) {\n return fn(selector, vars, customVars);\n });\n return wrapInScope({\n styles: wrapInScope({\n styles: styles,\n scope: scope\n }),\n scope: mediaQuery\n });\n};\n/**\n * Adds component styles to head.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createAddStyle = function createAddStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {void}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref6 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref6.mediaQuery,\n scope = _ref6.scope;\n\n return addStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n });\n }\n );\n};\n/**\n * Returns styles for a component.\n * @param {string} selector \n * @param {Array} fns \n * @param {object} vars - Style configuration variables\n */\n\n\nvar createGetStyle = function createGetStyle(selector, fns, vars) {\n return (\n /**\n * @param {string} [customSelector=\"\"]\n * @param {object} customVars\n * @param {object} [scoping={}]\n * @param {string} [scoping.mediaQuery]\n * @param {string} [scoping.scope]\n * @returns {Array}\n */\n function () {\n var customSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var customVars = arguments.length > 1 ? arguments[1] : undefined;\n\n var _ref7 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n mediaQuery = _ref7.mediaQuery,\n scope = _ref7.scope;\n\n return [getStyle({\n selectors: [selector, customSelector],\n fns: fns,\n vars: vars,\n customVars: customVars,\n mediaQuery: mediaQuery,\n scope: scope\n })];\n }\n );\n};\n\nvar styler = {\n add: add,\n addStyle: addStyle,\n addToDocument: addToDocument,\n createAddStyle: createAddStyle,\n createGetStyle: createGetStyle,\n getStyle: getStyle,\n remove: remove\n};\n\n// @ts-check\n\n/**\n * @typedef {(selector: string, vars: object, customVars?: object) => Array} StyleFn\n * @typedef {{[s: string]: StyleFn}} StyleCollection\n */\n\n/**\n * Wraps an object with a selector.\n * @param {string} selector \n * @param {object} o \n * @returns {object}\n */\nvar sel = function sel(selector, o) {\n return _defineProperty({}, selector, o);\n};\n/**\n * Creates a right-to-left selector.\n * @param {string} selector\n * @returns {string}\n */\n\nvar selectorRTL = function selectorRTL(selector) {\n return \"*[dir=rtl] \".concat(selector, \", .pe-rtl \").concat(selector);\n};\n/**\n * Creates a rgba CSS color string.\n * @param {string} colorStr \n * @param {number} opacity \n * @returns {string}\n */\n\nvar rgba = function rgba(colorStr) {\n var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return \"rgba(\".concat(colorStr, \", \").concat(opacity, \")\");\n};\n/**\n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superStyle]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @param {StyleCollection} [params.componentVars]\n * @param {StyleCollection} [params.customVars]\n * @returns {Array}\n */\n\nvar createStyle = function createStyle(_ref2) {\n var varFns = _ref2.varFns,\n customVarFns = _ref2.customVarFns,\n superStyle = _ref2.superStyle,\n varMixin = _ref2.varMixin,\n selector = _ref2.selector,\n scopedSelector = _ref2.scopedSelector,\n _ref2$componentVars = _ref2.componentVars,\n componentVars = _ref2$componentVars === void 0 ? {} : _ref2$componentVars,\n customVars = _ref2.customVars;\n\n var allVars = _objectSpread2({}, componentVars, {}, customVars);\n\n var currentVars = customVars ? customVars : allVars;\n\n var general_styles = componentVars.general_styles,\n otherVars = _objectWithoutProperties(componentVars, [\"general_styles\"]);\n\n var baseLayout = superStyle !== undefined ? customVars !== undefined ? superStyle(selector, componentVars, customVars) : superStyle(selector, otherVars) : [];\n\n var fns = _objectSpread2({}, customVars ? customVarFns : {}, {}, varFns);\n\n return baseLayout.concat(Object.keys(varMixin(currentVars)).map(function (v) {\n return fns && fns[v] !== undefined ? fns[v](scopedSelector, allVars) : null;\n }).filter(function (s) {\n return s;\n }));\n};\n/**\n * \n * @param {object} params\n * @param {StyleCollection} [params.varFns]\n * @param {StyleCollection} [params.customVarFns]\n * @param {StyleFn} [params.superLayout]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\n\nvar createLayout = function createLayout(_ref3) {\n var varFns = _ref3.varFns,\n customVarFns = _ref3.customVarFns,\n superLayout = _ref3.superLayout,\n _ref3$varMixin = _ref3.varMixin,\n varMixin = _ref3$varMixin === void 0 ? function (o) {\n return o;\n } : _ref3$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return createStyle({\n varFns: varFns,\n customVarFns: customVarFns,\n superStyle: superLayout,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: selector,\n componentVars: componentVars,\n customVars: customVars\n });\n }\n );\n};\n/**\n * \n * @param {object} params\n * @param {string} [params.selector]\n * @param {string} [params.scopedSelector]\n * @param {object} [params.componentVars]\n * @param {object} [params.customVars] \n * @param {StyleFn} [params.superColor]\n * @param {StyleCollection} [params.varFns]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {Array}\n */\n\nvar createColorStyle = function createColorStyle(_ref4) {\n var selector = _ref4.selector,\n scopedSelector = _ref4.scopedSelector,\n componentVars = _ref4.componentVars,\n customVars = _ref4.customVars,\n varFns = _ref4.varFns,\n superColor = _ref4.superColor,\n varMixin = _ref4.varMixin;\n return createStyle({\n varFns: varFns,\n superStyle: superColor,\n varMixin: varMixin,\n selector: selector,\n scopedSelector: scopedSelector,\n componentVars: componentVars,\n customVars: customVars\n });\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} params.isNoTouch\n* @returns {string}\n */\n\nvar appendPseudoClass = function appendPseudoClass(_ref5) {\n var scopes = _ref5.scopes,\n selector = _ref5.selector,\n isNoTouch = _ref5.isNoTouch;\n return isNoTouch ? scopes.map(function (s) {\n return s + selector + \":hover\";\n }).join(\",\") : scopes.map(function (s) {\n return s + selector;\n }).join(\",\");\n};\n/**\n * \n * @param {object} params \n * @param {Array} params.scopes\n * @param {string} params.selector\n * @param {boolean} [params.isNoTouch]\n * @returns {string}\n */\n\n\nvar createScopedSelector = function createScopedSelector(_ref6) {\n var scopes = _ref6.scopes,\n selector = _ref6.selector,\n _ref6$isNoTouch = _ref6.isNoTouch,\n isNoTouch = _ref6$isNoTouch === void 0 ? false : _ref6$isNoTouch;\n return selector.split(/\\s*,\\s*/).map(function (s) {\n return appendPseudoClass({\n scopes: scopes,\n selector: s,\n isNoTouch: isNoTouch\n });\n }).join(\"\");\n};\n/**\n * @typedef {object} ColorScopeObject\n * @property {Array} scopes\n * @property {string} varFnName\n * @property {boolean} isNoTouch\n */\n\n/**\n * @type {Array} colorScopes\n */\n\n\nvar colorScopes = [{\n // has/inside dark tone\n scopes: [\".pe-dark-tone\", \".pe-dark-tone \"],\n varFnName: \"darkTintFns\",\n isNoTouch: false\n}, {\n // normal, has/inside light tone\n scopes: [\"\", \".pe-light-tone\", \".pe-light-tone \"],\n varFnName: \"lightTintFns\",\n isNoTouch: false\n}, {\n // has/inside dark tone\n scopes: [\".pe-no-touch .pe-dark-tone \"],\n varFnName: \"darkTintHoverFns\",\n isNoTouch: true\n}, {\n // normal, has/inside light tone\n scopes: [\".pe-no-touch \", \".pe-no-touch .pe-light-tone \"],\n varFnName: \"lightTintHoverFns\",\n isNoTouch: true\n}];\n/**\n * \n * @param {object} params\n * @param {object} [params.varFns]\n * @param {StyleFn} [params.superColor]\n * @param {(_:any) => StyleCollection} [params.varMixin]\n * @returns {StyleFn}\n */\n\nvar createColor = function createColor(_ref7) {\n var _ref7$varFns = _ref7.varFns,\n varFns = _ref7$varFns === void 0 ? {} : _ref7$varFns,\n superColor = _ref7.superColor,\n _ref7$varMixin = _ref7.varMixin,\n varMixin = _ref7$varMixin === void 0 ? function (o) {\n return o;\n } : _ref7$varMixin;\n return (\n /**\n * @param {string} selector\n * @param {object} componentVars\n * @param {object} [customVars]\n * @returns {Array}\n */\n function (selector, componentVars, customVars) {\n return colorScopes.map(function (_ref8) {\n var scopes = _ref8.scopes,\n varFnName = _ref8.varFnName,\n isNoTouch = _ref8.isNoTouch;\n return createColorStyle({\n selector: selector,\n scopedSelector: createScopedSelector({\n scopes: scopes,\n selector: selector,\n isNoTouch: isNoTouch\n }),\n componentVars: componentVars,\n customVars: customVars,\n varFns: varFns[varFnName],\n superColor: superColor,\n varMixin: varMixin\n });\n });\n }\n );\n};\n/**\n * @param {object} vars \n * @param {object} behaviorVars\n * @returns {string|undefined} \n */\n\nvar createMarkerValue = function createMarkerValue(vars, behaviorVars) {\n var marker = Object.keys(behaviorVars).filter(function (bvar) {\n return vars[bvar] === true;\n }).join(\".\");\n return marker ? \"\\\"\".concat(marker, \"\\\"\") : undefined;\n};\n/**\n * Creates a CSS style from which the key can be read from the `content` property.\n * @param {object} vars \n * @param {object} behaviorVars \n * @returns {object}\n */\n\n\nvar createMarker = function createMarker(vars, behaviorVars) {\n if (!vars) {\n console.error(\"createMarker requires param `vars`\"); // eslint-disable-line no-console\n }\n\n var value = createMarkerValue(vars, behaviorVars);\n return value ? {\n \":before\": {\n content: value,\n display: \"none\"\n }\n } : undefined;\n};\n\n// @ts-check\n/**\n * @typedef {{[selector:string] : Style | any}} Style\n */\n\n/**\n * @type {Array