From 3b4bce40f9d296e7f6df1d1ba4619508f31fa471 Mon Sep 17 00:00:00 2001 From: Wojtek Siudzinski Date: Wed, 3 Mar 2021 15:43:54 +0100 Subject: [PATCH 1/7] Add reference to svelte-ackee --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e68c637d..0245792a 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,7 @@ I am working hard on continuously developing and maintaining Ackee. Please consi - [django-ackee-middleware](https://github.com/suda/django-ackee-middleware) - Django middleware for Ackee - [gridsome-plugin-ackee](https://github.com/DenzoNL/gridsome-plugin-ackee) - Gridsome plugin for Ackee - [vuepress-plugin-ackee](https://github.com/spekulatius/vuepress-plugin-ackee) - VuePress plugin for Ackee +- [svelte-ackee](https://github.com/gaia-green-tech/svelte-ackee) - Svelte module for Ackee ### Links From ca0346dc45ed852d4e567a055bde8984c6cb50f5 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 20 Mar 2021 13:24:23 +0100 Subject: [PATCH 2/7] Update dependencies --- package.json | 24 +++--- yarn.lock | 213 +++++++++++++++++++++++++-------------------------- 2 files changed, 118 insertions(+), 119 deletions(-) diff --git a/package.json b/package.json index 7d1407bc..ae6e52a6 100644 --- a/package.json +++ b/package.json @@ -34,20 +34,20 @@ }, "dependencies": { "ackee-tracker": "^5.0.1", - "apollo-server-lambda": "^2.21.0", - "apollo-server-micro": "^2.21.0", + "apollo-server-lambda": "^2.21.2", + "apollo-server-micro": "^2.21.2", "apollo-server-plugin-http-headers": "^0.1.4", - "date-fns": "^2.17.0", - "date-fns-tz": "^1.1.2", + "date-fns": "^2.19.0", + "date-fns-tz": "^1.1.3", "debounce-promise": "^3.1.2", "dotenv": "^8.2.0", "graphql": "^15.5.0", - "graphql-scalars": "^1.7.1", + "graphql-scalars": "^1.9.0", "graphql-tools": "^7.0.4", "is-url": "^1.2.4", "micro": "^9.3.4", "microrouter": "^3.1.3", - "mongoose": "^5.11.17", + "mongoose": "^5.12.1", "node-fetch": "^2.6.1", "node-schedule": "^2.0.0", "normalize-url": "^5.0.0", @@ -61,7 +61,7 @@ "ava": "3.15.0", "classnames": "^2.2.6", "coveralls": "^3.1.0", - "eslint": "^7.20.0", + "eslint": "^7.22.0", "eslint-plugin-import": "^2.22.0", "eslint-plugin-react": "^7.22.0", "eslint-plugin-react-hooks": "^4.2.0", @@ -72,20 +72,20 @@ "husky": "^4.3.8", "immer": "^8.0.1", "mocked-env": "^1.3.2", - "mongodb-memory-server": "^6.9.3", + "mongodb-memory-server": "^6.9.6", "nodemon": "^2.0.7", "normalize.css": "^8.0.1", "nyc": "^15.1.0", "prop-types": "^15.7.2", "react": "^17.0.1", "react-dom": "^17.0.1", - "react-error-boundary": "^3.1.0", + "react-error-boundary": "^3.1.1", "react-fast-compare": "^3.2.0", - "react-hotkeys-hook": "^3.1.0", + "react-hotkeys-hook": "^3.2.1", "react-redux": "^7.2.2", - "react-use": "^17.1.1", + "react-use": "^17.2.1", "redux": "^4.0.5", - "redux-devtools-extension": "^2.13.8", + "redux-devtools-extension": "^2.13.9", "redux-thunk": "^2.3.0", "rosid-handler-js-next": "^1.0.0", "rosid-handler-sass": "^8.0.0", diff --git a/yarn.lock b/yarn.lock index d5f261af..f5d25d81 100644 --- a/yarn.lock +++ b/yarn.lock @@ -47,12 +47,12 @@ dependencies: apollo-env "^0.6.5" -"@apollographql/graphql-playground-html@1.6.26": - version "1.6.26" - resolved "https://registry.yarnpkg.com/@apollographql/graphql-playground-html/-/graphql-playground-html-1.6.26.tgz#2f7b610392e2a872722912fc342b43cf8d641cb3" - integrity sha512-XAwXOIab51QyhBxnxySdK3nuMEUohhDsHQ5Rbco/V1vjlP75zZ0ZLHD9dTpXTN8uxKxopb2lUvJTq+M4g2Q0HQ== +"@apollographql/graphql-playground-html@1.6.27": + version "1.6.27" + resolved "https://registry.yarnpkg.com/@apollographql/graphql-playground-html/-/graphql-playground-html-1.6.27.tgz#bc9ab60e9445aa2a8813b4e94f152fa72b756335" + integrity sha512-tea2LweZvn6y6xFV11K0KC8ETjmm52mQrW+ezgB2O/aTQf8JGyFmMcRPFgUaQZeHbWdm8iisDC6EjOKsXu0nfw== dependencies: - xss "^1.0.6" + xss "^1.0.8" "@apollographql/graphql-upload-8-fork@^8.1.3": version "8.1.3" @@ -966,10 +966,10 @@ resolved "https://registry.yarnpkg.com/@electerious/eslint-config/-/eslint-config-1.4.0.tgz#e4b9fcb096d5f863c0255e5303d60c8277ccab0a" integrity sha512-ziXxG2Szn2Y8M1corC2oU7TP3/kCKgxEPLcBaaFwWWJl4kuKszC0oi2+xpGPGDzasBPaAhzoIXBrDSJsItQjmQ== -"@eslint/eslintrc@^0.3.0": - version "0.3.0" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.3.0.tgz#d736d6963d7003b6514e6324bec9c602ac340318" - integrity sha512-1JTKgrOKAHVivSvOYw+sJOunkBjUOvjqWk1DPja7ZFhIS2mX/4EgTT8M7eTK9jrKhL/FvXXEbQwIs3pg1xp3dg== +"@eslint/eslintrc@^0.4.0": + version "0.4.0" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.0.tgz#99cc0a0584d72f1df38b900fb062ba995f395547" + integrity sha512-2ZPCc+uNbjV5ERJr+aKSPRwZgKd2z11x0EgLvb1PURmUrn9QNRXFqje0Ldq454PfAVyaJYyrDvvIKSFP4NnBog== dependencies: ajv "^6.12.4" debug "^4.1.1" @@ -978,7 +978,6 @@ ignore "^4.0.6" import-fresh "^3.2.1" js-yaml "^3.13.1" - lodash "^4.17.20" minimatch "^3.0.4" strip-json-comments "^3.1.1" @@ -1490,6 +1489,11 @@ resolved "https://registry.yarnpkg.com/@types/http-errors/-/http-errors-1.8.0.tgz#682477dbbbd07cd032731cb3b0e7eaee3d026b69" integrity sha512-2aoSC4UUbHDj2uCsCxcG/vRMXey/m17bC7UwitVm5hn22nI8O8Y9iDpA76Orc+DWkQ4zZrOKEshCqR/jSuXAHA== +"@types/js-cookie@^2.2.6": + version "2.2.6" + resolved "https://registry.yarnpkg.com/@types/js-cookie/-/js-cookie-2.2.6.tgz#f1a1cb35aff47bc5cfb05cb0c441ca91e914c26f" + integrity sha512-+oY0FDTO2GYKEV0YPvSshGq9t7YozVkgvXLty7zogQNuCxBhT9/3INX9Q7H1aRZ4SUDRXAKlJuA4EA5nTt7SNw== + "@types/json5@^0.0.29": version "0.0.29" resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" @@ -1856,13 +1860,13 @@ apollo-server-caching@^0.5.3: dependencies: lru-cache "^6.0.0" -apollo-server-core@^2.21.0: - version "2.21.0" - resolved "https://registry.yarnpkg.com/apollo-server-core/-/apollo-server-core-2.21.0.tgz#12ee11aee61fa124f11b1d73cae2e068112a3a53" - integrity sha512-GtIiq2F0dVDLzzIuO5+dK/pGq/sGxYlKCqAuQQqzYg0fvZ7fukyluXtcTe0tMI+FJZjU0j0WnKgiLsboCoAlPQ== +apollo-server-core@^2.21.2: + version "2.21.2" + resolved "https://registry.yarnpkg.com/apollo-server-core/-/apollo-server-core-2.21.2.tgz#9f44bdcb4d5467a426f0fecd112afc95479d4b07" + integrity sha512-jIXMVQPOUzIOl4El/mzSixxJ5IDrqSk3L9uJ1U+ncwiQj0IjtkkyDSuYngcgyEi+KfO2lAzxeOiAy9fIjjkC2A== dependencies: "@apollographql/apollo-tools" "^0.4.3" - "@apollographql/graphql-playground-html" "1.6.26" + "@apollographql/graphql-playground-html" "1.6.27" "@apollographql/graphql-upload-8-fork" "^8.1.3" "@types/ws" "^7.0.0" apollo-cache-control "^0.11.6" @@ -1900,26 +1904,26 @@ apollo-server-errors@^2.4.2: resolved "https://registry.yarnpkg.com/apollo-server-errors/-/apollo-server-errors-2.4.2.tgz#1128738a1d14da989f58420896d70524784eabe5" integrity sha512-FeGxW3Batn6sUtX3OVVUm7o56EgjxDlmgpTLNyWcLb0j6P8mw9oLNyAm3B+deHA4KNdNHO5BmHS2g1SJYjqPCQ== -apollo-server-lambda@^2.21.0: - version "2.21.0" - resolved "https://registry.yarnpkg.com/apollo-server-lambda/-/apollo-server-lambda-2.21.0.tgz#24080382aacfffe5f61480143be73c6424d3e54b" - integrity sha512-j96eA4hoo6Umjml3EqjgNd8cdlYHHQY1bMoTYIZO63CYemYRGkuB4j9fumNp+fGwZ1KaENm+H53iTM011VSjpw== +apollo-server-lambda@^2.21.2: + version "2.21.2" + resolved "https://registry.yarnpkg.com/apollo-server-lambda/-/apollo-server-lambda-2.21.2.tgz#99b8f74eaddc875fbc3f54dea6380f667c77d4ea" + integrity sha512-lpVn+wGvV8SQGusDIl21sJeFokI97TTP136clZoJ8CzI17k9ASOt+Dq97fnEc6uNwCA/RESypMjEwprnE1lvyA== dependencies: - "@apollographql/graphql-playground-html" "1.6.26" + "@apollographql/graphql-playground-html" "1.6.27" "@types/aws-lambda" "^8.10.31" - apollo-server-core "^2.21.0" + apollo-server-core "^2.21.2" apollo-server-env "^3.0.0" apollo-server-types "^0.6.3" graphql-tools "^4.0.8" -apollo-server-micro@^2.21.0: - version "2.21.0" - resolved "https://registry.yarnpkg.com/apollo-server-micro/-/apollo-server-micro-2.21.0.tgz#b0808fd8a7d4a51478c44dc0295d6e5cd9f4d3d4" - integrity sha512-u7rjKaekF/uEx/aBmaOUohDtdUHtAM2FPJKcvU82BW+cH/ab3kkZfJWclx6Gck+wT4lTO5t/tKXdonFQzxIJ/g== +apollo-server-micro@^2.21.2: + version "2.21.2" + resolved "https://registry.yarnpkg.com/apollo-server-micro/-/apollo-server-micro-2.21.2.tgz#06d9a799bcd4246009e4a80c02a7ab55fabeca03" + integrity sha512-ABfBbOxPa+csAFkUQCkwizcm4lxqy4tH9eY5/6GR3ya9ZKnXrZI5ukrWQsTVXbX8jrPxP9bT6yOV48Ztm6g/4w== dependencies: - "@apollographql/graphql-playground-html" "1.6.26" + "@apollographql/graphql-playground-html" "1.6.27" accept "^3.0.2" - apollo-server-core "^2.21.0" + apollo-server-core "^2.21.2" apollo-server-types "^0.6.3" micro "^9.3.2" @@ -3014,15 +3018,15 @@ dataloader@2.0.0: resolved "https://registry.yarnpkg.com/dataloader/-/dataloader-2.0.0.tgz#41eaf123db115987e21ca93c005cd7753c55fe6f" integrity sha512-YzhyDAwA4TaQIhM5go+vCLmU0UikghC/t9DTQYZR2M/UvZ1MdOhPezSDZcjj9uqQJOMqjLcpWtyW2iNINdlatQ== -date-fns-tz@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/date-fns-tz/-/date-fns-tz-1.1.2.tgz#893c73026e20a8ae1bfb0c565dd2972df723776e" - integrity sha512-QY3KoLy16bERNTEhJV2UJfvQRcPOwneAGwLcKUyHYT1PKydYyEZ7rKJjo6tDvx3bXlQhbnvq7CrvbFlonR00AQ== +date-fns-tz@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/date-fns-tz/-/date-fns-tz-1.1.3.tgz#8783489c9d90e5785548869af5bb8c4642a03855" + integrity sha512-mD26WkejWz842RggjFrKsY6ehGgyBQSJ209mn83/vsjhgQ5WbdVvBzJ0CuosnGdklDxOvOppQ/wn1UgvTOPKPw== -date-fns@^2.17.0: - version "2.17.0" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.17.0.tgz#afa55daea539239db0a64e236ce716ef3d681ba1" - integrity sha512-ZEhqxUtEZeGgg9eHNSOAJ8O9xqSgiJdrL0lzSSfMF54x6KXWJiOH/xntSJ9YomJPrYH/p08t6gWjGWq1SDJlSA== +date-fns@^2.19.0: + version "2.19.0" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.19.0.tgz#65193348635a28d5d916c43ec7ce6fbd145059e1" + integrity sha512-X3bf2iTPgCAQp9wvjOQytnf5vO5rESYRXlPIVcgSbtT5OTScPcsf9eZU+B/YIkKAtYr5WeCii58BgATrNitlWg== date-time@^3.1.0: version "3.1.0" @@ -3479,13 +3483,13 @@ eslint-visitor-keys@^2.0.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz#21fdc8fbcd9c795cc0321f0563702095751511a8" integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ== -eslint@^7.20.0: - version "7.20.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.20.0.tgz#db07c4ca4eda2e2316e7aa57ac7fc91ec550bdc7" - integrity sha512-qGi0CTcOGP2OtCQBgWZlQjcTuP0XkIpYFj25XtRTQSHC+umNnp7UMshr2G8SLsRFYDdAPFeHOsiteadmMH02Yw== +eslint@^7.22.0: + version "7.22.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.22.0.tgz#07ecc61052fec63661a2cab6bd507127c07adc6f" + integrity sha512-3VawOtjSJUQiiqac8MQc+w457iGLfuNGLFn8JmF051tTKbh5/x/0vlcEj8OgDCaw7Ysa2Jn8paGshV7x2abKXg== dependencies: "@babel/code-frame" "7.12.11" - "@eslint/eslintrc" "^0.3.0" + "@eslint/eslintrc" "^0.4.0" ajv "^6.10.0" chalk "^4.0.0" cross-spawn "^7.0.2" @@ -3498,10 +3502,10 @@ eslint@^7.20.0: espree "^7.3.1" esquery "^1.4.0" esutils "^2.0.2" - file-entry-cache "^6.0.0" + file-entry-cache "^6.0.1" functional-red-black-tree "^1.0.1" glob-parent "^5.0.0" - globals "^12.1.0" + globals "^13.6.0" ignore "^4.0.6" import-fresh "^3.0.0" imurmurhash "^0.1.4" @@ -3509,7 +3513,7 @@ eslint@^7.20.0: js-yaml "^3.13.1" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.4.1" - lodash "^4.17.20" + lodash "^4.17.21" minimatch "^3.0.4" natural-compare "^1.4.0" optionator "^0.9.1" @@ -3712,10 +3716,10 @@ figures@^3.2.0: dependencies: escape-string-regexp "^1.0.5" -file-entry-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.0.tgz#7921a89c391c6d93efec2169ac6bf300c527ea0a" - integrity sha512-fqoO76jZ3ZnYrXLDRxBR1YvOvc0k844kcOg40bgsPrE25LAb/PDqTY+ho64Xh2c8ZXgIKldchCFHczG2UVRcWA== +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== dependencies: flat-cache "^3.0.4" @@ -3977,6 +3981,13 @@ globals@^12.1.0: dependencies: type-fest "^0.8.1" +globals@^13.6.0: + version "13.7.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.7.0.tgz#aed3bcefd80ad3ec0f0be2cf0c895110c0591795" + integrity sha512-Aipsz6ZKRxa/xQkZhNg0qIWXT6x6rD46f6x/PCnBomlttdIyAPak4YD9jTmKpZ72uROSMU87qJtcgpgHaVchiA== + dependencies: + type-fest "^0.20.2" + globby@11.0.1: version "11.0.1" resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.1.tgz#9a2bf107a068f3ffeabc49ad702c79ede8cfd357" @@ -4032,10 +4043,10 @@ graphql-extensions@^0.12.8: apollo-server-env "^3.0.0" apollo-server-types "^0.6.3" -graphql-scalars@^1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/graphql-scalars/-/graphql-scalars-1.7.1.tgz#1894b216fc9d1c9a9a552554557a884a45503bd5" - integrity sha512-Z5Iy2Wo+AyjS5x27QnZewbro/xnfclfTGRhSrDva6BOhQws3+RAberK36DC+1hSO+6bIAwnaz1EQ0qkV5ENA4w== +graphql-scalars@^1.9.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/graphql-scalars/-/graphql-scalars-1.9.0.tgz#fd3171cafc6f51b71d58f6a8ff89ea97477c16d3" + integrity sha512-31bBDnHdBapb2wknLCjNzTSjKfVEtm+0HxI7DKM7jQ4Uipk1o1aMUCYCkYunmRDdgQaI03u1MD5KutLf7yHnvw== dependencies: tslib "~2.1.0" @@ -5032,6 +5043,11 @@ lodash@4.17.20, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20: resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== +lodash@^4.17.21: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + log-driver@^1.2.7: version "1.2.7" resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8" @@ -5261,10 +5277,10 @@ mocked-env@^1.3.2: lazy-ass "1.6.0" ramda "0.26.1" -mongodb-memory-server-core@6.9.3: - version "6.9.3" - resolved "https://registry.yarnpkg.com/mongodb-memory-server-core/-/mongodb-memory-server-core-6.9.3.tgz#1c5f7d339e8ac66290b5f1363a49efb40a32e3c5" - integrity sha512-9ZaWemIQLbu9VG553ksMiV7TNnzICqXhSSQv/7Io6dnuO8VpoLLdd1wIz+r2YuWFP7U159JPWQc8QG9jIL27og== +mongodb-memory-server-core@6.9.6: + version "6.9.6" + resolved "https://registry.yarnpkg.com/mongodb-memory-server-core/-/mongodb-memory-server-core-6.9.6.tgz#90ef0562bea675ef68bd687533792da02bcc81f3" + integrity sha512-ZcXHTI2TccH3L5N9JyAMGm8bbAsfLn8SUWOeYGHx/vDx7vu4qshyaNXTIxeHjpUQA29N+Z1LtTXA6vXjl1eg6w== dependencies: "@types/tmp" "^0.2.0" camelcase "^6.0.0" @@ -5280,35 +5296,22 @@ mongodb-memory-server-core@6.9.3: semver "^7.3.2" tar-stream "^2.1.4" tmp "^0.2.1" - uuid "8.3.0" + uuid "^8.3.0" yauzl "^2.10.0" optionalDependencies: - mongodb "3.6.2" + mongodb "^3.6.2" -mongodb-memory-server@^6.9.3: - version "6.9.3" - resolved "https://registry.yarnpkg.com/mongodb-memory-server/-/mongodb-memory-server-6.9.3.tgz#1ea342531603625ef501fa12217f447d0ecea6b3" - integrity sha512-VU2ey+fknmZflHltPCznZr9fja8T6K7DTG5m7wSxmQC/Qf/kkKmRGqIPcZoEU5znRR/8m/EaOe+hFWkjmh1W5A== +mongodb-memory-server@^6.9.6: + version "6.9.6" + resolved "https://registry.yarnpkg.com/mongodb-memory-server/-/mongodb-memory-server-6.9.6.tgz#ced1a100f58363317a562efaf8821726c433cfd2" + integrity sha512-BjGPPh5f61lMueG7px9DneBIrRR/GoWUHDvLWVAXhQhKVcwMMXxgeEba6zdDolZHfYAu6aYGPzhOuYKIKPgpBQ== dependencies: - mongodb-memory-server-core "6.9.3" + mongodb-memory-server-core "6.9.6" -mongodb@3.6.2: - version "3.6.2" - resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-3.6.2.tgz#1154a4ac107bf1375112d83a29c5cf97704e96b6" - integrity sha512-sSZOb04w3HcnrrXC82NEh/YGCmBuRgR+C1hZgmmv4L6dBz4BkRse6Y8/q/neXer9i95fKUBbFi4KgeceXmbsOA== - dependencies: - bl "^2.2.1" - bson "^1.1.4" - denque "^1.4.1" - require_optional "^1.0.1" - safe-buffer "^5.1.2" - optionalDependencies: - saslprep "^1.0.0" - -mongodb@3.6.4: - version "3.6.4" - resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-3.6.4.tgz#ca59fd65b06831308262372ef9df6b78f9da97be" - integrity sha512-Y+Ki9iXE9jI+n9bVtbTOOdK0B95d6wVGSucwtBkvQ+HIvVdTCfpVRp01FDC24uhC/Q2WXQ8Lpq3/zwtB5Op9Qw== +mongodb@3.6.5, mongodb@^3.6.2: + version "3.6.5" + resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-3.6.5.tgz#c27d786fd4d3c83dc19302483707d12a9d2aee5f" + integrity sha512-mQlYKw1iGbvJJejcPuyTaytq0xxlYbIoVDm2FODR+OHxyEiMR021vc32bTvamgBjCswsD54XIRwhg3yBaWqJjg== dependencies: bl "^2.2.1" bson "^1.1.4" @@ -5323,15 +5326,15 @@ mongoose-legacy-pluralize@1.0.2: resolved "https://registry.yarnpkg.com/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz#3ba9f91fa507b5186d399fb40854bff18fb563e4" integrity sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ== -mongoose@^5.11.17: - version "5.11.17" - resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-5.11.17.tgz#260b1e669d07a65f96c00b2d22f556f1f5771741" - integrity sha512-qggwwv+oTsjvlto9fhq17l2Mojl5Gn8GN7NxnaLjsZbjT4O5ONtKtGtymHZ23viGrlHn6rNFMJEnEql2G6tyrg== +mongoose@^5.12.1: + version "5.12.1" + resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-5.12.1.tgz#9aace8ac783b239906253396a98f2a56c0964b8b" + integrity sha512-g/oIEvQQrK1XcICS/PfzU1Gu1s6Uw1rgJP7/SfC3Ru6pTLa1dH2Lb+iJipNWqChbrykE78j/wwBVSsbyCZRl5Q== dependencies: "@types/mongodb" "^3.5.27" bson "^1.1.4" kareem "2.3.2" - mongodb "3.6.4" + mongodb "3.6.5" mongoose-legacy-pluralize "1.0.2" mpath "0.8.3" mquery "3.2.4" @@ -6417,10 +6420,10 @@ react-dom@^17.0.1: object-assign "^4.1.1" scheduler "^0.20.1" -react-error-boundary@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/react-error-boundary/-/react-error-boundary-3.1.0.tgz#9487443df2f9ba1db90d8ab52351814907ea4af3" - integrity sha512-lmPrdi5SLRJR+AeJkqdkGlW/CRkAUvZnETahK58J4xb5wpbfDngasEGu+w0T1iXEhVrYBJZeW+c4V1hILCnMWQ== +react-error-boundary@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/react-error-boundary/-/react-error-boundary-3.1.1.tgz#932c5ca5cbab8ec4fe37fd7b415aa5c3a47597e7" + integrity sha512-W3xCd9zXnanqrTUeViceufD3mIW8Ut29BUD+S2f0eO2XCOU8b6UrJfY46RDGe5lxCJzfe4j0yvIfh0RbTZhKJw== dependencies: "@babel/runtime" "^7.12.5" @@ -6429,10 +6432,10 @@ react-fast-compare@^3.2.0: resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.0.tgz#641a9da81b6a6320f270e89724fb45a0b39e43bb" integrity sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA== -react-hotkeys-hook@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/react-hotkeys-hook/-/react-hotkeys-hook-3.1.0.tgz#fa2f6a7752b54c0fff94d4fdf3d13f24f7756189" - integrity sha512-czZxVyQR21AXrkHXgx1GwIoyc72vtRpDHMKM4oEI/At+7urrYDZyHSw+tDjVQR5r8BYZZ/++4wwq6BF30SXdlw== +react-hotkeys-hook@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/react-hotkeys-hook/-/react-hotkeys-hook-3.2.1.tgz#314760bad7b27c1cf5dedb4b8b15fb7eced3ae1f" + integrity sha512-l5Y4Dr109Fz10hHq40hkJmppXUqdv7tNVFldPq7lDsgWBpPLWCtkkSkrzTySje4GK+t5VLzPA01cCyUsZutOmQ== dependencies: hotkeys-js "3.8.2" @@ -6457,11 +6460,12 @@ react-universal-interface@^0.6.2: resolved "https://registry.yarnpkg.com/react-universal-interface/-/react-universal-interface-0.6.2.tgz#5e8d438a01729a4dbbcbeeceb0b86be146fe2b3b" integrity sha512-dg8yXdcQmvgR13RIlZbTRQOoUrDciFVoSBZILwjE2LFISxZZ8loVJKAkuzswl5js8BHda79bIb2b84ehU8IjXw== -react-use@^17.1.1: - version "17.1.1" - resolved "https://registry.yarnpkg.com/react-use/-/react-use-17.1.1.tgz#f4c3667f1833e1848417dffe3538a3ec9d7fdcfe" - integrity sha512-DfDRlODcjO8shjz37cjyS99c+JDXvMNvasGiHNCGUpSp1ZEU+dxthf5Cvz0GuUFNGZayu81t86IjolsX/Fj+8g== +react-use@^17.2.1: + version "17.2.1" + resolved "https://registry.yarnpkg.com/react-use/-/react-use-17.2.1.tgz#c81e12544115ed049c7deba1e3bb3d977dfee9b8" + integrity sha512-9r51/at7/Nr/nEP4CsHz+pl800EAqhIY9R6O68m68kaWc8slDAfx1UrIedQqpsb4ImddFYb+6hF1i5Vj4u4Cnw== dependencies: + "@types/js-cookie" "^2.2.6" "@xobotyi/scrollbar-width" "^1.9.5" copy-to-clipboard "^3.3.1" fast-deep-equal "^3.1.3" @@ -6540,10 +6544,10 @@ readdirp@~3.5.0: dependencies: picomatch "^2.2.1" -redux-devtools-extension@^2.13.8: - version "2.13.8" - resolved "https://registry.yarnpkg.com/redux-devtools-extension/-/redux-devtools-extension-2.13.8.tgz#37b982688626e5e4993ff87220c9bbb7cd2d96e1" - integrity sha512-8qlpooP2QqPtZHQZRhx3x3OP5skEV1py/zUdMY28WNAocbafxdG2tRD1MWE7sp8obGMNYuLWanhhQ7EQvT1FBg== +redux-devtools-extension@^2.13.9: + version "2.13.9" + resolved "https://registry.yarnpkg.com/redux-devtools-extension/-/redux-devtools-extension-2.13.9.tgz#6b764e8028b507adcb75a1cae790f71e6be08ae7" + integrity sha512-cNJ8Q/EtjhQaZ71c8I9+BPySIBVEKssbPpskBfsXqb8HJ002A3KRVHfeRzwRo6mGPqsm7XuHTqNSNeS1Khig0A== redux-thunk@^2.3.0: version "2.3.0" @@ -7883,17 +7887,12 @@ util.promisify@~1.0.0: has-symbols "^1.0.1" object.getownpropertydescriptors "^2.1.0" -uuid@8.3.0: - version "8.3.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.0.tgz#ab738085ca22dc9a8c92725e459b1d507df5d6ea" - integrity sha512-fX6Z5o4m6XsXBdli9g7DtWgAx+osMsRRZFKma1mIUsLCz6vRvv+pz5VNbyu9UEDzpMWulZfvpgb/cmDXVulYFQ== - uuid@^3.1.0, uuid@^3.3.2, uuid@^3.3.3: version "3.4.0" resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== -uuid@^8.0.0, uuid@^8.3.2: +uuid@^8.0.0, uuid@^8.3.0, uuid@^8.3.2: version "8.3.2" resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== @@ -8033,7 +8032,7 @@ xdg-basedir@^4.0.0: resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13" integrity sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q== -xss@^1.0.6: +xss@^1.0.8: version "1.0.8" resolved "https://registry.yarnpkg.com/xss/-/xss-1.0.8.tgz#32feb87feb74b3dcd3d404b7a68ababf10700535" integrity sha512-3MgPdaXV8rfQ/pNn16Eio6VXYPTkqwa0vc7GkiymmY/DqR1SE/7VPAAVZz1GJsJFrllMYO3RHfEaiUGjab6TNw== From ef729b6c55cea810b488a3b51c73627911203b72 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 20 Mar 2021 13:29:54 +0100 Subject: [PATCH 3/7] Update changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97acc495..0d46d5ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Changed + +- Updated dependencies, including `ackee-tracker` in v5.1.0 which ignores updateRecord request when the website is in the background (#202) + ## [3.0.5] - 2021-02-21 ### Changed From 23ccb62e73fb4413ee8f750b839e0f6787875669 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 20 Mar 2021 13:30:28 +0100 Subject: [PATCH 4/7] Install ackee-tracker in v5.1.0 #202 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ae6e52a6..c5a27342 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "lint": "eslint '{functions,src,test}/**/*.js'" }, "dependencies": { - "ackee-tracker": "^5.0.1", + "ackee-tracker": "^5.1.0-0", "apollo-server-lambda": "^2.21.2", "apollo-server-micro": "^2.21.2", "apollo-server-plugin-http-headers": "^0.1.4", diff --git a/yarn.lock b/yarn.lock index f5d25d81..65708946 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1681,10 +1681,10 @@ accept@^3.0.2: boom "7.x.x" hoek "6.x.x" -ackee-tracker@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ackee-tracker/-/ackee-tracker-5.0.1.tgz#f32624cf82cb3f26a59e551fecb47e9b18f663ab" - integrity sha512-VN5eZK9XjdZ6QGGCfH019LGzLfwb73aXKDg1eDWKudGlijSandJXjzlgqnG9dvkkOKhK6EQLLBanV3tLqKA34w== +ackee-tracker@^5.1.0-0: + version "5.1.0-0" + resolved "https://registry.yarnpkg.com/ackee-tracker/-/ackee-tracker-5.1.0-0.tgz#73d2e40cc18b3dda217436f950709d3bce084b0d" + integrity sha512-WD+m43Da/nKS5RZwfiK4IQ+XniZcxU39uHkkPmk0deQsQnnmkL7tx94WPdbMIgpJFP00bYpkiUU072ZTeeyLsg== dependencies: platform "^1.3.6" From e9f1f87d39575cfef8726d7b27d30284b4303e42 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 20 Mar 2021 13:34:11 +0100 Subject: [PATCH 5/7] Rebuild --- dist/index.js | 4 ++-- dist/tracker.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 0df96b30..53d45d87 100644 --- a/dist/index.js +++ b/dist/index.js @@ -80,7 +80,7 @@ n((function(e,t){}));var vs=n((function(e){!function e(){if("undefined"!=typeof * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -n((function(e,t){}));var tc=n((function(e){e.exports=ec}));function nc(){}function rc(){}Function.call.bind(Object.prototype.hasOwnProperty),rc.resetWarningCache=nc;var ac=n((function(e){e.exports=function(){function e(e,t,n,r,a,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rc,resetWarningCache:nc};return n.PropTypes=n,n}()})),oc=s.createContext(null);var ic=function(e){e()},lc=function(){return ic},uc={notify:function(){}};var sc=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=uc,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=lc(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,a=n={callback:e,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){r&&null!==t&&(r=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=uc)},e}();function cc(){return(cc=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}var fc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hc={};function yc(e){return tc.isMemo(e)?mc:hc[e.$$typeof]||fc}hc[tc.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},hc[tc.Memo]=mc;var vc=Object.defineProperty,gc=Object.getOwnPropertyNames,bc=Object.getOwnPropertySymbols,wc=Object.getOwnPropertyDescriptor,Ec=Object.getPrototypeOf,kc=Object.prototype;var Sc=function e(t,n,r){if("string"!=typeof n){if(kc){var a=Ec(n);a&&a!==kc&&e(t,a,r)}var o=gc(n);bc&&(o=o.concat(bc(n)));for(var i=yc(t),l=yc(n),u=0;u=0;r--){var a=t[r](e);if(a)return a}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Hc(e,t){return e===t}function Kc(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Mc:n,a=t.mapStateToPropsFactories,o=void 0===a?$c:a,i=t.mapDispatchToPropsFactories,l=void 0===i?Fc:i,u=t.mergePropsFactories,s=void 0===u?qc:u,c=t.selectorFactory,d=void 0===c?Wc:c;return function(e,t,n,a){void 0===a&&(a={});var i=a,u=i.pure,c=void 0===u||u,f=i.areStatesEqual,p=void 0===f?Hc:f,m=i.areOwnPropsEqual,h=void 0===m?Dc:m,y=i.areStatePropsEqual,v=void 0===y?Dc:y,g=i.areMergedPropsEqual,b=void 0===g?Dc:g,w=dc(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),E=Bc(e,o,"mapStateToProps"),k=Bc(t,l,"mapDispatchToProps"),S=Bc(n,s,"mergeProps");return r(d,cc({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:k,initMergeProps:S,pure:c,areStatesEqual:p,areOwnPropsEqual:h,areStatePropsEqual:v,areMergedPropsEqual:b},w))}}var Qc,Yc=Kc();Qc=vs.unstable_batchedUpdates,ic=Qc;var Gc=t(Ms).compose,Xc="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Gc:Gc.apply(null,arguments)};function Zc(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(a){return"function"==typeof a?a(n,r,e):t(a)}}}}var Jc=Zc();Jc.withExtraArgument=Zc;var ed="3.0.5",td="https://github.com/electerious/Ackee";const nd="ackee_state_3.0.5";var rd=(e,t)=>setTimeout((()=>{requestAnimationFrame(e)}),t),ad=1;var od,id,ld,ud={nextValue:function(){return(ad=(9301*ad+49297)%233280)/233280},seed:function(e){ad=e}},sd="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function cd(){ld=!1}function dd(e){if(e){if(e!==od){if(e.length!==sd.length)throw new Error("Custom alphabet for shortid must be "+sd.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,n){return t!==n.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+sd.length+" unique characters. These characters were not unique: "+t.join(", "));od=e,cd()}}else od!==sd&&(od=sd,cd())}function fd(){return ld||(ld=function(){od||dd(sd);for(var e,t=od.split(""),n=[],r=ud.nextValue();t.length>0;)r=ud.nextValue(),e=Math.floor(r*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}var pd={get:function(){return od||sd},characters:function(e){return dd(e),od},seed:function(e){ud.seed(e),id!==e&&(cd(),id=e)},lookup:function(e){return fd()[e]},shuffled:fd},md="object"==typeof window&&(window.crypto||window.msCrypto),hd=md&&md.getRandomValues?function(e){return md.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n0&&(t+=bd(vd)),t+=bd(n)};var Ed=function(e){return!(!e||"string"!=typeof e||e.length<6)&&!new RegExp("[^"+pd.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e)},kd=n((function(e){var t=0;function n(){return wd(t)}e.exports=n,e.exports.generate=n,e.exports.seed=function(t){return pd.seed(t),e.exports},e.exports.worker=function(n){return t=n,e.exports},e.exports.characters=function(e){return void 0!==e&&pd.characters(e),pd.shuffled()},e.exports.isValid=Ed})),Sd=()=>`_${kd.generate()}`;const _d=Symbol(),xd=Symbol(),Td=Symbol(),Cd=(e,t)=>({type:_d,modalId:e,payload:t}),Nd=e=>({type:xd,modalId:e}),Rd=(e,t)=>({type:Td,modalId:e,payload:t});class Pd extends Error{constructor(e){super(e),this.name="HandledError",this.message=e}}var Od=(new Intl.DateTimeFormat).resolvedOptions().timeZone,Md=async({query:e,variables:t,props:n,signal:r})=>{try{const l=new Headers,u=n.token.value;l.append("Content-Type","application/json"),l.append("Time-Zone",Od),u&&l.append("Authorization",`Bearer ${u}`);const s=fetch("/api",{method:"post",headers:l,body:JSON.stringify({query:e,variables:t}),signal:r}),c=await(a=s,o="Request timeout",i=3e4,Promise.race([a,new Promise(((e,t)=>{setTimeout((()=>t(new Error(o))),i)}))]));if(!1===c.ok){const e=await c.text();throw new Error(e)}const d=await c.json();if(null!=d.errors){const e=d.errors[0].message;throw new Error(e)}return d.data}catch(e){if(console.error(e),"Token invalid"===e.message)throw n.resetState(),new Pd(e.message);throw e}var a,o,i},Ld=e=>{const t=Symbol(),n={};return e(((e=t)=>(null!=n[e]&&n[e].abort(),n[e]=new AbortController,n[e].signal)))};const Dd=Symbol(),Ad=Symbol(),Id=Symbol(),zd=Symbol(),Fd=Symbol(),$d=()=>({type:Dd}),jd=()=>({type:Ad}),qd=e=>({type:Id,value:e}),Ud=e=>({type:zd,payload:e}),Vd=e=>({type:Fd,payload:e}),Wd=Ld((e=>(t,n)=>async r=>{r(jd());try{const a=await Md({query:"\n\t\t\t\tmutation createToken($input: CreateTokenInput!) {\n\t\t\t\t\tcreateToken(input: $input) {\n\t\t\t\t\t\tpayload {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{input:{username:n.username,password:n.password}},props:t,signal:e()});r(qd(a.createToken.payload.id))}catch(e){if("AbortError"===e.name)return;if(r(Ud(!1)),"HandledError"===e.name)return;r(Vd(e))}})),Bd=Ld((e=>t=>async n=>{n($d());try{await Md({query:"\n\t\t\t\tmutation deleteToken($id: ID!) {\n\t\t\t\t\tdeleteToken(id: $id) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{id:t.token.value},props:t,signal:e()})}catch(e){if("AbortError"===e.name)return;if("HandledError"===e.name)return;n(Vd(e))}})),Hd=Symbol(),Kd=Symbol(),Qd=Symbol(),Yd=Symbol(),Gd=()=>({type:Hd}),Xd=e=>({type:Kd,value:e}),Zd=e=>({type:Qd,payload:e}),Jd=e=>({type:Yd,payload:e}),ef=Ld((e=>t=>async n=>{n(Gd());try{const r=await Md({query:"\n\t\t\t\tquery fetchPermanentTokens {\n\t\t\t\t\tpermanentTokens {\n\t\t\t\t\t\tid\n\t\t\t\t\t\ttitle\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",props:t,signal:e()});n(Xd(r.permanentTokens))}catch(e){if("AbortError"===e.name)return;if(n(Zd(!1)),"HandledError"===e.name)return;n(Jd(e))}})),tf=Ld((e=>(t,n,r)=>async a=>{a(Gd());try{await Md({query:"\n\t\t\t\tmutation updatePermanentToken($id: ID!, $input: UpdatePermanentTokenInput!) {\n\t\t\t\t\tupdatePermanentToken(id: $id, input: $input) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{id:n,input:{title:r.title}},props:t,signal:e(n)}),await a(ef(t))}catch(e){if("AbortError"===e.name)return;if(a(Zd(!1)),"HandledError"===e.name)return;a(Jd(e))}})),nf=Ld((e=>(t,n)=>async r=>{r(Gd());try{await Md({query:"\n\t\t\t\tmutation deletePermanentToken($id: ID!) {\n\t\t\t\t\tdeletePermanentToken(id: $id) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{id:n},props:t,signal:e(n)}),await r(ef(t))}catch(e){if("AbortError"===e.name)return;if(r(Zd(!1)),"HandledError"===e.name)return;r(Jd(e))}})),rf=Symbol(),af=Symbol(),of=Symbol(),lf=Symbol(),uf=Symbol(),sf=Symbol(),cf=Symbol(),df=Symbol(),ff=Symbol(),pf=Symbol(),mf=Symbol(),hf=Symbol(),yf=Symbol(),vf=()=>({type:pf}),gf=e=>({type:mf,value:e}),bf=e=>({type:hf,payload:e}),wf=e=>({type:yf,payload:e}),Ef=Ld((e=>t=>async n=>{n(vf());try{const r=await Md({query:"\n\t\t\t\tquery fetchDomains {\n\t\t\t\t\tdomains {\n\t\t\t\t\t\tid\n\t\t\t\t\t\ttitle\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",props:t,signal:e()});n(gf(r.domains))}catch(e){if("AbortError"===e.name)return;if(n(bf(!1)),"HandledError"===e.name)return;n(wf(e))}})),kf=Ld((e=>(t,n,r)=>async a=>{a(vf());try{await Md({query:"\n\t\t\t\tmutation updateDomain($id: ID!, $input: UpdateDomainInput!) {\n\t\t\t\t\tupdateDomain(id: $id, input: $input) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{id:n,input:{title:r.title}},props:t,signal:e(n)}),await a(Ef(t))}catch(e){if("AbortError"===e.name)return;if(a(bf(!1)),"HandledError"===e.name)return;a(wf(e))}})),Sf=Ld((e=>(t,n)=>async r=>{r(vf());try{await Md({query:"\n\t\t\t\tmutation deleteDomain($id: ID!) {\n\t\t\t\t\tdeleteDomain(id: $id) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{id:n},props:t,signal:e(n)}),await r(Ef(t))}catch(e){if("AbortError"===e.name)return;if(r(bf(!1)),"HandledError"===e.name)return;r(wf(e))}})),_f=Symbol(),xf=Symbol(),Tf=Symbol(),Cf=Symbol(),Nf=()=>({type:_f}),Rf=e=>({type:xf,value:e}),Pf=e=>({type:Tf,payload:e}),Of=e=>({type:Cf,payload:e}),Mf=Ld((e=>t=>async n=>{n(Nf());try{const r=await Md({query:"\n\t\t\t\tquery fetchEvents {\n\t\t\t\t\tevents {\n\t\t\t\t\t\tid\n\t\t\t\t\t\ttitle\n\t\t\t\t\t\ttype\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",props:t,signal:e()});n(Rf(r.events))}catch(e){if("AbortError"===e.name)return;if(n(Pf(!1)),"HandledError"===e.name)return;n(Of(e))}})),Lf=Ld((e=>(t,n,r)=>async a=>{a(Nf());try{await Md({query:"\n\t\t\t\tmutation updateEvent($id: ID!, $input: UpdateEventInput!) {\n\t\t\t\t\tupdateEvent(id: $id, input: $input) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{id:n,input:{title:r.title,type:r.type}},props:t,signal:e(n)}),await a(Mf(t))}catch(e){if("AbortError"===e.name)return;if(a(Pf(!1)),"HandledError"===e.name)return;a(Of(e))}})),Df=Ld((e=>(t,n)=>async r=>{r(Nf());try{await Md({query:"\n\t\t\t\tmutation deleteEvent($id: ID!) {\n\t\t\t\t\tdeleteEvent(id: $id) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{id:n},props:t,signal:e(n)}),await r(Mf(t))}catch(e){if("AbortError"===e.name)return;if(r(Pf(!1)),"HandledError"===e.name)return;r(Of(e))}}));var Af=(e,t)=>{vs.unstable_batchedUpdates((()=>{t.forEach((t=>e(t)))}))};const If=Symbol(),zf=Symbol(),Ff=Symbol(),$f=Symbol(),jf=(e,t)=>({type:If,id:e,value:t}),qf=(e,t)=>({type:zf,id:e,value:t}),Uf=(e,t)=>({type:Ff,id:e,payload:t}),Vf=e=>({type:$f,payload:e}),Wf=Ld((e=>(t,n)=>async r=>{if(0===n.length)return;const a=n.map((e=>e.id)).join(""),o=e=>`_${e}`,i=n.map(((e,t)=>{const{query:n}=e;return`${o(t)}: ${n}`})).join("");Af(r,n.map((e=>{const{id:t,enhancer:n}=e;return jf(t,n())})));try{const l=await Md({query:`\n\t\t\t\t{\n\t\t\t\t\t${i}\n\t\t\t\t}\n\t\t\t`,props:t,signal:e(a)});Af(r,n.map(((e,t)=>{const{id:n,selector:r,enhancer:a}=e,i=o(t);return qf(n,a(r(l,i)))})))}catch(e){if("AbortError"===e.name)return;if(Af(r,n.map((e=>Uf(e.id,!1)))),"HandledError"===e.name)return;r(Vf(e))}}));var Bf=Object.freeze({__proto__:null,SET_MODALS_STATE:_d,REMOVE_MODALS_STATE:xd,SET_MODALS_VISIBLE:Td,setModalsState:Cd,removeModalsState:Nd,setModalsVisible:Rd,addModalsModal:e=>async t=>{const n=Sd();t(Cd(n,e)),rd((()=>{t(Rd(n,!0))}),30)},removeModalsModal:e=>async t=>{t(Rd(e,!1)),rd((()=>{t(Nd(e))}),300)},RESET_STATE:Dd,SET_TOKEN_START:Ad,SET_TOKEN_END:Id,SET_TOKEN_FETCHING:zd,SET_TOKEN_ERROR:Fd,resetState:$d,setTokenStart:jd,setTokenEnd:qd,setTokenFetching:Ud,setTokenError:Vd,addToken:Wd,deleteToken:Bd,SET_PERMANENT_TOKENS_START:Hd,SET_PERMANENT_TOKENS_END:Kd,SET_PERMANENT_TOKENS_FETCHING:Qd,SET_PERMANENT_TOKENS_ERROR:Yd,setPermanentTokensStart:Gd,setPermanentTokensEnd:Xd,setPermanentTokensFetching:Zd,setPermanentTokensError:Jd,fetchPermanentTokens:ef,addPermanentToken:(e,t)=>async n=>{n(Gd());try{await Md({query:"\n\t\t\t\tmutation createPermanentToken($input: CreatePermanentTokenInput!) {\n\t\t\t\t\tcreatePermanentToken(input: $input) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t \t}\n\t\t\t",variables:{input:{title:t.title}},props:e}),await n(ef(e))}catch(e){if("AbortError"===e.name)return;if(n(Zd(!1)),"HandledError"===e.name)return;n(Jd(e))}},updatePermanentToken:tf,deletePermanentToken:nf,SET_FILTER_SORTING:rf,SET_FILTER_RANGE:af,SET_FILTER_INTERVAL:of,SET_FILTER_VIEWS_TYPE:lf,SET_FILTER_REFERRERS_TYPE:uf,SET_FILTER_DEVICES_TYPE:sf,SET_FILTER_BROWSERS_TYPE:cf,SET_FILTER_SIZES_TYPE:df,SET_FILTER_SYSTEMS_TYPE:ff,setFilterSorting:e=>({type:rf,payload:e}),setFilterRange:e=>({type:af,payload:e}),setFilterInterval:e=>({type:of,payload:e}),setFilterViewsType:e=>({type:lf,payload:e}),setFilterReferrersType:e=>({type:uf,payload:e}),setFilterDevicesType:e=>({type:sf,payload:e}),setFilterBrowsersType:e=>({type:cf,payload:e}),setFilterSizesType:e=>({type:df,payload:e}),setFilterSystemsType:e=>({type:ff,payload:e}),SET_DOMAINS_START:pf,SET_DOMAINS_END:mf,SET_DOMAINS_FETCHING:hf,SET_DOMAINS_ERROR:yf,setDomainsStart:vf,setDomainsEnd:gf,setDomainsFetching:bf,setDomainsError:wf,fetchDomains:Ef,addDomain:(e,t)=>async n=>{n(vf());try{await Md({query:"\n\t\t\t\tmutation createDomain($input: CreateDomainInput!) {\n\t\t\t\t\tcreateDomain(input: $input) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t \t}\n\t\t\t",variables:{input:{title:t.title}},props:e}),await n(Ef(e))}catch(e){if("AbortError"===e.name)return;if(n(bf(!1)),"HandledError"===e.name)return;n(wf(e))}},updateDomain:kf,deleteDomain:Sf,SET_EVENTS_START:_f,SET_EVENTS_END:xf,SET_EVENTS_FETCHING:Tf,SET_EVENTS_ERROR:Cf,setEventsStart:Nf,setEventsEnd:Rf,setEventsFetching:Pf,setEventsError:Of,fetchEvents:Mf,addEvent:(e,t)=>async n=>{n(Nf());try{await Md({query:"\n\t\t\t\tmutation createEvent($input: CreateEventInput!) {\n\t\t\t\t\tcreateEvent(input: $input) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t \t}\n\t\t\t",variables:{input:{title:t.title,type:t.type}},props:e}),await n(Mf(e))}catch(e){if("AbortError"===e.name)return;if(n(Pf(!1)),"HandledError"===e.name)return;n(Of(e))}},updateEvent:Lf,deleteEvent:Df,SET_WIDGETS_START:If,SET_WIDGETS_END:zf,SET_WIDGETS_FETCHING:Ff,SET_WIDGETS_ERROR:$f,setWidgetsStart:jf,setWidgetsEnd:qf,setWidgetsFetching:Uf,setWidgetsError:Vf,fetchWidgets:Wf});function Hf(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:Jf(e)?2:ep(e)?3:0}function Xf(e,t){return 2===Gf(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Zf(e,t,n){var r=Gf(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Jf(e){return Cp&&e instanceof Map}function ep(e){return Np&&e instanceof Set}function tp(e){return e.o||e.t}function np(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Dp(e);delete t[Mp];for(var n=Lp(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=ap),Object.freeze(e),t&&Yf(e,(function(e,t){return rp(t,!0)}),!0)),e}function ap(){Hf(2)}function op(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function ip(e){var t=Ap[e];return t||Hf(18,e),t}function lp(){return xp}function up(e,t){t&&(ip("Patches"),e.u=[],e.s=[],e.v=t)}function sp(e){cp(e),e.p.forEach(fp),e.p=null}function cp(e){e===xp&&(xp=e.l)}function dp(e){return xp={p:[],l:xp,h:e,m:!0,_:0}}function fp(e){var t=e[Mp];0===t.i||1===t.i?t.j():t.g=!0}function pp(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||ip("ES5").S(t,e,r),r?(n[Mp].P&&(sp(t),Hf(4)),Qf(e)&&(e=mp(t,e),t.l||yp(t,e)),t.u&&ip("Patches").M(n[Mp],e,t.u,t.s)):e=mp(t,n,[]),sp(t),t.u&&t.v(t.u,t.s),e!==Pp?e:void 0}function mp(e,t,n){if(op(t))return t;var r=t[Mp];if(!r)return Yf(t,(function(a,o){return hp(e,r,t,a,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return yp(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var a=4===r.i||5===r.i?r.o=np(r.k):r.o;Yf(3===r.i?new Set(a):a,(function(t,o){return hp(e,r,a,t,o,n)})),yp(e,a,!1),n&&e.u&&ip("Patches").R(r,n,e.u,e.s)}return r.o}function hp(e,t,n,r,a,o){if(Kf(a)){var i=mp(e,a,o&&t&&3!==t.i&&!Xf(t.D,r)?o.concat(r):void 0);if(Zf(n,r,i),!Kf(i))return;e.m=!1}if(Qf(a)&&!op(a)){if(!e.h.N&&e._<1)return;mp(e,a),t&&t.A.l||yp(e,a)}}function yp(e,t,n){void 0===n&&(n=!1),e.h.N&&e.m&&rp(t,n)}function vp(e,t){var n=e[Mp];return(n?tp(n):e)[t]}function gp(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function bp(e){e.P||(e.P=!0,e.l&&bp(e.l))}function wp(e){e.o||(e.o=np(e.t))}function Ep(e,t,n){var r=Jf(t)?ip("MapSet").T(t,n):ep(t)?ip("MapSet").F(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:lp(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},a=r,o=Ip;n&&(a=[r],o=zp);var i=Proxy.revocable(a,o),l=i.revoke,u=i.proxy;return r.k=u,r.j=l,u}(t,n):ip("ES5").J(t,n);return(n?n.A:lp()).p.push(r),r}function kp(e){return Kf(e)||Hf(22,e),function e(t){if(!Qf(t))return t;var n,r=t[Mp],a=Gf(t);if(r){if(!r.P&&(r.i<4||!ip("ES5").K(r)))return r.t;r.I=!0,n=Sp(t,a),r.I=!1}else n=Sp(t,a);return Yf(n,(function(t,a){r&&function(e,t){return 2===Gf(e)?e.get(t):e[t]}(r.t,t)===a||Zf(n,t,e(a))})),3===a?new Set(n):n}(e)}function Sp(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return np(e)}var _p,xp,Tp="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Cp="undefined"!=typeof Map,Np="undefined"!=typeof Set,Rp="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Pp=Tp?Symbol.for("immer-nothing"):((_p={})["immer-nothing"]=!0,_p),Op=Tp?Symbol.for("immer-draftable"):"__$immer_draftable",Mp=Tp?Symbol.for("immer-state"):"__$immer_state",Lp="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Dp=Object.getOwnPropertyDescriptors||function(e){var t={};return Lp(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Ap={},Ip={get:function(e,t){if(t===Mp)return e;var n=tp(e);if(!Xf(n,t))return function(e,t,n){var r,a=gp(t,n);return a?"value"in a?a.value:null===(r=a.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Qf(r)?r:r===vp(e.t,t)?(wp(e),e.o[t]=Ep(e.A.h,r,e)):r},has:function(e,t){return t in tp(e)},ownKeys:function(e){return Reflect.ownKeys(tp(e))},set:function(e,t,n){var r=gp(tp(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var a=vp(tp(e),t),o=null==a?void 0:a[Mp];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,a)&&(void 0!==n||Xf(e.t,t)))return!0;wp(e),bp(e)}return e.o[t]=n,e.D[t]=!0,!0},deleteProperty:function(e,t){return void 0!==vp(e.t,t)||t in e.t?(e.D[t]=!1,wp(e),bp(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=tp(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Hf(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Hf(12)}},zp={};Yf(Ip,(function(e,t){zp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),zp.deleteProperty=function(e,t){return Ip.deleteProperty.call(this,e[0],t)},zp.set=function(e,t,n){return Ip.set.call(this,e[0],t,n,e[0])};var Fp=new(function(){function e(e){this.O=Rp,this.N=!0,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var t=e.prototype;return t.produce=function(e,t,n){if("function"==typeof e&&"function"!=typeof t){var r=t;t=e;var a=this;return function(e){var n=this;void 0===e&&(e=r);for(var o=arguments.length,i=Array(o>1?o-1:0),l=1;l1?n-1:0),o=1;o=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var a=ip("Patches").$;return Kf(e)?a(e,t):this.produce(e,(function(e){return a(e,t.slice(n+1))}))},e}()),$p=Fp.produce;Fp.produceWithPatches.bind(Fp),Fp.setAutoFreeze.bind(Fp),Fp.setUseProxies.bind(Fp),Fp.applyPatches.bind(Fp),Fp.createDraft.bind(Fp),Fp.finishDraft.bind(Fp);var jp=$p(((e,t)=>{switch(t.type){case _d:e.value[t.modalId]=e.value[t.modalId]||{id:void 0,type:void 0,props:{},visible:!1},e.value[t.modalId].id=t.modalId,e.value[t.modalId].type=t.payload.type,e.value[t.modalId].props=t.payload.props||{},e.value[t.modalId].visible=t.payload.visible||!1;break;case xd:delete e.value[t.modalId];break;case Td:e.value[t.modalId].visible=t.payload||!1}}),{value:{}});var qp=$p(((e,t)=>{switch(t.type){case Ad:e.fetching=!0,e.error=void 0;break;case Id:e.value=t.value||void 0,e.fetching=!1;break;case zd:e.fetching=t.payload||!1;break;case Fd:e.error=t.payload||void 0}}),{value:void 0,fetching:!1,error:void 0});var Up=$p(((e,t)=>{switch(t.type){case Hd:e.fetching=!0,e.error=void 0;break;case Kd:e.value=t.value||[],e.fetching=!1;break;case Qd:e.fetching=t.payload||!1;break;case Yd:e.error=t.payload||void 0}}),{value:[],fetching:!1,error:void 0});var Vp="TOP",Wp="NEW",Bp="RECENT";var Hp="LAST_24_HOURS",Kp="LAST_7_DAYS",Qp="LAST_30_DAYS",Yp="LAST_6_MONTHS";var Gp="DAILY",Xp="MONTHLY",Zp="YEARLY";var Jp="UNIQUE",em="TOTAL";var tm="WITH_SOURCE",nm="NO_SOURCE",rm="ONLY_SOURCE";var am="WITH_MODEL",om="NO_MODEL";var im="WITH_VERSION",lm="NO_VERSION";var um="BROWSER_HEIGHT",sm="BROWSER_RESOLUTION",cm="BROWSER_WIDTH",dm="SCREEN_HEIGHT",fm="SCREEN_RESOLUTION",pm="SCREEN_WIDTH";var mm="WITH_VERSION",hm="NO_VERSION";const ym=()=>({sorting:Vp,range:Kp,interval:Gp,viewsType:Jp,referrersType:tm,devicesType:am,browsersType:im,sizesType:sm,systemsType:mm});var vm=$p(((e,t)=>{switch(t.type){case rf:e.sorting=t.payload;break;case af:e.range=t.payload;break;case of:e.interval=t.payload;break;case lf:e.viewsType=t.payload;break;case uf:e.referrersType=t.payload;break;case sf:e.devicesType=t.payload;break;case cf:e.browsersType=t.payload;break;case df:e.sizesType=t.payload;break;case ff:e.systemsType=t.payload}}),ym());var gm=$p(((e,t)=>{switch(t.type){case pf:e.fetching=!0,e.error=void 0;break;case mf:e.value=t.value||[],e.fetching=!1;break;case hf:e.fetching=t.payload||!1;break;case yf:e.error=t.payload||void 0}}),{value:[],fetching:!1,error:void 0});var bm=$p(((e,t)=>{switch(t.type){case _f:e.fetching=!0,e.error=void 0;break;case xf:e.value=t.value||[],e.fetching=!1;break;case Tf:e.fetching=t.payload||!1;break;case Cf:e.error=t.payload||void 0}}),{value:[],fetching:!1,error:void 0});const wm=_s({modals:jp,token:qp,permanentTokens:Up,filter:vm,domains:gm,events:bm,widgets:$p(((e,t)=>{switch(t.type){case If:e.value[t.id]=e.value[t.id]||{value:void 0,fetching:!1};const n=null==e.value[t.id].value?t.value:e.value[t.id].value;e.value[t.id].value=n,e.value[t.id].fetching=!0;break;case zf:e.value[t.id].value=t.value,e.value[t.id].fetching=!1;break;case Ff:e.value[t.id].fetching=t.payload||!1;break;case $f:e.error=t.payload||void 0}}),{value:{},error:void 0})});var Em=n((function(e,t){!function(e,t){function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))},a={error:null},o=function(e){function o(){for(var t,n=arguments.length,r=new Array(n),o=0;o!1===km.includes(e.message),xm=Sm||(Sm={});xm.Pop="POP",xm.Push="PUSH",xm.Replace="REPLACE";function Tm(e){e.preventDefault(),e.returnValue=""}function Cm(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function Nm(e){var t=e.pathname,n=e.search;return(void 0===t?"/":t)+(void 0===n?"":n)+(void 0===(e=e.hash)?"":e)}function Rm(e){var t={};if(e){var n=e.indexOf("#");0<=n&&(t.hash=e.substr(n),e=e.substr(0,n)),0<=(n=e.indexOf("?"))&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var Pm=n((function(t,n){var r=[].slice;!function(e,r){null!==n?t.exports=r():e.UrlPattern=r()}(e,(function(){var e,t,n,a,o,i,l,u,s,c,d,f,p,m,h;return s=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},l=function(e,t){var n,r,a;for(a=[],n=-1,r=e.length;++n(Array.isArray(i)?i.length-1:0)))return o=Array.isArray(i)?i[a]:i,r&&(n[t]=a+1),o;if(r)throw new Error("too few values provided for key `"+t+"`")}else if(r)throw new Error("no values provided for key `"+t+"`")},n=function(e,t,r){var a,o;if(Array.isArray(e)){for(a=-1,o=e.length;++a!0===Wm.some((t=>null!=t.pattern.match(e)))?e:Bm.pattern.stringify();var Km=()=>{const e=s.useMemo((()=>function(e){function t(){var e=Rm(l.location.hash.substr(1)),t=e.pathname,n=e.search;e=e.hash;var r=u.state||{};return[r.idx,{pathname:void 0===t?"/":t,search:void 0===n?"":n,hash:void 0===e?"":e,state:r.usr||null,key:r.key||"default"}]}function n(){if(s)m.call(s),s=null;else{var e=Sm.Pop,n=t(),r=n[0];if(n=n[1],m.length){if(null!=r){var a=d-r;a&&(s={action:e,location:n,retry:function(){i(-1*a)}},i(a))}}else o(e)}}function r(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=-1===(n=(t=l.location.href).indexOf("#"))?t:t.slice(0,n)),n+"#"+("string"==typeof e?e:Nm(e))}function a(e,t){return void 0===t&&(t=null),cc({},f,{},"string"==typeof e?Rm(e):e,{state:t,key:Math.random().toString(36).substr(2,8)})}function o(e){c=e,e=t(),d=e[0],f=e[1],p.call({action:c,location:f})}function i(e){u.go(e)}void 0===e&&(e={});var l=void 0===(e=e.window)?document.defaultView:e,u=l.history,s=null;l.addEventListener("popstate",n),l.addEventListener("hashchange",(function(){Nm(t()[1])!==Nm(f)&&n()}));var c=Sm.Pop,d=(e=t())[0],f=e[1],p=Cm(),m=Cm();return null==d&&(d=0,u.replaceState(cc({},u.state,{idx:d}),"")),{get action(){return c},get location(){return f},createHref:r,push:function e(t,n){var i=Sm.Push,s=a(t,n);if(!m.length||(m.call({action:i,location:s,retry:function(){e(t,n)}}),0)){var c=[{usr:s.state,key:s.key,idx:d+1},r(s)];s=c[0],c=c[1];try{u.pushState(s,"",c)}catch(e){l.location.assign(c)}o(i)}},replace:function e(t,n){var i=Sm.Replace,l=a(t,n);m.length&&(m.call({action:i,location:l,retry:function(){e(t,n)}}),1)||(l=[{usr:l.state,key:l.key,idx:d},r(l)],u.replaceState(l[0],"",l[1]),o(i))},go:i,back:function(){i(-1)},forward:function(){i(1)},listen:function(e){return p.push(e)},block:function(e){var t=m.push(e);return 1===m.length&&l.addEventListener("beforeunload",Tm),function(){t(),m.length||l.removeEventListener("beforeunload",Tm)}}}}()),[]),[t,n]=s.useState(Hm(e.location));s.useEffect((()=>e.listen((({location:e})=>{n(Hm(e))}))),[e]);return[s.useCallback((t=>{e.push({pathname:t})}),[e]),t]},Qm=e=>[e.message,e.stack].join("\n");const Ym=e=>{e.target.select(),document.execCommand("copy")},Gm=e=>{const t=s.createElement("textarea",{className:"input",id:e.id,required:e.required,disabled:e.disabled,readOnly:e.readOnly,placeholder:e.placeholder,value:e.value,rows:e.rows,onChange:e.onChange,onFocus:!0===e.copyOnFocus?Ym:void 0});return!0===e.copyOnFocus?s.createElement("div",{className:"inputMessage",title:"Copied to clipboard"},t):t};Gm.propTypes={id:ac.string,required:ac.bool,disabled:ac.bool,readOnly:ac.bool,placeholder:ac.string,value:ac.string,rows:ac.number,onChange:ac.func,copyOnFocus:ac.bool};const Xm=e=>s.createElement("div",{className:"spacer",style:{"--size":e.size}});Xm.propTypes={size:ac.number.isRequired}; +n((function(e,t){}));var tc=n((function(e){e.exports=ec}));function nc(){}function rc(){}Function.call.bind(Object.prototype.hasOwnProperty),rc.resetWarningCache=nc;var ac=n((function(e){e.exports=function(){function e(e,t,n,r,a,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rc,resetWarningCache:nc};return n.PropTypes=n,n}()})),oc=s.createContext(null);var ic=function(e){e()},lc=function(){return ic},uc={notify:function(){}};var sc=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=uc,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=lc(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,a=n={callback:e,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){r&&null!==t&&(r=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=uc)},e}();function cc(){return(cc=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}var fc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hc={};function yc(e){return tc.isMemo(e)?mc:hc[e.$$typeof]||fc}hc[tc.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},hc[tc.Memo]=mc;var vc=Object.defineProperty,gc=Object.getOwnPropertyNames,bc=Object.getOwnPropertySymbols,wc=Object.getOwnPropertyDescriptor,Ec=Object.getPrototypeOf,kc=Object.prototype;var Sc=function e(t,n,r){if("string"!=typeof n){if(kc){var a=Ec(n);a&&a!==kc&&e(t,a,r)}var o=gc(n);bc&&(o=o.concat(bc(n)));for(var i=yc(t),l=yc(n),u=0;u=0;r--){var a=t[r](e);if(a)return a}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Hc(e,t){return e===t}function Kc(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Mc:n,a=t.mapStateToPropsFactories,o=void 0===a?$c:a,i=t.mapDispatchToPropsFactories,l=void 0===i?Fc:i,u=t.mergePropsFactories,s=void 0===u?qc:u,c=t.selectorFactory,d=void 0===c?Wc:c;return function(e,t,n,a){void 0===a&&(a={});var i=a,u=i.pure,c=void 0===u||u,f=i.areStatesEqual,p=void 0===f?Hc:f,m=i.areOwnPropsEqual,h=void 0===m?Dc:m,y=i.areStatePropsEqual,v=void 0===y?Dc:y,g=i.areMergedPropsEqual,b=void 0===g?Dc:g,w=dc(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),E=Bc(e,o,"mapStateToProps"),k=Bc(t,l,"mapDispatchToProps"),S=Bc(n,s,"mergeProps");return r(d,cc({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:k,initMergeProps:S,pure:c,areStatesEqual:p,areOwnPropsEqual:h,areStatePropsEqual:v,areMergedPropsEqual:b},w))}}var Qc,Yc=Kc();Qc=vs.unstable_batchedUpdates,ic=Qc;var Gc=t(Ms).compose,Xc="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Gc:Gc.apply(null,arguments)};function Zc(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(a){return"function"==typeof a?a(n,r,e):t(a)}}}}var Jc=Zc();Jc.withExtraArgument=Zc;var ed="3.0.5",td="https://github.com/electerious/Ackee";const nd="ackee_state_3.0.5";var rd=(e,t)=>setTimeout((()=>{requestAnimationFrame(e)}),t),ad=1;var od,id,ld,ud={nextValue:function(){return(ad=(9301*ad+49297)%233280)/233280},seed:function(e){ad=e}},sd="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function cd(){ld=!1}function dd(e){if(e){if(e!==od){if(e.length!==sd.length)throw new Error("Custom alphabet for shortid must be "+sd.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,n){return t!==n.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+sd.length+" unique characters. These characters were not unique: "+t.join(", "));od=e,cd()}}else od!==sd&&(od=sd,cd())}function fd(){return ld||(ld=function(){od||dd(sd);for(var e,t=od.split(""),n=[],r=ud.nextValue();t.length>0;)r=ud.nextValue(),e=Math.floor(r*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}var pd={get:function(){return od||sd},characters:function(e){return dd(e),od},seed:function(e){ud.seed(e),id!==e&&(cd(),id=e)},lookup:function(e){return fd()[e]},shuffled:fd},md="object"==typeof window&&(window.crypto||window.msCrypto),hd=md&&md.getRandomValues?function(e){return md.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n0&&(t+=bd(vd)),t+=bd(n)};var Ed=function(e){return!(!e||"string"!=typeof e||e.length<6)&&!new RegExp("[^"+pd.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e)},kd=n((function(e){var t=0;function n(){return wd(t)}e.exports=n,e.exports.generate=n,e.exports.seed=function(t){return pd.seed(t),e.exports},e.exports.worker=function(n){return t=n,e.exports},e.exports.characters=function(e){return void 0!==e&&pd.characters(e),pd.shuffled()},e.exports.isValid=Ed})),Sd=()=>`_${kd.generate()}`;const _d=Symbol(),xd=Symbol(),Td=Symbol(),Cd=(e,t)=>({type:_d,modalId:e,payload:t}),Nd=e=>({type:xd,modalId:e}),Rd=(e,t)=>({type:Td,modalId:e,payload:t});class Pd extends Error{constructor(e){super(e),this.name="HandledError",this.message=e}}var Od=(new Intl.DateTimeFormat).resolvedOptions().timeZone,Md=async({query:e,variables:t,props:n,signal:r})=>{try{const l=new Headers,u=n.token.value;l.append("Content-Type","application/json"),l.append("Time-Zone",Od),u&&l.append("Authorization",`Bearer ${u}`);const s=fetch("/api",{method:"post",headers:l,body:JSON.stringify({query:e,variables:t}),signal:r}),c=await(a=s,o="Request timeout",i=3e4,Promise.race([a,new Promise(((e,t)=>{setTimeout((()=>t(new Error(o))),i)}))]));if(!1===c.ok){const e=await c.text();throw new Error(e)}const d=await c.json();if(null!=d.errors){const e=d.errors[0].message;throw new Error(e)}return d.data}catch(e){if(console.error(e),"Token invalid"===e.message)throw n.resetState(),new Pd(e.message);throw e}var a,o,i},Ld=e=>{const t=Symbol(),n={};return e(((e=t)=>(null!=n[e]&&n[e].abort(),n[e]=new AbortController,n[e].signal)))};const Dd=Symbol(),Ad=Symbol(),Id=Symbol(),zd=Symbol(),Fd=Symbol(),$d=()=>({type:Dd}),jd=()=>({type:Ad}),qd=e=>({type:Id,value:e}),Ud=e=>({type:zd,payload:e}),Vd=e=>({type:Fd,payload:e}),Wd=Ld((e=>(t,n)=>async r=>{r(jd());try{const a=await Md({query:"\n\t\t\t\tmutation createToken($input: CreateTokenInput!) {\n\t\t\t\t\tcreateToken(input: $input) {\n\t\t\t\t\t\tpayload {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{input:{username:n.username,password:n.password}},props:t,signal:e()});r(qd(a.createToken.payload.id))}catch(e){if("AbortError"===e.name)return;if(r(Ud(!1)),"HandledError"===e.name)return;r(Vd(e))}})),Bd=Ld((e=>t=>async n=>{n($d());try{await Md({query:"\n\t\t\t\tmutation deleteToken($id: ID!) {\n\t\t\t\t\tdeleteToken(id: $id) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{id:t.token.value},props:t,signal:e()})}catch(e){if("AbortError"===e.name)return;if("HandledError"===e.name)return;n(Vd(e))}})),Hd=Symbol(),Kd=Symbol(),Qd=Symbol(),Yd=Symbol(),Gd=()=>({type:Hd}),Xd=e=>({type:Kd,value:e}),Zd=e=>({type:Qd,payload:e}),Jd=e=>({type:Yd,payload:e}),ef=Ld((e=>t=>async n=>{n(Gd());try{const r=await Md({query:"\n\t\t\t\tquery fetchPermanentTokens {\n\t\t\t\t\tpermanentTokens {\n\t\t\t\t\t\tid\n\t\t\t\t\t\ttitle\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",props:t,signal:e()});n(Xd(r.permanentTokens))}catch(e){if("AbortError"===e.name)return;if(n(Zd(!1)),"HandledError"===e.name)return;n(Jd(e))}})),tf=Ld((e=>(t,n,r)=>async a=>{a(Gd());try{await Md({query:"\n\t\t\t\tmutation updatePermanentToken($id: ID!, $input: UpdatePermanentTokenInput!) {\n\t\t\t\t\tupdatePermanentToken(id: $id, input: $input) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{id:n,input:{title:r.title}},props:t,signal:e(n)}),await a(ef(t))}catch(e){if("AbortError"===e.name)return;if(a(Zd(!1)),"HandledError"===e.name)return;a(Jd(e))}})),nf=Ld((e=>(t,n)=>async r=>{r(Gd());try{await Md({query:"\n\t\t\t\tmutation deletePermanentToken($id: ID!) {\n\t\t\t\t\tdeletePermanentToken(id: $id) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{id:n},props:t,signal:e(n)}),await r(ef(t))}catch(e){if("AbortError"===e.name)return;if(r(Zd(!1)),"HandledError"===e.name)return;r(Jd(e))}})),rf=Symbol(),af=Symbol(),of=Symbol(),lf=Symbol(),uf=Symbol(),sf=Symbol(),cf=Symbol(),df=Symbol(),ff=Symbol(),pf=Symbol(),mf=Symbol(),hf=Symbol(),yf=Symbol(),vf=()=>({type:pf}),gf=e=>({type:mf,value:e}),bf=e=>({type:hf,payload:e}),wf=e=>({type:yf,payload:e}),Ef=Ld((e=>t=>async n=>{n(vf());try{const r=await Md({query:"\n\t\t\t\tquery fetchDomains {\n\t\t\t\t\tdomains {\n\t\t\t\t\t\tid\n\t\t\t\t\t\ttitle\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",props:t,signal:e()});n(gf(r.domains))}catch(e){if("AbortError"===e.name)return;if(n(bf(!1)),"HandledError"===e.name)return;n(wf(e))}})),kf=Ld((e=>(t,n,r)=>async a=>{a(vf());try{await Md({query:"\n\t\t\t\tmutation updateDomain($id: ID!, $input: UpdateDomainInput!) {\n\t\t\t\t\tupdateDomain(id: $id, input: $input) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{id:n,input:{title:r.title}},props:t,signal:e(n)}),await a(Ef(t))}catch(e){if("AbortError"===e.name)return;if(a(bf(!1)),"HandledError"===e.name)return;a(wf(e))}})),Sf=Ld((e=>(t,n)=>async r=>{r(vf());try{await Md({query:"\n\t\t\t\tmutation deleteDomain($id: ID!) {\n\t\t\t\t\tdeleteDomain(id: $id) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{id:n},props:t,signal:e(n)}),await r(Ef(t))}catch(e){if("AbortError"===e.name)return;if(r(bf(!1)),"HandledError"===e.name)return;r(wf(e))}})),_f=Symbol(),xf=Symbol(),Tf=Symbol(),Cf=Symbol(),Nf=()=>({type:_f}),Rf=e=>({type:xf,value:e}),Pf=e=>({type:Tf,payload:e}),Of=e=>({type:Cf,payload:e}),Mf=Ld((e=>t=>async n=>{n(Nf());try{const r=await Md({query:"\n\t\t\t\tquery fetchEvents {\n\t\t\t\t\tevents {\n\t\t\t\t\t\tid\n\t\t\t\t\t\ttitle\n\t\t\t\t\t\ttype\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",props:t,signal:e()});n(Rf(r.events))}catch(e){if("AbortError"===e.name)return;if(n(Pf(!1)),"HandledError"===e.name)return;n(Of(e))}})),Lf=Ld((e=>(t,n,r)=>async a=>{a(Nf());try{await Md({query:"\n\t\t\t\tmutation updateEvent($id: ID!, $input: UpdateEventInput!) {\n\t\t\t\t\tupdateEvent(id: $id, input: $input) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{id:n,input:{title:r.title,type:r.type}},props:t,signal:e(n)}),await a(Mf(t))}catch(e){if("AbortError"===e.name)return;if(a(Pf(!1)),"HandledError"===e.name)return;a(Of(e))}})),Df=Ld((e=>(t,n)=>async r=>{r(Nf());try{await Md({query:"\n\t\t\t\tmutation deleteEvent($id: ID!) {\n\t\t\t\t\tdeleteEvent(id: $id) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t",variables:{id:n},props:t,signal:e(n)}),await r(Mf(t))}catch(e){if("AbortError"===e.name)return;if(r(Pf(!1)),"HandledError"===e.name)return;r(Of(e))}}));var Af=(e,t)=>{vs.unstable_batchedUpdates((()=>{t.forEach((t=>e(t)))}))};const If=Symbol(),zf=Symbol(),Ff=Symbol(),$f=Symbol(),jf=(e,t)=>({type:If,id:e,value:t}),qf=(e,t)=>({type:zf,id:e,value:t}),Uf=(e,t)=>({type:Ff,id:e,payload:t}),Vf=e=>({type:$f,payload:e}),Wf=Ld((e=>(t,n)=>async r=>{if(0===n.length)return;const a=n.map((e=>e.id)).join(""),o=e=>`_${e}`,i=n.map(((e,t)=>{const{query:n}=e;return`${o(t)}: ${n}`})).join("");Af(r,n.map((e=>{const{id:t,enhancer:n}=e;return jf(t,n())})));try{const l=await Md({query:`\n\t\t\t\t{\n\t\t\t\t\t${i}\n\t\t\t\t}\n\t\t\t`,props:t,signal:e(a)});Af(r,n.map(((e,t)=>{const{id:n,selector:r,enhancer:a}=e,i=o(t);return qf(n,a(r(l,i)))})))}catch(e){if("AbortError"===e.name)return;if(Af(r,n.map((e=>Uf(e.id,!1)))),"HandledError"===e.name)return;r(Vf(e))}}));var Bf=Object.freeze({__proto__:null,SET_MODALS_STATE:_d,REMOVE_MODALS_STATE:xd,SET_MODALS_VISIBLE:Td,setModalsState:Cd,removeModalsState:Nd,setModalsVisible:Rd,addModalsModal:e=>async t=>{const n=Sd();t(Cd(n,e)),rd((()=>{t(Rd(n,!0))}),30)},removeModalsModal:e=>async t=>{t(Rd(e,!1)),rd((()=>{t(Nd(e))}),300)},RESET_STATE:Dd,SET_TOKEN_START:Ad,SET_TOKEN_END:Id,SET_TOKEN_FETCHING:zd,SET_TOKEN_ERROR:Fd,resetState:$d,setTokenStart:jd,setTokenEnd:qd,setTokenFetching:Ud,setTokenError:Vd,addToken:Wd,deleteToken:Bd,SET_PERMANENT_TOKENS_START:Hd,SET_PERMANENT_TOKENS_END:Kd,SET_PERMANENT_TOKENS_FETCHING:Qd,SET_PERMANENT_TOKENS_ERROR:Yd,setPermanentTokensStart:Gd,setPermanentTokensEnd:Xd,setPermanentTokensFetching:Zd,setPermanentTokensError:Jd,fetchPermanentTokens:ef,addPermanentToken:(e,t)=>async n=>{n(Gd());try{await Md({query:"\n\t\t\t\tmutation createPermanentToken($input: CreatePermanentTokenInput!) {\n\t\t\t\t\tcreatePermanentToken(input: $input) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t \t}\n\t\t\t",variables:{input:{title:t.title}},props:e}),await n(ef(e))}catch(e){if("AbortError"===e.name)return;if(n(Zd(!1)),"HandledError"===e.name)return;n(Jd(e))}},updatePermanentToken:tf,deletePermanentToken:nf,SET_FILTER_SORTING:rf,SET_FILTER_RANGE:af,SET_FILTER_INTERVAL:of,SET_FILTER_VIEWS_TYPE:lf,SET_FILTER_REFERRERS_TYPE:uf,SET_FILTER_DEVICES_TYPE:sf,SET_FILTER_BROWSERS_TYPE:cf,SET_FILTER_SIZES_TYPE:df,SET_FILTER_SYSTEMS_TYPE:ff,setFilterSorting:e=>({type:rf,payload:e}),setFilterRange:e=>({type:af,payload:e}),setFilterInterval:e=>({type:of,payload:e}),setFilterViewsType:e=>({type:lf,payload:e}),setFilterReferrersType:e=>({type:uf,payload:e}),setFilterDevicesType:e=>({type:sf,payload:e}),setFilterBrowsersType:e=>({type:cf,payload:e}),setFilterSizesType:e=>({type:df,payload:e}),setFilterSystemsType:e=>({type:ff,payload:e}),SET_DOMAINS_START:pf,SET_DOMAINS_END:mf,SET_DOMAINS_FETCHING:hf,SET_DOMAINS_ERROR:yf,setDomainsStart:vf,setDomainsEnd:gf,setDomainsFetching:bf,setDomainsError:wf,fetchDomains:Ef,addDomain:(e,t)=>async n=>{n(vf());try{await Md({query:"\n\t\t\t\tmutation createDomain($input: CreateDomainInput!) {\n\t\t\t\t\tcreateDomain(input: $input) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t \t}\n\t\t\t",variables:{input:{title:t.title}},props:e}),await n(Ef(e))}catch(e){if("AbortError"===e.name)return;if(n(bf(!1)),"HandledError"===e.name)return;n(wf(e))}},updateDomain:kf,deleteDomain:Sf,SET_EVENTS_START:_f,SET_EVENTS_END:xf,SET_EVENTS_FETCHING:Tf,SET_EVENTS_ERROR:Cf,setEventsStart:Nf,setEventsEnd:Rf,setEventsFetching:Pf,setEventsError:Of,fetchEvents:Mf,addEvent:(e,t)=>async n=>{n(Nf());try{await Md({query:"\n\t\t\t\tmutation createEvent($input: CreateEventInput!) {\n\t\t\t\t\tcreateEvent(input: $input) {\n\t\t\t\t\t\tsuccess\n\t\t\t\t\t}\n\t\t\t \t}\n\t\t\t",variables:{input:{title:t.title,type:t.type}},props:e}),await n(Mf(e))}catch(e){if("AbortError"===e.name)return;if(n(Pf(!1)),"HandledError"===e.name)return;n(Of(e))}},updateEvent:Lf,deleteEvent:Df,SET_WIDGETS_START:If,SET_WIDGETS_END:zf,SET_WIDGETS_FETCHING:Ff,SET_WIDGETS_ERROR:$f,setWidgetsStart:jf,setWidgetsEnd:qf,setWidgetsFetching:Uf,setWidgetsError:Vf,fetchWidgets:Wf});function Hf(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:Jf(e)?2:ep(e)?3:0}function Xf(e,t){return 2===Gf(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Zf(e,t,n){var r=Gf(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Jf(e){return Cp&&e instanceof Map}function ep(e){return Np&&e instanceof Set}function tp(e){return e.o||e.t}function np(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Dp(e);delete t[Mp];for(var n=Lp(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=ap),Object.freeze(e),t&&Yf(e,(function(e,t){return rp(t,!0)}),!0)),e}function ap(){Hf(2)}function op(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function ip(e){var t=Ap[e];return t||Hf(18,e),t}function lp(){return xp}function up(e,t){t&&(ip("Patches"),e.u=[],e.s=[],e.v=t)}function sp(e){cp(e),e.p.forEach(fp),e.p=null}function cp(e){e===xp&&(xp=e.l)}function dp(e){return xp={p:[],l:xp,h:e,m:!0,_:0}}function fp(e){var t=e[Mp];0===t.i||1===t.i?t.j():t.g=!0}function pp(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||ip("ES5").S(t,e,r),r?(n[Mp].P&&(sp(t),Hf(4)),Qf(e)&&(e=mp(t,e),t.l||yp(t,e)),t.u&&ip("Patches").M(n[Mp],e,t.u,t.s)):e=mp(t,n,[]),sp(t),t.u&&t.v(t.u,t.s),e!==Pp?e:void 0}function mp(e,t,n){if(op(t))return t;var r=t[Mp];if(!r)return Yf(t,(function(a,o){return hp(e,r,t,a,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return yp(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var a=4===r.i||5===r.i?r.o=np(r.k):r.o;Yf(3===r.i?new Set(a):a,(function(t,o){return hp(e,r,a,t,o,n)})),yp(e,a,!1),n&&e.u&&ip("Patches").R(r,n,e.u,e.s)}return r.o}function hp(e,t,n,r,a,o){if(Kf(a)){var i=mp(e,a,o&&t&&3!==t.i&&!Xf(t.D,r)?o.concat(r):void 0);if(Zf(n,r,i),!Kf(i))return;e.m=!1}if(Qf(a)&&!op(a)){if(!e.h.N&&e._<1)return;mp(e,a),t&&t.A.l||yp(e,a)}}function yp(e,t,n){void 0===n&&(n=!1),e.h.N&&e.m&&rp(t,n)}function vp(e,t){var n=e[Mp];return(n?tp(n):e)[t]}function gp(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function bp(e){e.P||(e.P=!0,e.l&&bp(e.l))}function wp(e){e.o||(e.o=np(e.t))}function Ep(e,t,n){var r=Jf(t)?ip("MapSet").T(t,n):ep(t)?ip("MapSet").F(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:lp(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},a=r,o=Ip;n&&(a=[r],o=zp);var i=Proxy.revocable(a,o),l=i.revoke,u=i.proxy;return r.k=u,r.j=l,u}(t,n):ip("ES5").J(t,n);return(n?n.A:lp()).p.push(r),r}function kp(e){return Kf(e)||Hf(22,e),function e(t){if(!Qf(t))return t;var n,r=t[Mp],a=Gf(t);if(r){if(!r.P&&(r.i<4||!ip("ES5").K(r)))return r.t;r.I=!0,n=Sp(t,a),r.I=!1}else n=Sp(t,a);return Yf(n,(function(t,a){r&&function(e,t){return 2===Gf(e)?e.get(t):e[t]}(r.t,t)===a||Zf(n,t,e(a))})),3===a?new Set(n):n}(e)}function Sp(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return np(e)}var _p,xp,Tp="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Cp="undefined"!=typeof Map,Np="undefined"!=typeof Set,Rp="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Pp=Tp?Symbol.for("immer-nothing"):((_p={})["immer-nothing"]=!0,_p),Op=Tp?Symbol.for("immer-draftable"):"__$immer_draftable",Mp=Tp?Symbol.for("immer-state"):"__$immer_state",Lp="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Dp=Object.getOwnPropertyDescriptors||function(e){var t={};return Lp(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Ap={},Ip={get:function(e,t){if(t===Mp)return e;var n=tp(e);if(!Xf(n,t))return function(e,t,n){var r,a=gp(t,n);return a?"value"in a?a.value:null===(r=a.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Qf(r)?r:r===vp(e.t,t)?(wp(e),e.o[t]=Ep(e.A.h,r,e)):r},has:function(e,t){return t in tp(e)},ownKeys:function(e){return Reflect.ownKeys(tp(e))},set:function(e,t,n){var r=gp(tp(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var a=vp(tp(e),t),o=null==a?void 0:a[Mp];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,a)&&(void 0!==n||Xf(e.t,t)))return!0;wp(e),bp(e)}return e.o[t]=n,e.D[t]=!0,!0},deleteProperty:function(e,t){return void 0!==vp(e.t,t)||t in e.t?(e.D[t]=!1,wp(e),bp(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=tp(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Hf(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Hf(12)}},zp={};Yf(Ip,(function(e,t){zp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),zp.deleteProperty=function(e,t){return Ip.deleteProperty.call(this,e[0],t)},zp.set=function(e,t,n){return Ip.set.call(this,e[0],t,n,e[0])};var Fp=new(function(){function e(e){this.O=Rp,this.N=!0,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var t=e.prototype;return t.produce=function(e,t,n){if("function"==typeof e&&"function"!=typeof t){var r=t;t=e;var a=this;return function(e){var n=this;void 0===e&&(e=r);for(var o=arguments.length,i=Array(o>1?o-1:0),l=1;l1?n-1:0),o=1;o=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var a=ip("Patches").$;return Kf(e)?a(e,t):this.produce(e,(function(e){return a(e,t.slice(n+1))}))},e}()),$p=Fp.produce;Fp.produceWithPatches.bind(Fp),Fp.setAutoFreeze.bind(Fp),Fp.setUseProxies.bind(Fp),Fp.applyPatches.bind(Fp),Fp.createDraft.bind(Fp),Fp.finishDraft.bind(Fp);var jp=$p(((e,t)=>{switch(t.type){case _d:e.value[t.modalId]=e.value[t.modalId]||{id:void 0,type:void 0,props:{},visible:!1},e.value[t.modalId].id=t.modalId,e.value[t.modalId].type=t.payload.type,e.value[t.modalId].props=t.payload.props||{},e.value[t.modalId].visible=t.payload.visible||!1;break;case xd:delete e.value[t.modalId];break;case Td:e.value[t.modalId].visible=t.payload||!1}}),{value:{}});var qp=$p(((e,t)=>{switch(t.type){case Ad:e.fetching=!0,e.error=void 0;break;case Id:e.value=t.value||void 0,e.fetching=!1;break;case zd:e.fetching=t.payload||!1;break;case Fd:e.error=t.payload||void 0}}),{value:void 0,fetching:!1,error:void 0});var Up=$p(((e,t)=>{switch(t.type){case Hd:e.fetching=!0,e.error=void 0;break;case Kd:e.value=t.value||[],e.fetching=!1;break;case Qd:e.fetching=t.payload||!1;break;case Yd:e.error=t.payload||void 0}}),{value:[],fetching:!1,error:void 0});var Vp="TOP",Wp="NEW",Bp="RECENT";var Hp="LAST_24_HOURS",Kp="LAST_7_DAYS",Qp="LAST_30_DAYS",Yp="LAST_6_MONTHS";var Gp="DAILY",Xp="MONTHLY",Zp="YEARLY";var Jp="UNIQUE",em="TOTAL";var tm="WITH_SOURCE",nm="NO_SOURCE",rm="ONLY_SOURCE";var am="WITH_MODEL",om="NO_MODEL";var im="WITH_VERSION",lm="NO_VERSION";var um="BROWSER_HEIGHT",sm="BROWSER_RESOLUTION",cm="BROWSER_WIDTH",dm="SCREEN_HEIGHT",fm="SCREEN_RESOLUTION",pm="SCREEN_WIDTH";var mm="WITH_VERSION",hm="NO_VERSION";const ym=()=>({sorting:Vp,range:Kp,interval:Gp,viewsType:Jp,referrersType:tm,devicesType:am,browsersType:im,sizesType:sm,systemsType:mm});var vm=$p(((e,t)=>{switch(t.type){case rf:e.sorting=t.payload;break;case af:e.range=t.payload;break;case of:e.interval=t.payload;break;case lf:e.viewsType=t.payload;break;case uf:e.referrersType=t.payload;break;case sf:e.devicesType=t.payload;break;case cf:e.browsersType=t.payload;break;case df:e.sizesType=t.payload;break;case ff:e.systemsType=t.payload}}),ym());var gm=$p(((e,t)=>{switch(t.type){case pf:e.fetching=!0,e.error=void 0;break;case mf:e.value=t.value||[],e.fetching=!1;break;case hf:e.fetching=t.payload||!1;break;case yf:e.error=t.payload||void 0}}),{value:[],fetching:!1,error:void 0});var bm=$p(((e,t)=>{switch(t.type){case _f:e.fetching=!0,e.error=void 0;break;case xf:e.value=t.value||[],e.fetching=!1;break;case Tf:e.fetching=t.payload||!1;break;case Cf:e.error=t.payload||void 0}}),{value:[],fetching:!1,error:void 0});const wm=_s({modals:jp,token:qp,permanentTokens:Up,filter:vm,domains:gm,events:bm,widgets:$p(((e,t)=>{switch(t.type){case If:e.value[t.id]=e.value[t.id]||{value:void 0,fetching:!1};const n=null==e.value[t.id].value?t.value:e.value[t.id].value;e.value[t.id].value=n,e.value[t.id].fetching=!0;break;case zf:e.value[t.id].value=t.value,e.value[t.id].fetching=!1;break;case Ff:e.value[t.id].fetching=t.payload||!1;break;case $f:e.error=t.payload||void 0}}),{value:{},error:void 0})});var Em=n((function(e,t){!function(e,t){function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}var a=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))},o={error:null},i=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),a=0;a!1===km.includes(e.message),xm=Sm||(Sm={});xm.Pop="POP",xm.Push="PUSH",xm.Replace="REPLACE";function Tm(e){e.preventDefault(),e.returnValue=""}function Cm(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function Nm(e){var t=e.pathname,n=e.search;return(void 0===t?"/":t)+(void 0===n?"":n)+(void 0===(e=e.hash)?"":e)}function Rm(e){var t={};if(e){var n=e.indexOf("#");0<=n&&(t.hash=e.substr(n),e=e.substr(0,n)),0<=(n=e.indexOf("?"))&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var Pm=n((function(t,n){var r=[].slice;!function(e,r){null!==n?t.exports=r():e.UrlPattern=r()}(e,(function(){var e,t,n,a,o,i,l,u,s,c,d,f,p,m,h;return s=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},l=function(e,t){var n,r,a;for(a=[],n=-1,r=e.length;++n(Array.isArray(i)?i.length-1:0)))return o=Array.isArray(i)?i[a]:i,r&&(n[t]=a+1),o;if(r)throw new Error("too few values provided for key `"+t+"`")}else if(r)throw new Error("no values provided for key `"+t+"`")},n=function(e,t,r){var a,o;if(Array.isArray(e)){for(a=-1,o=e.length;++a!0===Wm.some((t=>null!=t.pattern.match(e)))?e:Bm.pattern.stringify();var Km=()=>{const e=s.useMemo((()=>function(e){function t(){var e=Rm(l.location.hash.substr(1)),t=e.pathname,n=e.search;e=e.hash;var r=u.state||{};return[r.idx,{pathname:void 0===t?"/":t,search:void 0===n?"":n,hash:void 0===e?"":e,state:r.usr||null,key:r.key||"default"}]}function n(){if(s)m.call(s),s=null;else{var e=Sm.Pop,n=t(),r=n[0];if(n=n[1],m.length){if(null!=r){var a=d-r;a&&(s={action:e,location:n,retry:function(){i(-1*a)}},i(a))}}else o(e)}}function r(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=-1===(n=(t=l.location.href).indexOf("#"))?t:t.slice(0,n)),n+"#"+("string"==typeof e?e:Nm(e))}function a(e,t){return void 0===t&&(t=null),cc({},f,{},"string"==typeof e?Rm(e):e,{state:t,key:Math.random().toString(36).substr(2,8)})}function o(e){c=e,e=t(),d=e[0],f=e[1],p.call({action:c,location:f})}function i(e){u.go(e)}void 0===e&&(e={});var l=void 0===(e=e.window)?document.defaultView:e,u=l.history,s=null;l.addEventListener("popstate",n),l.addEventListener("hashchange",(function(){Nm(t()[1])!==Nm(f)&&n()}));var c=Sm.Pop,d=(e=t())[0],f=e[1],p=Cm(),m=Cm();return null==d&&(d=0,u.replaceState(cc({},u.state,{idx:d}),"")),{get action(){return c},get location(){return f},createHref:r,push:function e(t,n){var i=Sm.Push,s=a(t,n);if(!m.length||(m.call({action:i,location:s,retry:function(){e(t,n)}}),0)){var c=[{usr:s.state,key:s.key,idx:d+1},r(s)];s=c[0],c=c[1];try{u.pushState(s,"",c)}catch(e){l.location.assign(c)}o(i)}},replace:function e(t,n){var i=Sm.Replace,l=a(t,n);m.length&&(m.call({action:i,location:l,retry:function(){e(t,n)}}),1)||(l=[{usr:l.state,key:l.key,idx:d},r(l)],u.replaceState(l[0],"",l[1]),o(i))},go:i,back:function(){i(-1)},forward:function(){i(1)},listen:function(e){return p.push(e)},block:function(e){var t=m.push(e);return 1===m.length&&l.addEventListener("beforeunload",Tm),function(){t(),m.length||l.removeEventListener("beforeunload",Tm)}}}}()),[]),[t,n]=s.useState(Hm(e.location));s.useEffect((()=>e.listen((({location:e})=>{n(Hm(e))}))),[e]);return[s.useCallback((t=>{e.push({pathname:t})}),[e]),t]},Qm=e=>[e.message,e.stack].join("\n");const Ym=e=>{e.target.select(),document.execCommand("copy")},Gm=e=>{const t=s.createElement("textarea",{className:"input",id:e.id,required:e.required,disabled:e.disabled,readOnly:e.readOnly,placeholder:e.placeholder,value:e.value,rows:e.rows,onChange:e.onChange,onFocus:!0===e.copyOnFocus?Ym:void 0});return!0===e.copyOnFocus?s.createElement("div",{className:"inputMessage",title:"Copied to clipboard"},t):t};Gm.propTypes={id:ac.string,required:ac.bool,disabled:ac.bool,readOnly:ac.bool,placeholder:ac.string,value:ac.string,rows:ac.number,onChange:ac.func,copyOnFocus:ac.bool};const Xm=e=>s.createElement("div",{className:"spacer",style:{"--size":e.size}});Xm.propTypes={size:ac.number.isRequired}; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see @@ -96,4 +96,4 @@ var Zm=n((function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e * * Licensed under the MIT license. */ -var Ah="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Ih(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function zh(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var $h={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Ah?173:189,"=":Ah?61:187,";":Ah?59:186,"'":222,"[":219,"]":221,"\\":220},jh={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},qh={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Uh={16:!1,18:!1,17:!1,91:!1},Vh={},Wh=1;Wh<20;Wh++)$h["f".concat(Wh)]=111+Wh;var Bh=[],Hh="all",Kh=[],Qh=function(e){return $h[e.toLowerCase()]||jh[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function Yh(e){Hh=e||"all"}function Gh(){return Hh||"all"}var Xh=function(e){var t=e.key,n=e.scope,r=e.method,a=e.splitKey,o=void 0===a?"+":a;Fh(t).forEach((function(e){var t=e.split(o),a=t.length,i=t[a-1],l="*"===i?"*":Qh(i);if(Vh[l]){n||(n=Gh());var u=a>1?zh(jh,t):[];Vh[l]=Vh[l].map((function(e){return(!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0,o=0;o0,Uh)Object.prototype.hasOwnProperty.call(Uh,a)&&(!Uh[a]&&t.mods.indexOf(+a)>-1||Uh[a]&&-1===t.mods.indexOf(+a))&&(r=!1);(0!==t.mods.length||Uh[16]||Uh[18]||Uh[17]||Uh[91])&&!r&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function Jh(e){var t=Vh["*"],n=e.keyCode||e.which||e.charCode;if(ey.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===Bh.indexOf(n)&&229!==n&&Bh.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=qh[t];e[t]&&-1===Bh.indexOf(n)?Bh.push(n):!e[t]&&Bh.indexOf(n)>-1?Bh.splice(Bh.indexOf(n),1):"metaKey"===t&&e[t]&&3===Bh.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Bh=Bh.slice(Bh.indexOf(n))))})),n in Uh){for(var r in Uh[n]=!0,jh)jh[r]===n&&(ey[r]=!0);if(!t)return}for(var a in Uh)Object.prototype.hasOwnProperty.call(Uh,a)&&(Uh[a]=e[qh[a]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Bh.indexOf(17)&&Bh.push(17),-1===Bh.indexOf(18)&&Bh.push(18),Uh[17]=!0,Uh[18]=!0);var o=Gh();if(t)for(var i=0;i1&&(a=zh(jh,e)),(e="*"===(e=e[e.length-1])?"*":Qh(e))in Vh||(Vh[e]=[]),Vh[e].push({keyup:u,keydown:s,scope:o,mods:a,shortcut:r[l],method:n,key:r[l],splitKey:c});void 0!==i&&!function(e){return Kh.indexOf(e)>-1}(i)&&window&&(Kh.push(i),Ih(i,"keydown",(function(e){Jh(e)})),Ih(window,"focus",(function(){Bh=[]})),Ih(i,"keyup",(function(e){Jh(e),function(e){var t=e.keyCode||e.which||e.charCode,n=Bh.indexOf(t);if(n>=0&&Bh.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&Bh.splice(0,Bh.length),93!==t&&224!==t||(t=91),t in Uh)for(var r in Uh[t]=!1,jh)jh[r]===t&&(ey[r]=!1)}(e)})))}var ty={setScope:Yh,getScope:Gh,deleteScope:function(e,t){var n,r;for(var a in e||(e=Gh()),Vh)if(Object.prototype.hasOwnProperty.call(Vh,a))for(n=Vh[a],r=0;r1?t-1:0),r=1;rMath.max(10,Math.min(e.body.width-e.element.width-10,e.target.absolute.x+e.target.width-e.element.width)),sy=e=>e.target.absolute.y+e.target.height+10,cy=e=>e.find((e=>!0===e.active)),dy=e=>s.createElement("div",{className:Zm({header__spinner:!0,"header__spinner--white":"white"===e.color,"header__spinner--primary":"primary"===e.color,"header__spinner--visible":!0===e.fetching})}),fy=e=>{const t=!0===e.fetching;return s.createElement("div",{className:"header__logo"},s.createElement(dy,{color:"white",fetching:t}),s.createElement(dy,{color:"primary",fetching:t}))},py=e=>s.createElement("button",{className:Zm({header__button:!0,active:!0===e.active,link:!0,"color-white":!0===e.active}),onClick:e.onClick},e.children),my=e=>{const t=s.useRef(),[n,r]=s.useState(!1),a=()=>r(!1),o=null!=cy(e.items);return s.createElement(s.Fragment,{},s.createElement("button",{ref:t,className:Zm({header__button:!0,hovered:!0===n,active:!0===o,link:!0,"color-white":!0===o}),onClick:()=>r(!n)},e.children,s.createElement(xh,{className:"header__arrow"})),!0===n&&s.createElement(_h,{targetRef:t,x:uy,y:sy,items:e.items,onItemClick:a,onAwayClick:a}))},hy=e=>s.createElement("header",{className:"header"},s.createElement(fy,{fetching:e.fetching}),s.createElement("nav",{className:"header__nav"},s.createElement("div",{className:"header__buttons"},e.items.map(((e,t)=>e.type===iy?s.createElement(py,{key:t,...e},e.label):e.type===ly?s.createElement(my,{key:t,...e},e.label(cy(e.items))):void 0)))));hy.propTypes={fetching:ac.bool.isRequired,items:ac.arrayOf(ac.object).isRequired};const yy=(e,t,n)=>({type:iy,onClick:()=>n.setRoute(t),active:n.route===t,label:e}),vy=(e,t)=>({type:ly,items:t,label:e}),gy=(e,t,n,r)=>({type:bh,onClick:()=>n.setRoute(t),active:n.route===t,label:e,keyHint:r}),by=()=>({type:wh}),wy="modals_domain_add",Ey="modals_domain_edit",ky="modals_event_add",Sy="modals_event_edit",_y="modals_permanent_token_add",xy="modals_permanent_token_edit";var Ty={current:ac.bool.isRequired,active:ac.bool.isRequired,closeModal:ac.func.isRequired};const Cy=e=>(oy("esc",e.closeModal,{filter:()=>!0===e.current,enableOnTags:["INPUT","SELECT","TEXTAREA"]}),s.createElement("div",{className:Zm({modal:!0,visible:!0===e.visible})},s.createElement("div",{className:"modal__inner"},e.children)));Cy.propTypes={...Ty,visible:ac.bool.isRequired,children:ac.node.isRequired};const Ny=e=>s.createElement("label",{className:Zm({label:!0,"label--no-spacing":!1===e.spacing}),htmlFor:e.htmlFor},e.children);Ny.propTypes={spacing:ac.bool,htmlFor:ac.string.isRequired,children:ac.node.isRequired};const Ry=e=>{const[t,n]=s.useState({title:""}),r=Sd();return s.createElement("form",{className:"card",onSubmit:n=>{n.preventDefault(),e.addDomain(t).then(e.closeModal)}},s.createElement("div",{className:"card__inner"},s.createElement(Xm,{size:.5}),s.createElement(Ny,{htmlFor:r},"Domain title"),s.createElement(ah,{type:"text",id:r,required:!0,disabled:!0===e.fetching,focused:!0,placeholder:"Domain title",value:t.title,onChange:(a="title",e=>n({...t,[a]:e.target.value}))})),s.createElement("div",{className:"card__footer"},s.createElement("button",{type:"button",className:"card__button link",onClick:e.closeModal,disabled:!1===e.active},"Close"),s.createElement("div",{className:"card__separator"}),s.createElement("button",{className:"card__button card__button--primary link color-white",disabled:!0===e.fetching||!1===e.active},!0===e.fetching?s.createElement(oh):"Add")));var a};Ry.propTypes={...Ty,fetching:ac.bool.isRequired,addDomain:ac.func.isRequired};const Py=e=>{const[t,n]=s.useState({title:e.title}),r=Sd(),a=Sd(),o=Sd(),i=window.env.customTracker.url||"/tracker.js",l=new URL(i,location.href).href,u=location.origin;return s.createElement("form",{className:"card",onSubmit:n=>{n.preventDefault(),e.updateDomain(e.id,t).then(e.closeModal)}},s.createElement("div",{className:"card__inner"},s.createElement(Xm,{size:.5}),s.createElement(Ny,{htmlFor:r},"Domain title"),s.createElement(ah,{type:"text",id:r,required:!0,disabled:!0===e.fetching,focused:!0,placeholder:"Domain title",value:t.title,onChange:(c="title",e=>n({...t,[c]:e.target.value}))}),s.createElement(Ny,{htmlFor:a},"Domain id"),s.createElement(ah,{type:"text",id:a,readOnly:!0,placeholder:"Domain id",value:e.id,copyOnFocus:!0}),s.createElement(Ny,{htmlFor:o},"Embed code"),s.createElement(Gm,{id:o,readOnly:!0,rows:4,value:`